/* ==========================================================================
   Nicole Busquant — Psychothérapie et Psychanalyse à Vannes et Redon

   Un trait, une page, une lampe.
   - Un seul trait continu traverse chaque page, au ras du sol : il dessine la
     lampe et, sur l'accueil, le divan. La lampe est la seule lumière chaude.
   - Une page de livre : une marge à gauche (titres de section, notes,
     légendes) et une colonne de texte. Deux axes, jamais un troisième.
   - Une typographie de livre : Garamond, petites capitales vraies, chiffres
     elzéviriens, espaces fines insécables devant ? ! ; et les tirets du
     dialogue pour les questions.
   ========================================================================== */

/* ---------- Polices (auto-hébergées, aucune requête tierce) ---------- */
@font-face {
  font-family: "Cormorant";
  src: url("../fonts/cormorant-garamond-normal.woff2") format("woff2");
  font-weight: 300 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant";
  src: url("../fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-weight: 300 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/eb-garamond.woff2") format("woff2");
  font-weight: 400 550; font-style: normal; font-display: swap;
}

/* ---------- Jetons ---------- */
:root {
  color-scheme: light dark;

  --paper: #f3eee5;
  --paper-2: #ebe5d9;    /* fond des photos pendant le chargement */
  --ink: #1d2628;        /* 13:1 */
  --ink-2: #465154;      /* texte secondaire, 7:1 */
  --ink-3: #636d6f;      /* légendes, 4,6:1 */
  --accent: #2c6166;     /* le bleu-vert du logo, assombri : 6:1 */
  --mark: #368087;       /* le logo lui-même */
  --rule: color-mix(in srgb, var(--ink) 15%, transparent);
  --lamp: #f2c97d;
  --glow: .55;           /* intensité du halo de la lampe */
  --photo: none;

  --f-display: "Cormorant", "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --f-text: "EB Garamond", Garamond, Georgia, serif;

  --max: 1240px;
  --gutter: clamp(20px, 5.5vw, 80px);
  --gap: clamp(16px, 2vw, 28px);
  --section: clamp(5.5rem, 11vw, 10rem);
  --header-h: clamp(76px, 9vw, 104px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* la nuit : suit le réglage de l'appareil, sauf choix contraire du visiteur
   (interrupteur en pied de page, mémorisé dans le navigateur) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #141819;
    --paper-2: #1c2122;
    --ink: #e9e2d4;
    --ink-2: #b5afa3;
    --ink-3: #8f8a80;
    --accent: #93c4c7;
    --mark: #7fb8bd;
    --rule: color-mix(in srgb, var(--ink) 16%, transparent);
    --glow: .9;
    --photo: brightness(.9);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #141819;
  --paper-2: #1c2122;
  --ink: #e9e2d4;
  --ink-2: #b5afa3;
  --ink-3: #8f8a80;
  --accent: #93c4c7;
  --mark: #7fb8bd;
  --rule: color-mix(in srgb, var(--ink) 16%, transparent);
  --glow: .9;
  --photo: brightness(.9);
}
:root[data-theme="light"] { color-scheme: light; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: clamp(1.0625rem, .98rem + .3vw, 1.1875rem);
  line-height: 1.62;
  font-variant-numeric: oldstyle-nums proportional-nums;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); transition: color .3s, text-decoration-color .3s; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
::selection { background: color-mix(in srgb, var(--lamp) 55%, transparent); color: var(--ink); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
p { margin: 0 0 1em; text-wrap: pretty; hanging-punctuation: first; }
h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
address { font-style: normal; }
.nw { white-space: nowrap; }

/* petites capitales vraies */
.sc, .label {
  font-family: var(--f-text);
  font-variant-caps: all-small-caps;
  font-variant-numeric: lining-nums;
  letter-spacing: .09em;
  font-weight: 500;
}
.label { display: block; font-size: 1.02rem; line-height: 1.3; color: var(--ink-3); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--ink); color: var(--paper); padding: .6em 1em;
  font-size: .95rem; transition: top .2s;
}
.skip:focus { top: 12px; color: var(--paper); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- La page : une marge (colonnes 1 à 4), un texte (5 à 11) ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); position: relative; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.marg { grid-column: 1 / span 3; }
.text { grid-column: 5 / span 7; }
.wide { grid-column: 5 / -1; }

/* ---------- En-tête ---------- */
.site-header { position: relative; z-index: 50; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.mark { width: 36px; height: auto; color: var(--mark); flex: none; }
.mark path { fill: currentColor; }
.brand-name { font-family: var(--f-display); font-size: 1.42rem; font-weight: 500; line-height: 1; white-space: nowrap; letter-spacing: .005em; }

.nav { display: flex; align-items: center; gap: clamp(1.4rem, 2.8vw, 2.6rem); }
.nav a {
  position: relative; padding: .35em 0;
  font-size: 1.06rem; color: var(--ink-2); text-decoration: none;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .1em; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .6s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] { color: var(--ink); }
.nav .nav-rdv { color: var(--accent); }
.nav .nav-rdv:hover { color: var(--accent); }

.menu-toggle {
  display: none; align-items: center; gap: .7rem;
  background: none; border: 0; padding: .6rem 0; margin-right: -.1rem; cursor: pointer; color: var(--ink);
  font-family: var(--f-text); font-size: 1.05rem; font-weight: 500;
  font-variant-caps: all-small-caps; letter-spacing: .09em;
}
.menu-toggle .bars { width: 22px; height: 7px; position: relative; display: inline-block; }
.menu-toggle .bars::before, .menu-toggle .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.menu-toggle .bars::before { top: 0; }
.menu-toggle .bars::after { top: 6px; }
.menu-open .menu-toggle .bars::before { top: 3px; transform: rotate(18deg); }
.menu-open .menu-toggle .bars::after { top: 3px; transform: rotate(-18deg); }

/* ---------- Bouton et liens ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .85em;
  padding: .9em 1.5em .88em;
  font-family: var(--f-text); font-size: 1.04rem; font-weight: 500; line-height: 1.2;
  letter-spacing: .015em; text-decoration: none;
  color: var(--paper); background: var(--ink);
  border: 0; border-radius: 0;
  transition: background-color .4s var(--ease);
}
.btn:hover { color: var(--paper); background: var(--accent); }
.arr { width: 1.45em; height: .7em; flex: none; overflow: visible; }
.arr path { fill: none; stroke: currentColor; stroke-width: 1px; vector-effect: non-scaling-stroke; transition: transform .5s var(--ease); }
a:hover .arr path { transform: translateX(3px); }

.tel {
  font-family: var(--f-display); font-size: 1.5rem; font-weight: 400; line-height: 1;
  letter-spacing: .02em; white-space: nowrap;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: .12em;
  transition: color .3s, background-size .6s var(--ease);
}
.tel:hover { background-size: 0 1px; background-position: 100% 100%; }

.more {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: 1.02rem; color: var(--accent); text-decoration: none;
}
.more:hover { color: var(--ink); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem 2rem; }

/* ---------- Le trait : un tracé, une épaisseur, joué une fois ---------- */
.ill { width: 100%; height: auto; overflow: visible; color: var(--ink); }
.ill path { fill: none; stroke: currentColor; stroke-width: var(--sw, 1); stroke-linecap: round; stroke-linejoin: round; }
/* Le trait se dessine seulement sur l’accueil ; ailleurs, la lampe est déjà là. */
.ill .glow { opacity: var(--glow); }
.js .scene .ill path {
  stroke-dasharray: var(--len, 9999) var(--len, 9999);
  stroke-dashoffset: var(--len, 9999);
}
.js .scene .ill.is-drawn path { stroke-dashoffset: 0; }
.js .scene .ill.is-drawn .f-l { transition: stroke-dashoffset .7s cubic-bezier(.4, 0, .6, 1); }
.js .scene .ill.is-drawn .line { transition: stroke-dashoffset var(--dur, 3.4s) cubic-bezier(.42, 0, .3, 1) .62s; }
.js .scene .ill.is-drawn .f-r { transition: stroke-dashoffset .9s cubic-bezier(.3, 0, .2, 1) calc(var(--dur, 3.4s) + .5s); }
.js .scene .ill .glow { opacity: 0; }
.js .scene .ill.is-drawn .glow { opacity: var(--glow); transition: opacity 2.6s ease 1.5s; }

/* ---------- Accueil : la pièce ---------- */
.hero { position: relative; }
.hero .wrap {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr) auto; column-gap: var(--gap);
  min-height: clamp(560px, calc(90svh - var(--header-h)), 860px);
}
.hero-text { grid-column: 1 / span 7; grid-row: 1; align-self: center; padding-block: clamp(1.5rem, 4vh, 3rem) clamp(4.5rem, 11vh, 7.5rem); position: relative; z-index: 1; }
.hero-title {
  font-size: clamp(3.6rem, 1.2rem + 7.4vw, 8rem);
  font-weight: 300; line-height: .92; letter-spacing: -.018em;
  margin: 0 0 0 -.04em;
}
.hero-title span { display: block; }
.hero-sub {
  margin: clamp(1.5rem, 3vh, 2.2rem) 0 clamp(2.2rem, 4.6vh, 3rem);
  font-size: clamp(1.18rem, 1rem + .5vw, 1.42rem); line-height: 1.45; color: var(--ink-2);
  max-width: 22em;
}
.scene { grid-column: 6 / -1; grid-row: 1 / span 2; align-self: end; }
.scene .ill { margin-left: auto; }

/* ---------- Accueil : les deux cabinets ---------- */
.cabinets { padding-top: var(--section); }
.cabinets .head { margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.cab { margin: 0; }
.cab:nth-of-type(1) { grid-column: 1 / span 6; }
.cab:nth-of-type(2) { grid-column: 7 / span 6; margin-top: clamp(3rem, 8vw, 7.5rem); }
.cab-photo { all: unset; display: block; width: 100%; cursor: zoom-in; background: var(--paper-2); }
.cab-photo:focus-visible, .port-photo:focus-visible { outline: 1px solid var(--accent); outline-offset: 6px; }
.cab-photo img, .port-photo img { width: 100%; filter: var(--photo); transition: opacity .6s var(--ease); }
.cab-photo img { aspect-ratio: 4 / 3; object-fit: cover; }
.cab figcaption {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: .3rem 1.5rem;
  margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--rule);
}
.cab h3 { font-size: clamp(1.7rem, 1.2rem + 1.2vw, 2.25rem); font-weight: 400; line-height: 1.1; margin-left: -.03em; }
.cab address { grid-column: 1; color: var(--ink-2); font-size: 1.04rem; line-height: 1.5; }
.cab .more { grid-column: 2; grid-row: 1 / span 2; align-self: end; }

/* ---------- Accueil : le quai ---------- */
.port { padding-top: calc(var(--section) * .8); }
.port .grid { align-items: end; }
.port figure { display: contents; }
.port-photo { all: unset; grid-column: 5 / -1; grid-row: 1; display: block; cursor: zoom-in; background: var(--paper-2); }
.port-photo img { aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 62%; }
.port figcaption { grid-column: 1 / span 3; grid-row: 1; font-family: var(--f-display); font-style: italic; font-size: 1.3rem; line-height: 1.2; color: var(--ink-2); padding-bottom: .1rem; }
.port figcaption::before { content: ""; display: block; width: 2.2rem; height: 1px; background: var(--rule); margin-bottom: 1rem; }

/* ---------- Accueil : questions, en dialogue ---------- */
.faq { padding-top: var(--section); }
.faq .grid { align-items: start; }
.faq .marg { padding-top: .5rem; }
.dialogue { grid-column: 5 / span 7; }
.qa + .qa { margin-top: clamp(2.8rem, 5vw, 4rem); }
.qa h3, .qa p { position: relative; }
.qa h3::before, .qa p::before {
  content: "—" / ""; position: absolute; top: 0; right: 100%; margin-right: .55rem;
  font: normal 400 1.1875rem var(--f-text); line-height: inherit; color: var(--ink-3);
}
.qa h3 {
  --fs: clamp(1.6rem, 1.2rem + 1vw, 2.05rem);
  font-style: italic; font-weight: 400;
  font-size: var(--fs); line-height: calc(var(--fs) * 1.18);
  margin-bottom: .9rem;
}
.qa p { margin: 0; }

/* ---------- Clôture : prendre rendez-vous ---------- */
.closing { padding-block: var(--section) calc(var(--section) * .55); }
.closing .grid { align-items: start; row-gap: 2rem; }
.closing h2 { grid-column: 1 / span 4; font-size: clamp(2.5rem, 1.4rem + 2.8vw, 4rem); font-weight: 300; line-height: 1; letter-spacing: -.01em; margin-left: -.035em; }
.closing h2 em { display: block; font-style: italic; color: var(--accent); }
.closing-body { grid-column: 5 / -1; padding-top: .6rem; }
.closing-body .actions { gap: 1.4rem 2.6rem; }
.closing-addr { margin: 2.6rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 2.6rem; color: var(--ink-2); font-size: 1.02rem; line-height: 1.5; }
.closing-addr .sc { display: block; color: var(--ink-3); font-size: .98rem; }

/* ---------- Pages intérieures ---------- */
.page-head { position: relative; padding-top: clamp(1.5rem, 5vh, 4rem); }
.page-head .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
.page-title {
  grid-column: 1 / span 9; grid-row: 1;
  font-size: clamp(3.1rem, 1.1rem + 6vw, 6.6rem);
  font-weight: 300; line-height: .95; letter-spacing: -.016em;
  margin: 0 0 clamp(1.4rem, 3vw, 2.2rem) -.04em;
}
.page-title em { font-style: italic; }
.page-lamp { grid-column: 10 / -1; grid-row: 1; justify-self: end; width: clamp(56px, 6vw, 80px); margin-right: clamp(0px, 3vw, 48px); }

.body { padding-top: clamp(3.5rem, 8vw, 6.5rem); }
.prose { grid-column: 5 / span 7; }
.lede {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1.6rem, 1.15rem + 1.2vw, 2.15rem); line-height: 1.24;
  margin: 0 0 1.4em -.02em; color: var(--ink); text-wrap: balance;
}
.prose sup { font-size: .68em; line-height: 0; font-variant-numeric: lining-nums; }
.prose sup a { text-decoration: none; color: var(--accent); padding: 0 .1em; }

