/* =========================================================
   Camille Roger, avocate — feuille de style
   Concept : le monogramme C|R. La barre verticale du logo
   structure les pages ; le C et le R tracés au trait servent
   de décor aux ouvertures.
   ========================================================= */

:root {
  /* Couleurs */
  --granit: #1c2124;        /* fond du logo, robe */
  --granit-2: #242a2e;
  --granit-3: #2e353a;
  --ardoise: #46525a;
  --brume: #9aa5ab;
  --craie: #e7ebe8;
  --rabat: #f5f6f3;          /* blanc du rabat */
  --blanc: #ffffff;
  --encre: #1c2124;
  --encre-douce: #57636a;
  --laiton: #b8975f;
  --laiton-vif: #d2b37c;
  --laiton-sombre: #8a6d3e;
  --filet: rgba(28, 33, 36, .14);
  --filet-clair: rgba(255, 255, 255, .14);

  /* Typographie */
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
  --t-mega: clamp(3.4rem, 9.2vw, 8.6rem);
  --t-1: clamp(2.7rem, 6vw, 5.4rem);
  --t-2: clamp(2.1rem, 4.2vw, 3.6rem);
  --t-3: clamp(1.5rem, 2.3vw, 2.05rem);
  --t-lead: clamp(1.3rem, 2.1vw, 1.75rem);
  --t-corps: clamp(1.02rem, .98rem + .2vw, 1.12rem);
  --t-petit: .93rem;

  /* Mise en page */
  --largeur: 1320px;
  --gouttiere: clamp(20px, 5vw, 72px);
  --section: clamp(88px, 12vw, 176px);

  /* Mouvement */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);

  /* Texture de grain (SVG) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--rabat);
  color: var(--encre);
  font-family: var(--sans);
  font-size: var(--t-corps);
  line-height: 1.68;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
:focus-visible { outline: 2px solid var(--laiton); outline-offset: 4px; border-radius: 1px; }
::selection { background: var(--laiton-vif); color: var(--granit); }
h1, h2, h3 {
  font-family: var(--serif); font-weight: 400; margin: 0;
  line-height: 1.04; letter-spacing: -.015em; text-wrap: balance;
}
p { margin: 0 0 1.05em; text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 10px; z-index: 200; background: var(--rabat); color: var(--granit); padding: 10px 16px; }
.skip:focus { left: 10px; }

.conteneur { width: 100%; max-width: var(--largeur); margin-inline: auto; padding-inline: var(--gouttiere); }
.sombre { background: var(--granit); color: #c9d0d3; }
.sombre h1, .sombre h2, .sombre h3 { color: var(--blanc); }
.craie { background: var(--craie); }
.grain { position: relative; isolation: isolate; }
.grain::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain); opacity: .06; mix-blend-mode: overlay;
}

/* Petite mention au-dessus d'un titre : un filet + un libellé en casse normale */
.mention {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-weight: 400; letter-spacing: 0; line-height: 1.4; font-size: var(--t-petit); color: var(--encre-douce); margin-bottom: 26px;
}
.mention::before { content: ""; width: 34px; height: 1px; background: var(--laiton); }
.sombre .mention { color: var(--brume); }

/* ---------- Boutons ---------- */
.btn {
  --h: 56px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: var(--h); padding: 0 28px;
  font: inherit; font-size: 1rem; font-weight: 500; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; border-radius: 2px;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .16s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease-out); }
.btn-laiton { background: var(--laiton); color: var(--granit); }
.btn-ligne { border-color: rgba(255,255,255,.32); color: var(--blanc); }
.btn-encre { background: var(--granit); color: var(--blanc); }
.btn-contour { border-color: var(--filet); color: var(--encre); background: transparent; }
@media (hover: hover) and (pointer: fine) {
  .btn-laiton:hover { background: var(--laiton-vif); }
  .btn-ligne:hover { border-color: var(--laiton-vif); color: var(--laiton-vif); }
  .btn-encre:hover { background: var(--granit-3); }
  .btn-contour:hover { border-color: var(--encre); }
  .btn:hover svg { transform: translateX(3px); }
}

.lien-fleche {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 500; text-decoration: none;
  color: inherit; padding-block: 6px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .45s var(--ease-out), color .2s ease;
}
.lien-fleche svg { width: 16px; height: 16px; transition: transform .35s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .lien-fleche:hover { background-size: 0% 1px; background-position: 100% 100%; }
  .lien-fleche:hover svg { transform: translateX(4px); }
}

/* ---------- En-tête ---------- */
.entete {
  position: fixed; inset: 0 0 auto; z-index: 60;
  color: var(--blanc);
  transition: background-color .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.entete.est-defile {
  background: rgba(28, 33, 36, .84);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--filet-clair);
}
.entete .conteneur { display: flex; align-items: center; gap: 32px; min-height: 84px; transition: min-height .35s var(--ease-out); }
.entete.est-defile .conteneur { min-height: 68px; }
.marque { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--blanc); margin-right: auto; }
.marque img { height: 44px !important; width: auto; }
.marque span { font-family: var(--serif); font-size: 1.12rem; line-height: 1.1; }
.marque small { display: block; font-family: var(--sans); font-size: .76rem; color: var(--brume); letter-spacing: .02em; margin-top: 2px; }

