/* ==========================================================================
   IAscension : design system
   Charte : Plus Jakarta Sans (titres), Inter (texte), orange #F07E26, encre #1F2A37,
   papier chaud #FBF8F4. Un seul motif décoratif : la diagonale montante du A.
   ========================================================================== */

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/PlusJakartaSans-variable.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-roman.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #1F2A37;
  --ink-2: #27323F;
  --ink-3: #313E4D;
  --slate: #5B6775;
  --mist: #A9B4C0;
  --mist-2: #CDD4DB;
  --paper: #FBF8F4;
  --paper-2: #F3EEE6;
  --sand: #E6E1DA;
  --sand-2: #D8D1C7;
  --orange: #F07E26;
  --orange-deep: #C8631A;
  --orange-tint: #FCEEE1;
  --ok: #1B7F4B;
  --alert: #B3261E;

  --ff-head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --ff-body: 'Inter', system-ui, sans-serif;

  --fs-0: 0.9rem;
  --fs-1: 1.0625rem;
  --fs-2: 1.25rem;
  --fs-3: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  --fs-4: clamp(1.75rem, 1.4rem + 1.4vw, 2.375rem);
  --fs-5: clamp(2.1rem, 1.6rem + 2.2vw, 3.25rem);
  --fs-6: clamp(2.2rem, 1.4rem + 3.6vw, 4.75rem);

  --measure: 64ch;
  --container: 1200px;
  --gutter: clamp(18px, 4vw, 48px);
  --radius: 6px;
  --radius-lg: 14px;
  --shadow-ink: 0 18px 50px -24px rgba(31, 42, 55, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --diag: 4.5vw;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: var(--fs-1);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--orange-deep); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: var(--radius); }