/* notes et références, dans la marge (en fin de texte sur petit écran) */
.aside { font-size: .96rem; line-height: 1.5; color: var(--ink-2); }
.aside p { margin-bottom: .7em; }
.aside .label { margin-bottom: .5rem; }
.aside .num { font-family: var(--f-display); font-size: 1.7rem; line-height: 1.1; letter-spacing: .04em; color: var(--ink); font-variant-numeric: lining-nums; }
.aside sup { font-size: .75em; color: var(--accent); }
.aside a { overflow-wrap: break-word; }
.aside .n { position: absolute; right: 100%; margin-right: .3em; }
.aside .n-p { position: relative; }

/* qui suis-je : la grille porte texte et marge */
.bio { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: start; }
.bio > p { grid-column: 5 / span 7; }
.bio > .aside { grid-column: 1 / span 3; padding-top: .35em; }
.bio > .n-1 { grid-row: 3 / span 3; }
.bio > .n-adeli { grid-row: 6; }

/* tarif */
.fee { margin-top: clamp(3.5rem, 7vw, 5.5rem); padding-top: clamp(2rem, 3.5vw, 2.8rem); border-top: 1px solid var(--rule); align-items: baseline; }
.fee .label { grid-column: 1 / span 3; }
.fee-text { grid-column: 5 / span 7; }
.fee-what { font-family: var(--f-display); font-size: clamp(1.6rem, 1.15rem + 1.2vw, 2.15rem); line-height: 1.24; margin: 0 0 .5rem -.02em; }
.fee-what .amt { font-variant-numeric: lining-nums; }
.fee-adj { margin: 0; color: var(--ink-2); }