.nav ul { list-style: none; display: flex; gap: 34px; margin: 0; padding: 0; }
.nav a {
  position: relative; text-decoration: none; color: rgba(255,255,255,.82); font-size: .98rem; padding: 8px 0;
  transition: color .2s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--laiton-vif);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.nav a[aria-current="page"] { color: var(--blanc); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--blanc); }
  .nav a:hover::after { transform: scaleX(1); transform-origin: left; }
}
.entete .btn { --h: 46px; padding: 0 20px; font-size: .95rem; }

.burger {
  display: none; position: relative; width: 48px; height: 48px; margin-right: -10px;
  background: none; border: 0; color: var(--blanc); cursor: pointer;
}
.burger span { position: absolute; left: 12px; right: 12px; height: 1px; background: currentColor; transition: transform .35s var(--ease-out), left .35s var(--ease-out); }
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 28px; left: 20px; }
.menu-ouvert .burger span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-ouvert .burger span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); left: 12px; }
.nav-pied { display: none; }

@media (max-width: 1080px) {
  .nav ul { gap: 24px; }
  .entete .btn { display: none; }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    background: var(--granit); padding: 116px var(--gouttiere) 36px;
    display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
    opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s;
    overflow-y: auto;
  }
  .menu-ouvert .nav { opacity: 1; visibility: visible; transition: opacity .3s ease; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { overflow: hidden; border-bottom: 1px solid var(--filet-clair); }
  .nav li a {
    display: block; padding: 14px 0; font-family: var(--serif); font-size: clamp(2rem, 8.4vw, 2.8rem); color: var(--blanc);
    transform: translateY(100%); transition: transform .5s var(--ease-out);
  }
  .nav li a::after { display: none; }
  .nav li a[aria-current="page"] { color: var(--laiton-vif); }
  .menu-ouvert .nav li a { transform: none; }
  .menu-ouvert .nav li:nth-child(2) a { transition-delay: .04s; }
  .menu-ouvert .nav li:nth-child(3) a { transition-delay: .08s; }
  .menu-ouvert .nav li:nth-child(4) a { transition-delay: .12s; }
  .menu-ouvert .nav li:nth-child(5) a { transition-delay: .16s; }
  .nav-pied { display: grid; gap: 6px; color: var(--brume); font-size: .98rem; }
  .nav-pied a { color: var(--blanc); text-decoration: none; font-size: 1.3rem; font-family: var(--serif); }
  .menu-ouvert { overflow: hidden; }
  .menu-ouvert .entete { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .marque img { height: 38px !important; }
}

/* ---------- Ouverture (accueil) ---------- */
.ouverture {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 78% 30%, #273035 0%, var(--granit) 58%);
  color: #c9d0d3;
  padding-top: clamp(130px, 17vh, 180px); padding-bottom: clamp(64px, 9vh, 110px);
  min-height: min(100svh, 980px);
  display: flex; align-items: center;
}
.ouverture::before { /* grain */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain); opacity: .07; mix-blend-mode: overlay;
}
.halo {
  position: absolute; z-index: -1; left: 0; top: 0; width: 900px; height: 900px; margin: -450px 0 0 -450px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(210, 179, 124, .11), rgba(210, 179, 124, 0));
  transform: translate3d(70vw, 40vh, 0); will-change: transform; opacity: 0; transition: opacity 1.2s ease;
}
.halo.actif { opacity: 1; }

.monogramme-geant {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  /* l'axe tombe exactement entre le texte et le portrait */
  --axe: calc(100vw - max(0px, (100vw - var(--largeur)) / 2) - var(--gouttiere) - clamp(200px, 20vw, 300px) - clamp(40px, 7vw, 120px) / 2);
}
.monogramme-geant .barre {
  position: absolute; top: 0; bottom: 0; left: var(--axe); width: 1px;
  background: linear-gradient(180deg, rgba(210,179,124,0), rgba(210,179,124,.75) 18%, rgba(210,179,124,.75) 82%, rgba(210,179,124,0));
  transform-origin: top;
}
.monogramme-geant .lettre {
  position: absolute; top: 50%; font-family: var(--serif); font-weight: 400;
  font-size: clamp(22rem, 78vh, 62rem); line-height: .8; color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .085);
  translate: 0 -46%;
  user-select: none;
}
.monogramme-geant .lettre-c { right: calc(100% - var(--axe) + 2vw); }
.monogramme-geant .lettre-r { left: calc(var(--axe) + 2vw); }

