/* Cabinet dentaire du Dr Julien Caquot — feuille de style
   Mise en page : en-tête fixe en haut, sections pleine largeur, contenu centré sur 1120 px.
   Couleurs et polices reprises du site d'origine (bleu marine, accent bleu-vert, titres Georgia). */
:root {
  --ink: #132F46;        /* texte principal, titres */
  --navy: #10304C;       /* panneaux sombres, boutons */
  --accent: #2A6C88;     /* italiques, liens, détails */
  --muted: #4A6175;      /* texte secondaire */
  --mist: #EDF2F6;       /* bandeaux clairs */
  --line: #D5DFE7;       /* filets, bordures */
  --paper: #FFFFFF;      /* fond */
  --on-dark: #FFFFFF;
  --on-dark-soft: #B9CEDC;
  --ok: #1F6B4A;
  --warn: #9A3B23;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: var(--on-dark); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 16px; top: 16px; }

/* Typographie */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; color: var(--ink); text-wrap: balance; margin: 0; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5.4vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.6rem); }
h3 { font-size: 1.35rem; }
h1 em, h2 em { color: var(--accent); }
p { margin: 0; text-wrap: pretty; }
.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 36em; }
.small { font-size: 0.9rem; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack-lg { display: flex; flex-direction: column; gap: 32px; }

/* Boutons */
.actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; background: var(--navy); color: var(--on-dark); border: 1px solid var(--navy); border-radius: 4px; font: 600 0.98rem/1 var(--font-body); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-dark); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--mist); color: var(--navy); border-color: var(--navy); }
.link-under { font-weight: 600; color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.link-under:hover { border-color: var(--navy); color: var(--navy); }

/* En-tête */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; }
.brand strong { display: block; font-size: 1rem; line-height: 1.2; }
.brand span { display: block; font-size: 0.82rem; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.94rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--accent); color: var(--ink); }

/* Accueil : ouverture */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hero-text { padding: clamp(40px, 7vw, 88px) max(20px, calc((100vw - var(--wrap)) / 2 + 20px)); padding-right: clamp(24px, 5vw, 64px); display: flex; flex-direction: column; gap: 24px; justify-content: center; }
.hero-text .lead { max-width: 28em; }
.addr { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.92rem; }
.hero-panel { background: var(--navy); color: var(--on-dark); padding: clamp(28px, 5vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 420px; }
.hero-panel .motto { color: var(--on-dark-soft); font-size: 0.92rem; letter-spacing: 0.04em; }
.hero-panel img { width: min(200px, 50%); align-self: center; }
.hero-panel p.tagline { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.25; color: var(--on-dark); }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero-text { padding-left: var(--gutter); padding-right: var(--gutter-r); }
  .hero-panel { min-height: 0; flex-direction: row; align-items: center; flex-wrap: wrap; padding-left: var(--gutter); padding-right: var(--gutter-r); }
  .hero-panel img { width: 96px; align-self: auto; }
  .hero-panel .motto { flex-basis: 100%; }
}