/* mentions légales */
.legal-sec { padding-block: clamp(1.8rem, 3vw, 2.4rem); border-top: 1px solid var(--rule); align-items: baseline; }
.legal-sec:first-child { border-top: 0; padding-top: 0; }
.legal-sec h2 { grid-column: 1 / span 3; font-size: clamp(1.45rem, 1.1rem + .8vw, 1.8rem); font-weight: 400; line-height: 1.15; }
.legal-sec .text p:last-child { margin-bottom: 0; }
.legal-sec dl { display: grid; grid-template-columns: 12.5rem minmax(0, 1fr); gap: .35rem 1.5rem; margin: 0; }
.legal-sec dt { color: var(--ink-3); font-variant-caps: all-small-caps; letter-spacing: .09em; font-weight: 500; font-variant-numeric: lining-nums; }
.legal-sec dd { margin: 0; }

/* 404 : la lampe éteinte, que le chemin du retour rallume */
.lost .page-lamp .glow { transition: opacity 1.2s ease; }
.js .lost .ill.is-drawn .glow, .lost .ill .glow { opacity: 0; }
.lost:has(.btn:hover, .btn:focus-visible) .page-lamp .glow { opacity: var(--glow); transition-delay: 0s; }
.lost .prose p:first-child { text-wrap: balance; font-family: var(--f-display); font-size: clamp(1.6rem, 1.15rem + 1.2vw, 2.15rem); line-height: 1.24; margin-bottom: 2.2rem; }
.lost .body { padding-bottom: var(--section); }

