/* Cabinet dentaire Jouanjean & Chambraud — feuille de style */

/* ---------- Polices (hébergées sur le site, aucun appel à Google) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/jost-latin-600-normal.woff2") format("woff2"); }

/* ---------- Couleurs et réglages (charte du logo) ---------- */
:root {
  --bleu: #1E3340;          /* bleu nuit du logo */
  --bleu-fonce: #172833;
  --or: #A38B60;            /* or du logo (filets, traits) */
  --or-clair: #D4C09A;
  --or-texte: #6B5E4C;      /* or assombri, lisible pour le petit texte */
  --creme: #F7F4EE;
  --sable: #E8E1D3;
  --bord: #E4DED2;
  --texte: #24343E;
  --texte-doux: #4D5B63;
  --gris-clair: #C6D0D6;
  --blanc: #FFFFFF;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --largeur: 1200px;
  --rayon: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--creme); color: var(--texte);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bleu); text-underline-offset: 3px; }
a:hover { color: #0E1B22; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--bleu); line-height: 1.1; margin: 0; }
p { margin: 0; }
sup { font-size: 0.65em; line-height: 0; }

.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lien-evitement { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--bleu); color: var(--blanc); padding: 10px 16px; border-radius: 4px; }
.lien-evitement:focus { top: 12px; color: var(--blanc); }

