/* =========================================================
   DENTIO — Feuille de style principale
   ---------------------------------------------------------
   Ce fichier decide de TOUTES les couleurs, tailles et
   espacements du site. Si vous voulez changer une couleur,
   allez dans le bloc ":root" juste en dessous : tout est
   regroupe la, avec un commentaire pour chaque ligne.
   ========================================================= */

:root {
  /* --- Les couleurs du site --- */
  --creme:        #FAF6F0; /* fond general, tres clair */
  --creme-fonce:  #F2EAE0; /* fond des sections alternees */
  --beige:        #E8DAC8; /* cartes, bordures douces */
  --bois-clair:   #C0A17B; /* bois clair : petits decors sans texte dessus */
  --bois:         #8A6E4B; /* bois des boutons (assez fonce pour que le
                              texte blanc reste lisible par tous) */
  --bois-fonce:   #6F5637; /* survol des boutons */
  --bois-texte:   #785C3B; /* bois utilise pour ecrire (sur-titres, liens) */
  --blanc:        #FFFFFF;
  --encre:        #3A332C; /* couleur du texte principal */
  --encre-douce:  #635A50; /* texte secondaire, plus discret */
  --sauge:        #5F7154; /* petite touche de vert, tres discrete */

  /* --- Les arrondis (plus c'est grand, plus c'est doux) --- */
  --arrondi-s: 12px;
  --arrondi-m: 20px;
  --arrondi-l: 32px;
  --arrondi-xl: 48px;

  /* --- Les ombres douces --- */
  --ombre-douce: 0 2px 12px rgba(58, 51, 44, .05);
  --ombre-carte: 0 8px 30px rgba(58, 51, 44, .07);

  /* --- Les polices --- */
  --titre: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --texte: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* --- Largeur maximale du contenu --- */
  --largeur: 1180px;
}

/* ---------- Remise a zero de base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--texte);
  font-size: 17px;
  line-height: 1.75;
  color: var(--encre);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--bois-texte); }

/* Le trait de focus pour les personnes qui naviguent au clavier.
   Ne pas supprimer : c'est une obligation d'accessibilite. */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--sauge);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Titres ---------- */
h1, h2, h3 {
  font-family: var(--titre);
  font-weight: 500;
  line-height: 1.2;
  color: var(--encre);
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); }

p { margin: 0 0 1.1em; }

/* Petit intitule au dessus des titres (ex : "NOS SOINS") */
.sur-titre {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bois-texte);
  font-weight: 600;
  margin-bottom: .9rem;
}

.chapeau {
  font-size: 1.15rem;
  color: var(--encre-douce);
  max-width: 62ch;
}

/* ---------- Structure ---------- */
.contenu {
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section--creme { background: var(--creme-fonce); }
.section--blanc { background: var(--blanc); }
.section--serree { padding: 56px 0; }

.centre { text-align: center; }
.centre .chapeau { margin-left: auto; margin-right: auto; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--texte);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}

.bouton--principal {
  background: var(--bois);
  color: var(--blanc);
}
.bouton--principal:hover {
  background: var(--bois-fonce);
  transform: translateY(-2px);
}

.bouton--secondaire {
  background: transparent;
  color: var(--encre);
  border-color: var(--beige);
}
.bouton--secondaire:hover {
  border-color: var(--bois);
  background: var(--blanc);
  transform: translateY(-2px);
}

.groupe-boutons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.centre .groupe-boutons { justify-content: center; }

/* =========================================================
   EN-TETE (le bandeau du haut avec le menu)
   ========================================================= */
.entete {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 240, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.entete.est-defilee {
  border-bottom-color: var(--beige);
  box-shadow: var(--ombre-douce);
}

.entete__interieur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  text-decoration: none;
  color: var(--encre);
}
.logo__nom {
  font-family: var(--titre);
  font-size: 1.6rem;
  letter-spacing: .12em;
  font-weight: 600;
}
.logo__mention {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--encre-douce);
}

.nav { display: flex; align-items: center; gap: 6px; }

.nav__lien {
  padding: 9px 15px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--encre);
  font-size: .96rem;
  font-weight: 500;
  transition: background-color .2s ease;
}
.nav__lien:hover { background: var(--beige); }
.nav__lien[aria-current="page"] {
  background: var(--beige);
  font-weight: 600;
}