.ouverture > .conteneur { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(40px, 7vw, 120px); align-items: center; }
.ouverture-texte { max-width: 760px; min-width: 0; }
.ouverture h1 { font-size: var(--t-mega); color: var(--blanc); line-height: .96; letter-spacing: -.025em; }
.ouverture h1 .ligne { display: block; overflow: hidden; padding-bottom: .22em; margin-bottom: -.16em; }
.ouverture h1 .ligne > span { display: block; }
.ouverture h1 .sous { font-size: .4em; font-style: italic; color: var(--laiton-vif); letter-spacing: -.01em; padding-top: .3em; line-height: 1.15; }
.ouverture .chapeau { font-size: clamp(1.08rem, 1.3vw, 1.22rem); color: #b8c1c5; max-width: 48ch; margin: 30px 0 0; }
.ouverture .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.portrait-cadre { position: relative; width: clamp(200px, 20vw, 300px); margin: 0; justify-self: end; }
.portrait-cadre .image::before { /* cadre décalé */
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid rgba(210,179,124,.55);
  pointer-events: none; z-index: -1;
}
.portrait-cadre .image { position: relative; aspect-ratio: 3 / 4; isolation: isolate; }
.portrait-cadre .masque { position: absolute; inset: 0; overflow: hidden; background: var(--granit-3); }
.portrait-cadre img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; filter: saturate(.82) contrast(1.03); }
.portrait-cadre figcaption { margin-top: 34px; font-size: var(--t-petit); color: var(--brume); line-height: 1.45; }
.portrait-cadre figcaption strong { display: block; color: var(--blanc); font-family: var(--serif); font-weight: 400; font-size: 1.15rem; }

.matieres-bande {
  position: relative; margin: clamp(48px, 7vh, 88px) 0 0; padding: 22px 0 0;
  border-top: 1px solid var(--filet-clair);
  display: flex; flex-wrap: wrap; gap: 10px 32px; list-style: none;
}
.matieres-bande a { color: rgba(255,255,255,.86); text-decoration: none; font-family: var(--serif); font-size: clamp(1.05rem, 1.4vw, 1.25rem); transition: color .2s ease; }
@media (hover: hover) and (pointer: fine) { .matieres-bande a:hover { color: var(--laiton-vif); } }

@media (max-width: 760px) {
  .ouverture { min-height: 0; padding-top: 132px; display: block; }
  .ouverture > .conteneur { grid-template-columns: minmax(0, 1fr); padding-left: calc(var(--gouttiere) + 24px); gap: 64px; }
  .monogramme-geant .barre { left: calc(var(--gouttiere) - 1px); }
  .monogramme-geant .lettre { font-size: 30rem; }
  .monogramme-geant .lettre-c { right: auto; left: 30%; top: 26%; }
  .monogramme-geant .lettre-r { left: auto; right: -7rem; top: 78%; }
  .portrait-cadre { justify-self: start; width: min(56vw, 260px); }
}

/* Séquence d'ouverture (uniquement si le JavaScript est actif et le mouvement autorisé) */
@media (prefers-reduced-motion: no-preference) {
  .js .ouverture .barre { animation: tracer 1.4s var(--ease-in-out) .1s both; }
  .js .ouverture .lettre-c { animation: ecarter-c 1.8s var(--ease-out) .25s both; }
  .js .ouverture .lettre-r { animation: ecarter-r 1.8s var(--ease-out) .25s both; }
  .js .ouverture h1 .ligne > span { animation: monter 1.1s var(--ease-out) both; }
  .js .ouverture h1 .ligne:nth-child(1) > span { animation-delay: .35s; }
  .js .ouverture h1 .ligne:nth-child(2) > span { animation-delay: .45s; }
  .js .ouverture h1 .ligne:nth-child(3) > span { animation-delay: .55s; }
  .js .ouverture .mention, .js .ouverture .chapeau, .js .ouverture .actions, .js .ouverture .matieres-bande {
    animation: apparaitre .9s var(--ease-out) both;
  }
  .js .ouverture .mention { animation-delay: .25s; }
  .js .ouverture .chapeau { animation-delay: .7s; }
  .js .ouverture .actions { animation-delay: .8s; }
  .js .ouverture .matieres-bande { animation-delay: 1s; }
  .js .ouverture .portrait-cadre .masque { animation: devoiler 1.3s var(--ease-in-out) .45s both; }
  .js .ouverture .portrait-cadre img { animation: zoom-doux 2.2s var(--ease-out) .45s both; }
  .js .ouverture .portrait-cadre .image::before { animation: fondu 1.2s ease 1.2s both; }
  .js .ouverture .portrait-cadre figcaption { animation: apparaitre .9s var(--ease-out) 1.1s both; }
}
@keyframes tracer { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes ecarter-c { from { opacity: 0; transform: translateX(6vw); } to { opacity: 1; transform: none; } }
@keyframes ecarter-r { from { opacity: 0; transform: translateX(-6vw); } to { opacity: 1; transform: none; } }
@keyframes monter { from { transform: translateY(105%); } to { transform: none; } }
@keyframes apparaitre { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes devoiler { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoom-doux { from { transform: scale(1.12); } to { transform: none; } }

.intro-fini .ouverture *, .intro-fini .ouverture *::before, .intro-fini .bandeau *, .intro-fini .bandeau *::before { animation: none !important; }

/* ---------- Révélation au défilement ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
  .js [data-reveal].visible { opacity: 1; transform: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.entete-section { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(48px, 7vw, 96px); }
.entete-section h2 { font-size: var(--t-2); }
.entete-section p { color: var(--encre-douce); margin: 0; max-width: 54ch; }
.sombre .entete-section p { color: var(--brume); }
@media (max-width: 820px) { .entete-section { grid-template-columns: minmax(0, 1fr); } }

/* Manifeste */
.manifeste { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.manifeste blockquote { margin: 0; }
.manifeste blockquote p { font-family: var(--serif); font-size: clamp(1.9rem, 3.6vw, 3.1rem); line-height: 1.14; letter-spacing: -.015em; color: var(--encre); margin: 0; text-wrap: balance; }
.manifeste .texte p { color: var(--encre-douce); }
.titres { list-style: none; padding: 0; margin: 34px 0 30px; border-top: 1px solid var(--filet); }
.titres li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--filet); font-size: .98rem; }
.titres li span:first-child { color: var(--encre-douce); }
.titres li span:last-child { color: var(--encre); font-weight: 500; text-align: right; }
@media (max-width: 900px) { .manifeste { grid-template-columns: minmax(0, 1fr); } }

/* Index des matières */
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--filet); }
.index li { border-bottom: 1px solid var(--filet); }
.index a { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) 48px; gap: 8px 40px; align-items: center; padding: clamp(26px, 3.2vw, 40px) 0; text-decoration: none; color: var(--encre); }
.index a::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--laiton-sombre);
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out);
}
.index h3 { font-size: clamp(1.9rem, 4.2vw, 3.5rem); transition: transform .6s var(--ease-out), color .3s ease; }
.index p { margin: 0; color: var(--encre-douce); max-width: 44ch; }
.index .fleche { width: 48px; height: 48px; border: 1px solid var(--filet); border-radius: 50%; display: grid; place-items: center; transition: background-color .35s ease, border-color .35s ease, color .35s ease, transform .5s var(--ease-out); }
.index .fleche svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) {
  .index a:hover::before { transform: scaleX(1); }
  .index a:hover h3 { transform: translateX(14px); color: var(--laiton-sombre); }
  .index a:hover .fleche { background: var(--granit); border-color: var(--granit); color: var(--blanc); transform: rotate(-45deg); }
}
@media (max-width: 820px) {
  .index a { grid-template-columns: minmax(0, 1fr) 44px; }
  .index p { grid-column: 1 / -1; grid-row: 2; }
  .index .fleche { width: 44px; height: 44px; grid-column: 2; grid-row: 1; }
}