.surtitre { font-size: 14px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--or-texte); }
.etiquette { font-family: var(--sans); line-height: 1.4; font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--or-texte); }
.titre-section { font-size: clamp(2rem, 3.4vw, 2.5rem); }
.intro-section { display: flex; flex-direction: column; gap: 12px; max-width: 46rem; }
.intro-section p { color: #3D4C55; }

.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 4px; font-weight: 500; text-decoration: none; border: 1px solid var(--bleu); transition: background-color .15s, color .15s; }
.bouton--plein { background: var(--bleu); color: var(--blanc); }
.bouton--plein:hover { background: #0E1B22; color: var(--blanc); }
.bouton--contour { background: transparent; color: var(--bleu); }
.bouton--contour:hover { background: var(--bleu); color: var(--blanc); }

/* ---------- Bandeau du haut ---------- */
.bandeau { background: var(--bleu); color: #E9EEF1; font-size: 14px; }
.bandeau .conteneur { display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.bandeau a { color: var(--blanc); font-weight: 500; }

/* ---------- En-tête et menu ---------- */
.entete { background: var(--blanc); border-bottom: 1px solid var(--bord); position: sticky; top: 0; z-index: 50; }
.entete .conteneur { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 14px; padding-bottom: 14px; }
.entete__logo img { height: 58px; width: auto; }
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; font-weight: 500; font-size: 16px; }
.menu a { text-decoration: none; padding: 10px 0; }
.menu a:not(.bouton):hover { text-decoration: underline; }
.menu .bouton { padding: 10px 20px; min-height: 44px; }
.menu-bouton { display: none; }

@media (max-width: 860px) {
  .entete__logo img { height: 48px; }
  .js .menu-bouton { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; background: transparent; border: 1px solid var(--bord); border-radius: 4px; font: inherit; font-weight: 500; color: var(--bleu); cursor: pointer; }
  .menu-bouton__icone { width: 18px; height: 12px; position: relative; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
  .menu-bouton__icone::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }
  .js .menu { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 4px; border-top: 1px solid var(--bord); }
  .js .menu.est-ouvert { display: flex; }
  .js .menu a { padding: 12px 0; border-bottom: 1px solid var(--bord); }
  .js .menu .bouton { margin-top: 12px; border-bottom: 1px solid var(--bleu); }
}

/* ---------- Ouverture ---------- */
.ouverture .conteneur { padding-top: 72px; padding-bottom: 48px; }
.ouverture__texte { display: flex; flex-direction: column; gap: 22px; max-width: 820px; }
.ouverture h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); line-height: 1.04; text-wrap: balance; }
.ouverture__chapo { font-size: 1.15rem; color: #3D4C55; max-width: 36rem; }
.ouverture__boutons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.ouverture__horaires { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 8px; padding-top: 20px; border-top: 1px solid #DDD5C6; font-size: 15px; color: #3D4C55; }
.ouverture__horaires strong { color: var(--bleu); font-weight: 600; }
@media (max-width: 860px) {
  .ouverture .conteneur { padding-top: 44px; padding-bottom: 36px; }
}

/* ---------- Illustration du Logis royal ---------- */
.loches .conteneur { padding-top: 16px; padding-bottom: 64px; }
.loches__figure { margin: 0 auto; max-width: 940px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.loches__figure img { width: 100%; height: auto; }
.loches__figure figcaption { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.4rem; color: var(--bleu); text-align: center; }
@media (max-width: 860px) {
  .loches .conteneur { padding-top: 8px; padding-bottom: 44px; }
  .loches__figure figcaption { font-size: 1.15rem; }
}

/* ---------- Horaires et accès ---------- */
.infos { background: var(--blanc); border-top: 1px solid var(--bord); border-bottom: 1px solid var(--bord); }
.infos .conteneur { padding-top: 64px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 32px; }
.grille-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.carte-info { background: var(--creme); border-radius: var(--rayon); padding: 26px 28px; display: flex; flex-direction: column; gap: 12px; }
.horaires { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin: 0; font-size: 16px; }
.horaires dt { font-weight: 500; color: var(--bleu); }
.horaires dd { margin: 0; }
.note { font-size: 15px; color: var(--texte-doux); }
.adresse { font-style: normal; font-size: 18px; font-weight: 500; color: var(--bleu); line-height: 1.45; }
.liens-itineraire { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 500; }
.telephone { font-family: var(--serif); font-size: 30px; font-weight: 600; text-decoration: none; line-height: 1.2; }
.courriel { overflow-wrap: anywhere; }
.carte-info__documents { margin-top: auto; padding-top: 14px; border-top: 1px solid #DDD5C6; display: flex; flex-direction: column; gap: 8px; }
.carte-info__documents ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }

/* ---------- Soins ---------- */
.soins .conteneur, .equipe .conteneur { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 32px; }
.grille-soins { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.carte-soin { height: 100%; background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 10px; }
.carte-soin::before { content: ""; width: 28px; height: 2px; background: var(--or); }
.carte-soin h3 { font-size: 1.65rem; }
.carte-soin p { font-size: 16px; }

/* ---------- Urgences ---------- */
.urgences { background: var(--bleu); color: #E9EEF1; }
.urgences .conteneur { padding-top: 64px; padding-bottom: 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px 56px; }
.urgences .surtitre { color: var(--or-clair); }
.urgences h2 { color: var(--blanc); font-size: clamp(2rem, 3.4vw, 2.5rem); }
.urgences__intro { display: flex; flex-direction: column; gap: 14px; }
.urgences__intro p { color: var(--gris-clair); }
.urgences__cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.carte-urgence { border: 1px solid rgba(212, 192, 154, 0.45); border-radius: var(--rayon); padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; height: 100%; }
.carte-urgence h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; color: var(--blanc); line-height: 1.4; }
.urgences a { color: var(--blanc); font-weight: 500; }
@media (max-width: 860px) { .urgences .conteneur { grid-template-columns: 1fr; } }

/* ---------- Équipe ---------- */
.grille-praticiens { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.praticien { background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 26px; display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.praticien img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; flex: none; }
.praticien__texte { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.praticien h3 { font-size: 1.75rem; }
.praticien ul { margin: 6px 0 0; padding-left: 18px; font-size: 15px; display: flex; flex-direction: column; gap: 4px; }
.grille-equipe { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.grille-equipe li { border-top: 2px solid var(--or); padding-top: 14px; }
.grille-equipe strong { display: block; font-weight: 600; color: var(--bleu); font-size: 18px; }
.grille-equipe span { font-size: 15px; color: var(--texte-doux); }

/* ---------- Pied de page ---------- */
.pied { background: var(--bleu-fonce); color: var(--gris-clair); font-size: 15px; }
.pied .conteneur { padding-top: 56px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 36px; }
.pied__haut { display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; }
.pied__logo img { height: 56px; width: auto; }
.pied__colonnes { display: flex; flex-wrap: wrap; gap: 24px 56px; }
.pied__colonnes div { display: flex; flex-direction: column; gap: 4px; }
.pied__titre { color: var(--blanc); font-weight: 500; }
.pied address { font-style: normal; }
.pied a { color: var(--gris-clair); }
.pied a:hover { color: var(--blanc); }
.pied__bas { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 20px; border-top: 1px solid rgba(198, 208, 214, 0.25); font-size: 14px; }
.pied__bas nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* Les titres de section ne passent pas sous l’en-tête collant */
section[id] { scroll-margin-top: 90px; }

/* ---------- Pages de texte (mentions légales, confidentialité) ---------- */
.page-texte .conteneur { max-width: 820px; padding-top: 56px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 14px; }
.page-texte h1 { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 8px; }
.page-texte h2 { font-size: 1.7rem; margin-top: 22px; }
.page-texte h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; margin-top: 6px; }
.page-texte ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.page-texte .maj { font-size: 15px; color: var(--texte-doux); }
.page-texte .surtitre a { color: inherit; }