.skip:focus { left: 8px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--ff-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-5); font-weight: 800; }
h2 { font-size: var(--fs-4); }
h3 { font-size: var(--fs-3); }
h4 { font-size: var(--fs-2); }
p { margin: 0 0 1em; max-width: var(--measure); }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: .35em; }
strong, b { font-weight: 650; }
small { font-size: var(--fs-0); }
hr { border: 0; border-top: 1px solid var(--sand); margin: 2rem 0; }
blockquote { margin: 1.5rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 3px solid var(--orange); color: var(--ink-3); font-size: var(--fs-2); line-height: 1.45; max-width: var(--measure); }
table { border-collapse: collapse; width: 100%; font-size: var(--fs-0); }
th, td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--sand); vertical-align: top; }
th { font-family: var(--ff-head); font-weight: 700; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.narrow { max-width: 760px; }
.lead { font-size: var(--fs-2); line-height: 1.5; color: var(--ink-3); }
.muted { color: var(--slate); }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul li + li { margin-top: .3em; }
.prose img { border-radius: var(--radius-lg); }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--ff-head); font-weight: 700; font-size: 1rem; line-height: 1;
  padding: .95rem 1.35rem; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .25s;
}
.btn--primary { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn--primary:hover { background: var(--orange-deep); border-color: var(--orange-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(200, 99, 26, .8); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--sand-2); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.btn--ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--ink:hover { background: var(--ink-3); color: #fff; transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--paper); color: var(--ink); transform: translateY(-2px); }
.btn--lg { font-size: 1.08rem; padding: 1.15rem 1.7rem; }
.btn--sm { font-size: .9rem; padding: .65rem 1rem; }
.section--ink .btn--ghost, .hero .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.section--ink .btn--ghost:hover, .hero .btn--ghost:hover { border-color: #fff; color: #fff; }
.link { font-family: var(--ff-head); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--orange); padding-bottom: 1px; }
.link:hover { color: var(--orange-deep); }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--sand); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; height: 76px; }
.brand { display: inline-flex; align-items: center; position: relative; }
.brand img { height: 34px; width: auto; }
.brand__white { display: none; }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav ul { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a:not(.btn) { font-family: var(--ff-head); font-weight: 600; font-size: .98rem; text-decoration: none; color: var(--ink-3); padding: .4rem 0; position: relative; white-space: nowrap; }
.site-nav a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--orange); transition: right .3s var(--ease); }
.site-nav a:not(.btn):hover::after, .site-nav a[aria-current="page"]::after { right: 0; }
.site-nav__cta { display: flex; gap: .6rem; }
.site-nav__cta .btn { padding: .7rem 1.1rem; font-size: .92rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform .3s, top .3s; top: 16px; }
.nav-toggle span + span { top: 26px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span + span { top: 21px; transform: rotate(-45deg); }

/* Dark hero pages: transparent header over the hero, white logo, then paper on scroll */
.page-home .site-header:not(.is-scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.page-home .site-header:not(.is-scrolled) .brand__ink { display: none; }
.page-home .site-header:not(.is-scrolled) .brand__white { display: block; }
.page-home .site-header:not(.is-scrolled) .site-nav a:not(.btn) { color: #fff; }
.page-home .site-header:not(.is-scrolled) .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .4); }
.page-home .site-header:not(.is-scrolled) .nav-toggle span { background: #fff; }

@media (max-width: 960px) {
  .site-nav { position: fixed; inset: 76px 0 0 0; background: var(--paper); flex-direction: column; align-items: flex-start; padding: 1.5rem var(--gutter) 2rem; gap: 1.5rem; transform: translateX(100%); transition: transform .35s var(--ease); overflow: auto; }
  .site-nav.is-open { transform: none; }
  .site-nav ul { flex-direction: column; gap: .2rem; width: 100%; }
  .site-nav a:not(.btn) { display: block; font-size: 1.35rem; padding: .6rem 0; color: var(--ink) !important; }
  .site-nav__cta { flex-direction: column; width: 100%; }
  .site-nav__cta .btn { width: 100%; }
  .nav-toggle { display: block; }
  .page-home .site-header:not(.is-scrolled) .site-nav a:not(.btn) { color: var(--ink); }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-header { background: var(--paper); }
  body.nav-open .brand__white { display: none !important; }
  body.nav-open .brand__ink { display: block !important; }
  body.nav-open .nav-toggle span { background: var(--ink) !important; }
}

/* Sections --------------------------------------------------------------- */
.section { padding-block: clamp(3.5rem, 9vw, 7.5rem); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }
.section--ink .muted, .section--ink .lead { color: var(--mist-2); }
.section--ink a:hover { color: var(--orange); }
.section--paper2 { background: var(--paper-2); }
.section--tint { background: var(--orange-tint); }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { margin-bottom: .4em; }
.section-head .lead { margin: 0; }
/* The rising diagonal: bottom edge climbs to the right, like the slit of the A */
.diag-bottom { padding-bottom: calc(clamp(3.5rem, 9vw, 7.5rem) + var(--diag)); clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--diag)), 0 100%); }
.diag-top { padding-top: calc(clamp(3.5rem, 9vw, 7.5rem) + var(--diag)); clip-path: polygon(0 var(--diag), 100% 0, 100% 100%, 0 100%); margin-top: calc(-1 * var(--diag)); }

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; background: var(--ink); color: #fff;
  min-height: clamp(560px, 92vh, 900px); display: flex; align-items: center;
  margin-top: -76px; padding-top: 76px;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__inner { position: relative; z-index: 2; padding-block: clamp(4rem, 10vh, 7rem) clamp(5rem, 12vh, 9rem); }