/* Étapes (vraie séquence : numérotation pertinente) */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: etape; }
.etapes li { position: relative; padding: 34px clamp(18px, 2.4vw, 34px) 10px 0; border-top: 1px solid var(--filet); counter-increment: etape; }
.etapes li + li { padding-left: clamp(18px, 2.4vw, 34px); border-left: 1px solid var(--filet); }
.etapes li::before { content: counter(etape); display: block; font-family: var(--serif); font-size: clamp(3rem, 5vw, 4.6rem); line-height: 1; color: var(--laiton-sombre); margin-bottom: 26px; font-style: italic; }
.etapes h3 { font-size: var(--t-3); margin-bottom: 12px; }
.etapes p { color: var(--encre-douce); font-size: 1rem; margin: 0; }
@media (max-width: 1000px) {
  .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .etapes li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 600px) {
  .etapes { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .etapes li, .etapes li + li { padding: 28px 0 24px; border-left: 0; display: grid; grid-template-columns: 58px minmax(0, 1fr); column-gap: 10px; }
  .etapes li::before { grid-row: span 2; font-size: 2.6rem; margin: 0; }
}

/* Chiffres (honoraires) */
.chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--filet-clair); margin: 0; }
.chiffres > div { padding: 34px clamp(18px, 3vw, 44px) 8px 0; }
.chiffres > div + div { padding-left: clamp(18px, 3vw, 44px); border-left: 1px solid var(--filet-clair); }
.chiffres dt { color: var(--brume); font-size: var(--t-petit); }
.chiffres dd { margin: 14px 0 0; }
.chiffres .valeur { display: block; white-space: nowrap; font-family: var(--serif); font-size: clamp(2.2rem, 3.9vw, 3.8rem); line-height: 1; color: var(--blanc); letter-spacing: -.02em; }
.chiffres .valeur small { display: block; font-family: var(--sans); font-size: .82rem; letter-spacing: .04em; color: var(--laiton-vif); margin-top: 10px; }
.chiffres .note { display: block; margin-top: 14px; color: var(--brume); font-size: .97rem; max-width: 30ch; }
.honoraires-pied { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--filet-clair); }
.honoraires-pied p { margin: 0; max-width: 62ch; }
.clair .chiffres { border-top-color: var(--filet); }
.clair .chiffres > div + div { border-left-color: var(--filet); }
.clair .chiffres dt, .clair .chiffres .note { color: var(--encre-douce); }
.clair .chiffres .valeur { color: var(--encre); }
.clair .chiffres .valeur small { color: var(--laiton-sombre); }
@media (max-width: 820px) {
  .chiffres { grid-template-columns: minmax(0, 1fr); }
  .chiffres > div, .chiffres > div + div { padding: 26px 0; border-left: 0; border-bottom: 1px solid var(--filet-clair); }
  .clair .chiffres > div { border-bottom-color: var(--filet); }
}