.entete .bouton { padding: 11px 22px; font-size: .92rem; }

/* Le bouton hamburger, visible seulement sur telephone */
.burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--beige);
  border-radius: 50%;
  background: var(--blanc);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--encre);
  position: relative;
  transition: background-color .2s ease;
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--encre);
  transition: transform .25s ease;
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }

.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================
   BANDEAU D'ACCUEIL (la grande image du haut)
   ========================================================= */
.heros {
  padding: 70px 0 88px;
  background: linear-gradient(170deg, var(--creme) 0%, var(--creme-fonce) 100%);
}

.heros__grille {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.heros h1 { margin-bottom: .35em; }

.heros__points {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.heros__points li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .95rem;
  color: var(--encre-douce);
}
.heros__points li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bois-clair);
  flex-shrink: 0;
}

.heros__visuel {
  position: relative;
  border-radius: var(--arrondi-xl);
  overflow: hidden;
  box-shadow: var(--ombre-carte);
  aspect-ratio: 4 / 3; /* cadre adapte aux photos horizontales du cabinet */
}
/* object-position decide de la PARTIE de la photo qu'on garde quand
   elle est recadree. 30% = on privilegie la gauche (le mur au logo).
   Mettez 50% pour centrer, 80% pour privilegier la droite. */
.heros__visuel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
}

/* Petite pastille posee sur la photo.
   Volontairement compacte et calee en bas a gauche : elle ne doit pas
   masquer le sujet de la photo (l'enseigne et la banque d'accueil). */
.pastille {
  position: absolute;
  left: 20px;
  bottom: 20px;
  max-width: calc(100% - 40px);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(6px);
  border-radius: var(--arrondi-m);
  padding: 12px 18px;
  box-shadow: var(--ombre-douce);
}
.pastille strong { display: block; font-family: var(--titre); font-size: 1.02rem; }
.pastille span { font-size: .82rem; color: var(--encre-douce); }

/* Bandeau simple pour les pages interieures */
.banniere {
  padding: 68px 0 56px;
  background: linear-gradient(170deg, var(--creme) 0%, var(--creme-fonce) 100%);
}
.banniere h1 { margin-bottom: .3em; }

/* =========================================================
   FIL D'ARIANE (Accueil > Nos soins)
   ========================================================= */
.fil {
  font-size: .85rem;
  color: var(--encre-douce);
  padding: 18px 0 0;
}
.fil a { color: var(--encre-douce); text-decoration: none; }
.fil a:hover { text-decoration: underline; }
.fil span[aria-hidden] { margin: 0 .5em; opacity: .6; }

/* =========================================================
   CARTES ET GRILLES
   ========================================================= */
.grille {
  display: grid;
  gap: 26px;
}
.grille--2 { grid-template-columns: repeat(2, 1fr); }
.grille--3 { grid-template-columns: repeat(3, 1fr); }
.grille--4 { grid-template-columns: repeat(4, 1fr); }

.carte {
  background: var(--blanc);
  border: 1px solid var(--beige);
  border-radius: var(--arrondi-l);
  padding: 32px 30px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.carte:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombre-carte);
}
.carte h3 { margin-bottom: .45em; }
.carte p:last-child { margin-bottom: 0; }

.carte__icone {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--creme-fonce);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.carte__age {
  display: inline-block;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--bois-texte);
  background: var(--creme-fonce);
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* Carte avec une photo en haut */
.carte--photo { padding: 0; overflow: hidden; }
.carte--photo img {
  width: 100%;
  height: auto; /* indispensable : sinon l'attribut height du HTML l'emporte */
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.carte--photo .carte__corps { padding: 26px 28px 30px; }

/* =========================================================
   BLOC TEXTE + IMAGE COTE A COTE
   ========================================================= */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.duo__visuel {
  border-radius: var(--arrondi-l);
  overflow: hidden;
  box-shadow: var(--ombre-carte);
  aspect-ratio: 3 / 2; /* ratio natif des photos du cabinet : aucun rognage */
}
.duo__visuel img { width: 100%; height: 100%; object-fit: cover; }
.duo--inverse .duo__visuel { order: -1; }

/* =========================================================
   GALERIE (plusieurs photos cote a cote)
   ========================================================= */
.galerie {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 46px;
}
.galerie img {
  width: 100%;
  height: auto; /* indispensable : sinon l'attribut height du HTML l'emporte */
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--arrondi-l);
  box-shadow: var(--ombre-carte);
}

