/* Charte reprise de la diapo et des flyers : vert profond, fond lin, serif sobre.
   Mise en page : colonne de lecture ~68 caractères, encarts pour l'essentiel. */
:root {
  --paper: #F4F1EA;
  --surface: #FBFAF6;
  --ink: #23302A;
  --text: #4C5651;
  --accent: #2F4239;
  --accent-soft: #DCE3DE;
  --line: #DAD5CB;
  --alert: #8A3B2E;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #161B18;
    --surface: #1E2521;
    --ink: #EEF0EC;
    --text: #C3CAC5;
    --accent: #A9C2B4;
    --accent-soft: #2A3530;
    --line: #34403A;
    --alert: #E4A08F;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #161B18;
  --surface: #1E2521;
  --ink: #EEF0EC;
  --text: #C3CAC5;
  --accent: #A9C2B4;
  --accent-soft: #2A3530;
  --line: #34403A;
  --alert: #E4A08F;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); font-weight: 500; line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); margin-top: 2.6rem; margin-bottom: .8rem; }
h3 { font-size: 1.2rem; margin-bottom: .35rem; }
p + p { margin-top: .9rem; }
ul.list { padding-left: 1.2rem; display: grid; gap: .35rem; margin-top: .6rem; }
strong { color: var(--ink); font-weight: 600; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.read { max-width: 68ch; }

/* En-tête */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; padding-block: 1rem; }
.brand { text-decoration: none; color: var(--ink); display: grid; line-height: 1.25; }
.brand b { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; }
.brand span { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.nav { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; align-items: center; font-size: .95rem; }
.nav a { color: var(--text); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }
.nav a.btn, .nav a.btn:hover { color: var(--paper); text-decoration: none; }

.btn {
  display: inline-block; background: var(--accent); color: var(--paper);
  padding: .7rem 1.2rem; border-radius: 4px; text-decoration: none; font-weight: 600; font-size: .98rem;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }

/* Sections */
main { padding-block: 2.5rem 4rem; }
.eyebrow { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: .7rem; }
.lead { font-size: 1.18rem; color: var(--ink); margin-top: 1rem; max-width: 60ch; }
.hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start; padding-bottom: 1rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.facts { background: var(--surface); border: 1px solid var(--line); padding: 1.4rem 1.5rem; display: grid; gap: .9rem; font-size: .97rem; }
.facts dt { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.facts dd { color: var(--ink); }
.photo { aspect-ratio: 4 / 3; background: var(--accent-soft); border: 1px dashed var(--line); display: grid; place-items: center; font-size: .9rem; color: var(--text); text-align: center; padding: 1rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; margin-top: 1rem; }
.card { background: var(--surface); border: 1px solid var(--line); padding: 1.2rem 1.3rem; text-decoration: none; color: var(--text); display: block; }
a.card:hover { border-color: var(--accent); }
.card h3 { color: var(--ink); }
.card p { font-size: .95rem; }

.steps { counter-reset: s; display: grid; gap: 1rem; margin-top: 1rem; }
.steps li { list-style: none; counter-increment: s; display: grid; grid-template-columns: 2.2rem 1fr; gap: .8rem; }
.steps li::before { content: counter(s); font-family: var(--font-display); font-size: 1.5rem; color: var(--accent); line-height: 1.2; }

.alert { border-left: 3px solid var(--alert); background: var(--surface); padding: 1rem 1.2rem; margin-top: 1.2rem; }
.alert h3 { color: var(--alert); font-size: 1.05rem; }
.note { border-left: 3px solid var(--accent); background: var(--surface); padding: 1rem 1.2rem; margin-top: 1.2rem; }

table.prices { width: 100%; border-collapse: collapse; margin-top: 1rem; font-variant-numeric: tabular-nums; }
.prices th, .prices td { text-align: left; padding: .8rem .4rem; border-bottom: 1px solid var(--line); }
.prices th { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.prices td:last-child, .prices th:last-child { text-align: right; }
.prices td:last-child { color: var(--ink); font-weight: 600; white-space: nowrap; }

details { border-bottom: 1px solid var(--line); padding: .9rem 0; }
summary { cursor: pointer; color: var(--ink); font-weight: 600; }
details p { margin-top: .6rem; }

.cta-band { margin-top: 3rem; padding: 1.8rem; background: var(--accent); color: var(--paper); display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.cta-band p { color: var(--paper); font-size: 1.1rem; max-width: 50ch; }
.cta-band .btn { background: var(--paper); color: var(--accent); }

.breadcrumb { font-size: .88rem; margin-bottom: 1.2rem; }
.breadcrumb a { color: var(--text); }

/* Pied de page */
.site-footer { border-top: 1px solid var(--line); padding-block: 2rem; font-size: .92rem; }
.site-footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.site-footer h4 { font-family: var(--font-display); color: var(--ink); font-weight: 500; font-size: 1.05rem; margin-bottom: .4rem; }
.site-footer ul { list-style: none; display: grid; gap: .25rem; }
.site-footer a { color: var(--text); }
.legal { font-size: .82rem; margin-top: 1.5rem; grid-column: 1 / -1; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Logo (fichier blanc sur noir) : inversé et fondu en clair, fondu tel quel en sombre. */
.brand { display: flex; align-items: center; gap: .8rem; }
.brand-logo { height: 46px; width: auto; filter: invert(1); mix-blend-mode: multiply; opacity: .9; }
.brand-text { display: grid; line-height: 1.25; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-logo { filter: none; mix-blend-mode: screen; } }
:root[data-theme="dark"] .brand-logo { filter: none; mix-blend-mode: screen; }

/* Photos du cabinet */
.photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.photos figure { margin: 0; }
.photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); }
.photos figcaption { font-size: .88rem; margin-top: .4rem; }

/* Alignements : texte courant justifié, contenu des cases centré. */
.read p, .lead, details p, .note p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.card, .facts { text-align: center; }
.photos figcaption { text-align: center; }

/* Menus déroulants de la navigation (Motifs, Publics) */
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; color: var(--text); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: " ▾"; font-size: .8em; }
.menu[open] summary, .menu summary:hover { color: var(--ink); }
.menu-panel { position: absolute; top: calc(100% + .6rem); left: -1rem; z-index: 10; display: grid; min-width: 250px; padding: .5rem 0; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.menu-panel a { padding: .45rem 1rem; white-space: nowrap; }
@media (max-width: 640px) {
  .menu-panel { position: static; box-shadow: none; border: 0; border-left: 2px solid var(--line); margin-top: .4rem; padding: 0; min-width: 0; }
}

/* Cartes : lignes centrées, la dernière carte isolée se place au milieu. */
.grid { display: flex; flex-wrap: wrap; justify-content: center; }
.grid > .card { flex: 0 0 calc((100% - 3rem) / 4); }
@media (max-width: 900px) { .grid > .card { flex-basis: calc((100% - 2rem) / 3); } }
@media (max-width: 680px) { .grid > .card { flex-basis: calc((100% - 1rem) / 2); } }
@media (max-width: 440px) { .grid > .card { flex-basis: 100%; } }
.wide p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.photos.tall img { aspect-ratio: 3 / 4; }

/* En-tête : la navigation occupe toute la largeur restante, bouton de rendez-vous à droite. */
.site-header .wrap { flex-wrap: nowrap; }
.nav { flex: 1; justify-content: space-between; margin-left: 2.5rem; font-size: 1.05rem; }
.cta-band p { max-width: none; }
@media (max-width: 900px) {
  .site-header .wrap { flex-wrap: wrap; }
  .nav { flex-basis: 100%; margin-left: 0; justify-content: flex-start; gap: .4rem 1.2rem; }
}
.menu summary { font-weight: 400; text-decoration: none; display: inline; }

/* Page centrée (Accès) : colonne au milieu, titre, encadré et photos centrés. */
.read.centered { margin-inline: auto; }
.centered > .eyebrow, .centered > h1 { text-align: center; }
.centered .photos { max-width: 560px; margin-inline: auto; }

/* Toutes les pages : même disposition que l'accueil, texte sur toute la largeur. */
.read { max-width: none; }
.breadcrumb { max-width: none; }
.read .lead { max-width: none; }
.prices { max-width: 720px; }
.centered > .eyebrow, .centered > h1 { text-align: center; }
.centered .facts { max-width: 640px; margin-inline: auto; }

/* En-tête sur toute la largeur de l'écran, liens plus grands et mieux espacés. */
.site-header .wrap { width: calc(100% - 64px); max-width: none; }
.nav { font-size: 1.12rem; margin-left: 4rem; }
@media (max-width: 900px) { .site-header .wrap { width: calc(100% - 32px); } .nav { margin-left: 0; } }
/* Les menus ne reprennent pas le style des questions de la FAQ ; la barre reste sur une ligne. */
.nav details.menu { border-bottom: 0; padding: 0; }
.nav { flex-wrap: nowrap; gap: 1.2rem; font-size: 1.05rem; margin-left: 3rem; }
.nav .btn { white-space: nowrap; }
@media (max-width: 1000px) {
  .site-header .wrap { flex-wrap: wrap; width: calc(100% - 32px); }
  .nav { flex-basis: 100%; flex-wrap: wrap; margin-left: 0; justify-content: flex-start; gap: .4rem 1.2rem; }
}

/* Le bouton ne remplace la navigation que sur téléphone et si le script est disponible. */
.nav-toggle { display: none; }
button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 760px) {
  body { overflow-wrap: anywhere; }
  img, svg, video, iframe, object, embed { max-width: 100%; }
  img, video { height: auto; }

  /* Les grilles peuvent rétrécir sans imposer leur largeur au document. */
  .hero > *, .photos > *, .grid > *, .site-footer .wrap > *, .steps li > * { min-width: 0; }
  .photos { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
  .site-footer .wrap { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
  .steps li { grid-template-columns: 2.2rem minmax(0, 1fr); }

  /* Texte secondaire et zones tactiles lisibles, sans modifier les tailles du bureau. */
  .brand span, .eyebrow, .facts, .facts dt, .photo, .card p, .btn,
  .prices th, .breadcrumb, .site-footer, .legal, .photos figcaption { font-size: 1rem; }
  .eyebrow, .facts dt, .prices th { letter-spacing: .06em; }
  a, button, summary { min-width: 44px; min-height: 44px; }
  a { display: inline-block; max-width: 100%; padding-block: .5rem; }
  summary { padding-block: .5rem; }
  .btn { padding: .7rem 1.2rem; text-align: center; white-space: normal; }
  .card { display: block; padding: 1.2rem 1.3rem; }
  .site-footer a { padding-block: .55rem; }

  .site-header .wrap { gap: .75rem; }
  .brand { display: flex; flex: 1 1 220px; min-width: 0; padding: 0; }
  .brand-logo { flex-shrink: 0; height: 46px; width: auto; }
  .brand-text { min-width: 0; }
  .brand-text > span { letter-spacing: .02em; }
  .nav-toggle:not([hidden]) {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    flex-shrink: 0; margin-left: auto; padding: .55rem .75rem;
    border: 1px solid var(--accent); border-radius: 4px;
    background: var(--paper); color: var(--accent); font: inherit; cursor: pointer;
  }
  .nav-toggle svg { width: 20px; height: 20px; flex-shrink: 0; }
  .nav-toggle[aria-expanded="true"] .menu-icon { display: none; }
  .nav-toggle[aria-expanded="false"] .close-icon { display: none; }
  .nav { flex-direction: column; align-items: stretch; gap: .25rem; min-width: 0; }
  .nav-toggle:not([hidden])[aria-expanded="false"] + .nav { display: none; }
  .nav > a, .nav .menu summary {
    display: flex; align-items: center; padding: .55rem .75rem;
  }
  .nav .menu summary { justify-content: space-between; }
  .nav .menu-panel {
    position: static; min-width: 0; margin: .25rem 0 .5rem .75rem; padding: 0;
    border: 0; border-left: 2px solid var(--line); box-shadow: none;
  }
  .nav .menu-panel a { display: flex; align-items: center; white-space: normal; padding: .55rem .75rem; }
  .nav .btn { justify-content: center; margin-top: .5rem; white-space: normal; }

  .hero .actions, .cta-band { align-items: stretch; }
  .hero .actions .btn { flex: 1 1 100%; }
  .cta-band { padding: 1.25rem; }
  .cta-band .btn { width: 100%; }
  .prices { table-layout: fixed; }
  .prices th:first-child { width: 56%; }
  .prices th { letter-spacing: 0; }
}