/* Carte des juridictions */
.ressort { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.ressort h2 { font-size: var(--t-2); margin-bottom: 26px; }
.ressort p { color: var(--encre-douce); }
.arrondissements { margin: 30px 0 0; border-top: 1px solid var(--filet); }
.arrondissements div { padding: 18px 0; border-bottom: 1px solid var(--filet); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: baseline; }
.arrondissements dt { font-family: var(--serif); font-size: 1.2rem; }
.arrondissements dd { margin: 0; color: var(--encre-douce); text-align: right; }
.carte { width: 100%; height: auto; overflow: visible; }
.carte .lien { stroke: var(--laiton-sombre); stroke-width: 1.3; fill: none; }
.carte .ville circle { fill: var(--rabat); stroke: var(--encre); stroke-width: 1.5; }
.carte .ville text { font-family: var(--sans); font-size: 19px; fill: var(--encre); }
.carte .cabinet circle.coeur { fill: var(--laiton-sombre); }
.carte .cabinet circle.onde { fill: none; stroke: var(--laiton-sombre); stroke-width: 1; }
.carte .cabinet text { font-family: var(--serif); font-size: 28px; fill: var(--encre); }
.carte .cabinet .sous { font-family: var(--sans); font-size: 16px; fill: var(--encre-douce); }
.carte .grille { stroke: var(--filet); stroke-width: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .carte .lien { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease-in-out); }
  .js .carte.visible .lien { stroke-dashoffset: 0; }
  .js .carte .ville { opacity: 0; transition: opacity .8s ease; transition-delay: calc(.6s + var(--i, 0) * 120ms); }
  .js .carte.visible .ville { opacity: 1; }
  .carte .cabinet circle.onde { transform-box: fill-box; transform-origin: center; animation: onde 3.2s var(--ease-out) infinite; }
}
@keyframes onde { from { transform: scale(1); opacity: .9; } to { transform: scale(3.4); opacity: 0; } }
@media (max-width: 900px) { .ressort { grid-template-columns: minmax(0, 1fr); } }

/* Témoignages (diaporama) */
.temoignages { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.temoignage { grid-area: 1 / 1; margin: 0; transition: opacity .7s ease, filter .7s ease, transform .9s var(--ease-out); }
.temoignage[aria-hidden="true"] { opacity: 0; filter: blur(6px); transform: translateY(10px); pointer-events: none; }
.temoignage p { font-family: var(--serif); font-size: clamp(1.7rem, 3.5vw, 3.1rem); line-height: 1.16; letter-spacing: -.015em; color: var(--blanc); margin: 0; max-width: 30ch; text-wrap: balance; }
.note-google { margin: 36px 0 0; color: var(--brume); font-size: .97rem; }
.note-google a { color: #d4dadc; }
.temoignage p::before { content: "« "; color: var(--laiton-vif); }
.temoignage p::after { content: " »"; color: var(--laiton-vif); }
.temoignage cite { display: block; margin-top: 30px; font-style: normal; color: var(--brume); }
.temoignages-ctrl { display: flex; align-items: center; gap: 14px; margin-top: 48px; }
.temoignages-ctrl button {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--filet-clair); background: transparent; color: var(--blanc);
  display: grid; place-items: center; cursor: pointer; transition: border-color .25s ease, transform .16s var(--ease-out);
}
.temoignages-ctrl button:active { transform: scale(.94); }
.temoignages-ctrl button svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .temoignages-ctrl button:hover { border-color: var(--laiton-vif); } }
.compteur { font-variant-numeric: tabular-nums; color: var(--brume); font-size: .95rem; margin-left: 8px; min-width: 3.2em; }
.progression { flex: 1; max-width: 220px; height: 1px; background: var(--filet-clair); overflow: hidden; }
.progression span { display: block; height: 100%; background: var(--laiton-vif); transform-origin: left; transform: scaleX(0); }

/* Appel final */
.appel { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(90% 120% at 10% 100%, #2a3237 0%, var(--granit) 62%); border-top: 1px solid var(--filet-clair); }
.appel .lettre-fond {
  position: absolute; right: -3vw; top: 50%; translate: 0 -50%; z-index: -1; pointer-events: none;
  font-family: var(--serif); font-size: clamp(20rem, 46vw, 44rem); line-height: .8; color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.07); user-select: none;
}
.appel h2 { font-size: var(--t-1); max-width: 13ch; }
.tel-geant { display: inline-block; margin-top: 36px; font-family: var(--serif); font-size: clamp(2.1rem, 6.4vw, 5.6rem); line-height: 1.05; color: var(--blanc); text-decoration: none; letter-spacing: -.02em; background: linear-gradient(var(--laiton-vif), var(--laiton-vif)) 0 100% / 0% 1px no-repeat; transition: background-size .6s var(--ease-out), color .3s ease; padding-bottom: 10px; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .tel-geant:hover { background-size: 100% 1px; color: var(--laiton-vif); } }
.coord { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 64px 0 0; border-top: 1px solid var(--filet-clair); }
.coord > div { padding: 24px 24px 0 0; }
.coord > div + div { padding-left: 24px; border-left: 1px solid var(--filet-clair); }
.coord dt { color: var(--brume); font-size: var(--t-petit); margin-bottom: 8px; }
.coord dd { margin: 0; color: var(--blanc); }
.coord a { color: var(--blanc); }
@media (max-width: 820px) {
  .coord { grid-template-columns: minmax(0, 1fr); }
  .coord > div, .coord > div + div { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--filet-clair); }
}