/* Variante a deux photos */
.galerie--2 { grid-template-columns: repeat(2, 1fr); }
.galerie--2 img { aspect-ratio: 4 / 3; }

/* Sur telephone, les photos se mettent les unes sous les autres */
@media (max-width: 760px) {
  .galerie,
  .galerie--2 { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------------------------------------------------------
   Image a montrer EN ENTIER, sans jamais rien couper.
   A utiliser pour les schemas et les infographies : si on les
   recadrait, on perdrait une partie du texte de l'image.
   --------------------------------------------------------- */
.img-entiere img,
img.img-entiere {
  object-fit: contain;
  background: var(--creme-fonce);
}

/* =========================================================
   ETAPES NUMEROTEES (le parcours patient)
   ========================================================= */
.etapes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  counter-reset: etape;
}
.etapes li {
  background: var(--blanc);
  border: 1px solid var(--beige);
  border-radius: var(--arrondi-l);
  padding: 30px 26px;
  counter-increment: etape;
}
.etapes li::before {
  content: counter(etape);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bois);
  color: var(--blanc);
  font-family: var(--titre);
  font-size: 1.15rem;
  margin-bottom: 18px;
}
.etapes h3 { font-size: 1.15rem; }
.etapes p { font-size: .95rem; color: var(--encre-douce); margin: 0; }

/* =========================================================
   EQUIPE
   ========================================================= */
.portrait {
  border-radius: var(--arrondi-l);
  overflow: hidden;
  background: var(--creme-fonce);
  aspect-ratio: 3 / 4;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }

.membre { text-align: center; }
.membre .portrait { margin-bottom: 20px; }
.membre h3 { margin-bottom: .15em; }
.membre__role {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bois-texte);
  font-weight: 600;
  margin-bottom: .8em;
  display: block;
}
.membre p { font-size: .95rem; color: var(--encre-douce); }

/* =========================================================
   QUESTIONS FREQUENTES (les blocs qui s'ouvrent)
   ========================================================= */
.question {
  background: var(--blanc);
  border: 1px solid var(--beige);
  border-radius: var(--arrondi-m);
  margin-bottom: 12px;
  overflow: hidden;
}
.question summary {
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.question summary::-webkit-details-marker { display: none; }
.question summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--bois-texte);
  line-height: 1;
  flex-shrink: 0;
  transition: transform .25s ease;
}
.question[open] summary::after { transform: rotate(45deg); }
.question__reponse { padding: 0 24px 22px; color: var(--encre-douce); }
.question__reponse p:last-child { margin-bottom: 0; }

/* =========================================================
   ENCART D'APPEL (le bandeau "Prendre rendez-vous")
   ========================================================= */
.appel {
  background: var(--beige);
  border-radius: var(--arrondi-xl);
  padding: 62px 48px;
  text-align: center;
}
.appel h2 { margin-bottom: .4em; }

/* Le texte etait bien centre, mais le paragraphe et les boutons restaient
   colles a gauche : le paragraphe a une largeur maximale et n'etait pas
   recentre, et les boutons sont dans une boite flex sans consigne de
   centrage. Ces deux lignes reglent l'un et l'autre. */
.appel .chapeau {
  color: var(--encre);
  margin-left: auto;
  margin-right: auto;
}
.appel .groupe-boutons { justify-content: center; }

/* =========================================================
   CONTACT
   ========================================================= */
.info-bloc {
  background: var(--blanc);
  border: 1px solid var(--beige);
  border-radius: var(--arrondi-l);
  padding: 30px 32px;
  margin-bottom: 20px;
}
.info-bloc h3 { font-size: 1.15rem; margin-bottom: .5em; }
.info-bloc p { margin-bottom: .4em; }
.info-bloc a { font-weight: 600; }

.horaires { width: 100%; border-collapse: collapse; font-size: .97rem; }
.horaires th,
.horaires td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--creme-fonce); }
.horaires th { font-weight: 600; }
.horaires td { color: var(--encre-douce); text-align: right; }
.horaires tr:last-child th,
.horaires tr:last-child td { border-bottom: none; }