/* Bandeau infos pratiques */
.infobar { background: var(--mist); }
.infobar .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; padding-block: 20px; font-size: 0.95rem; }
.infobar .item { display: flex; align-items: center; gap: 10px; }
.infobar a { color: var(--ink); font-weight: 600; text-decoration: none; }
.icon { width: 20px; height: 20px; flex: none; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Sections */
.section { padding-block: clamp(56px, 9vw, 104px); }
.section-mist { background: var(--mist); }
.section-dark { background: var(--navy); color: var(--on-dark); }
.section-dark h2, .section-dark h3 { color: var(--on-dark); }
.section-dark .eyebrow { color: var(--on-dark-soft); }
.section-dark .lead, .section-dark .small { color: var(--on-dark-soft); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.prose { display: flex; flex-direction: column; gap: 16px; max-width: 38em; }
.quote { font-family: var(--font-display); font-size: 1.35rem; color: var(--accent); border-top: 1px solid var(--line); padding-top: 20px; }

/* Soins */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
@media (max-width: 720px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card p { color: var(--muted); }
.card details { border-top: 1px solid var(--line); padding-top: 12px; margin-top: auto; }
.card summary { cursor: pointer; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 32px; }
.card summary::-webkit-details-marker { display: none; }
.card summary::after { content: "+"; font-size: 1.3rem; color: var(--accent); }
.card details[open] summary::after { content: "–"; }
.card details > div { padding-top: 10px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); font-size: 0.97rem; }

/* Cas clinique (accueil) */
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 820px) { .case { grid-template-columns: 1fr; } }
.case figure { margin: 0; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pair img { border-radius: 4px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.pair figcaption, .fig figcaption { font-size: 0.85rem; color: var(--on-dark-soft); margin-top: 6px; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact > * { min-width: 0; }
.big-phone { font-family: var(--font-display); font-size: clamp(1.8rem, 3.6vw, 2.3rem); color: var(--ink); text-decoration: none; }
.hours { width: 100%; border-collapse: collapse; font-size: 0.97rem; font-variant-numeric: tabular-nums; }
.hours th { text-align: left; font-weight: 600; padding: 9px 0; border-bottom: 1px solid var(--line); }
.hours td { text-align: right; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.hours tr.closed td { color: var(--warn); }
.note { background: var(--mist); border-radius: 6px; padding: 14px 16px; font-size: 0.93rem; }

.form { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: clamp(22px, 4vw, 36px); display: flex; flex-direction: column; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.93rem; font-weight: 600; }
.field input, .field select, .field textarea { font: 400 1rem/1.4 var(--font-body); color: var(--ink); background: var(--paper); border: 1px solid #A9BBC9; border-radius: 4px; padding: 11px 12px; width: 100%; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 4px; padding: 12px 14px; font-size: 0.95rem; }
.alert-ok { background: #E3F1EA; color: var(--ok); }
.alert-err { background: #F8E7E1; color: var(--warn); }

/* Pages intérieures */
.page-head { background: var(--mist); }
.page-head .wrap { padding-block: clamp(44px, 7vw, 80px); display: flex; flex-direction: column; gap: 18px; }
.article { max-width: 760px; margin: 0 auto; padding: clamp(44px, 7vw, 80px) var(--gutter-r) clamp(44px, 7vw, 80px) var(--gutter); display: flex; flex-direction: column; gap: 44px; }
.article section { display: flex; flex-direction: column; gap: 14px; }
.article h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
.fig { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.fig img { border-radius: 6px; border: 1px solid var(--line); }
.fig figcaption { color: var(--muted); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: baseline; }
.steps li::before { content: counter(s); font-family: var(--font-display); font-size: 1.25rem; color: var(--accent); }
.callout { border-left: 3px solid var(--accent); padding-left: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 0.88rem; background: var(--paper); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .gallery, .gallery-2 { grid-template-columns: 1fr; } }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.gallery img { border-radius: 4px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.gallery figcaption { font-size: 0.85rem; color: var(--muted); }
.wide { max-width: 1000px; }

/* Comparateur avant / après */
.compare { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 3 / 2; max-width: 100%; background: var(--mist); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare .bar { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: var(--paper); transform: translateX(-1px); pointer-events: none; }
.compare .tag { position: absolute; top: 12px; background: var(--navy); color: var(--on-dark); font-size: 0.8rem; font-weight: 600; padding: 4px 10px; border-radius: 3px; }
.compare .tag-l { left: 12px; } .compare .tag-r { right: 12px; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

/* Pied de page */
.site-footer { background: var(--ink); color: var(--on-dark-soft); font-size: 0.92rem; }
.site-footer .wrap { padding-block: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer a { color: var(--on-dark); }
.site-footer strong { color: var(--on-dark); display: block; font-size: 1rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
