/* JUSTICIA — feuille de style
   Couleurs reprises de l'ancien site et du logo : or de la balance, brun expresso, ivoire.
   Nouvelle mise en page « palais de justice » : photos en arcades, filets dorés, numérotation en chiffres romains.
   Titres en Newsreader (serif éditoriale), texte en Hanken Grotesk.
   Motif signature : le filet doré marqué du signe § (fonction wave() dans inc/layout.php). */

@font-face { font-family: "Newsreader"; src: url("../fonts/Newsreader-var.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/Newsreader-italic-var.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/HankenGrotesk-var.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --ink: #1f1601;        /* brun presque noir : fonds sombres */
  --espresso: #382800;   /* brun du logo : titres */
  --brown: #4d3818;
  --gold: #d3c152;       /* or de la balance */
  --gold-bright: #e1ca5e;
  --gold-pale: #ffe992;
  --gold-deep: #7d6300;  /* or lisible sur fond clair */
  --cream: #f5efc4;
  --paper: #faf7ee;      /* fond ivoire */
  --card: #fffdf7;
  --text: #2b2418;
  --muted: #6b604c;
  --line: #e6dcc0;
  --on-dark: #e9e0c8;    /* texte courant sur fond sombre */
  --on-dark-muted: #b9ad8f;
  --radius: 6px;
  --arch: 999px 999px var(--radius) var(--radius);
  --shadow: 0 24px 48px -30px rgba(31, 22, 1, .55);
  --head: "Newsreader", Georgia, "Times New Roman", serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brown); text-underline-offset: 3px; text-decoration-color: var(--gold); }