/* ---------- Bandeau des pages intérieures ---------- */
.bandeau {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(110% 120% at 85% 0%, #273035 0%, var(--granit) 60%);
  color: #c9d0d3; padding-top: clamp(150px, 20vh, 210px); padding-bottom: clamp(72px, 10vh, 120px);
}
.bandeau::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .07; mix-blend-mode: overlay; pointer-events: none; }
.bandeau .lettre-fond {
  position: absolute; right: 4vw; bottom: -.22em; z-index: -1; pointer-events: none; user-select: none;
  font-family: var(--serif); font-size: clamp(16rem, 34vw, 32rem); line-height: .8; color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.09);
}
.bandeau .barre { position: absolute; top: 0; bottom: 0; left: calc(var(--gouttiere) + max(0px, (100vw - var(--largeur)) / 2) - 1px); width: 1px; background: linear-gradient(180deg, rgba(210,179,124,0), rgba(210,179,124,.6) 30%, rgba(210,179,124,.6)); z-index: -1; transform-origin: top; }
.bandeau .conteneur { padding-left: calc(var(--gouttiere) + clamp(22px, 3vw, 44px)); }
.fil { font-size: var(--t-petit); color: var(--brume); margin-bottom: 26px; }
.fil a { color: var(--brume); text-decoration: none; }
.fil a:hover { color: var(--blanc); }
.bandeau h1 { font-size: var(--t-1); color: var(--blanc); max-width: 14ch; }
.bandeau .intro { font-size: clamp(1.1rem, 1.5vw, 1.32rem); color: #b8c1c5; margin: 28px 0 0; max-width: 52ch; }
@media (prefers-reduced-motion: no-preference) {
  .js .bandeau .barre { animation: tracer 1.2s var(--ease-in-out) both; }
  .js .bandeau .lettre-fond { animation: apparaitre 1.4s var(--ease-out) .2s both; }
  .js .bandeau h1, .js .bandeau .fil, .js .bandeau .intro { animation: apparaitre 1s var(--ease-out) both; }
  .js .bandeau h1 { animation-delay: .12s; }
  .js .bandeau .intro { animation-delay: .24s; }
}

/* ---------- Pages intérieures : colonnes ---------- */
.deux-col { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(36px, 6vw, 110px); }
.deux-col > aside h2 { font-size: var(--t-2); position: sticky; top: 120px; }
.lead { font-family: var(--serif); font-size: var(--t-lead); line-height: 1.32; color: var(--encre); margin-bottom: 1.1em; max-width: 30ch; letter-spacing: -.01em; }
.sombre .lead { color: var(--blanc); }
.texte { max-width: 64ch; }
.texte p { color: var(--encre-douce); }
.texte strong { color: var(--encre); font-weight: 500; }
@media (max-width: 900px) {
  .deux-col { grid-template-columns: minmax(0, 1fr); }
  .deux-col > aside h2 { position: static; }
}

/* Cabinet : portrait + parcours */
.presentation { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.presentation .portrait-cadre { justify-self: start; width: min(100%, 320px); position: sticky; top: 120px; }
.presentation .portrait-cadre .image::before { border-color: var(--laiton); }
.presentation .portrait-cadre figcaption { color: var(--encre-douce); }
.presentation .portrait-cadre figcaption strong { color: var(--encre); }
@media (max-width: 900px) {
  .presentation { grid-template-columns: minmax(0, 1fr); }
  .presentation .portrait-cadre { position: static; width: min(62vw, 280px); }
}
.parcours { list-style: none; padding: 0; margin: 40px 0 0; border-top: 1px solid var(--filet); }
.parcours li { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 4px 28px; padding: 20px 0; border-bottom: 1px solid var(--filet); align-items: baseline; }
.parcours span { color: var(--encre-douce); }
.parcours strong { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; }
@media (max-width: 640px) { .parcours li { grid-template-columns: minmax(0, 1fr); } }

.valeurs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--filet-clair); }
.valeurs > div { padding: 40px clamp(18px, 3vw, 44px) 8px 0; }
.valeurs > div + div { padding-left: clamp(18px, 3vw, 44px); border-left: 1px solid var(--filet-clair); }
.valeurs h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 18px; font-style: italic; color: var(--laiton-vif) !important; }
.valeurs p { color: var(--brume); margin: 0; max-width: 32ch; }
@media (max-width: 820px) {
  .valeurs { grid-template-columns: minmax(0, 1fr); }
  .valeurs > div, .valeurs > div + div { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--filet-clair); }
}