/* ---------- Agrandissement des photos ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1400px, 94vw); max-height: 94vh; overflow: visible; color: #e9e2d4; }
.lightbox::backdrop { background: rgb(14 17 18 / .97); }
.lightbox img { max-height: 84vh; width: auto; margin: 0 auto; }
.lightbox p { text-align: center; margin: 1rem 0 0; font-family: var(--f-display); font-style: italic; font-size: 1.25rem; }
.lightbox .close {
  position: fixed; top: 16px; right: 20px;
  background: none; border: 0; color: inherit; cursor: pointer;
  font-family: var(--f-text); font-size: 1.05rem; font-weight: 500;
  font-variant-caps: all-small-caps; letter-spacing: .09em;
  padding: .6em .4em;
}
.lightbox .close:hover { text-decoration: underline; text-underline-offset: .25em; }
.lightbox[open] { animation: fade .5s var(--ease); }
@keyframes fade { from { opacity: 0; } }

/* ---------- Pied de page : un colophon ---------- */
.site-footer { padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; font-size: 1rem; line-height: 1.55; color: var(--ink-2); }
.site-footer .grid { padding-top: clamp(2.4rem, 4.5vw, 3.4rem); border-top: 1px solid var(--rule); row-gap: 2.4rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: .3rem; }
.site-footer .label { margin-bottom: .7rem; font-size: .98rem; }
.foot-brand { grid-column: 1 / span 4; }
.foot-brand .name { display: inline-flex; align-items: center; gap: .8rem; font-family: var(--f-display); font-size: 1.42rem; font-weight: 500; line-height: 1; color: var(--ink); margin-bottom: .9rem; }
.foot-brand .mark { width: 30px; }
.foot-brand p { margin: 0; max-width: 17em; }
.foot-contact { grid-column: 5 / span 3; }
.foot-nav { grid-column: 8 / span 2; }
.foot-links { grid-column: 10 / span 3; }
.foot-base {
  display: flex; justify-content: space-between; gap: .5rem 2rem; flex-wrap: wrap;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  font-size: .94rem; color: var(--ink-3);
}
.foot-base .end { display: flex; align-items: baseline; gap: .5rem 2rem; flex-wrap: wrap; }

