/* GROENINGER — Avocats à la Cour
   Charte : noir du logo, ivoire des murs haussmanniens, laiton des poignées, chêne du parquet. */
:root {
  --ink: #121212;
  --ink-soft: #2a2826;
  --ivory: #f6f2eb;
  --paper: #fbf9f5;
  --stone: #e7e0d4;
  /* Accent grenat (velours haussmannien) ; teinte claire pour le texte sur fond sombre ou sur photo. */
  --brass: #8e2438;
  --brass-deep: #6b1a2a;
  --red: #c41e3a; /* rouge carmin : grands mots en italique sur fond noir, filets */
  --on-dark: rgba(246, 242, 235, .82); /* petits textes sur fond sombre ou photo */
  --oak: #7a5a3a;
  --muted: #6d665c;
  --line: rgba(18, 18, 18, .14);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;
  --wide: "Syncopate", var(--sans);
  /* Logo : même police que les titres. */
  --logo: var(--serif);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --gutter: clamp(16px, 5vw, 72px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow { font-family: var(--wide); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--red); display: flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; line-height: 1.08; }
h2 { font-size: clamp(34px, 5vw, 64px); margin: 18px 0 24px; }
h2 em, h1 em { font-style: italic; color: var(--brass); }
.constitution h1 em, .constitution h2 em, .contact h2 em, .dom-hero h1 em { color: var(--red); }
/* « Défendre » : même grenat que les titres sur fond clair, choix de Thibaut. */
.hero h1 em { color: var(--brass); }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 60ch; }
section { position: relative; }

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; font-size: 14px; font-weight: 600; letter-spacing: .04em; border-radius: 999px; transition: transform .4s var(--ease), background .3s, color .3s; }
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }
.btn-brass { background: var(--brass); color: #fff; }
.btn-brass:hover { background: var(--brass-deep); }
/* Sur fond noir (contact, pied de page), le grenat se voit mal : bouton rouge carmin. */
.contact .btn-brass { background: var(--red); }
.contact .btn-brass:hover { background: #9e1830; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--brass-deep); }

/* Bandeau maquette */
.proto { position: fixed; bottom: 16px; left: 16px; z-index: 90; background: var(--ink); color: #fff; font-size: 12px; padding: 8px 14px; border-radius: 999px; opacity: .85; }

/* En-tête */
.header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .4s, box-shadow .4s, color .4s; color: #fff; }
.header.solid { background: rgba(251, 249, 245, .92); backdrop-filter: blur(14px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand svg { width: 38px; height: 38px; }
.brand svg * { stroke: currentColor; }
.brand-name { font-family: var(--logo); font-weight: 400; font-size: 21px; letter-spacing: .16em; line-height: 1.1; }
.brand-name small { display: block; text-transform: uppercase; font-weight: 400; font-size: 10px; letter-spacing: .3em; opacity: .85; margin-top: 3px; }
.nav { display: flex; gap: clamp(14px, 1.5vw, 28px); font-size: 14px; font-weight: 500; }
.nav a, .header .btn, .brand-name { white-space: nowrap; }
.nav a { position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.tools { display: flex; align-items: center; gap: 18px; }
.langs { display: flex; gap: 2px; font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.langs a { padding: 6px 8px; border-radius: 6px; opacity: .55; transition: opacity .2s, background .2s; }
.langs a[aria-current="true"] { opacity: 1; background: var(--brass); color: #fff; }
.langs a:hover { opacity: 1; }
.header .btn { padding: 11px 20px; font-size: 13px; }
.burger { display: none; width: 40px; height: 40px; }
.burger span { display: block; width: 22px; height: 1.5px; background: currentColor; margin: 5px auto; transition: transform .3s; }

/* Hero */
.hero { height: 100svh; min-height: 640px; color: #fff; overflow: hidden; display: flex; align-items: flex-end; }
.hero-slides { position: absolute; inset: 0; }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.6s ease, transform 9s linear; }
.hero-slides img.on { opacity: 1; transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 10, .55) 0%, rgba(10, 10, 10, .2) 40%, rgba(10, 10, 10, .78) 100%); }
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(48px, 9vh, 110px); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; }
.hero .eyebrow { color: rgba(255, 255, 255, .88); }
.hero .eyebrow::before { background: var(--red); height: 2px; }
.hero h1 { font-size: clamp(46px, 8.4vw, 132px); margin: 20px 0 26px; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hero h1 .w > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.hero h1 .w:nth-child(2) > span { animation-delay: .15s; }
.hero h1 .w:nth-child(3) > span { animation-delay: .3s; }
@keyframes rise { to { transform: none; } }
.hero p { max-width: 54ch; font-size: clamp(16px, 1.3vw, 19px); opacity: .9; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-mark { width: clamp(90px, 11vw, 160px); opacity: .9; }
.hero-mark * { stroke: #fff; }
.draw rect, .draw path { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 2.6s var(--ease) .4s forwards; }
.draw path { animation-delay: 1s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 22px; width: 1px; height: 46px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.scroll-cue::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: #fff; animation: cue 2s ease-in-out infinite; }
@keyframes cue { to { top: 100%; } }

/* Révélation au défilement */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }

/* Chiffres clés */
.ticker { background: var(--ink); color: var(--ivory); overflow: hidden; white-space: nowrap; padding: 18px 0; font-family: var(--serif); font-style: italic; font-size: 22px; }
.ticker-track { display: inline-flex; gap: 48px; animation: slide 38s linear infinite; }
.ticker-track span::after { content: "✦"; font-style: normal; color: var(--brass); margin-left: 48px; font-size: 14px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Cabinet — panneaux moulurés */
.cabinet { padding: clamp(90px, 13vw, 170px) 0; background: var(--ivory); }
.cabinet .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.moulure { position: relative; padding: 14px; border: 1px solid var(--brass); }
.moulure::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(18, 18, 18, .16); pointer-events: none; z-index: 2; }
.moulure img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.cabinet .moulure { transform: translateY(var(--py, 0)); }
.pillars { display: grid; gap: 0; margin-top: 44px; border-top: 1px solid var(--line); }
.pillar { display: grid; grid-template-columns: 60px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); cursor: default; transition: padding .4s var(--ease); }
.pillar:hover { padding-left: 12px; }
.pillar b { font-family: var(--serif); font-size: 30px; font-weight: 300; color: var(--brass); line-height: 1; }
.pillar h3 { font-size: 24px; margin-bottom: 6px; }
.pillar p { color: var(--muted); font-size: 15px; }

/* Expertises */
.expertises { padding: clamp(90px, 12vw, 160px) 0; }
.xp-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 56px; flex-wrap: wrap; }
.xp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.xp { display: block; position: relative; aspect-ratio: 3/4; overflow: hidden; color: #fff; border-radius: 4px; cursor: pointer; background: var(--ink); text-align: left; }
.xp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .72; filter: grayscale(.35); transition: transform 1.2s var(--ease), opacity .6s, filter .6s; }
.xp-ph { position: absolute; top: 18%; left: 50%; width: 46%; aspect-ratio: 561/573; transform: translateX(-50%); stroke: var(--brass); opacity: .35; transition: opacity .6s, transform 1.2s var(--ease); }
.xp:hover .xp-ph { opacity: .15; transform: translateX(-50%) scale(1.07); }
.xp::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, .85)); }
/* Numéro et intitulé démarrent à la même hauteur sur toutes les cartes. */
.xp-body { position: absolute; left: 0; right: 0; top: 56%; padding: 0 22px 22px; z-index: 2; transition: top .6s var(--ease); }
.xp:hover .xp-body, .xp:focus-visible .xp-body { top: 34%; }
.xp-body span { font-family: var(--wide); text-transform: uppercase; font-size: 10px; letter-spacing: .24em; color: var(--on-dark); }
.xp-body h3 { font-size: 23px; margin: 8px 0 0; }
.xp-body p { font-size: 14px; opacity: 0; max-height: 0; transition: opacity .5s, max-height .6s var(--ease), margin .6s; overflow: hidden; }
.xp:hover img, .xp:focus-visible img { transform: scale(1.07); opacity: .5; filter: none; }
.xp:hover .xp-body p, .xp:focus-visible .xp-body p { opacity: .9; max-height: 140px; margin-top: 10px; }
.xp .plus { position: absolute; top: 18px; right: 18px; z-index: 2; width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; display: grid; place-items: center; transition: transform .5s var(--ease), background .3s; }
.xp:hover .plus { transform: rotate(90deg); background: var(--brass); border-color: var(--brass); }

/* Panneau latéral */
.drawer { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.drawer .veil { position: absolute; inset: 0; background: rgba(10, 10, 10, .5); opacity: 0; transition: opacity .5s; }
.drawer aside { position: absolute; top: 0; right: 0; height: 100%; width: min(620px, 100%); background: var(--paper); transform: translateX(100%); transition: transform .7s var(--ease); overflow-y: auto; }
.drawer.open { pointer-events: auto; }
.drawer.open .veil { opacity: 1; }
.drawer.open aside { transform: none; }
.drawer img { width: 100%; height: 260px; object-fit: cover; }
.drawer .inner { padding: 36px clamp(22px, 5vw, 48px) 60px; }
.drawer h3 { font-size: 38px; margin: 14px 0 20px; }
.drawer p { color: var(--ink-soft); margin-bottom: 16px; }
.drawer .close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); font-size: 22px; z-index: 2; }

/* Constitution */
.constitution { background: var(--ink); color: var(--ivory); padding: clamp(90px, 12vw, 160px) 0; overflow: hidden; }
.constitution::before { content: ""; position: absolute; inset: 0; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M0 40 40 0 80 40M0 80 40 40 80 80' fill='none' stroke='%23c41e3a' stroke-width='1.2'/%3E%3C/svg%3E"); }
.constitution .eyebrow::before, .dom-hero .eyebrow::before { background: var(--red); height: 2px; }
.constitution .eyebrow { color: var(--red); }
.constitution .lead { color: rgba(246, 242, 235, .7); }
.cst { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 60px); margin-top: 60px; }
.forms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-card { text-align: left; padding: 24px; border: 1px solid rgba(246, 242, 235, .18); border-radius: 6px; transition: border-color .3s, background .3s, transform .4s var(--ease); }
.form-card:hover { transform: translateY(-4px); border-color: rgba(246, 242, 235, .5); }
.form-card[aria-pressed="true"] { background: rgba(246, 242, 235, .06); border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.form-card b { font-family: var(--wide); font-size: 13px; letter-spacing: .14em; }
.form-card p { font-size: 14px; color: rgba(246, 242, 235, .65); margin: 8px 0 14px; min-height: 44px; }
.form-card .from { font-family: var(--serif); font-size: 28px; }
.form-card .from small { font-family: var(--sans); font-size: 12px; opacity: .6; margin-left: 4px; }
.opts { margin-top: 26px; display: grid; gap: 10px; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-radius: 6px; background: rgba(246, 242, 235, .05); cursor: pointer; font-size: 15px; }
.opt input { display: none; }
.opt .tog { width: 38px; height: 22px; border-radius: 999px; background: rgba(246, 242, 235, .2); position: relative; flex: none; transition: background .3s; }
.opt .tog::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); }
.opt input:checked + .tog { background: var(--brass); }
.opt input:checked + .tog::after { transform: translateX(16px); }
.opt .lbl { flex: 1; }
.opt .p { color: rgba(246, 242, 235, .6); font-size: 14px; }
.quote { position: sticky; top: 110px; align-self: start; background: var(--ivory); color: var(--ink); padding: 34px; border-radius: 6px; }
.quote .moulure-in { border: 1px solid var(--brass); padding: 26px; outline: 1px solid rgba(18, 18, 18, .16); outline-offset: -8px; }
.quote h3 { font-size: 26px; margin-bottom: 18px; }
.quote .row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.quote .row span:last-child { font-variant-numeric: tabular-nums; }
.quote .total { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 0 6px; }
.quote .total b { font-family: var(--serif); font-size: 50px; font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
.quote .note { font-size: 12px; color: var(--muted); margin: 10px 0 22px; }
.quote .note.fine { font-size: 11px; font-style: italic; margin-top: -12px; line-height: 1.5; }
.quote .btn { width: 100%; justify-content: center; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 90px; counter-reset: s; }
.steps li { list-style: none; border-top: 1px solid rgba(246, 242, 235, .25); padding-top: 20px; }
.steps li::before { counter-increment: s; content: "0" counter(s); display: block; font-family: var(--serif); font-size: 38px; color: var(--brass); margin-bottom: 8px; }
.steps b { display: block; font-size: 17px; margin-bottom: 4px; }
.steps p { font-size: 14px; color: rgba(246, 242, 235, .65); }

/* Équipe */
.equipe { padding: clamp(90px, 12vw, 160px) 0; background: var(--ivory); }
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 460px)); gap: clamp(24px, 4vw, 56px); margin-top: 56px; }
.member { perspective: 1400px; aspect-ratio: 4/5; cursor: pointer; }
.member .card { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .9s var(--ease); }
.member:hover .card, .member.flip .card { transform: rotateY(180deg); }
.member .face { position: absolute; inset: 0; backface-visibility: hidden; overflow: hidden; }
.member .front img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 20%; }
.member .front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .75)); }
.member .who { position: absolute; left: 26px; bottom: 24px; right: 26px; z-index: 2; color: #fff; }
.member .who h3 { font-size: 30px; }
.member .who span { font-family: var(--wide); text-transform: uppercase; font-size: 10px; letter-spacing: .22em; color: var(--on-dark); }
.member .back { transform: rotateY(180deg); background: var(--ink); color: var(--ivory); padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; justify-content: center; }
.member .back::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(246, 242, 235, .22); pointer-events: none; }
.member .back h3 { font-size: 28px; margin-bottom: 4px; }
.member .back span { font-family: var(--wide); text-transform: uppercase; font-size: 10px; letter-spacing: .22em; color: var(--brass); margin-bottom: 18px; display: block; }
.member .back p { font-size: 15px; color: rgba(246, 242, 235, .8); margin-bottom: 10px; }
.member .back blockquote { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ivory); border-left: 2px solid var(--red); padding-left: 14px; margin-top: 8px; }
.monogram { width: 100%; height: 100%; background: linear-gradient(135deg, #d9cfbf, #efe8dc); display: grid; place-items: center; }
.monogram b { font-family: var(--serif); font-size: 120px; font-weight: 300; color: var(--brass-deep); letter-spacing: .02em; }
.hint { font-size: 13px; color: var(--muted); margin-top: 18px; }

/* Honoraires */
.honoraires { padding: clamp(90px, 12vw, 160px) 0; }
.honoraires .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 100px); }
details { border-bottom: 1px solid var(--line); }
details summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-family: var(--serif); font-size: clamp(19px, 1.7vw, 23px); }
details summary::-webkit-details-marker { display: none; }
details summary i { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: transform .4s var(--ease), background .3s; }
details summary i::before, details summary i::after { content: ""; position: absolute; top: 50%; left: 50%; width: 11px; height: 1px; background: currentColor; transform: translate(-50%, -50%); }
details summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s; }
details[open] summary i { background: var(--brass); color: #fff; border-color: var(--brass); }
details[open] summary i::after { transform: translate(-50%, -50%); }
details p { color: var(--muted); padding: 0 50px 26px 0; }

/* Contact */
.contact { background: var(--ink); color: var(--ivory); padding: clamp(90px, 12vw, 150px) 0 40px; }
.contact .grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 100px); }
.contact h2 { color: var(--ivory); }
.contact .big { font-family: var(--serif); font-size: clamp(26px, 3vw, 40px); display: block; margin: 6px 0; transition: color .3s; }
.contact .big:hover { color: var(--red); }
.info { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 44px; font-size: 15px; color: rgba(246, 242, 235, .75); }
.info h3 { font-family: var(--wide); text-transform: uppercase; font-size: 10px; letter-spacing: .24em; color: var(--red); font-weight: 400; margin-bottom: 10px; }
form.rdv { display: grid; gap: 14px; }
form.rdv input, form.rdv textarea, form.rdv select { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(246, 242, 235, .3); color: var(--ivory); font: inherit; padding: 14px 0; outline: none; transition: border-color .3s; }
form.rdv select option { color: var(--ink); }
form.rdv input:focus, form.rdv textarea:focus, form.rdv select:focus { border-color: var(--red); }
form.rdv ::placeholder { color: rgba(246, 242, 235, .5); }
form.rdv small { font-size: 12px; color: rgba(246, 242, 235, .5); }
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 100px; padding-top: 26px; border-top: 1px solid rgba(246, 242, 235, .15); font-size: 13px; color: rgba(246, 242, 235, .55); }
.foot .brand svg * { stroke: var(--ivory); }

