/* Chirurgiens-Dentistes du Palais : direction « maison de couture ».
   Monochrome, grandes images plein cadre, beaucoup de blanc, texte centré et discret. */
:root {
  --encre: #2f3336;
  --gris: #6f7478;
  --gris-clair: #a3a7aa;
  --ligne: #e3e3e1;
  --fond: #f4f4f2;
  --blanc: #ffffff;
  --serif: "Didot", "Bodoni 72", "Bodoni MT", "Libre Bodoni", "Playfair Display", Georgia, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.7;
  color: var(--encre); background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--encre); outline-offset: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0 0 .5em; line-height: 1.1; }
h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

.todo {
  background: #fff3c4; border: 1px dashed #c9a227; padding: 0 .35em;
  border-radius: 2px; color: #5a4600; font-family: var(--sans); font-size: .95em;
}

/* Lien souligné façon « Découvrir » */
.lien {
  display: inline-block; text-decoration: none; font-size: .95rem; letter-spacing: .02em;
  padding-bottom: .2em; border-bottom: 1px solid currentColor;
}
.lien:hover { opacity: .65; }
.bouton {
  display: inline-block; text-decoration: none; font-size: .95rem; letter-spacing: .02em;
  padding: .95em 2.2em; background: var(--encre); color: var(--blanc); border: 1px solid var(--encre);
}
.bouton:hover { background: var(--blanc); color: var(--encre); }

/* ---------- En-tête ---------- */
.entete {
  position: fixed; inset: 0 0 auto 0; z-index: 20; color: var(--blanc);
  transition: background-color .3s, color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.entete.solide { background: var(--blanc); color: var(--encre); border-bottom-color: var(--ligne); }
.entete .barre {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: 4.5rem; padding-inline: clamp(1.2rem, 3vw, 2.5rem);
}
.nav { display: flex; gap: 1.8rem; font-size: .9rem; }
.nav a { text-decoration: none; }
.nav a:hover { opacity: .65; }
.marque { text-decoration: none; text-align: center; font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.55rem); letter-spacing: .04em; line-height: 1.1; }
.droite { justify-self: end; font-size: .9rem; }
.droite a { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: .15em; }
@media (max-width: 860px) {
  .nav { display: none; }
  .entete .barre { grid-template-columns: 1fr auto; }
  .marque { text-align: left; }
}

/* ---------- Plein cadre ---------- */
.plein {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; align-items: end; justify-items: center; text-align: center;
  color: var(--blanc); overflow: hidden;
}
.plein > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plein::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(20,22,24,.45) 0%, rgba(20,22,24,.22) 30%, rgba(20,22,24,.3) 60%, rgba(20,22,24,.62) 100%);
}
.plein .legende { position: relative; z-index: 1; padding: 0 1.5rem 12vh; max-width: 46rem; }
.plein .sur-titre { font-size: .95rem; letter-spacing: .03em; margin-bottom: .8rem; }
.plein h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); margin-bottom: .3em; }
.plein h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
.plein p.sous-titre { font-size: 1.1rem; margin-bottom: 1.8rem; }