a:hover { color: var(--gold-deep); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--espresso); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.015em; font-weight: 500; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.2rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 400; }
h3 { font-size: 1.35rem; line-height: 1.2; }
h1 em, h2 em { font-style: italic; color: var(--gold-deep); }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 20px; font: 600 .78rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); }
.eyebrow::before { content: "§"; font: italic 400 1.2rem/1 var(--head); letter-spacing: 0; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.container { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(760px, 100% - 40px); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--gold-pale); padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { left: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 48px; padding: 0 24px; border-radius: 3px; border: 1.5px solid transparent; font: 600 .95rem/1 var(--body); letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 1rem; }
.btn--primary { background: var(--ink); color: var(--gold-pale); }
.btn--primary:hover { background: var(--gold); color: var(--ink); }
.btn--ghost { border-color: var(--brown); color: var(--espresso); background: transparent; }
.btn--ghost:hover { background: var(--espresso); border-color: var(--espresso); color: var(--gold-pale); }
.btn--light { background: var(--gold); color: var(--ink); }
.btn--light:hover { background: var(--gold-pale); color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: wait; }
/* Sur fond sombre, le bouton principal passe à l'or */
.hero .btn--primary, .page-hero .btn--primary, .rdv__intro .btn--primary { background: var(--gold); color: var(--ink); }
.hero .btn--primary:hover, .page-hero .btn--primary:hover { background: var(--gold-pale); }
.hero .btn--ghost, .page-hero .btn--ghost { border-color: rgba(211, 193, 82, .55); color: var(--gold-pale); }
.hero .btn--ghost:hover, .page-hero .btn--ghost:hover { background: rgba(211, 193, 82, .12); border-color: var(--gold); color: var(--gold-pale); }
.link-more { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; text-decoration: none; color: var(--espresso); border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.link-more .ico { transition: transform .2s; color: var(--gold-deep); }
.link-more:hover .ico { transform: translateX(4px); }

/* Filet doré marqué du § */
.wave { display: flex; align-items: center; gap: 18px; width: min(var(--wrap), 100% - 40px); margin-inline: auto; color: var(--gold); }
.wave::before, .wave::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, currentColor 30%, currentColor 70%, transparent); opacity: .6; }
.wave span { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font: italic 400 1.15rem/1 var(--head); }
.wave--hero { position: absolute; left: 0; right: 0; bottom: 26px; }
.page-home .wave--hero::before, .page-home .wave--hero::after { transform: scaleX(0); animation: rule 1.4s .4s cubic-bezier(.6, .1, .2, 1) forwards; }
.page-home .wave--hero::before { transform-origin: right; }
.page-home .wave--hero::after { transform-origin: left; }
@keyframes rule { to { transform: scaleX(1); } }
.wave--footer { margin-bottom: 44px; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 247, 238, .97); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 26px -22px rgba(31, 22, 1, .6); }
.topbar { background: var(--ink); color: var(--on-dark-muted); font-size: .82rem; letter-spacing: .02em; }
.topbar__inner { display: flex; align-items: center; gap: 22px; min-height: 36px; }
.topbar__tag { margin-right: auto; font: italic 400 .95rem/1 var(--head); color: var(--gold); letter-spacing: 0; }
.topbar a { color: var(--on-dark); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.topbar a .ico { color: var(--gold); }
.topbar a:hover { color: var(--gold-pale); }
.navbar { display: flex; align-items: center; gap: 24px; min-height: 80px; }
.navbar__logo img { width: 200px; }
.is-scrolled .navbar__logo img { width: 176px; }
.nav-wrap { margin-left: auto; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav > li > a, .nav > li > button { display: inline-flex; align-items: center; gap: 5px; padding: 10px 11px; border: 0; background: none; font: 500 .94rem/1 var(--body); color: var(--espresso); text-decoration: none; border-radius: 3px; cursor: pointer; position: relative; }
.nav > li > a::after, .nav > li > button::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .2s; }
.nav > li > a:hover::after, .nav > li > button:hover::after, .nav > li > a[aria-current]::after { transform: scaleX(1); }
.nav > li > button .ico { width: 16px; transition: transform .2s; color: var(--gold-deep); }
.nav__has-sub { position: relative; }
.nav__has-sub.open > button .ico { transform: rotate(180deg); }
.nav__dropdown { position: absolute; top: calc(100% + 12px); left: 0; min-width: 290px; list-style: none; margin: 0; padding: 10px; background: var(--card); border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; }
.nav__has-sub.open > .nav__dropdown { opacity: 1; visibility: visible; transform: none; }
.nav__dropdown ul { list-style: none; margin: 0; padding: 0; }
.nav__dropdown a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 3px; color: var(--text); text-decoration: none; font-size: .95rem; }
.nav__dropdown a:hover, .nav__dropdown a[aria-current] { background: var(--cream); color: var(--espresso); }
.nav__dropdown a .ico { width: 14px; color: var(--muted); }
.nav__dropdown--cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; min-width: 580px; left: 50%; transform: translate(-50%, -6px); }
.nav__has-sub.open > .nav__dropdown--cols { transform: translate(-50%, 0); }
.nav__group { margin: 8px 12px 6px; font: 600 .74rem/1.3 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
.nav__cta { margin-left: 12px; }
.nav > li > a.btn { padding: 0 20px; color: var(--gold-pale); background: var(--ink); font-weight: 600; border-radius: 3px; }
.nav > li > a.btn::after { display: none; }
.nav > li > a.btn:hover { background: var(--gold); color: var(--ink); }
.burger { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 3px; background: var(--card); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--espresso); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Rythme des sections */
main > section { padding-block: clamp(68px, 9vw, 116px); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2::before { content: ""; display: block; width: 48px; height: 2px; background: var(--gold); margin-bottom: 22px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-head--light h2 { color: var(--paper); }
.section-head--light p { color: var(--on-dark-muted); }

/* Hero de l'accueil : fond expresso, lumière dorée */
main > .hero { position: relative; padding-block: clamp(40px, 5vw, 70px) clamp(110px, 11vw, 140px); background: radial-gradient(55% 75% at 78% 40%, rgba(211, 193, 82, .2) 0%, transparent 65%), linear-gradient(180deg, var(--ink) 0%, #2a1d04 100%); color: var(--on-dark); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
.hero h1 { font-size: clamp(2.7rem, 5.6vw, 4.6rem); max-width: 14ch; color: var(--paper); }
.hero h1 em { color: var(--gold-bright); }
.hero .eyebrow { color: var(--gold); }
.hero__lead { font-size: 1.18rem; max-width: 34em; color: var(--on-dark); }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0; }
.hero__points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--on-dark-muted); font-size: .94rem; }
.hero__points li { display: inline-flex; align-items: center; gap: 8px; }
.hero__points .ico { color: var(--gold); }
.hero__visual { position: relative; width: min(500px, 100%); margin-left: auto; }
.hero__visual::before { content: ""; position: absolute; inset: 9% 6% 0; border: 1px solid rgba(211, 193, 82, .5); border-radius: var(--arch); background: radial-gradient(70% 60% at 50% 35%, rgba(255, 233, 146, .14), transparent 70%); }
.hero__photo { position: relative; width: 100%; }
.hero__label { position: absolute; left: -6%; bottom: 8%; width: 140px; animation: spin 50s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Communauté */
.community__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.community__photos { position: relative; aspect-ratio: 1 / 1.05; }
.community__photos img { position: absolute; object-fit: cover; }
.community__photos img:first-child { width: 72%; top: 0; left: 0; aspect-ratio: 4 / 5; border-radius: var(--arch); }
.community__photos img:last-child { width: 50%; right: 0; bottom: 0; aspect-ratio: 1; border-radius: 50%; background: var(--cream); border: 6px solid var(--paper); box-shadow: 0 0 0 1px var(--gold), var(--shadow); object-fit: contain; }
.pillars { margin: 28px 0; display: grid; gap: 20px; }
.pillars dt { display: flex; align-items: baseline; gap: 12px; font: 500 1.2rem/1.25 var(--head); color: var(--espresso); margin-bottom: 4px; }
.pillars dt::before { content: "§"; font: italic 400 1.1rem/1 var(--head); color: var(--gold-deep); flex: none; }
.pillars dd { margin: 0; padding-left: 22px; color: var(--muted); }
.pillars--compact { gap: 14px; }
.pillars--row { grid-template-columns: repeat(3, 1fr); gap: 32px; }

/* Besoins : accès rapide */
main > .needs { background: var(--cream); background: linear-gradient(180deg, #f3ecd0, var(--paper)); }
.needs__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.needs__list a { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.needs__list img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--arch); margin-bottom: 18px; filter: saturate(.85); transition: filter .3s, transform .3s; }
.needs__list span { font: 500 1.2rem/1.25 var(--head); color: var(--espresso); padding-top: 12px; border-top: 1px solid var(--gold); }
.needs__list a:hover img { filter: none; transform: translateY(-4px); }
.needs__list a:hover span { color: var(--gold-deep); }

/* Blocs services */
.feature__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.feature--reverse .feature__img { order: 2; }
main > .feature--tint { background: var(--card); border-block: 1px solid var(--line); }
.feature__img { display: grid; place-items: center; position: relative; }
.feature__img img { width: min(430px, 100%); aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--arch); }
.feature__img::after { content: ""; position: absolute; width: min(430px, 100%); aspect-ratio: 4 / 5; border: 1px solid var(--gold); border-radius: var(--arch); transform: translate(14px, 14px); z-index: -1; }
.feature__text h2 { max-width: 16ch; }
.feature__text .hero__btns { margin-bottom: 0; }
.ticks { list-style: none; margin: 20px 0 30px; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .ico { color: var(--gold-deep); margin-top: .25em; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.duo__card { display: grid; grid-template-columns: 170px 1fr; gap: 26px; align-items: center; padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.duo__card img { width: 170px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--arch); }
.duo__card p { color: var(--muted); }

/* Protection : liste des assurances sur fond sombre */
main > .protect { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
main > .protect::before { content: "§"; position: absolute; right: -40px; top: -120px; font: italic 300 34rem/1 var(--head); color: rgba(211, 193, 82, .06); pointer-events: none; }
.protect .container { position: relative; }
.protect .section-head h2::before { background: var(--gold); }
.protect__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.protect h3 { color: var(--gold); font: 600 .78rem/1.3 var(--body); letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px; }
.protect__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(211, 193, 82, .25); }
.protect__list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 4px; border-bottom: 1px solid rgba(211, 193, 82, .25); color: var(--on-dark-muted); text-decoration: none; transition: background .2s; }
.protect__list a > span { transition: transform .2s; }
.protect__list strong { display: block; font: 400 1.45rem/1.2 var(--head); color: var(--paper); margin-bottom: 4px; }
.protect__list span { font-size: .94rem; }
.protect__list .ico { color: var(--gold); width: 22px; height: 22px; transition: transform .2s; }
.protect__list a:hover { background: rgba(211, 193, 82, .06); }
.protect__list a:hover strong { color: var(--gold-pale); }
.protect__list a:hover > span { transform: translateX(10px); }
.protect__list a:hover .ico { transform: translateX(4px); }

/* Litiges */
.issues__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.issues__list li { background: var(--card); padding: 0 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); color: var(--muted); font-size: .96rem; overflow: hidden; }
.issues__list img { width: calc(100% + 44px); max-width: none; margin: 0 -22px 18px; aspect-ratio: 3 / 2; object-fit: cover; }
.issues__list strong { display: block; margin-bottom: 6px; font: 500 1.2rem/1.25 var(--head); color: var(--espresso); }
.issues__cta { margin: 36px 0 0; }

/* Assureurs */
main > .insurers { background: var(--card); border-block: 1px solid var(--line); padding-block: 58px; }
.insurers__title { font: italic 400 1.35rem/1.3 var(--head); text-align: center; margin-bottom: 30px; color: var(--muted); }
.insurers__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 40px; }
.insurers__list img { height: 44px; width: auto; max-width: 110px; object-fit: contain; filter: grayscale(1) sepia(.35); opacity: .65; transition: filter .2s, opacity .2s; }
.insurers__list li:hover img { filter: none; opacity: 1; }

/* Rendez-vous et formulaire */
main > .rdv { background: radial-gradient(60% 80% at 10% 10%, rgba(211, 193, 82, .16), transparent 60%), var(--espresso); color: var(--paper); }
.rdv__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.rdv h2 { color: var(--paper); }
.rdv h2::before { content: ""; display: block; width: 48px; height: 2px; background: var(--gold); margin-bottom: 22px; }
.rdv__intro > p { color: var(--on-dark); font-size: 1.1rem; }
.rdv__ways { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 12px; }
.rdv__ways a { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid rgba(211, 193, 82, .3); border-radius: var(--radius); color: var(--paper); text-decoration: none; transition: background .2s, border-color .2s; }
.rdv__ways a:hover { background: rgba(211, 193, 82, .08); border-color: var(--gold); color: var(--paper); }
.rdv__ways .ico { width: 26px; height: 26px; color: var(--gold); }
.rdv__ways strong { display: block; font-size: 1.05rem; overflow-wrap: anywhere; }
.rdv__ways span { font-size: .9rem; color: var(--on-dark-muted); }
.rdv__slot { background: var(--card); color: var(--text); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.contact-form { display: grid; gap: 14px; }
.contact-form__title { font: 400 1.6rem/1.2 var(--head); color: var(--espresso); margin: 0 0 4px; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--espresso); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; font: 400 1rem/1.4 var(--body); color: var(--text); padding: 12px 14px; border: 1px solid #d9cca6; border-radius: 3px; background: var(--paper); transition: border-color .2s, background .2s, box-shadow .2s; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--brown); background: #fff; box-shadow: 0 0 0 3px rgba(211, 193, 82, .3); }
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form .btn { justify-self: start; }
.contact-form__status { margin: 0; font-weight: 600; min-height: 1.4em; }
.contact-form__status.is-ok { color: #2f6b3a; }
.contact-form__status.is-err { color: #a3261b; }
.contact-form__legal { margin: 0; font-size: .82rem; color: var(--muted); }

/* Pages intérieures : en-tête sombre */
main > .page-hero { position: relative; padding-block: clamp(40px, 5vw, 70px) clamp(110px, 11vw, 140px); background: radial-gradient(50% 80% at 88% 20%, rgba(211, 193, 82, .18), transparent 65%), linear-gradient(180deg, var(--ink), #2a1d04); color: var(--on-dark); overflow: hidden; }
.page-hero h1 { max-width: 18ch; color: var(--paper); }
.page-hero__lead { font-size: 1.18rem; max-width: 40em; color: var(--on-dark); }
.page-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.page-hero__img { margin: 0; justify-self: center; position: relative; }
.page-hero__img img { width: min(380px, 100%); aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--arch); box-shadow: 0 0 0 1px var(--gold), 0 0 0 10px rgba(211, 193, 82, .08); }
.page-hero__img--cut img { aspect-ratio: 1; object-fit: contain; border-radius: 0; box-shadow: none; background: radial-gradient(closest-side, rgba(255, 233, 146, .16), transparent); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .86rem; color: var(--on-dark-muted); margin-bottom: 24px; letter-spacing: .02em; }
.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-pale); text-decoration: underline; }
main > .prose-section { padding-block: clamp(44px, 6vw, 76px); }
.prose-section p { font-size: 1.12rem; }
.prose-section p:first-child::first-letter { float: left; font: 400 4.1em/.8 var(--head); color: var(--gold-deep); margin: .08em .1em 0 0; }

main > .reasons { background: var(--card); border-block: 1px solid var(--line); }
.reasons__grid { margin: 34px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.reasons__grid > div { padding: 26px 0; border-top: 1px solid var(--line); }
.reasons dt { display: flex; gap: 14px; align-items: center; font: 500 1.35rem/1.2 var(--head); color: var(--espresso); margin-bottom: 8px; }
.reasons dt .ico { color: var(--gold-deep); width: 28px; height: 28px; }
.reasons dd { margin: 0 0 0 42px; color: var(--muted); }

.steps__list { list-style: none; counter-reset: step; margin: 38px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps__list li { counter-increment: step; position: relative; padding-top: 80px; }
.steps__list li::before { content: counter(step, upper-roman); position: absolute; top: 0; left: 0; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-deep); font: italic 400 1.5rem/1 var(--head); background: var(--card); }
.steps__list li::after { content: ""; position: absolute; top: 29px; left: 72px; right: -16px; height: 1px; background: var(--gold); opacity: .6; }
.steps__list li:last-child::after { display: none; }
.steps__list p { color: var(--muted); }

main > .more { background: var(--cream); background: #f3ecd0; padding-block: 58px; }
.more h2 { font-size: 1.6rem; }
.more__list { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.more__list a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 3px; border: 1px solid #d9cca6; background: var(--card); text-decoration: none; color: var(--espresso); font-weight: 500; transition: border-color .2s, background .2s; }
.more__list a:hover { border-color: var(--brown); background: #fff; }
.more__list .ico { width: 16px; color: var(--gold-deep); }

.about__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.about__text p { font-size: 1.08rem; }
.about__text .hero__btns { margin-bottom: 0; }
.about__aside { position: relative; }
.about__aside > img:first-child { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--arch); background: radial-gradient(closest-side, var(--cream), transparent); }
.about__label { position: absolute; bottom: -10px; left: -30px; width: 130px; background: var(--paper); border-radius: 50%; padding: 6px; box-shadow: 0 0 0 1px var(--gold); }
main > .values { background: var(--card); border-top: 1px solid var(--line); }

.partners__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.partners__list li { background: var(--card); padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; }
.partners__list h2 { font-size: 1.4rem; margin-bottom: 6px; }
.partners__list p { color: var(--muted); flex: 1; }
.badge { display: inline-block; padding: 5px 12px; border-radius: 2px; background: var(--cream); color: var(--gold-deep); font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; border: 1px solid #e3d48a; }
.partners__cta { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.partners__cta p { margin: 0 12px 0 0; font: italic 400 1.3rem/1.3 var(--head); color: var(--espresso); }

.address__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: center; }
.address p { display: flex; gap: 10px; }
.address p .ico { color: var(--gold-deep); margin-top: .3em; }
.address__map { width: 100%; height: 340px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); filter: sepia(.25); }

/* Actualités (accueil, liste, article) */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.post-card__img { aspect-ratio: 16 / 10; display: block; overflow: hidden; background: var(--ink); border-bottom: 2px solid var(--gold); }
.post-card__img:empty { background: url("../img/label-blanc.webp") center / 34% no-repeat, radial-gradient(circle at 50% 50%, #3a2a08, var(--ink)); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-card__img img { transform: scale(1.04); }
.post-card__body { padding: 22px 24px 26px; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .84rem; color: var(--muted); margin-bottom: 10px; }
.post-card__cat { color: var(--gold-deep); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .74rem; }
.post-card h3 { font-size: 1.4rem; }
.post-card h3 a { color: var(--espresso); text-decoration: none; }
.post-card h3 a:hover { color: var(--gold-deep); }
.post-card p { color: var(--muted); font-size: .97rem; margin: 0; }
.news__cta { margin: 32px 0 0; }
.news__empty { text-align: center; color: var(--muted); }
main > .blog-hero { padding-bottom: 30px; }
main > .news--list { padding-top: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip { padding: 8px 16px; border-radius: 2px; border: 1px solid rgba(211, 193, 82, .45); background: transparent; color: var(--on-dark); text-decoration: none; font-size: .9rem; font-weight: 500; }
.chip:hover { border-color: var(--gold); color: var(--gold-pale); }
.chip.is-active { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 46px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 3px; border: 1px solid var(--line); text-decoration: none; color: var(--espresso); background: var(--card); }
.pagination span { background: var(--ink); color: var(--gold-pale); border-color: var(--ink); }

.preview-bar { background: var(--gold); color: var(--ink); text-align: center; padding: 10px 20px; font-weight: 600; }
.post-hero { padding-block: 54px 30px; }
.post-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); max-width: 22ch; }
.post-hero__cat { display: inline-block; margin-bottom: 14px; color: var(--gold-deep); font-weight: 600; text-decoration: none; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; }
.post-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--muted); font-size: .92rem; }
.post-hero__meta img { width: 40px; height: 40px; border-radius: 50%; object-fit: contain; background: var(--card); border: 1px solid var(--line); }
.post-hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-cover { width: min(1080px, 100% - 40px); margin: 0 auto 44px; }
.post-cover img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 8; object-fit: cover; }
.post-layout { width: min(1080px, 100% - 40px); margin: 0 auto 84px; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 54px; align-items: start; }
.post-layout:not(:has(.post-toc)) { grid-template-columns: minmax(0, 720px); justify-content: center; }
.post-toc { position: sticky; top: 130px; font-size: .92rem; border-top: 1px solid var(--gold); padding-top: 16px; }
.post-toc p { font: 600 .74rem/1.3 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 10px; }
.post-toc ol { margin: 0; padding-left: 18px; display: grid; gap: 7px; }
.post-toc a { color: var(--muted); text-decoration: none; }
.post-toc a:hover { color: var(--espresso); }
.post-content { font-size: 1.08rem; max-width: 720px; }
.post-content h2 { font-size: 1.9rem; margin-top: 1.6em; }
.post-content h3 { margin-top: 1.4em; }
.post-content img { border-radius: var(--radius); margin: 1.4em 0; }
.post-content blockquote { margin: 1.8em 0; padding: 0 1.5em; text-align: center; font: italic 400 1.35rem/1.45 var(--head); color: var(--espresso); }
.post-content blockquote::before { content: "§"; display: block; margin-bottom: .3em; color: var(--gold-deep); font-size: 1.4rem; }
.post-content ul, .post-content ol { padding-left: 1.3em; }
.post-content li { margin-bottom: .4em; }
.post-content li::marker { color: var(--gold-deep); }
.post-author { display: flex; gap: 20px; align-items: flex-start; margin-top: 54px; padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.post-author img { width: 76px; height: 76px; border-radius: 50%; object-fit: contain; background: var(--ink); padding: 8px; flex: none; }
.post-author__name { font: 500 1.25rem/1.2 var(--head); color: var(--espresso); margin-bottom: 6px; }
.post-author p { font-size: .97rem; color: var(--muted); }

/* Pages légales */
.legal { width: min(820px, 100% - 40px); margin: 0 auto; padding: 64px 0 96px; }
.legal h1 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); }
.legal h2 { font-size: 1.5rem; margin-top: 1.8em; }
.legal .todo { padding: 14px 18px; background: var(--cream); border: 1px solid #e3d48a; border-radius: var(--radius); }

/* Pied de page */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: 44px 0 0; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; }
.footer__brand img { width: 220px; margin-bottom: 20px; }
.footer__brand p { max-width: 32ch; }
.footer__title { font: 600 .74rem/1.2 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--gold-pale); }
.site-footer .btn--light, .site-footer .btn--light:hover { color: var(--ink); }
.footer__contact li, .footer__contact a { display: flex; gap: 10px; align-items: flex-start; overflow-wrap: anywhere; }
.footer__contact .ico { color: var(--gold); margin-top: .25em; }
.footer__contact + .btn { margin-top: 22px; }
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(211, 193, 82, .35); }
.footer__social a:hover { background: var(--gold); color: var(--ink); }
.footer__social svg { width: 20px; height: 20px; }
.footer__bottom { margin-top: 54px; padding: 20px 0 26px; border-top: 1px solid rgba(211, 193, 82, .18); font-size: .84rem; color: #8f846a; }
.footer__bottom p { margin: 0; }

/* Tablette : menu en panneau */
@media (max-width: 1120px) {
  .burger { display: flex; }
  .nav-wrap { position: fixed; top: 116px; right: 0; bottom: 0; left: 0; background: var(--paper); overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s; margin: 0; }
  .nav-wrap:has(.nav.open) { transform: none; visibility: visible; }
  .nav { flex-direction: column; align-items: stretch; gap: 0; padding: 14px 20px 40px; }
  .nav > li { border-bottom: 1px solid var(--line); }
  .nav > li > a, .nav > li > button { width: 100%; justify-content: space-between; padding: 16px 6px; font-size: 1.08rem; }
  .nav > li > a::after, .nav > li > button::after { display: none; }
  .nav__dropdown, .nav__dropdown--cols { position: static; display: none; min-width: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px; background: transparent; }
  .nav__has-sub.open > .nav__dropdown, .nav__has-sub.open > .nav__dropdown--cols { display: block; transform: none; }
  .nav__cta { margin: 20px 0 0; }
  .nav > li.nav__cta { border: 0; }
  .nav__cta .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .needs__list, .issues__list { grid-template-columns: repeat(2, 1fr); }
  .duo { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .topbar__tag { display: none; }
  .topbar__inner { justify-content: center; gap: 16px; font-size: .8rem; }
  .navbar { min-height: 68px; }
  .navbar__logo img, .is-scrolled .navbar__logo img { width: 160px; }
  .nav-wrap { top: 104px; }
  .hero__grid, .community__grid, .feature__grid, .rdv__grid, .page-hero__grid, .about__grid, .address__grid { grid-template-columns: 1fr; }
  .hero__visual { width: min(380px, 100%); margin: 10px auto 0; }
  .hero__label { width: 96px; left: -2%; }
  .feature--reverse .feature__img { order: 0; }
  .feature__img img, .feature__img::after { width: min(320px, 100%); }
  .protect__cols, .reasons__grid, .pillars--row, .post-grid, .partners__list, .steps__list { grid-template-columns: 1fr; }
  .steps__list li::after { display: none; }
  .page-hero__img img { width: min(280px, 100%); }
  .about__aside { max-width: 380px; }
  .about__label { left: -10px; width: 104px; }
  .post-layout { grid-template-columns: 1fr; }
  .post-toc { position: static; }
  .contact-form__row { grid-template-columns: 1fr; }
  .duo__card { grid-template-columns: 110px 1fr; padding: 20px; gap: 18px; align-items: start; }
  .duo__card img { width: 110px; }
  .reasons dd { margin-left: 0; }
  main > .protect::before { font-size: 20rem; }
}
@media (max-width: 520px) {
  .needs__list { gap: 14px; }
  .needs__list span { font-size: 1.02rem; }
  .issues__list { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__btns .btn { width: 100%; }
  .topbar a:last-child { display: none; }
  .duo__card { grid-template-columns: 1fr; }
  .duo__card img { width: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .page-home .wave--hero::before, .page-home .wave--hero::after { transform: none; }
}