/* Mobile */
@media (max-width: 1080px) {
  .xp-grid { grid-template-columns: repeat(2, 1fr); }
  .cst { grid-template-columns: 1fr; }
  .quote { position: relative; top: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
  .cabinet .wrap, .honoraires .wrap, .contact .grid { grid-template-columns: 1fr; }
  .cabinet .moulure { max-width: 420px; }
  .xp-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .xp { aspect-ratio: 4/5; }
  .xp-body { padding: 14px; }
  .xp-body h3 { font-size: 17px; }
  .xp .plus { width: 28px; height: 28px; top: 10px; right: 10px; }
  .forms { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .info { grid-template-columns: 1fr; }
  .langs a { padding: 6px 5px; }
  .tools { gap: 4px; }
  .brand { gap: 10px; }
  .brand svg { width: 30px; height: 30px; }
  .burger { width: 34px; }
  .brand-name { font-size: 16px; }
  .brand-name small { font-size: 8px; }
  details p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .draw rect, .draw path { stroke-dashoffset: 0; }
  .hero h1 .w > span { transform: none; }
}

/* Page Publications */
.page-hero { position: relative; overflow: hidden; background: var(--ivory); padding: clamp(150px, 20vh, 210px) 0 clamp(60px, 8vw, 100px); }
.page-hero h1 { font-size: clamp(42px, 6.4vw, 92px); margin: 20px 0 24px; max-width: 14ch; }
.page-hero-mark { position: absolute; right: -60px; bottom: -80px; width: clamp(220px, 32vw, 460px); aspect-ratio: 561/573; stroke: var(--brass); opacity: .16; }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.pubs { padding: clamp(50px, 7vw, 90px) 0 clamp(80px, 10vw, 140px); }
.pub-tools { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; transition: background .3s, color .3s, border-color .3s; }
.chip span { font-size: 12px; opacity: .55; margin-left: 4px; }
.chip:hover { border-color: var(--brass); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.search { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding: 8px 2px; min-width: min(100%, 300px); transition: border-color .3s; }
.search:focus-within { border-color: var(--brass); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; flex: none; }
.search input { border: 0; background: none; font: inherit; font-size: 15px; outline: none; width: 100%; color: var(--ink); }
.pub-count { font-size: 13px; color: var(--muted); margin: 26px 0 18px; }
.pub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pub { position: relative; display: flex; flex-direction: column; padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: 4px; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; }
.pub::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(142, 36, 56, 0); pointer-events: none; transition: border-color .4s; }
.pub:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(18, 18, 18, .08); border-color: var(--brass); }
.pub:hover::before { border-color: rgba(18, 18, 18, .16); }
.pub.feat { grid-column: span 2; background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.pub.feat h3 { font-size: clamp(28px, 3vw, 40px); }
.pub.feat p, .pub.feat .pub-foot, .pub.feat time { color: rgba(246, 242, 235, .7); }
.pub-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.pub-type { font-family: var(--wide); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-deep); }
.pub.feat .pub-type { color: var(--on-dark); }
.pub-ex { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--stone); color: var(--ink-soft); }
.pub.feat .pub-ex { color: var(--ink-soft); }
.pub h3 { font-size: 24px; margin: 18px 0 12px; }
.pub p { color: var(--muted); font-size: 15px; flex: 1; }
.pub-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.pub.feat .pub-foot { border-color: rgba(246, 242, 235, .15); }
.pub-foot abbr { text-decoration: none; font-weight: 600; }
.pub-foot a { font-weight: 600; color: var(--brass-deep); }
.pub.feat .pub-foot a { color: var(--ivory); }
.pub-soon { font-style: italic; }
.pub-empty { grid-column: 1 / -1; padding: 60px 0; text-align: center; color: var(--muted); font-family: var(--serif); font-size: 22px; }
.pub-end { padding-top: clamp(70px, 9vw, 110px); }
.pub-q { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.pub-q h2 { margin: 0; font-size: clamp(28px, 3.6vw, 46px); }
.pub-end .foot { margin-top: 70px; }
@media (max-width: 1080px) { .pub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .pub-grid { grid-template-columns: 1fr; } .pub.feat { grid-column: auto; } .pub { padding: 24px; } }

/* Pages juridiques */
.legal { padding: clamp(50px, 7vw, 90px) 0 clamp(80px, 10vw, 130px); }
.legal .wrap { display: grid; grid-template-columns: 220px 1fr; gap: clamp(30px, 6vw, 90px); }
.legal-toc { position: sticky; top: 110px; align-self: start; display: grid; gap: 4px; }
.legal-toc a { font-size: 14px; color: var(--muted); padding: 7px 0 7px 14px; border-left: 1px solid var(--line); transition: color .2s, border-color .2s; }
.legal-toc a:hover { color: var(--ink); border-color: var(--brass); }
.legal-body { max-width: 72ch; }
.legal-body h2 { font-size: clamp(26px, 2.6vw, 34px); margin: 48px 0 16px; scroll-margin-top: 110px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--ink-soft); margin-bottom: 14px; }
.legal-body ul { padding-left: 20px; margin-bottom: 14px; }
.legal-body a { color: var(--brass-deep); text-decoration: underline; text-underline-offset: 3px; }
.legal-body dl { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; border-top: 1px solid var(--line); }
.legal-body dt, .legal-body dd { padding: 12px 0; border-bottom: 1px solid var(--line); }
.legal-body dt { font-size: 13px; font-weight: 600; color: var(--muted); padding-right: 16px; }
.legal-body mark { background: var(--stone); color: inherit; padding: 1px 4px; border-radius: 3px; }
.legal-note { margin: 22px 0; padding: 18px 22px; background: var(--ivory); border-left: 2px solid var(--brass); font-size: 15px; }
.legal-date { font-size: 13px; color: var(--muted); margin-top: 40px; }
.page-hero .lead { max-width: 60ch; }
form.rdv small a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .legal .wrap { grid-template-columns: 1fr; }
  .legal-toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .legal-toc a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
  .legal-body dl { grid-template-columns: 1fr; }
  .legal-body dt { border-bottom: 0; padding-bottom: 0; }
}