/* Matières : navigation latérale + contenus */
.matieres-page { display: grid; grid-template-columns: minmax(0, 3.4fr) minmax(0, 8.6fr); gap: clamp(36px, 6vw, 110px); }
.sommaire { position: sticky; top: 120px; align-self: start; }
.sommaire p { font-size: var(--t-petit); color: var(--encre-douce); margin-bottom: 18px; }
.sommaire ol { list-style: none; margin: 0; padding: 0 0 0 20px; position: relative; border-left: 1px solid var(--filet); }
.sommaire .curseur { position: absolute; left: -1px; top: 0; width: 1px; height: 46px; background: var(--laiton-sombre); transition: transform .5s var(--ease-out); }
.sommaire a { display: flex; align-items: center; height: 46px; text-decoration: none; color: var(--encre-douce); font-family: var(--serif); font-size: 1.22rem; transition: color .25s ease, transform .4s var(--ease-out); }
.sommaire a.actif { color: var(--encre); transform: translateX(6px); }
@media (hover: hover) and (pointer: fine) { .sommaire a:hover { color: var(--encre); } }
.matiere { padding-bottom: clamp(64px, 8vw, 110px); margin-bottom: clamp(64px, 8vw, 110px); border-bottom: 1px solid var(--filet); scroll-margin-top: 120px; }
.matiere:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.matiere h2 { font-size: var(--t-2); margin-bottom: 30px; }
.matiere .definition { color: var(--encre-douce); max-width: 64ch; }
.exemples-titre { font-size: var(--t-petit); color: var(--encre-douce); margin: 36px 0 14px; font-family: var(--sans); font-weight: 500; letter-spacing: 0; line-height: 1.4; }
.exemples { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.exemples li { padding: 9px 18px; border: 1px solid var(--filet); border-radius: 999px; font-size: .97rem; background: var(--blanc); }
@media (max-width: 900px) {
  .matieres-page { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .sommaire { top: 68px; z-index: 5; margin: 0 calc(-1 * var(--gouttiere)); padding: 0 var(--gouttiere); background: rgba(245,246,243,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--filet); }
  .sommaire p { display: none; }
  .sommaire ol { display: flex; gap: 22px; padding: 0; border-left: 0; overflow-x: auto; scrollbar-width: none; }
  .sommaire ol::-webkit-scrollbar { display: none; }
  .sommaire .curseur { display: none; }
  .sommaire a { white-space: nowrap; font-size: 1.05rem; height: 54px; border-bottom: 1px solid transparent; }
  .sommaire a.actif { transform: none; border-bottom-color: var(--laiton-sombre); }
  .matiere { scroll-margin-top: 140px; }
}

/* Honoraires : tableau */
.grand-livre { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin-top: 10px; }
.grand-livre caption { text-align: left; font-family: var(--serif); font-size: var(--t-3); padding-bottom: 20px; color: var(--encre); }
.grand-livre th, .grand-livre td { padding: 18px 0; border-bottom: 1px solid var(--filet); font-weight: 400; text-align: left; vertical-align: baseline; }
.grand-livre thead th { font-size: var(--t-petit); color: var(--encre-douce); border-bottom-color: var(--encre); padding-top: 0; }
.grand-livre td, .grand-livre thead th:last-child { text-align: right; white-space: nowrap; padding-left: 24px; }
.grand-livre td { font-family: var(--serif); font-size: 1.25rem; }
@media (hover: hover) and (pointer: fine) { .grand-livre tbody tr { transition: background-color .2s ease; } .grand-livre tbody tr:hover { background: rgba(184,151,95,.08); } }
.encadre { border-left: 1px solid var(--laiton); padding: 4px 0 4px 26px; margin: 32px 0; }
.encadre p { margin: 0; color: var(--encre-douce); }
.encadre strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.35rem; color: var(--encre); margin-bottom: 6px; }

/* Contact */
.contact-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.carte-coord { background: var(--granit); color: #c9d0d3; padding: clamp(32px, 4vw, 56px); position: sticky; top: 110px; overflow: hidden; isolation: isolate; }
.carte-coord::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .07; mix-blend-mode: overlay; }
.carte-coord h2 { font-size: var(--t-3); color: var(--blanc); margin-bottom: 26px; }
.carte-coord .tel { display: block; font-family: var(--serif); font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.1; color: var(--blanc); text-decoration: none; margin-bottom: 30px; transition: color .2s ease; }
.carte-coord .tel:hover { color: var(--laiton-vif); }
.carte-coord dl { margin: 0; display: grid; gap: 20px; border-top: 1px solid var(--filet-clair); padding-top: 26px; }
.carte-coord dt { font-size: var(--t-petit); color: var(--brume); }
.carte-coord dd { margin: 4px 0 0; color: var(--blanc); }
.carte-coord a { color: var(--blanc); }
@media (max-width: 900px) { .contact-grille { grid-template-columns: minmax(0, 1fr); } .carte-coord { position: static; } }

.formulaire { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; }
.formulaire h2 { font-size: var(--t-3); }
.formulaire .plein { grid-column: 1 / -1; }
.champ { position: relative; }
.champ label { display: block; font-size: var(--t-petit); color: var(--encre-douce); margin-bottom: 6px; }
.champ label span { opacity: .75; }
.champ input, .champ select, .champ textarea {
  width: 100%; font: inherit; font-size: 1.08rem; color: var(--encre); background: transparent;
  border: 0; border-bottom: 1px solid rgba(28,33,36,.3); border-radius: 0; padding: 10px 0 12px; appearance: none;
  transition: border-color .25s ease;
}
.champ textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.champ select { cursor: pointer; padding-right: 30px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231c2124' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 4px center no-repeat; }
.champ::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--laiton-sombre); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); pointer-events: none; }
.champ:focus-within::after { transform: scaleX(1); }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; }
.consentement { display: flex; gap: 14px; align-items: flex-start; font-size: .97rem; color: var(--encre-douce); cursor: pointer; }
.consentement input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--granit); flex: none; cursor: pointer; }
.avertissement { font-size: .97rem; color: var(--encre-douce); border-left: 1px solid var(--laiton); padding-left: 18px; margin: 0; }
.cache { position: absolute; left: -9999px; }
@media (max-width: 640px) { .formulaire { grid-template-columns: minmax(0, 1fr); } }

