/*
Theme Name: Delexan Apport d'affaires
Theme URI: https://delexan.fr
Author: DELEXAN SAS
Description: Thème du site Delexan Apport d'affaires, aligné sur l'univers visuel du site Delexan. Pages, blog, formulaire de contact et référencement intégrés. Polices hébergées dans le thème.
Version: 2.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: Propriétaire
Text Domain: delexan-apport
*/

/* Polices hébergées localement (SIL Open Font License) : aucune requête vers Google. */
@font-face { font-family: "Libre Caslon Display"; src: url("assets/fonts/libre-caslon-display-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("assets/fonts/libre-caslon-text-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("assets/fonts/libre-caslon-text-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* Fond bleu nuit Delexan avec halos or et bleu, accent unique : l'or.
   Coins droits, filets fins, mise en page éditoriale. Titres en Libre Caslon, texte en IBM Plex Sans. */
:root {
  --canvas: #080D15;
  --raised: #0C1320;
  --card: rgba(255, 255, 255, 0.035);
  --card-hi: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(160, 183, 214, 0.12);
  --ink: #EEF2F7;
  --muted: #8E9BB0;
  --gold: #E4B342;
  --gold-deep: #D9A62E;
  --gold-light: #F7DC8C;
  --violet: #F7DC8C;
  --teal: #C9952A;
  --blue: #E4B342;
  --green: #E4B342;
  --pink: #E4B342;
  --night: #2D5FA8;
  --err: #F28B7C;
  --ease: cubic-bezier(.22, .8, .22, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --display: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --serif: "Libre Caslon Text", Georgia, serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
main { overflow-x: clip; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 48px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 100; width: auto; height: auto; clip: auto; padding: 10px 16px; background: var(--gold); color: #0B1220; border-radius: 8px; }

/* Texte en dégradé animé, comme sur le site Delexan */
.shine {
  font-family: var(--serif); font-style: italic;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light) 25%, var(--gold) 50%, #FFF1C4 72%, var(--gold-deep)) 0 0 / 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: dlx-shine 6s linear infinite;
}
.tint { font-family: var(--serif); font-style: italic; background: linear-gradient(90deg, var(--gold), var(--gold-light)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes dlx-shine { to { background-position: 220% center; } }

/* ---------- En-tête ---------- */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(8, 13, 21, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.mark { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.mark img { height: 38px; width: auto; display: block; }
.mark b { font-family: var(--display); font-weight: 400; font-size: 1.5rem; letter-spacing: .14em; color: var(--ink); }
.mark span { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--gold); white-space: nowrap; }
.top nav { display: flex; align-items: center; gap: 28px; }
.top nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.top nav ul a { position: relative; text-decoration: none; color: #C9D2DF; font-size: 15px; font-weight: 500; transition: color .2s; }
.top nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.top nav ul a:hover, .top nav ul .current-menu-item > a, .top nav ul .current_page_parent > a { color: #fff; }
.top nav ul a:hover::after, .top nav ul .current-menu-item > a::after, .top nav ul .current_page_parent > a::after { transform: scaleX(1); }
.top nav ul .menu-contact { display: none; }
.menu-toggle { display: none; background: var(--card); border: 1px solid var(--line); color: var(--ink); font: 500 14px var(--body); padding: 9px 14px; border-radius: 9px; cursor: pointer; }

/* ---------- Boutons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 4px; border: 0; cursor: pointer;
  font: 600 15px var(--body); text-decoration: none; white-space: nowrap;
  background: linear-gradient(135deg, #F2C75C, var(--gold-deep)); color: #0B1220;
  box-shadow: 0 18px 44px -16px rgba(228, 179, 66, .95);
  transition: transform .3s var(--spring), box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 22px 54px -14px rgba(228, 179, 66, 1); color: #0B1220; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn.glow { animation: dlx-glow 2.8s ease-in-out infinite; }
.btn.quiet { background: rgba(255, 255, 255, .04); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.btn.quiet:hover { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(228, 179, 66, .6); color: #fff; }
.btn.small { min-height: 42px; padding: 0 18px; font-size: 14px; border-radius: 4px; }
@keyframes dlx-glow { 0%, 100% { box-shadow: 0 18px 44px -18px rgba(228, 179, 66, .9); } 50% { box-shadow: 0 18px 60px -10px rgba(228, 179, 66, 1); } }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.center .actions { justify-content: center; }

/* ---------- Halos et étoiles (fonds des grandes sections) ---------- */
.aura { position: absolute; inset: -15% -10%; z-index: 0; pointer-events: none; filter: blur(80px); opacity: .62; }
.aura i { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: dlx-float 16s ease-in-out infinite alternate; }
.aura i:nth-child(1) { width: 560px; height: 560px; left: 4%; top: 28%; background: var(--gold); opacity: .38; }
.aura i:nth-child(2) { width: 480px; height: 480px; right: 4%; top: 6%; background: var(--night); opacity: .5; animation-delay: -5s; }
.aura i:nth-child(3) { width: 440px; height: 440px; left: 42%; top: 58%; background: #1C3D73; opacity: .45; animation-delay: -10s; }
.aura.soft { opacity: .42; }
@keyframes dlx-float { from { transform: translate(0, 0) scale(1); } to { transform: translate(70px, -50px) scale(1.18); } }
.stars { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.stars i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 10px 2px rgba(247, 220, 140, .8); opacity: 0; animation: dlx-twinkle 3.6s ease-in-out infinite; }
@keyframes dlx-twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1); } }

/* ---------- Ouverture de l'accueil ---------- */
.hero { position: relative; isolation: isolate; overflow: clip; text-align: left; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 160px; z-index: 1; background: linear-gradient(transparent, var(--canvas)); pointer-events: none; }
.hero-inner { position: relative; z-index: 3; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 64px; align-items: center; padding-top: 112px; padding-bottom: 128px; }
.hero-copy > * { animation: dlx-up .9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .15s; }
.hero-copy > :nth-child(3) { animation-delay: .3s; }
.hero-copy > :nth-child(4) { animation-delay: .45s; }
.hero-inner > .curve { animation: dlx-up 1s var(--ease) .35s both, dlx-frame 7s ease-in-out 1.4s infinite; }
.hero h1 { font-size: clamp(2.8rem, 5.4vw, 4.9rem); line-height: 1.03; max-width: 14ch; }
.hero .lede { margin-top: 30px; max-width: 48ch; font-size: 19px; color: #B7C2D2; }
.hero .actions { margin-top: 40px; }
.proof { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 40px; font-size: 14.5px; color: #B7C2D2; }
.proof span { display: inline-flex; align-items: center; gap: 9px; }
.proof svg { width: 18px; height: 18px; stroke: var(--c, var(--gold)); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Entrée de l'ouverture */
@keyframes dlx-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* Notifications flottantes autour du titre */
.note {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px;
  padding: 13px 17px 13px 13px; border-radius: 6px; text-align: left; white-space: nowrap;
  background: rgba(12, 18, 30, .78); border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 26px 50px -24px rgba(0, 0, 0, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font: 600 14px/1.3 var(--body); color: var(--ink);
  opacity: 0; animation: dlx-pop-in .8s var(--spring) forwards, dlx-bob 6s ease-in-out infinite;
}
.note i { display: flex; width: 38px; height: 38px; flex: none; border-radius: 12px; align-items: center; justify-content: center; background: var(--c); box-shadow: 0 10px 24px -8px var(--c); }
.note i svg { width: 19px; height: 19px; stroke: #0B1220; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.note small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--muted); }
@keyframes dlx-pop-in { from { opacity: 0; transform: translateY(24px) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes dlx-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 112px 0; }
.section.tight { padding-top: 72px; padding-bottom: 72px; }
.section.band { background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, 0)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { max-width: 760px; margin: 0 auto 60px; text-align: center; }
.head h2 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); line-height: 1.06; }
.head p { margin: 20px auto 0; max-width: 60ch; color: var(--muted); font-size: 18px; }
.head.left { margin-left: 0; text-align: left; }
.head.left p { margin-left: 0; }

/* Chiffres clés : grands chiffres dorés séparés par des filets */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 40px 32px 38px; }
.stat + .stat { border-left: 1px solid var(--line); }
.ring b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(3.4rem, 6vw, 5rem); line-height: 1; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, var(--gold-light), var(--gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; transition: transform .5s var(--spring); transform-origin: left bottom; }
.stat:hover .ring b { transform: scale(1.06); }
.stat > span { display: block; margin-top: 14px; font-size: 15.5px; color: var(--muted); max-width: 28ch; }

/* Cartes avec filet de couleur */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; padding: 32px 28px 30px; border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  border: 1px solid var(--line);
  transition: transform .45s var(--spring), box-shadow .3s, border-color .3s;
}
.card::before { content: ""; position: absolute; top: -1px; left: -1px; width: 56px; height: 2px; background: var(--gold); transition: width .5s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -34px rgba(228, 179, 66, .6); border-color: rgba(228, 179, 66, .35); }
.card:hover::before { width: calc(100% + 2px); }
.card h3 { font-size: 1.6rem; line-height: 1.15; margin-top: 20px; }
.card p { margin-top: 12px; color: var(--muted); font-size: 15.5px; }
.card p b { color: var(--ink); font-weight: 500; }
.tile { display: flex; width: 48px; height: 48px; border-radius: 6px; align-items: center; justify-content: center; background: rgba(228, 179, 66, .12); box-shadow: inset 0 0 0 1px rgba(228, 179, 66, .35); }
.tile svg { width: 24px; height: 24px; stroke: var(--gold); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cards > :nth-child(1) { --c: var(--gold); }
.cards > :nth-child(2) { --c: var(--violet); }
.cards > :nth-child(3) { --c: var(--teal); }
.cards > :nth-child(4) { --c: var(--blue); }
.cards > :nth-child(5) { --c: var(--pink); }
.cards > :nth-child(6) { --c: var(--green); }

/* ---------- Graphique ---------- */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: center; }
.split .head { margin-bottom: 0; }
.curve { margin: 0; padding: 28px 28px 22px; border-radius: 6px; background: rgba(12, 19, 32, .85); border: 1px solid var(--line); animation: dlx-frame 7s ease-in-out infinite; }
@keyframes dlx-frame { 0%, 100% { box-shadow: 0 0 0 1px rgba(228, 179, 66, .28), 0 40px 90px -40px rgba(228, 179, 66, .45); } 50% { box-shadow: 0 0 0 1px rgba(228, 179, 66, .55), 0 40px 100px -36px rgba(228, 179, 66, .7); } }
.curve-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-family: var(--display); font-size: 1.4rem; }
.curve-head .tag { font: 500 12px var(--body); letter-spacing: .04em; color: var(--muted); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); }
.curve svg { display: block; width: 100%; height: auto; margin-top: 14px; overflow: visible; }
.curve .axis { stroke: rgba(160, 183, 214, .35); stroke-width: 1; }
.curve .months text { font: 500 13px var(--body); fill: var(--muted); }
.curve .area { fill: url(#dlx-gap); }
.curve .line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.curve .us { stroke: var(--gold); stroke-dasharray: 700; stroke-dashoffset: 700; }
.curve.in .us, .no-io .curve .us { animation: dlx-draw 1.6s var(--ease) .2s forwards; }
.curve .rep { stroke: #8C9BB1; stroke-dasharray: 6 6; }
.curve .sig circle { fill: var(--canvas); stroke: var(--gold); stroke-width: 2; opacity: 0; transform-origin: center; transform-box: fill-box; }
.curve.in .sig circle, .no-io .curve .sig circle { animation: dlx-pop .45s var(--spring) forwards; }
.curve .sig circle:nth-child(1) { animation-delay: .7s; } .curve .sig circle:nth-child(2) { animation-delay: 1s; }
.curve .sig circle:nth-child(3) { animation-delay: 1.25s; } .curve .sig circle:nth-child(4) { animation-delay: 1.55s; }
.curve .lbl { font: 600 15px var(--body); }
.curve .rep-l { fill: var(--muted); } .curve .us-l { fill: var(--gold); }
.curve .note-l { font: 500 13.5px var(--body); fill: var(--ink); }
.curve .save { font: italic 20px var(--serif); fill: var(--ink); opacity: .9; }
.curve-foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
@keyframes dlx-draw { to { stroke-dashoffset: 0; } }
@keyframes dlx-pop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }

/* ---------- Comparatif face à face ---------- */
.duel { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.duel-side { position: relative; padding: 38px 38px 32px; border-radius: 6px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.duel-side.us { border-color: transparent; background: linear-gradient(180deg, rgba(228, 179, 66, .1), rgba(228, 179, 66, .02) 60%), rgba(12, 19, 32, .9); animation: dlx-frame 7s ease-in-out infinite; }
.duel-tag { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.duel-side.us .duel-tag { color: var(--gold-light); background: rgba(228, 179, 66, .14); border-color: rgba(228, 179, 66, .35); }
.duel h3 { font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.1; margin-top: 16px; }
.duel-side.them h3 { color: #AEB9C9; }
.duel ul { list-style: none; margin: 26px 0 0; padding: 0; }
.duel li { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 90px; padding: 16px 0; border-top: 1px solid var(--line); }
.duel li.last { min-height: 128px; }
.duel .crit { font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--muted); }
.duel .val { display: flex; align-items: center; gap: 12px; font-size: 17px; }
.duel-side.them .val { color: #A4AFBF; }
.duel-side.us .val { font-family: var(--display); font-size: 1.55rem; line-height: 1.15; color: #fff; }
.duel .ico { flex: none; width: 26px; height: 26px; padding: 4px; border-radius: 8px; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.duel-side.them .ico { stroke: #8391A6; background: rgba(255, 255, 255, .05); }
.duel-side.us .ico { stroke: #0B1220; background: var(--gold); box-shadow: 0 8px 20px -8px var(--gold); }
.duel-side.them .val.big { font-family: var(--display); font-size: 1.5rem; color: #AEB9C9; }
.duel-side.us .val.big { flex-wrap: wrap; column-gap: 16px; row-gap: 2px; font-size: 1.35rem; }
.duel .zero { font-family: var(--display); font-size: clamp(3.4rem, 5.6vw, 4.6rem); line-height: 1; background: linear-gradient(90deg, var(--gold), var(--gold-light)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.duel .zero small { font-size: .62em; margin-left: .06em; }
.duel-side.us.in .ico path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: dlx-tick .5s ease forwards; }
.duel-side.us.in li:nth-child(1) .ico path { animation-delay: .45s; }
.duel-side.us.in li:nth-child(2) .ico path { animation-delay: .6s; }
.duel-side.us.in li:nth-child(3) .ico path { animation-delay: .75s; }
.duel-side.us.in li:nth-child(4) .ico path { animation-delay: .9s; }
.duel-side.us.in li:nth-child(5) .ico path { animation-delay: 1.05s; }
.duel-side.us.in .zero { display: inline-block; animation: dlx-zero .7s var(--spring) 1s both; }
@keyframes dlx-tick { to { stroke-dashoffset: 0; } }
@keyframes dlx-zero { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }

/* ---------- Méthode ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.steps::before { content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, rgba(228,179,66,.15), var(--gold), rgba(228,179,66,.15)); opacity: .9; transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) .2s; }
.steps.in::before, .no-io .steps::before { transform: scaleX(1); }
.step { position: relative; text-align: center; padding: 0 8px; }
.step:nth-child(1) { --c: var(--gold); } .step:nth-child(2) { --c: var(--violet); } .step:nth-child(3) { --c: var(--teal); } .step:nth-child(4) { --c: var(--blue); }
.step .no { position: relative; z-index: 1; display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 22px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 30%, var(--canvas)), var(--canvas)); border: 2px solid var(--c); box-shadow: 0 0 34px -6px var(--c); font-family: var(--display); font-size: 1.7rem; color: #fff; transition: transform .45s var(--spring); }
.step:hover .no { transform: translateY(-6px) scale(1.06); }
.step h3 { font-size: 1.5rem; }
.step p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }

/* Étapes détaillées (page Comment ça marche) */
.stages { display: grid; gap: 18px; }
.stage { display: grid; grid-template-columns: 96px 1fr 1.3fr; gap: 36px; align-items: start; padding: 34px 36px; border-radius: 6px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); border-left: 2px solid var(--gold); transition: transform .45s var(--spring), background .3s; }
.stage:hover { transform: translateX(6px); background: rgba(255, 255, 255, .045); }
.stage:nth-child(1) { --c: var(--gold); } .stage:nth-child(2) { --c: var(--violet); } .stage:nth-child(3) { --c: var(--teal); } .stage:nth-child(4) { --c: var(--blue); }
.stage .no { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--c); box-shadow: 0 0 30px -8px var(--c); font-family: var(--display); font-size: 1.6rem; }
.stage h2 { font-size: clamp(1.7rem, 2.6vw, 2.1rem); line-height: 1.12; padding-top: 12px; }
.stage p { color: var(--muted); }
.stage p + p { margin-top: 12px; }

/* Listes en cartes (preuve, ce que vous payez) */
.ledger { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ledger li { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: baseline; padding: 24px 28px; border-radius: 6px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); transition: border-color .3s, transform .45s var(--spring); }
.ledger li:hover { border-color: rgba(228, 179, 66, .5); transform: translateY(-3px); }
.ledger li b { font-family: var(--display); font-weight: 400; font-size: 1.45rem; line-height: 1.2; }
.ledger li span { color: var(--muted); }

/* ---------- Articles ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { display: flex; flex-direction: column; padding: 30px 28px 28px; border-radius: 6px; background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)); border: 1px solid var(--line); transition: transform .45s var(--spring), border-color .3s, box-shadow .3s; }
.post-card:hover { transform: translateY(-6px); border-color: rgba(228, 179, 66, .5); box-shadow: 0 30px 60px -32px rgba(228, 179, 66, .7); }
.post-card .when { font-size: 13px; color: var(--muted); }
.post-card h2, .post-card h3 { margin-top: 14px; font-size: 1.55rem; line-height: 1.18; }
.post-card h2 a, .post-card h3 a { text-decoration: none; }
.post-card h2 a::after, .post-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 6px; }
.post-card { position: relative; }
.post-card p { margin-top: 12px; color: var(--muted); font-size: 15.5px; flex: 1; }
.post-card .more { margin-top: 20px; font-size: 14px; font-weight: 600; color: var(--gold); }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers { padding: 9px 15px; border-radius: 9px; text-decoration: none; background: var(--card); border: 1px solid var(--line); font-size: 14px; }
.pagination .current { background: var(--gold); color: #0B1220; border-color: var(--gold); }

/* ---------- En-tête des pages intérieures ---------- */
.page-head { position: relative; isolation: isolate; padding-top: 104px; padding-bottom: 72px; text-align: center; }
.page-head::before { content: ""; position: absolute; z-index: -1; top: -76px; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(520px 320px at 22% 30%, rgba(228, 179, 66, .16), transparent 70%), radial-gradient(560px 340px at 78% 20%, rgba(45, 95, 168, .28), transparent 70%), radial-gradient(500px 300px at 55% 95%, rgba(28, 61, 115, .3), transparent 70%); }
.page-head h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: 1.04; max-width: 18ch; margin: 0 auto; }
.page-head h1 em { font-family: var(--serif); font-style: italic; background: linear-gradient(90deg, var(--gold), var(--gold-light)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.page-head .lede { margin: 24px auto 0; font-size: 19px; color: #B7C2D2; max-width: 58ch; }
.page-head .meta { margin-top: 20px; font-size: 14px; color: var(--muted); }
.page-head .cat { display: inline-block; margin-bottom: 18px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--gold-light); background: rgba(228, 179, 66, .14); border: 1px solid rgba(228, 179, 66, .35); }
.page-head.left { text-align: left; }
.page-head.left h1, .page-head.left .lede { margin-left: 0; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 6px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.faq details[open] { border-color: rgba(228, 179, 66, .45); background: rgba(228, 179, 66, .04); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 22px 26px; font-family: var(--display); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(228, 179, 66, .14); font-family: var(--body); font-size: 1.3rem; color: var(--gold); transition: transform .3s var(--spring); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--gold-light); }
.faq .answer { padding: 0 26px 24px; color: var(--muted); max-width: 70ch; }
.faq .answer p + p { margin-top: 12px; }

/* Texte long : articles et pages légales */
.prose { padding-top: 24px; padding-bottom: 96px; font-size: 18px; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); line-height: 1.15; margin-top: 2em; }
.prose h3 { font-family: var(--body); font-weight: 600; font-size: 1.15rem; margin-top: 1.8em; }
.prose p, .prose li { color: #C3CCD9; }
.prose strong { color: #fff; font-weight: 600; }
.prose a { color: var(--gold); text-underline-offset: 3px; }
.prose a.btn { color: #0B1220; text-decoration: none; }
.prose a.btn.quiet { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--gold); }
.prose blockquote { margin-left: 0; padding: 18px 24px; border-radius: 0 14px 14px 0; border-left: 3px solid var(--gold); background: rgba(228, 179, 66, .06); font-family: var(--serif); font-style: italic; font-size: 1.12em; }
.prose blockquote p { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; font-size: 14px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.prose img { border-radius: 6px; }

/* Encadré d'appel à l'action */
.end-cta { position: relative; isolation: isolate; overflow: hidden; margin-top: 64px; padding: 44px 40px; border-radius: 6px; text-align: center; border: 1px solid rgba(228, 179, 66, .35); background: rgba(12, 19, 32, .9); }
.end-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(400px 220px at 15% 0%, rgba(228, 179, 66, .22), transparent 70%), radial-gradient(420px 240px at 90% 100%, rgba(45, 95, 168, .3), transparent 70%); }
.end-cta h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.12; }
.end-cta p { margin: 14px auto 0; max-width: 52ch; color: #B7C2D2; }
.end-cta .actions { justify-content: center; margin-top: 28px; }

/* Bandeau final de l'accueil */
.closing { position: relative; isolation: isolate; overflow: clip; text-align: center; padding: 140px 0 150px; border-top: 1px solid var(--line); }
.closing h2 { font-size: clamp(2.7rem, 6vw, 5rem); line-height: 1.03; max-width: 16ch; margin: 0 auto; position: relative; z-index: 3; }
.closing .lede { position: relative; z-index: 3; margin: 24px auto 0; color: #B7C2D2; font-size: 19px; max-width: 52ch; }
.closing .actions { position: relative; z-index: 3; justify-content: center; }

/* ---------- Formulaire ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 48px; align-items: start; padding-bottom: 120px; }
.form-card { padding: 36px; border-radius: 6px; background: rgba(12, 19, 32, .85); border: 1px solid var(--line); box-shadow: 0 40px 100px -50px rgba(45, 95, 168, .7); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.field label small { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select { width: 100%; padding: 14px 16px; font: 400 16px var(--body); color: var(--ink); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 4px; transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); background: rgba(228, 179, 66, .05); box-shadow: 0 0 0 4px rgba(228, 179, 66, .15); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--gold); width: 17px; height: 17px; flex: none; }
.consent a { color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 16px 20px; border-radius: 12px; margin-bottom: 26px; background: rgba(74, 222, 128, .08); border: 1px solid rgba(74, 222, 128, .4); }
.notice.error { background: rgba(242, 139, 124, .08); border-color: rgba(242, 139, 124, .45); }
.aside-stack { display: grid; gap: 16px; }
.aside-block { padding: 26px 26px 24px; border-radius: 6px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-top: 2px solid var(--gold); }
.aside-block:nth-child(2) { --c: var(--violet); } .aside-block:nth-child(3) { --c: var(--teal); }
.aside-block h2 { font-size: 1.45rem; }
.aside-block p { margin-top: 10px; color: var(--muted); }
.aside-block .mail { display: inline-block; margin-top: 10px; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--gold); text-decoration: none; word-break: break-all; }

/* ---------- Pied de page ---------- */
.foot { position: relative; border-top: 1px solid var(--line); padding: 72px 0 40px; font-size: 14.5px; color: var(--muted); background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent 40%); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.foot .mark { margin-bottom: 18px; }
.foot h2 { font-family: var(--body); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 0 0 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { text-decoration: none; color: var(--muted); transition: color .2s; }
.foot a:hover { color: var(--gold-light); }
.foot a.btn, .foot a.btn:hover { color: #0B1220; }
.foot .legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* 404 */
.lost { position: relative; isolation: isolate; overflow: clip; padding: 150px 0 170px; text-align: center; }
.lost h1 { position: relative; z-index: 3; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.04; max-width: 16ch; margin: 0 auto; }
.lost p { position: relative; z-index: 3; margin-top: 22px; color: #B7C2D2; font-size: 19px; }
.lost .actions { position: relative; z-index: 3; justify-content: center; }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Écrans plus étroits ---------- */
@media (max-width: 1180px) {
  .note { display: none; }
  .wrap { padding: 0 32px; }
  .cards.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
  .split, .contact-grid, .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-inner > .curve { max-width: 640px; }
  .split .head { text-align: center; margin: 0 auto; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .steps::before { display: none; }
  .stage { grid-template-columns: 72px 1fr; }
  .stage > div:last-child { grid-column: 2; }
  .post-grid, .cards { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .menu-toggle { display: inline-block; }
  .top nav { gap: 12px; }
  .top nav ul { display: none; position: absolute; top: 76px; left: 0; right: 0; z-index: 50; flex-direction: column; gap: 0; padding: 10px 32px 20px; background: rgba(8, 13, 21, .97); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(0, 0, 0, .55); }
  .top nav.open ul { display: flex; }
  .top nav ul a { display: block; padding: 14px 0; font-size: 18px; color: var(--ink); }
  .top nav ul a::after { display: none; }
  .top nav ul .menu-contact { display: block; }
  .top nav ul .menu-contact a { color: var(--gold); }
}
@media (max-width: 760px) {
  .wrap { padding: 0 22px; }
  body { font-size: 16.5px; }
  .mark span { display: none; }
  .top nav .btn { display: none; }
  .top nav ul { padding: 10px 22px 20px; }
  .hero-inner { padding-top: 84px; padding-bottom: 96px; }
  .hero .lede { font-size: 17.5px; }
  .hero .actions .btn { width: 100%; }
  .section { padding: 80px 0; }
  .head { margin-bottom: 44px; }
  .stats { grid-template-columns: 1fr; }
  .stat { padding: 28px 0; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .cards, .post-grid, .cards.four { grid-template-columns: 1fr; }
  .duel { grid-template-columns: 1fr; }
  .duel-side { padding: 30px 22px 24px; }
  .duel li, .duel li.last { min-height: 0; }
  .steps { grid-template-columns: 1fr; }
  .stage { grid-template-columns: 1fr; gap: 14px; padding: 26px 22px; }
  .stage > div:last-child { grid-column: auto; }
  .stage h2 { padding-top: 0; }
  .ledger li { grid-template-columns: 1fr; gap: 6px; padding: 20px 22px; }
  .form-card { padding: 24px 20px; }
  .form { grid-template-columns: 1fr; }
  .page-head { padding-top: 72px; padding-bottom: 52px; }
  .prose { font-size: 17px; }
  .end-cta { padding: 32px 22px; }
  .end-cta .btn { width: 100%; }
  .closing { padding: 96px 0 104px; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .curve .us { stroke-dashoffset: 0; }
  .curve .sig circle { opacity: 1; }
  .steps::before { transform: none; }
}