/* ---------- Site généré : éléments communs ---------- */
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; }
.skip:focus { top: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.btn-ghost-ink { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost-ink:hover { background: var(--ink); color: #fff; }
.cst-more { margin-top: 50px; }
.cst-more a { color: var(--ivory); font-weight: 600; border-bottom: 2px solid var(--red); padding-bottom: 4px; }
.cst-more a:hover { color: #fff; }
.form-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-msg { font-size: 14px; color: rgba(246, 242, 235, .75); }
.form-msg.ok { color: var(--ivory); border-left: 2px solid #5f8f4e; padding-left: 12px; }
.form-msg.err { color: var(--ivory); border-left: 2px solid var(--red); padding-left: 12px; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Fil d'Ariane */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(18, 18, 18, .25); }
.crumbs a:hover { color: var(--ink); }
.crumbs-dark, .dom-hero .crumbs { color: rgba(246, 242, 235, .65); }
.crumbs-dark a, .dom-hero .crumbs a { text-decoration-color: rgba(246, 242, 235, .35); }
.crumbs-dark a:hover, .dom-hero .crumbs a:hover { color: #fff; }

/* Page d'un domaine */
.dom-hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: clamp(150px, 22vh, 220px) 0 clamp(60px, 8vw, 100px); }
.dom-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: grayscale(.3); }
.dom-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 10, .45), rgba(10, 10, 10, .8)); }
.dom-hero .wrap { position: relative; z-index: 2; }
.dom-hero .eyebrow { color: var(--on-dark); }
.dom-hero h1 { font-size: clamp(38px, 5.6vw, 80px); margin: 18px 0 22px; max-width: 18ch; }
.dom-lead { font-size: clamp(17px, 1.5vw, 21px); max-width: 56ch; color: rgba(246, 242, 235, .85); }
.dom-body { padding: clamp(60px, 9vw, 120px) 0; }
.dom-body .wrap { display: grid; grid-template-columns: 1.4fr .8fr; gap: clamp(36px, 6vw, 100px); align-items: start; }
.dom-text p { font-size: clamp(17px, 1.3vw, 19px); color: var(--ink-soft); margin-bottom: 22px; max-width: 64ch; }
.dom-text p:first-child::first-letter { font-family: var(--serif); font-size: 3.4em; float: left; line-height: .9; margin: 6px 12px 0 0; color: var(--brass); }
.dom-card { position: sticky; top: 110px; background: var(--ivory); padding: 22px; border-radius: 6px; }
.dom-card .moulure-in { border: 1px solid var(--brass); outline: 1px solid rgba(18, 18, 18, .16); outline-offset: -8px; padding: 26px; }
.dom-card .big { display: block; font-family: var(--serif); font-size: 24px; margin: 8px 0; }
.dom-card .big:hover { color: var(--brass-deep); }
.dom-card p:not(.eyebrow) { color: var(--muted); font-size: 14px; margin: 10px 0 22px; }
.dom-card .btn { width: 100%; justify-content: center; }
.dom-cta { background: var(--ivory); padding: clamp(60px, 8vw, 100px) 0; border-top: 1px solid var(--line); }
.dom-cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.dom-cta h2 { margin: 0 0 12px; font-size: clamp(30px, 4vw, 52px); }
.dom-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.dom-others { padding: clamp(60px, 8vw, 100px) 0; }
.dom-others h2 { font-size: clamp(26px, 2.6vw, 34px); margin: 0 0 26px; }
.dom-others ul { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 48px; border-top: 1px solid var(--line); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.dom-others li a { display: flex; justify-content: space-between; gap: 12px; padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; transition: color .2s, padding .4s var(--ease); }
.dom-others li a:hover { color: var(--brass-deep); padding-left: 8px; }
.hub { padding-top: clamp(40px, 6vw, 70px); }

/* Page constitution */
.cst-page { padding-top: clamp(140px, 20vh, 200px); }
.cst-page h1 { font-size: clamp(40px, 6vw, 84px); margin: 0 0 24px; max-width: 16ch; }

/* Pied de page */
.site-foot { padding: clamp(60px, 7vw, 90px) 0 36px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.foot-addr { margin-top: 16px; font-size: 14px; color: rgba(246, 242, 235, .6); }
.foot-links { display: grid; gap: 8px; align-content: start; font-size: 15px; }
.foot-links a:hover, .foot a:hover { color: var(--red); }
.site-foot .foot { margin-top: 50px; }
.site-foot .brand svg * { stroke: var(--ivory); }
.home-foot { padding-top: 0; }
.home-foot .foot { margin-top: 0; }
.page-404 { min-height: 70vh; }
.page-404 .btn { margin-top: 30px; }

@media (max-width: 1080px) {
  .dom-others ul { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .dom-body .wrap, .foot-grid { grid-template-columns: 1fr; }
  .dom-card { position: static; }
  .dom-others ul { grid-template-columns: 1fr; }
}

/* Fiches de l'équipe : pas de texte « à l'envers » (Safari et mobiles) */
.member .face { -webkit-backface-visibility: hidden; transform: rotateY(0deg); }
.member .back { transform: rotateY(180deg); }
.member .front > *, .member .front::after { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
@media (hover: none) {
  /* Au toucher : fondu enchaîné plutôt que retournement 3D */
  .member .card, .member.flip .card, .member:hover .card { transform: none; transform-style: flat; }
  .member .face { transform: none; transition: opacity .5s var(--ease); }
  .member .back { opacity: 0; }
  .member.flip .front { opacity: 0; }
  .member.flip .back { opacity: 1; }
}
@media (max-width: 760px) {
  .xp-body { top: 48%; padding: 0 14px 14px; }
}
@media (max-width: 760px) {
  .member { aspect-ratio: 2/3; }
  .member .back { padding: 30px 26px; }
  .member .back p { font-size: 14px; }
  .member .back blockquote { font-size: 16px; }
}
/* Champs remplis automatiquement par le navigateur : garder le fond sombre du formulaire */
form.rdv input:-webkit-autofill, form.rdv input:-webkit-autofill:hover, form.rdv input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--ink) inset; -webkit-text-fill-color: var(--ivory); caret-color: var(--ivory);
  transition: background-color 9999s;
}

/* ---------- Actualités ---------- */
.news-list { padding: clamp(50px, 7vw, 90px) 0 clamp(70px, 9vw, 120px); }
.home-news { padding: clamp(80px, 10vw, 130px) 0; background: var(--paper); }
.news-all { font-weight: 600; color: var(--red); border-bottom: 2px solid var(--red); padding-bottom: 4px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-card a { position: relative; display: flex; flex-direction: column; height: 100%; padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: 4px; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; }
.news-card a::before { content: ""; position: absolute; inset: 7px; border: 1px solid transparent; pointer-events: none; transition: border-color .4s; }
.news-card a:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(18, 18, 18, .08); border-color: var(--brass); }
.news-card a:hover::before { border-color: rgba(18, 18, 18, .16); }
.news-card.feat { grid-column: span 2; }
.news-card.feat a { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.news-card.feat h3 { font-size: clamp(26px, 2.8vw, 38px); }
.news-card.feat p, .news-card.feat .news-meta { color: rgba(246, 242, 235, .72); }
.news-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.news-cat { font-family: var(--wide); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--red); }
.news-lang { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--stone); color: var(--ink-soft); }
.news-card h3 { font-size: 23px; margin: 18px 0 12px; }
.news-card p { color: var(--muted); font-size: 15px; flex: 1; }
.news-more { margin-top: 22px; font-size: 14px; font-weight: 600; color: var(--brass); }
.news-card.feat .news-more { color: var(--ivory); }
.news-card a:hover .arr { transform: translateX(5px); }
.news-more .arr { display: inline-block; transition: transform .4s var(--ease); }

/* Article */
.art-hero { background: var(--ivory); padding: clamp(140px, 20vh, 200px) 0 clamp(50px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.art-hero h1 { font-size: clamp(32px, 4.4vw, 58px); margin: 18px 0 22px; max-width: 24ch; }
.art-meta { font-size: 14px; color: var(--muted); }
.art-body { padding: clamp(50px, 7vw, 90px) 0 clamp(60px, 8vw, 100px); }
.art-text { max-width: 70ch; margin: 0 auto; font-size: clamp(17px, 1.25vw, 18.5px); line-height: 1.75; color: var(--ink-soft); }
.art-text p { margin-bottom: 1.15em; }
.art-text .art-lead { font-family: var(--serif); font-size: clamp(20px, 1.8vw, 24px); line-height: 1.5; color: var(--ink); margin-bottom: 1.6em; }
.art-text h2 { font-size: clamp(24px, 2.4vw, 32px); color: var(--ink); margin: 1.8em 0 .6em; padding-top: .9em; border-top: 1px solid var(--line); }
.art-text ul { margin: 0 0 1.2em 1.2em; }
.art-text li { margin-bottom: .45em; padding-left: .3em; }
.art-text li::marker { color: var(--red); }
.art-text a { color: var(--brass); text-decoration: underline; text-underline-offset: 3px; }
.art-sources { margin-top: 2.5em; padding: 26px 30px; background: var(--ivory); border-left: 2px solid var(--red); font-size: 15px; }
.art-sources h2 { border: 0; padding: 0; margin: 0 0 .7em; font-size: 22px; }
.art-sources ul { margin-bottom: 0; }
.art-back { max-width: 70ch; margin: 50px auto 0; font-weight: 600; }
.art-back a { color: var(--brass); }

@media (max-width: 1080px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-card.feat { grid-column: auto; }
  .news-card a { padding: 24px; }
  .art-sources { padding: 20px; }
}
.news-series { font-family: var(--wide); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #fff; background: var(--red); padding: 4px 9px; border-radius: 3px; }
.news-meta .news-cat { color: var(--muted); }
.news-card.feat .news-meta .news-cat { color: rgba(246, 242, 235, .72); }
.news-chips { margin-bottom: 26px; }
.news-card[hidden] { display: none; }
/* Menu compact (☰) dès que les sept rubriques ne tiennent plus sur une ligne */
@media (max-width: 1400px) {
  .nav, .header .btn { display: none; }
  .burger { display: block; }
  .header.menu { background: var(--paper); color: var(--ink); }
  .header.menu .nav { display: flex; position: absolute; top: 84px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); padding: 10px var(--gutter) 28px; box-shadow: 0 20px 40px rgba(0, 0, 0, .12); }
  .header.menu .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
}