/* Chargement de la page : un seul moment d'animation */
@media (prefers-reduced-motion: no-preference) {
  .hero > img { animation: zoom 2.4s cubic-bezier(.2,.6,.2,1) both; }
  .hero .legende { animation: apparition 1.2s .5s ease-out both; }
}
@keyframes zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes apparition { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Blocs éditoriaux ---------- */
.bloc { padding: clamp(5rem, 11vw, 9rem) clamp(1.2rem, 4vw, 3rem); }
.centre { text-align: center; max-width: 44rem; margin-inline: auto; }
.centre p { color: var(--gris); }
.manifeste { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.35; color: var(--encre) !important; }
.fond { background: var(--fond); }

/* Diptyque : deux images côte à côte */
.diptyque { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.diptyque figure { margin: 0; }
.diptyque img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.diptyque figcaption { text-align: center; padding: 1.6rem 1rem 0; }
.diptyque figcaption h3 { font-size: 1.35rem; margin-bottom: .2em; }
.diptyque figcaption p { color: var(--gris); font-size: .95rem; margin: 0; }
@media (max-width: 700px) { .diptyque { grid-template-columns: 1fr; gap: 3rem; } }

/* Grille de pièces, façon catalogue */
.grille {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem 1.2rem;
  max-width: 1400px; margin: 3.5rem auto 0;
}
.piece { margin: 0; text-align: center; }
.piece .cadre { background: var(--fond); aspect-ratio: 3 / 4; overflow: hidden; }
.piece .cadre img { width: 100%; height: 100%; object-fit: cover; }
.piece .cadre.objet img { object-fit: contain; padding: 12% 6%; mix-blend-mode: multiply; }
.piece figcaption { padding-top: 1.1rem; }
.piece h3 { font-family: var(--sans); font-size: 1rem; font-weight: 500; margin-bottom: .3em; }
.piece p { color: var(--gris); font-size: .92rem; margin: 0 auto; max-width: 30ch; }
@media (max-width: 1000px) { .grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .grille { grid-template-columns: 1fr; } }

/* Soins */
.soins { list-style: none; padding: 0; margin: 3rem auto 0; max-width: 40rem; }
.soins li { border-top: 1px solid var(--ligne); padding: 1.6rem 0; text-align: center; }
.soins li:last-child { border-bottom: 1px solid var(--ligne); }
.soins h3 { margin-bottom: .25em; }
.soins p { color: var(--gris); margin: 0; }

/* Praticien */
.portrait { width: 180px; aspect-ratio: 3 / 4; object-fit: cover; margin: 0 auto 2.5rem; }
.portrait-vide {
  width: 220px; aspect-ratio: 3 / 4; margin: 0 auto 2.5rem; background: var(--fond);
  display: grid; place-items: center; color: var(--gris-clair); font-size: .88rem;
}
.fiche { list-style: none; padding: 0; margin: 2.5rem auto 0; max-width: 34rem; text-align: center; }
.fiche li { padding: .9rem 0; border-top: 1px solid var(--ligne); }
.fiche li:last-child { border-bottom: 1px solid var(--ligne); }
.fiche small { display: block; color: var(--gris-clair); font-size: .82rem; letter-spacing: .03em; }

/* Honoraires */
table.tarifs { border-collapse: collapse; width: 100%; max-width: 42rem; margin: 2.5rem auto 0; }
.tarifs th, .tarifs td { padding: .9rem .6rem; border-bottom: 1px solid var(--ligne); text-align: left; vertical-align: top; }
.tarifs th { font-weight: 500; font-size: .8rem; color: var(--gris-clair); letter-spacing: .02em; }
.tarifs th:first-child, .tarifs td:first-child { padding-left: 0; }
.tarifs th:not(:first-child), .tarifs td:not(:first-child) { text-align: right; white-space: nowrap; }
.tarifs th:last-child { white-space: normal; max-width: 9rem; }
.tarifs td:last-child, .tarifs th:last-child { padding-right: 0; color: var(--gris); }
.note { font-size: .92rem; color: var(--gris); margin-top: 2rem !important; }

/* Infos pratiques */
.infos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; max-width: 1100px; margin: 3.5rem auto 0; text-align: center; }
.infos h3 { font-family: var(--sans); font-size: 1rem; font-weight: 500; margin-bottom: 1rem; }
.infos p { color: var(--gris); }
.horaires { width: 100%; max-width: 19rem; margin: 0 auto; border-collapse: collapse; color: var(--gris); }
.horaires td { padding: .2rem 0; }
.horaires td:last-child { text-align: right; }
.urgence { max-width: 40rem; margin: 4rem auto 0; text-align: center; font-size: .95rem; color: var(--gris); border-top: 1px solid var(--ligne); padding-top: 2rem; }
@media (max-width: 860px) { .infos { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.pied { background: var(--fond); padding: 4rem clamp(1.2rem, 4vw, 3rem) 3rem; font-size: .88rem; color: var(--gris); }
.pied .colonnes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; max-width: 1100px; margin: 0 auto; }
.pied h4 { font-family: var(--sans); font-weight: 500; font-size: .88rem; color: var(--encre); margin: 0 0 .8rem; }
.pied a { text-decoration: none; }
.pied a:hover { color: var(--encre); }
.pied .signature { text-align: center; font-family: var(--serif); font-size: 1.4rem; color: var(--encre); margin-top: 3.5rem; letter-spacing: .04em; }
@media (max-width: 760px) { .pied .colonnes { grid-template-columns: 1fr; text-align: center; } }

/* ---------- Page mentions légales ---------- */
.page-texte { padding: 9rem clamp(1.2rem, 4vw, 3rem) 6rem; max-width: 46rem; margin: 0 auto; }
.page-texte h1 { font-size: clamp(2rem, 4vw, 2.8rem); text-align: center; margin-bottom: 2rem; }
.page-texte h2 { font-size: 1.5rem; margin-top: 2.6rem; }
.page-texte p { color: var(--gris); }
.page-texte a { color: var(--encre); }
@media (max-width: 560px) {
  .tarifs { font-size: .88rem; }
  .tarifs th, .tarifs td { padding: .75rem .35rem; }
  .tarifs th:not(:first-child), .tarifs td:not(:first-child) { white-space: normal; }
  .tarifs td:first-child { width: 46%; }
}

/* ---------- Pages de soins ---------- */
.article { padding: 8.5rem clamp(1.2rem, 4vw, 3rem) 5rem; max-width: 46rem; margin: 0 auto; }
.article .sur-titre { text-align: center; color: var(--gris); font-size: .95rem; margin-bottom: .6rem; }
.article h1 { text-align: center; font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-bottom: 1.4rem; }
.article .chapo { text-align: center; color: var(--gris); font-size: 1.1rem; margin-bottom: 2.6rem; }
.article figure { margin: 0 0 3rem; }
.article figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article h2 { font-size: 1.7rem; margin-top: 2.8rem; }
.article p, .article li { color: var(--encre); }
.article ul, .article ol { padding-left: 1.2rem; margin: 0 0 1.2em; }
.article li { margin-bottom: .45em; }
.article .note-medicale { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--ligne); font-size: .92rem; color: var(--gris); }
.cta { text-align: center; background: var(--fond); padding: 3rem 1.5rem; margin-top: 3rem; }
.cta h2 { margin-top: 0; }
.cta .liens { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; align-items: center; margin-top: 1.4rem; }
.autres { text-align: center; margin-top: 3rem; font-size: .95rem; color: var(--gris); }
.autres a { margin: 0 .6rem; }
.soins .lien { font-size: .9rem; margin-top: .7rem; }

/* Logo dans l'en-tête et le pied de page */
.marque { display: inline-flex; align-items: center; gap: .55em; }
.marque .dent { height: 1.9em; width: auto; flex: none; }
.pied .signature { display: flex; align-items: center; justify-content: center; gap: .5em; }
.pied .signature .dent { height: 1.8em; width: auto; flex: none; color: var(--encre); }
@media (max-width: 520px) { .marque { font-size: 1rem; gap: .45em; } .marque .dent { height: 2.1em; } }