.hero h1 { font-size: var(--fs-6); max-width: 15ch; margin-bottom: .45em; color: #fff; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; transform: translateY(110%); animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: .15s; }
.hero h1 .line:nth-child(2) > span { animation-delay: .27s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .39s; }
.hero .lead, .hero__actions, .hero__proof { opacity: 0; animation: fade-up .9s cubic-bezier(.2, .7, .2, 1) forwards; }
.hero .lead { animation-delay: .6s; }
.hero__actions { animation-delay: .72s; }
.hero__proof { animation-delay: .84s; }
@keyframes rise { to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero h1 .line > span, .hero .lead, .hero__actions, .hero__proof { animation: none; transform: none; opacity: 1; }
}
.hero .lead { max-width: 52ch; color: var(--mist-2); font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.5rem; }
.hero__proof { display: flex; flex-wrap: wrap; gap: .4rem 1.75rem; color: var(--mist); font-size: .95rem; margin: 0; padding: 0; list-style: none; }
.hero__proof li { position: relative; padding-left: 1rem; margin: 0; }
.hero__proof li::before { content: ''; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; background: var(--orange); transform: skewX(-20deg); }
.hero__scroll { position: absolute; right: var(--gutter); bottom: calc(var(--diag) + 1.2rem); z-index: 2; color: var(--mist); font-size: .85rem; font-family: var(--ff-head); font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: .5rem; }
.hero__scroll::after { content: ''; width: 1px; height: 38px; background: linear-gradient(var(--orange), transparent); }
@media (max-width: 720px) { .hero__scroll { display: none; } .hero { min-height: 0; } }

/* Page hero (light, inner pages) */
.page-hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 6vw, 4.5rem); }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { max-width: 60ch; }
.page-hero--split { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.page-hero--split img { border-radius: var(--radius-lg); }
@media (max-width: 860px) { .page-hero--split { grid-template-columns: 1fr; } .page-hero--split img { max-width: 520px; } }
.crumbs { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .9rem; color: var(--slate); }
.crumbs li + li::before { content: '/'; margin-right: .4rem; color: var(--mist); }
.crumbs a { text-decoration: none; }

/* Grids ------------------------------------------------------------------ */
.grid { display: grid; gap: clamp(1.25rem, 3vw, 2.5rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split--text-right { grid-template-columns: .9fr 1.1fr; }
@media (max-width: 860px) { .split, .split--text-right { grid-template-columns: 1fr; } }
.split img { border-radius: var(--radius-lg); }

/* Constat (home) --------------------------------------------------------- */
.constat { font-family: var(--ff-head); font-weight: 700; font-size: var(--fs-4); line-height: 1.2; letter-spacing: -.015em; max-width: 22ch; margin-bottom: 1rem; }
.constat em { font-style: normal; }
.saisies { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .6rem; max-width: 420px; }
.saisies li { display: flex; align-items: center; gap: .8rem; margin: 0; padding: .7rem 1rem; border: 1px solid var(--sand); border-radius: var(--radius); background: #fff; font-family: var(--ff-head); font-weight: 600; }
.saisies li::before { content: counter(saisie); counter-increment: saisie; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .85rem; flex: none; }
.saisies { counter-reset: saisie; }
.saisies li:last-child::before { background: var(--orange); }

/* Poles (offer) ---------------------------------------------------------- */
.poles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.pole { grid-column: span 2; position: relative; display: flex; flex-direction: column; gap: .6rem; padding: 1.6rem 1.5rem 1.5rem; background: #fff; border: 1px solid var(--sand); border-radius: var(--radius-lg); text-decoration: none; color: var(--ink); transition: border-color .25s, transform .3s var(--ease); overflow: hidden; }
.pole:hover { border-color: var(--ink); transform: translateY(-3px); color: var(--ink); }
.pole--core { background: var(--ink); color: #fff; border-color: var(--ink); }
.pole--core:hover { color: #fff; border-color: var(--orange); }
.pole--wide { grid-column: span 3; }
.pole__letter { font-family: var(--ff-head); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--orange); }
.pole h3 { margin: 0; font-size: var(--fs-3); }
.pole p { margin: 0; color: var(--slate); font-size: .98rem; flex: 1; }
.pole--core p { color: var(--mist-2); }
.pole__price { font-family: var(--ff-head); font-weight: 700; font-size: .95rem; margin-top: .4rem; }
.pole--core .pole__price { color: var(--orange); }
.pole__tag { position: absolute; top: 1.2rem; right: 1.2rem; font-size: .78rem; font-family: var(--ff-head); font-weight: 700; color: var(--orange); border: 1px solid currentColor; padding: .2rem .55rem; border-radius: 999px; }
@media (max-width: 960px) { .pole, .pole--core, .pole--wide { grid-column: span 3; } }
@media (max-width: 620px) { .poles { grid-template-columns: 1fr; } .pole, .pole--core, .pole--wide { grid-column: auto; } }

/* Method (four verbs, dark) ---------------------------------------------- */
.verbs { display: grid; grid-template-columns: 220px 1fr; gap: clamp(2rem, 5vw, 5rem); }
.verbs__list { list-style: none; margin: 0; padding: 0; position: sticky; top: 110px; align-self: start; }
.verbs__list::before { content: ''; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 1px; background: var(--ink-3); }
.verbs__list::after { content: ''; position: absolute; left: 7px; top: 12px; width: 1px; height: var(--progress, 0%); background: var(--orange); transition: height .4s var(--ease); }
.verbs__list li { margin: 0; position: relative; padding: .9rem 0 .9rem 2rem; font-family: var(--ff-head); font-weight: 700; font-size: var(--fs-3); color: var(--mist); transition: color .3s; }
.verbs__list li::before { content: ''; position: absolute; left: 0; top: 1.5rem; width: 15px; height: 15px; border-radius: 50%; background: var(--ink); border: 1px solid var(--ink-3); transition: background-color .3s, border-color .3s; }
.verbs__list li.is-active { color: #fff; }
.verbs__list li.is-active::before { background: var(--orange); border-color: var(--orange); }
.verb { padding-block: clamp(1.5rem, 4vw, 3rem); border-bottom: 1px solid var(--ink-3); display: grid; grid-template-columns: 1fr 200px; gap: 2rem; align-items: center; }
.verb:last-child { border-bottom: 0; }
.verb h3 { color: #fff; font-size: var(--fs-4); margin-bottom: .4em; }
.verb h3 small { display: block; font-family: var(--ff-body); font-weight: 500; font-size: .95rem; color: var(--orange); letter-spacing: 0; margin-bottom: .5rem; }
.verb p { color: var(--mist-2); margin: 0; }
.verb img { width: 200px; border-radius: var(--radius-lg); opacity: .92; }
@media (max-width: 860px) { .verbs { grid-template-columns: 1fr; } .verbs__list { display: none; } .verb { grid-template-columns: 1fr; } .verb img { width: 160px; } }

/* Engagements ------------------------------------------------------------ */
.engagements { counter-reset: eng; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.engagements li { margin: 0; padding-top: 1.2rem; border-top: 2px solid var(--ink); }
.engagements li::before { counter-increment: eng; content: counter(eng); font-family: var(--ff-head); font-weight: 800; font-size: 2.2rem; color: var(--orange); display: block; line-height: 1; margin-bottom: .6rem; }
.engagements h3 { font-size: var(--fs-2); margin-bottom: .4em; }
.engagements p { margin: 0; color: var(--slate); }
@media (max-width: 760px) { .engagements { grid-template-columns: 1fr; } }

/* Cases ------------------------------------------------------------------ */
.cases { display: grid; gap: 1.2rem; }
.case { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: center; padding: 1.5rem; background: #fff; border: 1px solid var(--sand); border-radius: var(--radius-lg); text-decoration: none; color: var(--ink); transition: border-color .25s; }
.case:hover { border-color: var(--ink); color: var(--ink); }
.case img { border-radius: var(--radius); }
.case h3 { margin-bottom: .2em; }
.case__client { color: var(--slate); font-size: .95rem; margin-bottom: .6rem; }
.case p:last-child { margin: 0; }
.case__figures { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: .8rem 0 0; padding: 0; list-style: none; }
.case__figures li { margin: 0; font-size: .92rem; color: var(--slate); }
.case__figures b { font-family: var(--ff-head); font-size: 1.25rem; color: var(--ink); margin-right: .3rem; }
@media (max-width: 720px) { .case { grid-template-columns: 1fr; } .case img { max-width: 320px; } }
.case-full { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); padding-block: clamp(2rem, 5vw, 4rem); border-top: 1px solid var(--sand); }
.case-full:first-of-type { border-top: 0; }
.case-full__head { position: sticky; top: 100px; align-self: start; }
.case-full dl { margin: 0; }
.case-full dt { font-family: var(--ff-head); font-weight: 700; margin-top: 1.2rem; }
.case-full dd { margin: .3rem 0 0; color: var(--ink-3); }
.case-full .constat-box { margin-top: 1.5rem; padding: 1.2rem 1.4rem; background: var(--orange-tint); border-radius: var(--radius-lg); border-left: 3px solid var(--orange); }
.case-full .constat-box p { margin: 0; }
@media (max-width: 860px) { .case-full { grid-template-columns: 1fr; } .case-full__head { position: static; } }

/* Band CTA --------------------------------------------------------------- */
.band { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.band img { border-radius: var(--radius-lg); }
.band h2 { max-width: 18ch; }
.band .btn { margin-top: .5rem; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; } }

/* Articles --------------------------------------------------------------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); }
@media (max-width: 960px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .posts { grid-template-columns: 1fr; } }
.post { display: flex; flex-direction: column; gap: .7rem; text-decoration: none; color: var(--ink); }
.post img { border-radius: var(--radius-lg); aspect-ratio: 16/9; object-fit: cover; transition: transform .4s var(--ease); }
.post:hover img { transform: translateY(-4px); }
.post:hover { color: var(--ink); }
.post h3 { font-size: var(--fs-2); margin: 0; }
.post p { margin: 0; color: var(--slate); font-size: .95rem; }
.post__meta { font-size: .85rem; color: var(--slate); display: flex; gap: .6rem; }
.post__meta span + span::before { content: '/'; margin-right: .6rem; color: var(--mist); }
.cat-filters { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 2rem; }
.cat-filters li { margin: 0; }
.cat-filters a { display: inline-block; padding: .45rem .9rem; border: 1px solid var(--sand-2); border-radius: 999px; text-decoration: none; font-family: var(--ff-head); font-weight: 600; font-size: .9rem; }
.cat-filters a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.article-layout { display: grid; grid-template-columns: 1fr 260px; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.article-body { max-width: 720px; }
.article-body h2 { font-size: var(--fs-3); margin-top: 2.2em; scroll-margin-top: 100px; }
.article-body h3 { font-size: var(--fs-2); margin-top: 1.6em; }
.article-body p, .article-body li { font-size: 1.1rem; line-height: 1.7; }
.article-body blockquote p { font-size: inherit; }
.toc { position: sticky; top: 100px; font-size: .92rem; }
.toc h2 { font-size: 1rem; margin-bottom: .6rem; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--sand); }
.toc li { margin: 0; }
.toc a { display: block; padding: .35rem 0 .35rem 1rem; text-decoration: none; color: var(--slate); border-left: 2px solid transparent; margin-left: -1px; }
.toc a:hover, .toc a.is-active { color: var(--ink); border-left-color: var(--orange); }
.article-hero img { border-radius: var(--radius-lg); aspect-ratio: 16/9; object-fit: cover; margin-top: 1.5rem; }
.article-faq { margin-top: 3rem; }
.article-sources { margin-top: 2rem; font-size: .9rem; color: var(--slate); }
.article-sources a { word-break: break-all; }
.article-cta { margin-top: 3rem; padding: 1.6rem 1.8rem; background: var(--ink); color: #fff; border-radius: var(--radius-lg); display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
.article-cta h2 { color: #fff; font-size: var(--fs-2); margin-bottom: .3em; }
.article-cta p { margin: 0; color: var(--mist-2); }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } .toc { position: static; } .article-cta { grid-template-columns: 1fr; } }
.pager { display: flex; gap: .5rem; justify-content: center; margin-top: 3rem; }

/* FAQ -------------------------------------------------------------------- */
.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--sand); }
.faq details:last-child { border-bottom: 1px solid var(--sand); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; font-family: var(--ff-head); font-weight: 700; font-size: 1.1rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: .4rem; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: translateY(-70%) rotate(45deg); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { padding: 0 0 1.2rem; margin: 0; color: var(--ink-3); }

/* Offer detail ----------------------------------------------------------- */
.offers { display: grid; gap: 1rem; }
.offer { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 1.5rem; align-items: start; padding: 1.4rem 1.6rem; background: #fff; border: 1px solid var(--sand); border-radius: var(--radius-lg); }
.offer h3 { font-size: var(--fs-2); margin: 0 0 .3em; }
.offer p { margin: 0; color: var(--slate); font-size: .98rem; }
.offer__format { font-size: .95rem; color: var(--ink-3); }
.offer__format b { display: block; font-family: var(--ff-head); font-weight: 700; color: var(--ink); }
.offer__price { text-align: right; font-family: var(--ff-head); font-weight: 800; font-size: 1.2rem; white-space: nowrap; }
.offer__price small { display: block; font-family: var(--ff-body); font-weight: 500; font-size: .82rem; color: var(--orange-deep); margin-top: .2rem; white-space: normal; }
@media (max-width: 760px) { .offer { grid-template-columns: 1fr; } .offer__price { text-align: left; } }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.points li { margin: 0; padding-left: 1.4rem; position: relative; }
.points li::before { content: ''; position: absolute; left: 0; top: .55em; width: 10px; height: 4px; background: var(--orange); transform: skewX(-30deg); }
.pole-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--sand); font-family: var(--ff-head); font-weight: 700; }
.pole-nav a { text-decoration: none; }
.pole-nav small { display: block; font-family: var(--ff-body); font-weight: 400; color: var(--slate); }
.pole-nav .next { text-align: right; margin-left: auto; }

/* Forms ------------------------------------------------------------------ */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.field label { display: block; font-family: var(--ff-head); font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.field label small { font-weight: 400; color: var(--slate); font-family: var(--ff-body); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--sand-2); border-radius: var(--radius); padding: .8rem .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(240, 126, 38, .25); }
.field textarea { min-height: 150px; resize: vertical; }
.field--error input, .field--error textarea { border-color: var(--alert); }
.field__error { color: var(--alert); font-size: .9rem; margin-top: .3rem; }
.form-error { color: var(--alert); font-weight: 600; }
.form-ok { color: var(--ok); font-weight: 600; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; color: var(--ink-3); }
.check input { margin-top: .3rem; width: 18px; height: 18px; accent-color: var(--orange); flex: none; }
.form__note { font-size: .85rem; color: var(--slate); }
.form-card { background: #fff; border: 1px solid var(--sand); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-aside h2 { font-size: var(--fs-3); }
.contact-aside dl { margin: 0; }
.contact-aside dt { font-family: var(--ff-head); font-weight: 700; margin-top: 1.2rem; }
.contact-aside dd { margin: .2rem 0 0; color: var(--ink-3); }
.news-form { display: flex; gap: .5rem; }
.news-form input { flex: 1 1 0; width: 0; min-width: 0; font: inherit; padding: .75rem .9rem; border-radius: 999px; border: 1.5px solid var(--ink-3); background: var(--ink-2); color: #fff; }
.news-form input::placeholder { color: var(--mist); }
.news-form input:focus { outline: 0; border-color: var(--orange); }
.news-form .btn { padding: .75rem 1.1rem; font-size: .92rem; }

/* Autodiag --------------------------------------------------------------- */
.quiz { max-width: 760px; margin-inline: auto; }
.quiz__progress { height: 4px; background: var(--sand); border-radius: 2px; margin-bottom: 2rem; overflow: hidden; }
.quiz__progress span { display: block; height: 100%; width: 0; background: var(--orange); transition: width .4s var(--ease); }
.quiz__step { display: none; }
.quiz__step.is-current, .no-js .quiz__step { display: block; }
.quiz__count { font-family: var(--ff-head); font-weight: 700; color: var(--orange-deep); font-size: .95rem; margin-bottom: .5rem; }
.quiz__q { font-size: var(--fs-3); margin-bottom: .4em; }
.quiz__help { color: var(--slate); margin-bottom: 1.2rem; }
.choices { display: grid; gap: .6rem; margin: 1.2rem 0 1.6rem; }
.choice { display: flex; align-items: center; gap: .9rem; padding: .95rem 1.1rem; background: #fff; border: 1.5px solid var(--sand-2); border-radius: var(--radius-lg); cursor: pointer; font-family: var(--ff-head); font-weight: 600; transition: border-color .2s, background-color .2s; }
.choice:hover { border-color: var(--ink); }
.choice input { width: 20px; height: 20px; accent-color: var(--orange); flex: none; margin: 0; }
.choice:has(input:checked) { border-color: var(--orange); background: var(--orange-tint); }
.quiz__nav { display: flex; justify-content: space-between; gap: 1rem; }
.no-js .quiz__nav, .no-js .quiz__progress { display: none; }
.radar { width: min(100%, 420px); margin-inline: auto; }
.radar polygon.area { fill: rgba(240, 126, 38, .28); stroke: var(--orange); stroke-width: 2; }
.radar .grid-line { fill: none; stroke: var(--sand-2); }
.radar .axis { stroke: var(--sand-2); }
.radar text { font-family: var(--ff-head); font-weight: 600; font-size: 12px; fill: var(--ink-3); }
.score-big { font-family: var(--ff-head); font-weight: 800; font-size: clamp(3.5rem, 8vw, 6rem); line-height: 1; letter-spacing: -.03em; }
.score-big small { font-size: .35em; font-weight: 600; color: var(--slate); letter-spacing: 0; }
.axes { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.axes li { margin: 0; padding: 1rem 1.2rem; background: #fff; border: 1px solid var(--sand); border-radius: var(--radius-lg); }
.axes__head { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--ff-head); font-weight: 700; margin-bottom: .4rem; }
.axes__bar { height: 6px; background: var(--paper-2); border-radius: 3px; overflow: hidden; margin-bottom: .6rem; }
.axes__bar span { display: block; height: 100%; background: var(--orange); }
.axes p { margin: 0; font-size: .95rem; color: var(--ink-3); }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .result-grid { grid-template-columns: 1fr; } }
.answers-table td:first-child { color: var(--slate); width: 55%; }

/* Resources -------------------------------------------------------------- */
.resource-card { display: grid; grid-template-columns: 200px 1fr; gap: 1.6rem; align-items: center; padding: 1.5rem; background: #fff; border: 1px solid var(--sand); border-radius: var(--radius-lg); text-decoration: none; color: var(--ink); }
.resource-card:hover { border-color: var(--ink); color: var(--ink); }
.resource-card img { border-radius: var(--radius); box-shadow: var(--shadow-ink); }
.resource-card p { margin: 0 0 .6rem; color: var(--slate); }
@media (max-width: 620px) { .resource-card { grid-template-columns: 1fr; } .resource-card img { max-width: 220px; } }
.cover { box-shadow: var(--shadow-ink); border-radius: var(--radius); max-width: 360px; }

/* Stats strip ------------------------------------------------------------ */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.strip div { border-left: 2px solid var(--orange); padding-left: 1rem; }
.strip b { display: block; font-family: var(--ff-head); font-weight: 800; font-size: var(--fs-4); line-height: 1.1; }
.strip small { display: block; color: var(--slate); font-size: .95rem; }
.section--ink .strip small { color: var(--mist); }
@media (max-width: 620px) { .strip { grid-template-columns: 1fr; } }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--mist-2); padding-block: clamp(3rem, 7vw, 5rem) 2rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: clamp(2rem, 4vw, 4rem); }
.footer-grid > * { min-width: 0; }
.footer-brand img { height: 36px; width: auto; margin-bottom: 1.2rem; }
.footer-brand p { font-size: .95rem; max-width: 40ch; }
.footer-brand__where { color: var(--mist); }
.footer-col h2 { font-size: 1rem; color: #fff; margin-bottom: .9rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 0 0 .5rem; }
.footer-col a { text-decoration: none; color: var(--mist-2); }
.footer-col a:hover { color: var(--orange); }
.footer-news p { font-size: .95rem; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--ink-3); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .88rem; color: var(--mist); }
.footer-bottom p { margin: 0; }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.2rem; margin: 0; padding: 0; }
.footer-bottom li { margin: 0; }
.footer-bottom a { color: var(--mist); text-decoration: none; }
.footer-bottom a:hover { color: var(--orange); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .footer-grid { grid-template-columns: 1fr; } }

/* Reveal (one orchestrated entrance per section, JS-driven) -------------- */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.no-js .reveal, .reduced-motion .reveal { opacity: 1; transform: none; }

/* Admin ------------------------------------------------------------------ */
.page-admin { background: var(--paper-2); }
.admin-bar { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--sand); margin-bottom: 1.5rem; font-family: var(--ff-head); font-weight: 600; }
.admin-bar a { text-decoration: none; }
.admin-bar .right { margin-left: auto; }
.admin-table { background: #fff; border-radius: var(--radius-lg); overflow: auto; }
.admin-table table { min-width: 900px; }
.admin-table th { background: var(--paper); position: sticky; top: 0; }
.admin-table tr:hover td { background: var(--orange-tint); }
.tag { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .78rem; font-family: var(--ff-head); font-weight: 700; background: var(--sand); }
.tag--nouveau { background: var(--orange-tint); color: var(--orange-deep); }
.tag--rdv, .tag--client, .tag--qualifie { background: #DCEFE3; color: var(--ok); }
.tag--perdu, .tag--desinscrit { background: #F3DCDC; color: var(--alert); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.stats div { background: #fff; border-radius: var(--radius-lg); padding: 1rem 1.2rem; }
.stats b { display: block; font-family: var(--ff-head); font-size: 1.8rem; }
.stats span { color: var(--slate); font-size: .9rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.admin-form { background: #fff; border-radius: var(--radius-lg); padding: 1.5rem; }
.admin-form textarea.code { font-family: ui-monospace, monospace; font-size: .9rem; min-height: 420px; }
.admin-filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.admin-filters input, .admin-filters select { font: inherit; padding: .55rem .8rem; border: 1px solid var(--sand-2); border-radius: var(--radius); }
pre.json { background: var(--paper); padding: 1rem; border-radius: var(--radius); font-size: .82rem; overflow: auto; max-height: 300px; white-space: pre-wrap; }

/* Print ------------------------------------------------------------------ */
@media print {
  .site-header, .site-footer, .hero__canvas, .hero__scroll, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .section--ink { background: #fff; color: #000; }
}

/* Pages locales ------------------------------------------------------------ */
.geo-blocs { margin-top: clamp(2rem, 5vw, 3.5rem); }
.geo-blocs h3 { font-size: var(--fs-2); }
.geo-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.geo-card { background: #fff; border: 1px solid var(--sand); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; flex-direction: column; gap: .7rem; }
.geo-card h3 { font-size: var(--fs-2); margin: 0; }
.geo-card p { margin: 0; }
.geo-card__constat { color: var(--slate); }
.geo-card__lien { margin-top: auto !important; padding-top: .4rem; }
.geo-aides { background: #fff; border: 1px solid var(--sand); border-radius: var(--radius-lg); padding: 1.5rem 1.75rem; align-self: start; }
.geo-aides h3 { font-size: var(--fs-2); margin-bottom: .8rem; }
.geo-aides ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.geo-aides li { margin: 0; padding-left: 1rem; border-left: 2px solid var(--orange); font-size: .95rem; color: var(--ink-3); }
.geo-aides b { display: block; color: var(--ink); font-family: var(--ff-head); }
.sources { max-width: 760px; margin-top: clamp(2rem, 5vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid var(--sand); font-size: .9rem; color: var(--slate); }
.sources h3 { font-size: 1rem; margin-bottom: .6rem; }
.sources ul { margin: 0 0 .8rem; padding-left: 1.2rem; }
.sources li { margin: 0 0 .3rem; }
.sources li + li { margin-top: .25rem; }
.sources p { margin: 0; }
.footer-brand__where a { color: inherit; }
@media (max-width: 860px) { .geo-cards { grid-template-columns: 1fr; } }