/* interrupteur jour / nuit : une petite lampe */
.theme-toggle {
  display: none; align-items: baseline; gap: .5em;
  background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
  font: inherit; color: inherit;
}
.js .theme-toggle { display: inline-flex; }
.theme-toggle:hover { color: var(--accent); }
.theme-toggle svg { width: .62em; height: auto; align-self: center; overflow: visible; }
.theme-toggle path { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.theme-toggle .shade { fill: transparent; transition: fill .4s; }
.theme-toggle[aria-pressed="true"] .shade { fill: var(--lamp); stroke: var(--lamp); }

/* ---------- Tablette ---------- */
@media (max-width: 1080px) {
  .scene { grid-column: 7 / -1; }
}
@media (max-width: 860px) {
  .hero .wrap { min-height: 0; grid-template-rows: auto auto; }
  .hero-text { grid-column: 1 / -1; padding-bottom: 0; }
  .scene { grid-column: 1 / -1; grid-row: 2; justify-self: end; width: min(100%, 520px); margin-top: clamp(3rem, 8vw, 4.5rem); }
}
@media (max-width: 1080px) {

  .marg { grid-column: 1 / -1; }
  .text, .wide, .prose, .dialogue, .closing-body, .fee-text { grid-column: 1 / -1; }
  .faq .marg { margin-bottom: 2.2rem; padding-top: 0; }
  .dialogue { padding-left: 1.3em; }

  .port-photo { grid-column: 1 / -1; }
  .port figcaption { grid-column: 1 / -1; grid-row: 2; padding-top: 1rem; display: flex; align-items: center; gap: 1rem; }
  .port figcaption::before { margin: 0; }

  .closing h2 { grid-column: 1 / -1; }
  .closing h2 em { display: inline; }
  .closing-body { padding-top: 0; }

  .page-title { grid-column: 1 / span 9; }

  .bio { display: flex; flex-direction: column; align-items: stretch; }
  .aside .n { position: static; margin-right: .3em; }
  .bio > .aside { order: 9; padding-top: 0; margin-top: 1.4rem; }
  .bio > .n-1 { order: 10; }
  .bio > .n-adeli { margin-top: 2.8rem; padding-top: 1.6rem; border-top: 1px solid var(--rule); }
  .bio > .n-adeli .label { display: inline; margin-right: 1rem; }
  .bio > .n-adeli .num { display: inline; }

  .fee .label { grid-column: 1 / -1; margin-bottom: 1rem; }

  .legal-sec h2 { grid-column: 1 / -1; margin-bottom: 1rem; }

  .foot-brand { grid-column: 1 / -1; }
  .foot-contact { grid-column: 1 / span 5; }
  .foot-nav { grid-column: 6 / span 3; }
  .foot-links { grid-column: 9 / span 4; }
}

/* ---------- Mobile : menu plein écran ---------- */
@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; align-items: flex-start; gap: .9rem;
    padding: 6rem var(--gutter) 4rem;
    background: var(--paper); opacity: 0; visibility: hidden;
    transition: opacity .45s var(--ease), visibility .45s;
  }
  .nav a {
    font-family: var(--f-display); font-size: clamp(2.4rem, 11vw, 3.4rem);
    font-weight: 300; line-height: 1.08; color: var(--ink);
  }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { font-style: italic; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-toggle { display: inline-flex; }
  .site-header { z-index: 60; }
  .menu-open .site-header .wrap { position: relative; }

  .cab:nth-of-type(1), .cab:nth-of-type(2) { grid-column: 1 / -1; margin-top: 0; }
  .cab + .cab { margin-top: 3.6rem; }

  .foot-contact, .foot-nav, .foot-links { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .hero-text { padding-top: 2.2rem; }
  .hero-title { font-size: clamp(3.3rem, 17.5vw, 4.6rem); }
  .scene { width: 100%; margin-top: 3.5rem; }
  .actions { gap: 1.4rem 1.6rem; }
  .page-title { grid-column: 1 / -1; font-size: clamp(2.9rem, 13.5vw, 4rem); }
  .page-head .wrap { grid-template-columns: minmax(0, 1fr) auto; }
  .page-title { grid-column: 1; }
  .page-lamp { grid-column: 2; width: 62px; }
  .cab figcaption { grid-template-columns: 1fr; }
  .cab .more { grid-column: 1; grid-row: auto; justify-self: start; margin-top: .6rem; }
  .legal-sec dl { grid-template-columns: 1fr; gap: 0; }
  .legal-sec dd { margin-bottom: .7rem; }
}

@media (max-width: 374px) {
  .site-header .wrap { gap: 1rem; }
  .brand { gap: .7rem; }
  .mark { width: 30px; }
  .brand-name { font-size: 1.24rem; }
  .menu-toggle .bars { display: none; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .ill path { stroke-dashoffset: 0; }
  .js .ill .glow { opacity: var(--glow); }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* ---------- Transitions entre pages (navigateurs compatibles) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .35s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

@media print {
  .site-header nav, .menu-toggle, .scene, .page-lamp { display: none; }
}

/* menu ouvert : pas de défilement de la page derrière */
html.menu-open { overflow: hidden; }