/* Textes juridiques */
.texte-legal h2 { font-size: var(--t-3); margin: 52px 0 16px; }
.conditions h2 { scroll-margin-top: 110px; padding-top: 28px; border-top: 1px solid var(--filet); margin-top: 48px; }
.conditions h2:first-child { border-top: 0; padding-top: 0; }
.conditions h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 500; margin: 26px 0 10px; letter-spacing: 0; }
.conditions .num { font-variant-numeric: tabular-nums; color: var(--laiton-sombre); font-weight: 500; margin-right: .35em; }
.conditions ul { color: var(--encre-douce); padding-left: 1.2em; margin: 0 0 1.05em; }
.sommaire-cg { position: sticky; top: 120px; }
.sommaire-cg > p:first-child { font-size: var(--t-petit); color: var(--encre-douce); margin-bottom: 14px; }
.sommaire-cg ol { list-style: none; margin: 0 0 28px; padding: 0 0 0 18px; border-left: 1px solid var(--filet); display: grid; gap: 4px; font-size: .95rem; line-height: 1.35; }
.sommaire-cg a { text-decoration: none; color: var(--encre-douce); display: block; padding: 4px 0; }
@media (hover: hover) and (pointer: fine) { .sommaire-cg a:hover { color: var(--encre); } }
@media (max-width: 900px) { .sommaire-cg { position: static; } .sommaire-cg ol { display: none; } }
.texte-legal h2:first-child { margin-top: 0; }
.texte-legal p { color: var(--encre-douce); }
.a-completer { background: rgba(184,151,95,.22); padding: 1px 6px; color: var(--encre); }

/* ---------- Pied de page ---------- */
.pied { background: #15191b; color: var(--brume); font-size: .97rem; padding-top: clamp(72px, 9vw, 120px); position: relative; overflow: hidden; isolation: isolate; }
.pied::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .06; mix-blend-mode: overlay; }
.pied-haut { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; padding-bottom: 64px; border-bottom: 1px solid var(--filet-clair); }
.pied-haut img { width: 210px; }
.pied-haut .devise { margin-top: 26px; max-width: 34ch; color: var(--brume); }
.pied-colonnes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.pied h2 { font-family: var(--sans); font-size: var(--t-petit); font-weight: 500; color: var(--blanc); margin-bottom: 16px; letter-spacing: 0; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pied a { color: #d4dadc; text-decoration: none; transition: color .2s ease; }
@media (hover: hover) and (pointer: fine) { .pied a:hover { color: var(--laiton-vif); } }
.pied address { font-style: normal; line-height: 1.7; }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 28px 34px; font-size: .88rem; color: #7f8a8f; }
@media (max-width: 820px) {
  .pied-haut { grid-template-columns: minmax(0, 1fr); }
  .pied-colonnes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .pied-colonnes { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Transitions entre pages (navigateurs compatibles) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .2s ease both vt-sortie; }
::view-transition-new(root) { animation: .36s var(--ease-out) both vt-entree; }
@keyframes vt-sortie { to { opacity: 0; } }
@keyframes vt-entree { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  html { scroll-behavior: auto; }
}

@media print {
  .entete, .pied, .actions, .burger, .halo, .monogramme-geant { display: none !important; }
  .ouverture, .sombre, .bandeau { background: #fff !important; color: #000 !important; }
}

.ouverture .matieres-bande { grid-column: 1 / -1; }


/* ---------- Pages détaillées par matière ---------- */
.bloc-matiere + .bloc-matiere { margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--filet); }
.bloc-matiere h2 { font-size: var(--t-3); margin-bottom: 18px; }
.encart-matiere { position: sticky; top: 120px; }
.encart-matiere .exemples { flex-direction: column; align-items: flex-start; }
@media (max-width: 900px) { .encart-matiere { position: static; } .encart-matiere .exemples { flex-direction: row; } }
.etapes-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .etapes-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .etapes-3 { grid-template-columns: minmax(0, 1fr); } }
.faq { border-top: 1px solid var(--filet); }
.question { border-bottom: 1px solid var(--filet); }
.question summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; font-family: var(--serif); font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.3; color: var(--encre);
}
.question summary::-webkit-details-marker { display: none; }
.question .signe { position: relative; width: 16px; height: 16px; flex: none; }
.question .signe::before, .question .signe::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--laiton-sombre); transition: transform .35s var(--ease-out); }
.question .signe::after { transform: rotate(90deg); }
.question[open] .signe::after { transform: rotate(0deg); }
.question .reponse { padding: 0 0 24px; max-width: 62ch; }
.question .reponse p { color: var(--encre-douce); margin: 0; }
@media (hover: hover) and (pointer: fine) { .question summary:hover { color: var(--laiton-sombre); } }
.precision-faq { margin: 22px 0 0; font-size: var(--t-petit); color: var(--encre-douce); }
.autres-matieres { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--filet); }
.autres-matieres a { display: flex; justify-content: space-between; padding: 20px 0; border-bottom: 1px solid var(--filet); text-decoration: none; font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.8rem); transition: color .2s ease, padding .4s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .autres-matieres a:hover { color: var(--laiton-sombre); padding-left: 10px; } }