/* Marque visuelle pour les infos que vous devez encore remplir */
.a-remplir {
  background: #FFF3CD;
  border-bottom: 2px dashed #C9A227;
  padding: 0 4px;
  border-radius: 3px;
  font-weight: 600;
}

/* =========================================================
   PAGES DE TEXTE LONG (mentions legales, etc.)
   ========================================================= */
main h2 { margin-top: 2em; }
main h2:first-child,
.banniere h2,
.centre h2,
.appel h2,
.duo h2 { margin-top: 0; }

main ul:not(.nav):not(.heros__points):not(.etapes) {
  padding-left: 1.3em;
  margin: 0 0 1.3em;
}
main ul:not(.nav):not(.heros__points):not(.etapes) li {
  margin-bottom: .5em;
}
main ul li::marker { color: var(--bois); }

.question__reponse ul { margin-top: 0; }

/* =========================================================
   PIED DE PAGE
   ========================================================= */
.pied {
  background: var(--encre);
  color: #DCD4CA;
  padding: 68px 0 30px;
  margin-top: 0;
}
.pied a { color: #DCD4CA; text-decoration: none; }
.pied a:hover { color: var(--blanc); text-decoration: underline; }
.pied h3 {
  color: var(--blanc);
  font-size: 1.05rem;
  margin-bottom: .9em;
}
.pied__grille {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.pied__logo {
  font-family: var(--titre);
  font-size: 1.6rem;
  letter-spacing: .12em;
  color: var(--blanc);
  display: block;
  margin-bottom: .5rem;
}
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: .55em; font-size: .95rem; }
.pied p { font-size: .95rem; }
.pied__bas {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .13);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: space-between;
  font-size: .85rem;
  color: #A79C90;
}
.pied__bas ul { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.pied__bas li { margin: 0; font-size: .85rem; }

/* =========================================================
   PETITES ANIMATIONS A L'APPARITION
   ========================================================= */
.apparait {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.apparait.est-visible {
  opacity: 1;
  transform: none;
}

/* Si la personne a demande a son appareil de reduire les animations,
   on les coupe toutes. Obligation d'accessibilite. */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .apparait { opacity: 1; transform: none; }
}

/* Lien invisible qui permet de sauter directement au contenu
   (utile pour les lecteurs d'ecran) */
.saut-contenu {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bois);
  color: var(--blanc);
  padding: 12px 22px;
  border-radius: 0 0 var(--arrondi-s) 0;
  z-index: 200;
}
.saut-contenu:focus { left: 0; }

/* =========================================================
   ADAPTATION AUX PETITS ECRANS (tablette puis telephone)
   ========================================================= */
@media (max-width: 980px) {
  .heros__grille,
  .duo { grid-template-columns: 1fr; gap: 40px; }
  .duo--inverse .duo__visuel { order: 0; }
  .grille--4 { grid-template-columns: repeat(2, 1fr); }
  .grille--3 { grid-template-columns: repeat(2, 1fr); }
  .etapes { grid-template-columns: repeat(2, 1fr); }
  .pied__grille { grid-template-columns: repeat(2, 1fr); gap: 34px; }
}

@media (max-width: 760px) {
  .burger { display: flex; }

  /* Sur telephone, on garde juste "DENTIO" pour que le bandeau
     reste bas et que le menu se place correctement en dessous. */
  .logo__mention { display: none; }
  .logo__nom { font-size: 1.45rem; }
  .entete__interieur { min-height: 68px; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--creme);
    border-bottom: 1px solid var(--beige);
    padding: 14px 24px 26px;
    box-shadow: var(--ombre-carte);
    display: none;
  }
  .nav.est-ouverte { display: flex; }
  .nav__lien { padding: 14px 12px; border-radius: var(--arrondi-s); }

  /* Le bouton Doctolib passe en pleine largeur dans le menu deroulant */
  .nav .bouton { margin-top: 12px; justify-content: center; padding: 15px 22px; }

  .section { padding: 62px 0; }
  .heros { padding: 44px 0 62px; }
  .grille--2,
  .grille--3,
  .grille--4,
  .etapes { grid-template-columns: 1fr; }
  .appel { padding: 44px 26px; border-radius: var(--arrondi-l); }
  .carte { padding: 28px 24px; }
  .pied__grille { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
