/* ==================================================================
   MAGISTERAI — « La copie de nuit »
   Nuit bleu profond, papier blanc, encre violette.
   Le scroll fait passer la nuit : 23:00 → 07:00, jour J.
   ================================================================== */

/* ---------- Tokens ---------- */
:root {
  --nuit: #0D0B26;
  --nuit-2: #151239;
  --nuit-3: #1F1A52;
  --papier: #F8F6FC;
  --papier-2: #EEEAF7;
  --encre: #5427D8;
  --encre-2: #3E1BAF;
  --violet: #8A4DFF;
  --lilas: #BBA8FF;
  --graphite: #1F1C33;
  --graphite-2: #55506E;
  --marge: #F0568A;
  --fluo: #FFE66B;
  --menthe: #63E6BE;
  --txt: #F1EEFC;
  --txt-2: #B1ABD6;
  --txt-3: #847EAD;
  --sophie: #139A8C;
  --alex: #DC6216;
  --max: #D93B78;

  --f-display: "Ops", "Gloock", Georgia, "Times New Roman", serif;
  --f-body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --f-pencil: "Reenie Beanie", "Caveat", cursive;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --mx: max(12px, calc((100% - var(--wrap)) / 2 - 30px));

  --paper-shadow:
    0 1px 0 rgba(255, 255, 255, .7) inset,
    0 24px 44px -22px rgba(4, 2, 18, .8),
    0 3px 8px rgba(4, 2, 18, .35);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .25 0 0 0 0 .5 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--nuit); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--txt);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--fluo); color: var(--graphite); }
:focus-visible { outline: 2px solid var(--lilas); outline-offset: 3px; border-radius: 6px; }
.paper :focus-visible, .paper:focus-visible { outline-color: var(--encre); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Ciel fixe : la nuit avance avec le scroll (variables posées en JS) */
.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(80% 60% at 50% 115%, var(--sky-glow, rgba(90, 40, 140, 0)) 0%, transparent 70%),
    linear-gradient(180deg, var(--sky-top, #0D0B26), var(--sky-bot, #120E33));
}

/* La page = une copie de nuit : carreaux Seyès + marge rose */
main {
  display: block;
  background-image:
    linear-gradient(90deg, transparent calc(var(--mx) - 1px), rgba(240, 86, 138, .34) calc(var(--mx) - 1px), rgba(240, 86, 138, .34) calc(var(--mx) + 1px), transparent calc(var(--mx) + 1px)),
    repeating-linear-gradient(180deg, rgba(170, 150, 255, .062) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(180deg, rgba(170, 150, 255, .026) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(90deg, rgba(170, 150, 255, .04) 0 1px, transparent 1px 32px);
}

section { padding: clamp(72px, 8.5vw, 120px) var(--gutter); position: relative; }
.section-inner { max-width: var(--wrap); margin: 0 auto; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 68px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .section-subtitle { margin-inline: auto; }

/* Étiquette de section = annotation manuscrite dans la marge */
.section-tag {
  display: inline-flex; align-items: flex-end; gap: 6px;
  font-family: var(--f-hand); font-weight: 600; font-size: 1.6rem; line-height: 1;
  color: var(--lilas);
  transform: rotate(-2.5deg); transform-origin: left bottom;
  margin-bottom: 14px;
}
.section-tag::after {
  content: ""; width: 30px; height: 22px; flex: none; transform: translateY(8px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 30'%3E%3Cpath d='M3 4c10 1 19 6 25 18M21 19.5l7.4 3.6 1.6-8' fill='none' stroke='%23BBA8FF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.section-head.center .section-tag { transform-origin: center bottom; }
.section-title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2.15rem, 3.9vw, 3.3rem); line-height: 1.06; letter-spacing: -.012em;
  color: var(--txt); text-wrap: balance;
}
.section-subtitle {
  margin-top: 18px; max-width: 36em;
  font-size: 1.08rem; line-height: 1.65; color: var(--txt-2); text-wrap: pretty;
}

/* ---------- Papier ---------- */
.paper {
  position: relative;
  background-color: var(--papier);
  background-image: var(--grain);
  color: var(--graphite);
  border-radius: 4px;
  box-shadow: var(--paper-shadow);
}
.paper.ruled, .ruled {
  background-image:
    var(--grain),
    linear-gradient(90deg, transparent 52px, rgba(240, 86, 138, .55) 52px, rgba(240, 86, 138, .55) 53.5px, transparent 53.5px),
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(110, 90, 220, .17) 31px 32px),
    repeating-linear-gradient(180deg, transparent 0 7px, rgba(110, 90, 220, .07) 7px 8px);
}

/* Icônes « encre » qui se dessinent */
.doodle {
  width: 46px; height: 46px; flex: none;
  fill: none; stroke: var(--encre); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round;
}
.js .doodle { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease) var(--d, 0s); }
.js .is-in .doodle, .js .doodle.is-in { stroke-dashoffset: 0; }

/* ---------- Boutons ---------- */
.btn-primary, .btn-white {
  --face: var(--violet); --edge: #4B20B9; --ink: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px; border-radius: 14px;
  font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; color: var(--ink);
  background: var(--face);
  box-shadow: 0 6px 0 var(--edge), 0 14px 30px -8px rgba(110, 60, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .28);
  transform: translateY(0);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .2s;
}
.btn-primary:hover, .btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--edge), 0 18px 34px -8px rgba(110, 60, 255, .6), inset 0 1px 0 rgba(255, 255, 255, .28); }
.btn-primary:active, .btn-white:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--edge), 0 6px 14px -6px rgba(110, 60, 255, .5), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn-white { --face: var(--papier); --edge: #CFC4F0; --ink: var(--encre); box-shadow: 0 6px 0 var(--edge), 0 16px 34px -10px rgba(40, 10, 60, .45); }
.btn-white:hover { box-shadow: 0 8px 0 var(--edge), 0 20px 38px -10px rgba(40, 10, 60, .5); }

.btn-secondary {
  display: inline-flex; align-items: center; padding: 6px 4px; font-weight: 600; text-decoration: none; color: var(--txt);
  background: linear-gradient(transparent 64%, rgba(138, 77, 255, .7) 64%, rgba(138, 77, 255, .7) 88%, transparent 88%) no-repeat 0 0 / 100% 100%;
  transition: background-size .35s var(--ease), color .2s;
}
.btn-secondary:hover { color: #fff; background-image: linear-gradient(transparent 14%, rgba(138, 77, 255, .6) 14%, rgba(138, 77, 255, .6) 88%, transparent 88%); }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 22px;
  height: 70px; padding: 0 var(--gutter);
  transition: background-color .35s, box-shadow .35s, backdrop-filter .35s;
}
.nav.is-scrolled {
  background: rgba(13, 11, 38, .78);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(187, 168, 255, .14);
}
.nav-logo { display: flex; align-items: center; gap: 10px; margin-right: auto; font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; color: var(--txt); text-decoration: none; }
.nav-logo img { width: 34px; height: 34px; filter: drop-shadow(0 4px 12px rgba(138, 77, 255, .45)); }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a:not(.nav-cta) {
  font-size: .95rem; font-weight: 500; color: var(--txt-2); text-decoration: none; padding: 4px 2px;
  background: linear-gradient(transparent 62%, rgba(138, 77, 255, .6) 62%, rgba(138, 77, 255, .6) 90%, transparent 90%) no-repeat 0 0 / 0% 100%;
  transition: background-size .35s var(--ease), color .2s;
}
.nav-links a:not(.nav-cta):hover { color: #fff; background-size: 100% 100%; }
.nav-cta {
  display: inline-block; padding: 10px 18px; border-radius: 11px;
  background: var(--papier); color: var(--encre); font-weight: 650; font-size: .93rem; text-decoration: none;
  box-shadow: 0 4px 0 #C9BDF0; transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #C9BDF0; }
.nav-cta:active { transform: translateY(3px); box-shadow: 0 1px 0 #C9BDF0; }

.nav-clock {
  display: flex; align-items: center; gap: 7px; padding: 6px 11px 6px 9px; border-radius: 999px;
  border: 1px solid rgba(187, 168, 255, .22); color: var(--lilas);
  font-size: .82rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.nav-clock svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.nav-clock-time::after { content: attr(data-time); }
.nav-clock.is-day { color: #FFC59A; border-color: rgba(255, 197, 154, .4); }

.nav-hamburger { display: none; width: 44px; height: 44px; border-radius: 12px; position: relative; }
.nav-hamburger span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--txt); transition: transform .3s var(--ease), opacity .2s; }
.nav-hamburger span:nth-child(1) { top: 15px; }
.nav-hamburger span:nth-child(2) { top: 21px; right: 16px; }
.nav-hamburger span:nth-child(3) { top: 27px; }
.nav.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; }
.nav.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  padding: 118px var(--gutter) 56px;
  display: flex; flex-direction: column; justify-content: center;
  background:
    radial-gradient(52% 50% at 70% 44%, rgba(122, 76, 255, .26), transparent 72%),
    radial-gradient(36% 30% at 12% 6%, rgba(84, 60, 200, .16), transparent 70%),
    linear-gradient(180deg, var(--nuit) 0%, var(--nuit) 88%, rgba(13, 11, 38, 0) 100%);
  overflow: clip;
}
.hero-content {
  position: relative; width: 100%; max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 5.4fr) minmax(0, 6.6fr); gap: clamp(16px, 3vw, 40px); align-items: center;
}
.hero-text { position: relative; z-index: 2; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; font-size: .95rem; font-weight: 500; color: var(--lilas); }
.hero-badge svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.hero h1 {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2.6rem, 4.4vw, 4rem); line-height: 1.02; letter-spacing: -.018em;
  color: var(--txt); margin-bottom: 26px;
}
.h1-line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.h1-line > span { display: inline-block; position: relative; }
/* soulignement à l'encre, suit le texte même sur deux lignes */
.ink-u {
  padding-bottom: .06em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 20' preserveAspectRatio='none'%3E%3Cpath d='M3 13.5C70 6 150 4.5 222 8.6s118 6.2 174-3.4' fill='none' stroke='%238A4DFF' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 100% / 100% .28em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.js .ink-u { background-size: 0% .28em; animation: inkU 1s var(--ease) 1.25s forwards; }
@keyframes inkU { to { background-size: 100% .28em; } }
.hero-lead { max-width: 30em; font-size: 1.12rem; line-height: 1.65; color: var(--txt-2); margin-bottom: 34px; }
.hero-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.btn-play {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid rgba(187, 168, 255, .35); color: var(--lilas); font-weight: 600; font-size: .9rem; text-decoration: none;
  transition: border-color .25s, background-color .25s, color .25s;
}
.btn-play:hover { border-color: var(--lilas); background: rgba(187, 168, 255, .1); color: #fff; }
.hero-note { margin-top: 16px; font-size: .88rem; color: var(--txt-3); }
.hero-note span { color: var(--menthe); font-weight: 600; }

/* Animation d'entrée (une seule, orchestrée) */
.js .h1-line > span { transform: translateY(108%); animation: lineUp 1s var(--ease) forwards; }
.js .h1-line:nth-child(2) > span { animation-delay: .12s; }
.js .h1-line:nth-child(3) > span { animation-delay: .24s; }
.js .hero-badge, .js .hero-lead, .js .hero-buttons, .js .btn-play, .js .hero-note { opacity: 0; animation: fadeIn .9s var(--ease) forwards; }
.js .hero-badge { animation-delay: .05s; }
.js .hero-lead { animation-delay: .45s; }
.js .hero-buttons { animation-delay: .6s; }
.js .btn-play, .js .hero-note { animation-delay: .72s; }
@keyframes lineUp { to { transform: translateY(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* La copie 3D */
.hero-visual { position: relative; aspect-ratio: 1.22; }
.copie-stage { position: absolute; inset: -14% -16% -4% -10%; }
#copie3d { width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease; cursor: pointer; touch-action: pan-y; }
.copie-stage.is-ready #copie3d, .copie-stage.is-ready .copie-fallback { opacity: 1; }
.copie-fallback {
  position: absolute; left: 12%; top: 16%; width: 76%; height: auto; aspect-ratio: 420 / 297; opacity: 0; transition: opacity .8s;
  transform: perspective(1400px) rotateX(24deg) rotateZ(-4deg); border-radius: 2px;
  box-shadow: 0 40px 60px -20px rgba(0, 0, 0, .7);
}
.no-webgl #copie3d { display: none; }
.copie-stage.no-webgl ~ .copie-tabs { display: none; }

.copie-tabs {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); z-index: 3;
  display: flex; gap: 6px; padding: 5px; border-radius: 14px;
  background: rgba(21, 18, 57, .72); border: 1px solid rgba(187, 168, 255, .16);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.copie-tab {
  font-family: var(--f-hand); font-weight: 600; font-size: 1.32rem; line-height: 1;
  padding: 8px 15px 9px; border-radius: 10px; color: var(--txt-2);
  transition: background-color .25s, color .25s, transform .25s var(--ease);
}
.copie-tab:hover { color: #fff; }
.copie-tab.is-on { background: var(--papier); color: var(--encre); transform: translateY(-1px); box-shadow: 0 3px 0 #C9BDF0; }

/* Post-it collés autour de la copie */
.floating-badge {
  position: absolute; z-index: 3;
  padding: 10px 14px 12px; max-width: 13.5em;
  font-family: var(--f-hand); font-weight: 600; font-size: 1.22rem; line-height: 1.15; color: #3A2E10;
  background: linear-gradient(170deg, #FFF3A6, var(--fluo));
  box-shadow: 0 14px 22px -12px rgba(0, 0, 0, .6), 0 2px 3px rgba(0, 0, 0, .2);
  border-radius: 2px 2px 14px 2px;
  will-change: transform;
}
.floating-badge.top-left { top: -7%; left: 4%; transform: rotate(-5deg); }
.floating-badge.bottom-right { bottom: 15%; right: -3%; transform: rotate(4deg); background: linear-gradient(170deg, #FFD6EA, #FFB8DA); color: #4A1430; }
.js .floating-badge { opacity: 0; animation: stick .7s var(--ease) forwards; }
.js .floating-badge.top-left { animation-delay: 2.2s; }
.js .floating-badge.bottom-right { animation-delay: 2.5s; }
@keyframes stick { from { opacity: 0; translate: 0 -18px; scale: 1.15; } to { opacity: 1; translate: 0 0; scale: 1; } }

/* Stats sous le hero */
.stats { position: relative; z-index: 2; width: 100%; max-width: 1280px; margin: clamp(40px, 6vw, 72px) auto 0; }
.stats-inner { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; }
.stats-inner > div { padding: 2px 34px; border-left: 1px solid rgba(187, 168, 255, .22); }
.stats-inner > div:first-child { padding-left: 0; border-left: 0; }
.stat-number { font-family: var(--f-display); font-size: 2.3rem; line-height: 1; color: var(--txt); }
.stat-label { margin-top: 6px; font-size: .86rem; color: var(--txt-3); }

/* ---------- PROBLÈME ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.split-head { position: sticky; top: 120px; }
.problem-sheet { padding: 46px 40px 30px 76px; transform: rotate(1.2deg); }
.problem-sheet.paper {
  background-image:
    var(--grain),
    linear-gradient(90deg, transparent 52px, rgba(240, 86, 138, .55) 52px, rgba(240, 86, 138, .55) 53.5px, transparent 53.5px),
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(110, 90, 220, .15) 31px 32px);
}
.tape {
  position: absolute; top: -15px; left: 50%; width: 132px; height: 32px; transform: translateX(-50%) rotate(-4deg);
  background: repeating-linear-gradient(-45deg, rgba(187, 168, 255, .62) 0 8px, rgba(206, 192, 255, .62) 8px 16px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .15);
  -webkit-mask: radial-gradient(4px at 0 50%, transparent 98%, #000) left / 51% 8px repeat-y, radial-gradient(4px at 100% 50%, transparent 98%, #000) right / 51% 8px repeat-y;
          mask: radial-gradient(4px at 0 50%, transparent 98%, #000) left / 51% 8px repeat-y, radial-gradient(4px at 100% 50%, transparent 98%, #000) right / 51% 8px repeat-y;
}
.problem-grid { display: grid; gap: 30px; }
.problem-card { display: grid; grid-template-columns: 46px 1fr; gap: 18px; align-items: start; }
.problem-card h3 { font-size: 1.22rem; font-weight: 650; margin: 6px 0 6px; color: var(--graphite); }
.problem-card p { font-size: .98rem; line-height: 1.6; color: var(--graphite-2); }
.problem-card:nth-child(2) .doodle { --d: .25s; }
.problem-card:nth-child(3) .doodle { --d: .5s; }

/* rature à l'encre violette */
.strike { position: relative; display: inline-block; }
.strike::after {
  content: ""; position: absolute; left: -6%; right: -8%; top: 30%; height: 16px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M3 10C28 4 52 12 80 8s60-7 92-3c10 1 18 2 25 0' fill='none' stroke='%235427D8' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  clip-path: inset(0 100% 0 0);
  transition: clip-path .7s var(--ease) var(--sd, .6s);
}
.is-in .strike::after { clip-path: inset(0 0 0 0); }
.problem-card:nth-child(2) .strike { --sd: .95s; }
.problem-card:nth-child(3) .strike { --sd: 1.3s; }
.no-js .strike::after, html:not(.js) .strike::after { clip-path: none; }

/* ---------- FONCTIONNALITÉS (fiches bristol) ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 30px); }
.feature-card {
  --r: 0deg;
  padding: 30px 28px 32px;
  border-top: 7px solid var(--violet);
  transform: rotate(var(--r));
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.feature-card:nth-child(1) { --r: -.9deg; }
.feature-card:nth-child(2) { border-top-color: #F0568A; }
.feature-card:nth-child(3) { border-top-color: #F2C230; }
.feature-card:nth-child(4) { border-top-color: #2DB6A4; }
.feature-card:nth-child(5) { border-top-color: #FF8A52; }
.feature-card:nth-child(6) { border-top-color: #6F86FF; }
.feature-card:nth-child(2) { --r: .6deg; --d: .1s; }
.feature-card:nth-child(3) { --r: -.4deg; --d: .2s; }
.feature-card:nth-child(4) { --r: .8deg; --d: .05s; }
.feature-card:nth-child(5) { --r: -.6deg; --d: .15s; }
.feature-card:nth-child(6) { --r: .35deg; --d: .25s; }
.feature-card .doodle { margin-bottom: 18px; }
.feature-card h3 { font-size: 1.16rem; font-weight: 650; margin-bottom: 8px; color: var(--graphite); }
.feature-card p { font-size: .97rem; line-height: 1.6; color: var(--graphite-2); }

/* soulèvement 3D du papier (JS ajoute --rx/--ry) */
.lift { transform-style: preserve-3d; will-change: transform; }
.lift.is-lifting {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-8px) rotate(0deg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 40px 60px -26px rgba(4, 2, 18, .85), 0 8px 18px rgba(4, 2, 18, .3);
  transition: transform .12s linear, box-shadow .3s var(--ease);
}

/* ---------- COMMENT ÇA MARCHE ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 34px); }
.steps-path {
  position: absolute; left: 3%; right: 3%; top: -6px; width: 94%; height: 90px; overflow: visible; pointer-events: none;
  fill: none; stroke: rgba(187, 168, 255, .55); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: .012 .012;
}
.steps-path path { stroke-dasharray: 1 1; stroke-dashoffset: calc(1 - var(--p, 1)); }
.step { position: relative; }
.step-number {
  width: 68px; height: 68px; margin-bottom: 22px;
  display: grid; place-items: center;
  font-family: var(--f-hand); font-weight: 700; font-size: 2.3rem; line-height: 1; color: var(--txt);
  background: var(--nuit);
  border: 2.4px solid var(--lilas);
  border-radius: 52% 46% 55% 45% / 48% 55% 45% 52%;
  box-shadow: 0 0 0 6px var(--nuit);
  transform: rotate(-6deg);
}
.step:nth-child(3) .step-number { transform: rotate(4deg); border-radius: 46% 54% 48% 52% / 55% 45% 53% 47%; }
.step:nth-child(4) .step-number { transform: rotate(-2deg); }
.step:nth-child(5) .step-number { transform: rotate(7deg); border-color: var(--fluo); color: var(--fluo); }
.step h3 { font-size: 1.12rem; font-weight: 650; margin-bottom: 8px; color: var(--txt); }
.step p { font-size: .96rem; line-height: 1.6; color: var(--txt-2); }

/* ---------- PROFESSEURS ---------- */
.profs-layout { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.profs-grid { display: grid; gap: 16px; }
.prof-card {
  --pc: var(--sophie);
  display: grid; grid-template-columns: 50px 1fr; gap: 20px; align-items: start;
  padding: 24px 26px 24px 24px; text-align: left; cursor: pointer;
  background-color: var(--papier); background-image: var(--grain); color: var(--graphite);
  border-radius: 4px; box-shadow: var(--paper-shadow);
  border-left: 6px solid var(--pc);
  transform: translateX(0) scale(.975);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.prof-card.alex { --pc: var(--alex); }
.prof-card.max { --pc: var(--max); }
.prof-card:hover { transform: translateX(6px) scale(.985); }
.prof-card.is-on, .prof-card.is-on:hover { transform: translateX(16px) scale(1); box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 30px 50px -24px rgba(4, 2, 18, .9), 0 0 0 2px var(--pc); }
.prof-card .doodle { stroke: var(--pc); width: 50px; height: 50px; }
.prof-card h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.75rem; line-height: 1; margin-bottom: 6px; color: var(--graphite); }
.prof-role { font-family: var(--f-hand); font-weight: 600; font-size: 1.3rem; line-height: 1.1; color: var(--pc); margin-bottom: 10px; }
.prof-card p { font-size: .95rem; line-height: 1.55; color: var(--graphite-2); }
.prof-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.prof-tag { font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; color: var(--pc); background: color-mix(in srgb, var(--pc) 11%, transparent); }

.phone-scene { position: relative; perspective: 1500px; display: flex; flex-direction: column; align-items: center; }
.phone-caption {
  font-family: var(--f-hand); font-weight: 600; font-size: 1.5rem; color: var(--lilas);
  transform: rotate(-3deg); margin-bottom: 18px; text-align: center;
}
.phone-mockup {
  --pc: var(--sophie); --pcl: #4ED8C8;
  width: min(330px, 100%);
  border-radius: 40px; overflow: hidden;
  background: #110D2B;
  border: 9px solid #221C4D;
  box-shadow: 0 50px 80px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(187, 168, 255, .18), 0 0 60px -10px color-mix(in srgb, var(--pc) 45%, transparent);
  transform: rotateY(var(--py, -14deg)) rotateX(var(--px, 6deg)) rotateZ(1.5deg);
  transition: transform .5s var(--ease), box-shadow .5s;
}
.phone-mockup[data-prof="alex"] { --pc: var(--alex); --pcl: #FF9C5B; }
.phone-mockup[data-prof="max"] { --pc: var(--max); --pcl: #FF7FAF; }
.phone-header { display: flex; align-items: center; gap: 11px; padding: 18px 16px 14px; border-bottom: 1px solid rgba(187, 168, 255, .14); background: rgba(255, 255, 255, .03); }
.phone-avatar {
  width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: .9rem; color: #fff; background: var(--pc); transition: background-color .4s;
}
.phone-avatar span, .phone-header-name span { display: none; }
.phone-mockup[data-prof="sophie"] .pa-sophie, .phone-mockup[data-prof="alex"] .pa-alex, .phone-mockup[data-prof="max"] .pa-max,
.phone-mockup[data-prof="sophie"] .pn-sophie, .phone-mockup[data-prof="alex"] .pn-alex, .phone-mockup[data-prof="max"] .pn-max { display: inline; }
.phone-header-name { font-weight: 700; font-size: .95rem; color: #fff; }
.phone-header-status { font-size: .74rem; color: var(--menthe); }
.phone-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 13px; min-height: 352px; background: #0E0A24; }
.chat-row { display: flex; }
.chat-row.user { justify-content: flex-end; }
.bubble { max-width: 84%; padding: 10px 13px; font-size: .82rem; line-height: 1.45; }
.prof-bubble { background: #1C1740; color: #ECE8FF; border: 1px solid color-mix(in srgb, var(--pcl) 45%, transparent); border-radius: 16px 16px 16px 5px; transition: border-color .4s; }
.user-bubble { background: linear-gradient(135deg, #8A4DFF, #6B3FCC); color: #fff; border-radius: 16px 16px 5px 16px; }
.typing-bubble { display: flex; gap: 5px; align-items: center; padding: 13px 15px; }
.typing-bubble .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pcl); animation: blink 1.1s infinite; }
.typing-bubble .dot:nth-child(2) { animation-delay: .16s; }
.typing-bubble .dot:nth-child(3) { animation-delay: .32s; }
@keyframes blink { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.chat-answer, .chat-typing { display: none; }
.phone-mockup.is-typing .chat-typing { display: flex; }
.phone-mockup:not(.is-typing)[data-prof="sophie"] .chat-answer[data-for="sophie"],
.phone-mockup:not(.is-typing)[data-prof="alex"] .chat-answer[data-for="alex"],
.phone-mockup:not(.is-typing)[data-prof="max"] .chat-answer[data-for="max"] { display: flex; animation: pop .45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.phone-input { display: flex; align-items: center; gap: 10px; padding: 12px 13px; border-top: 1px solid rgba(187, 168, 255, .14); background: #110D2B; }
.phone-input-bar { flex: 1; padding: 8px 13px; border-radius: 20px; font-size: .76rem; color: #7069A0; background: #1A1538; border: 1px solid rgba(187, 168, 255, .16); }
.phone-send { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .8rem; background: var(--pc); transition: background-color .4s; }

/* ---------- SCAN ---------- */
.scan-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 90px); align-items: center; }
.scan-steps { display: grid; gap: 22px; margin-top: 36px; }
.scan-step { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; }
.scan-step .doodle { stroke: var(--lilas); }
.scan-step:nth-child(2) .doodle { --d: .2s; }
.scan-step:nth-child(3) .doodle { --d: .4s; }
.scan-step h4 { font-size: 1.05rem; font-weight: 650; color: var(--txt); margin: 4px 0 4px; }
.scan-step p { font-size: .95rem; line-height: 1.55; color: var(--txt-2); }

.scan-stage { perspective: 1400px; }
.scan-frame {
  --scan: 1;
  position: relative;
  transform: rotateX(8deg) rotateY(-10deg) rotateZ(-1.5deg);
  transform-style: preserve-3d;
}
.scan-visual {
  position: relative; z-index: 1;
  padding: 24px; border-radius: 22px;
  background: #15113A; color: #ECE8FF;
  border: 1px solid rgba(187, 168, 255, .22);
  box-shadow: 0 50px 80px -34px rgba(0, 0, 0, .9);
  clip-path: inset(0 0 calc(100% - var(--scan) * 100%) 0 round 22px);
}
.scan-visual-header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.scan-visual-header .doodle { width: 38px; height: 38px; stroke: var(--lilas); stroke-dashoffset: 0; }
.scan-visual-header h4 { font-size: .98rem; font-weight: 650; color: #fff; }
.scan-meta { font-size: .78rem; color: var(--txt-3); }
.scan-label { margin: 16px 0 9px; font-size: .82rem; font-weight: 700; color: var(--lilas); }
.scan-label:first-of-type { margin-top: 0; }
.scan-result-item {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; padding: 10px 14px;
  font-size: .86rem; line-height: 1.45; border-radius: 12px;
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(187, 168, 255, .14);
}
.scan-result-item span:first-child { min-width: 20px; color: var(--txt-2); }
.scan-notes {
  position: absolute; inset: 0; z-index: 2; padding: 30px 28px 28px 74px; border-radius: 6px; overflow: hidden;
  font-family: var(--f-pencil); font-size: 1.85rem; line-height: 32px; color: #2D2A42;
  background-image:
    var(--grain),
    linear-gradient(90deg, transparent 54px, rgba(240, 86, 138, .55) 54px, rgba(240, 86, 138, .55) 55.5px, transparent 55.5px),
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(110, 90, 220, .2) 31px 32px),
    repeating-linear-gradient(180deg, transparent 0 7px, rgba(110, 90, 220, .08) 7px 8px);
  background-position: 0 0, 0 0, 0 22px, 0 22px;
  transform: rotate(-1.5deg);
  clip-path: inset(calc(var(--scan) * 100%) -20px -20px -20px);
}
.scan-notes p { margin-bottom: 18px; text-shadow: .3px .3px 0 rgba(45, 42, 66, .5); }
.scan-notes .sn-title { font-size: 2.25rem; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.scan-notes p:nth-child(3) { transform: rotate(-1deg); }
.scan-notes p:nth-child(4) { transform: rotate(.8deg) translateX(-6px); }
.scan-notes .sn-todo { color: #B0285E; transform: rotate(-3deg) translateX(30px); }
.scan-beam {
  position: absolute; left: -6%; right: -6%; top: calc(var(--scan) * 100%); height: 3px; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, transparent, #C9B5FF 12%, #fff 50%, #C9B5FF 88%, transparent);
  box-shadow: 0 0 18px 3px rgba(138, 77, 255, .85), 0 0 60px 10px rgba(138, 77, 255, .35);
  opacity: calc(1 - (var(--scan) - .97) * 33);
}
.scan-beam::before {
  content: ""; position: absolute; left: 6%; right: 6%; bottom: 3px; height: 70px;
  background: linear-gradient(to top, rgba(138, 77, 255, .28), transparent);
}

/* ---------- TARIFS ---------- */
.pricing, .scan, .demo-quiz { overflow: hidden; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); max-width: 880px; margin: 0 auto; align-items: stretch; }
.pricing-card { display: flex; flex-direction: column; padding: 38px 36px 34px; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.pricing-card:first-child { transform: rotate(-.8deg); }
.pricing-card.popular { transform: rotate(.6deg); box-shadow: var(--paper-shadow), 0 0 0 2px var(--violet), 0 0 70px -10px rgba(138, 77, 255, .55); }
.pricing-plan { font-family: var(--f-hand); font-weight: 700; font-size: 1.85rem; line-height: 1; color: var(--encre); margin-bottom: 14px; }
.pricing-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.pricing-amount { font-family: var(--f-display); font-size: clamp(3.2rem, 5vw, 4.1rem); line-height: 1; color: var(--graphite); letter-spacing: -.02em; }
.pricing-period { font-size: 1rem; color: var(--graphite-2); }
.hl-mark {
  background: linear-gradient(100deg, transparent 2%, var(--fluo) 4%, #FFEF94 50%, var(--fluo) 96%, transparent 98%) no-repeat 0 72% / 0% 46%;
  transition: background-size .9s var(--ease) .5s; padding: 0 .06em;
}
.is-in .hl-mark, html:not(.js) .hl-mark { background-size: 100% 46%; }
.pricing-save { font-size: .9rem; color: var(--graphite-2); margin-bottom: 26px; }
.popular .pricing-save { color: var(--encre); font-weight: 650; }
.pricing-features { list-style: none; margin-bottom: 30px; flex: 1; }
.pricing-features li { position: relative; padding: 7px 0 7px 32px; font-size: .98rem; color: var(--graphite); border-bottom: 1px dashed rgba(110, 90, 220, .2); }
.pricing-features li:last-child { border-bottom: 0; }
.pricing-features li::before { content: "✓"; position: absolute; left: 2px; top: 1px; font-family: var(--f-hand); font-weight: 700; font-size: 1.55rem; color: var(--encre); }
.pricing-btn {
  display: block; text-align: center; padding: 14px; border-radius: 13px; font-weight: 650; text-decoration: none;
  color: var(--encre); border: 2px solid var(--encre); transition: background-color .25s, color .25s, transform .2s var(--ease);
}
.pricing-btn:hover { background: var(--encre); color: #fff; transform: translateY(-2px); }
.popular .pricing-btn { color: #fff; background: var(--violet); border-color: transparent; box-shadow: 0 6px 0 #4B20B9; }
.popular .pricing-btn:hover { background: #9560FF; box-shadow: 0 8px 0 #4B20B9; }
.popular .pricing-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #4B20B9; }
.pricing-note { text-align: center; margin-top: 34px; font-size: .9rem; color: var(--txt-3); }

/* Tampon encreur */
.stamp {
  position: absolute; top: 22px; right: -18px; z-index: 2;
  display: inline-block; padding: 4px; border: 3px solid var(--encre); border-radius: 8px;
  color: var(--encre); transform: rotate(-9deg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='90'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.4 2.05'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E") 0 0 / 220px 90px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='90'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.4 2.05'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E") 0 0 / 220px 90px;
}
.stamp > span { display: block; padding: 7px 12px; border: 1.5px solid var(--encre); border-radius: 5px; font-weight: 800; font-size: .8rem; letter-spacing: .08em; white-space: nowrap; }
.js .stamp { opacity: 0; transform: rotate(-22deg) scale(2.1); }
.js .is-in .stamp { animation: stampIn .5s cubic-bezier(.5, 0, .75, 0) .35s forwards; }
.js .is-in.popular { animation: thud .5s ease-out .8s; }
@keyframes stampIn { 0% { opacity: 0; transform: rotate(-22deg) scale(2.1); } 80% { opacity: .95; transform: rotate(-9deg) scale(.96); } 100% { opacity: .92; transform: rotate(-9deg) scale(1); } }
@keyframes thud { 0% { transform: rotate(.6deg); } 30% { transform: rotate(.6deg) translateY(4px) scale(.992); } 100% { transform: rotate(.6deg); } }

/* ---------- LANCEMENT ---------- */
.launch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 4vw, 56px); }
.testimonial-card { padding-top: 22px; border-top: 1.5px solid rgba(187, 168, 255, .3); }
.testimonial-card .doodle { stroke: var(--lilas); width: 42px; height: 42px; margin-bottom: 14px; }
.testimonial-card:nth-child(2) .doodle { --d: .15s; }
.testimonial-card:nth-child(3) .doodle { --d: .3s; }
.launch-title { font-family: var(--f-display); font-size: 1.6rem; line-height: 1.1; color: var(--txt); margin-bottom: 10px; }
.testimonial-card p { font-size: .97rem; line-height: 1.6; color: var(--txt-2); }

.ticket {
  --stub: 400px;
  position: relative; margin-top: clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: 1fr var(--stub);
  background-color: var(--papier); background-image: var(--grain); color: var(--graphite);
  border-radius: 16px;
  filter: drop-shadow(0 26px 30px rgba(4, 2, 18, .55));
  -webkit-mask: radial-gradient(circle 15px at calc(100% - var(--stub)) 0, transparent 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 15px at calc(100% - var(--stub)) 100%, transparent 97%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 15px at calc(100% - var(--stub)) 0, transparent 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 15px at calc(100% - var(--stub)) 100%, transparent 97%, #000) bottom / 100% 51% no-repeat;
}
.ticket-main { padding: 34px 40px; }
.ticket-title { font-family: var(--f-display); font-size: 1.9rem; line-height: 1.1; margin-bottom: 10px; }
.ticket-main p { font-size: 1.02rem; color: var(--graphite-2); max-width: 34em; }
.ticket-main strong { color: var(--encre); background: linear-gradient(transparent 58%, rgba(255, 230, 107, .9) 58%, rgba(255, 230, 107, .9) 92%, transparent 92%); }
.ticket-stub { display: grid; place-items: center; padding: 30px; border-left: 2.5px dashed rgba(84, 39, 216, .3); background: rgba(138, 77, 255, .07); }
.ticket-stub .btn-primary { text-align: center; white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(30px, 5vw, 80px); align-items: start; }
.faq-header { position: sticky; top: 120px; }
.faq-grid { padding: 10px 0; transform: rotate(-.5deg); }
.faq-item + .faq-item { border-top: 1px solid rgba(110, 90, 220, .16); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; width: 100%;
  padding: 21px 28px; text-align: left; font-size: 1.04rem; font-weight: 600; line-height: 1.4; color: var(--graphite);
  transition: color .2s;
}
.faq-question:hover { color: var(--encre); }
.faq-arrow { position: relative; width: 22px; height: 22px; flex: none; }
.faq-arrow::before, .faq-arrow::after { content: ""; position: absolute; left: 3px; right: 3px; top: 10px; height: 2.4px; border-radius: 2px; background: var(--encre); transition: transform .4s var(--ease); }
.faq-arrow::after { transform: rotate(90deg); }
.faq-item.open .faq-arrow::after { transform: rotate(0deg); }
.faq-item.open .faq-arrow::before { transform: rotate(180deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-answer > .faq-answer-inner { overflow: hidden; }
.faq-answer-inner { padding: 0 28px; font-size: .98rem; line-height: 1.65; color: var(--graphite-2); }
.faq-item.open .faq-answer-inner { padding-bottom: 22px; }
.faq-answer-inner a { color: var(--encre); font-weight: 600; }

/* ---------- BLOG ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 34px); }
.blog-card {
  display: flex; flex-direction: column; padding: 32px 32px 30px; text-decoration: none;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.blog-card:nth-child(odd) { transform: rotate(-.5deg); }
.blog-card:nth-child(even) { transform: rotate(.5deg); }
/* coin corné au survol */
.blog-card::after {
  content: ""; position: absolute; top: 0; right: 0; width: 0; height: 0;
  background: linear-gradient(225deg, var(--nuit) 50%, #DCD3F3 50%, #F4F1FB 100%);
  box-shadow: -4px 4px 8px rgba(30, 20, 70, .18);
  border-bottom-left-radius: 6px;
  transition: width .35s var(--ease), height .35s var(--ease);
}
.blog-card:hover::after { width: 46px; height: 46px; }
.blog-category { font-family: var(--f-hand); font-weight: 600; font-size: 1.35rem; line-height: 1.1; color: var(--encre); margin-bottom: 12px; }
.blog-title { font-family: var(--f-display); font-weight: 400; font-size: 1.62rem; line-height: 1.14; color: var(--graphite); margin-bottom: 12px; text-wrap: balance; }
.blog-excerpt { flex: 1; font-size: .96rem; line-height: 1.6; color: var(--graphite-2); margin-bottom: 18px; }
.blog-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .84rem; color: var(--graphite-2); margin-bottom: 18px; }
.blog-btn {
  align-self: flex-start; font-weight: 650; font-size: .95rem; color: var(--encre);
  background: linear-gradient(transparent 62%, rgba(255, 230, 107, .95) 62%, rgba(255, 230, 107, .95) 92%, transparent 92%) no-repeat 0 0 / 0% 100%;
  transition: background-size .35s var(--ease);
}
.blog-card:hover .blog-btn { background-size: 100% 100%; }

/* ---------- MINI-QUIZ (fiches bristol 3D) ---------- */
.fc-scene { position: relative; max-width: 580px; margin: 0 auto 30px; perspective: 1600px; }
.fc-deck span {
  position: absolute; inset: 0; border-radius: 6px; background: #E7E2F4; box-shadow: var(--paper-shadow);
}
.fc-deck span:nth-child(1) { transform: rotate(-4deg) translate(-10px, 10px); background: #DCD5F0; }
.fc-deck span:nth-child(2) { transform: rotate(3deg) translate(12px, 6px); background: #E9E4F6; }
.fc-card {
  position: relative; height: 310px; cursor: pointer;
  transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.3, 1.3, .5, 1);
}
.fc-card.flipped { transform: rotateY(180deg); }
.fc-card.is-dealing { animation: deal .55s var(--ease); }
@keyframes deal { 0% { transform: translateX(46%) rotate(9deg) translateZ(80px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.fc-face {
  position: absolute; inset: 0; border-radius: 6px; padding: 34px 40px 28px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  background-color: var(--papier); background-image: var(--grain); color: var(--graphite);
  box-shadow: var(--paper-shadow);
  border-top: 10px solid var(--violet);
}
.fc-front {
  background-image:
    var(--grain),
    repeating-linear-gradient(180deg, transparent 0 33px, rgba(110, 90, 220, .16) 33px 34px);
  background-position: 0 0, 0 70px;
}
.fc-back { transform: rotateY(180deg); border-top-color: var(--fluo); }
.fc-cat { font-family: var(--f-hand); font-weight: 700; font-size: 1.45rem; line-height: 1; color: var(--encre); margin-bottom: 16px; }
.fc-text { font-family: var(--f-display); font-size: clamp(1.4rem, 2.6vw, 1.8rem); line-height: 1.22; color: var(--graphite); text-wrap: balance; }
.fc-back .fc-text { font-family: var(--f-hand); font-weight: 600; font-size: clamp(1.45rem, 2.6vw, 1.75rem); line-height: 1.25; color: var(--encre); }
.fc-hint { margin-top: 22px; font-size: .84rem; color: var(--graphite-2); }
.fc-memo {
  position: absolute; left: calc(100% + 22px); top: 26px; width: 190px;
  font-family: var(--f-hand); font-weight: 600; font-size: 1.4rem; line-height: 1.1; color: var(--fluo);
  transform: rotate(5deg); opacity: 0; transition: opacity .5s var(--ease), transform .5s var(--ease);
  pointer-events: none;
}
.fc-memo::before {
  content: ""; position: absolute; left: -46px; top: 14px; width: 42px; height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 42 30'%3E%3Cpath d='M40 6C28 4 14 10 5 24M4.5 15.5 4 25l9.5-1.6' fill='none' stroke='%23FFE66B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.fc-scene.show-memo .fc-memo { opacity: 1; transform: rotate(3deg); }
.fc-controls { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; }
.fc-btn {
  padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--lilas);
  border: 1.5px solid rgba(187, 168, 255, .45); transition: background-color .25s, color .25s, border-color .25s;
}
.fc-btn:hover { background: var(--papier); color: var(--encre); border-color: var(--papier); }
.fc-dots { display: flex; gap: 9px; }
.fc-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(187, 168, 255, .3); cursor: pointer; transition: transform .3s var(--ease), background-color .3s; }
.fc-dot.active { background: var(--fluo); transform: scale(1.3); }
.fc-counter { text-align: center; margin-top: 16px; font-size: .84rem; color: var(--txt-3); }
.fc-cta { text-align: center; max-width: 560px; margin: 26px auto 0; font-size: .96rem; line-height: 1.6; color: var(--txt-2); }
.fc-cta a { color: var(--fluo); font-weight: 650; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

/* ---------- CTA FINAL : l'aube du jour J ---------- */
.cta-final {
  --rise: 0;
  padding: clamp(140px, 18vw, 230px) var(--gutter) clamp(150px, 16vw, 210px);
  text-align: center; overflow: hidden;
  background: linear-gradient(180deg, rgba(13, 11, 38, 0) 0%, #241552 30%, #5B2777 56%, #B9467F 76%, #F07E7C 90%, #FFC09B 100%);
}
.cta-sun {
  position: absolute; left: 50%; bottom: 0; width: min(780px, 120vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #FFF2D6 0%, #FFD39B 22%, rgba(255, 170, 120, .55) 42%, rgba(255, 140, 120, 0) 68%);
  transform: translate(-50%, calc(64% - var(--rise) * 22%));
  pointer-events: none;
}
.cta-horizon {
  position: absolute; left: 0; right: 0; bottom: 0; height: 38%; pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .0) 0 13px, rgba(255, 236, 220, .22) 13px 14px);
  -webkit-mask: linear-gradient(transparent, #000 70%); mask: linear-gradient(transparent, #000 70%);
}
.cta-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.cta-final h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.02; letter-spacing: -.015em; color: #fff; margin-bottom: 18px; text-wrap: balance; }
.cta-final > .cta-inner > p { font-size: 1.12rem; color: rgba(255, 255, 255, .86); margin-bottom: 36px; }
.cta-play { margin-top: 26px !important; margin-bottom: 0 !important; }
.cta-play a { color: #fff; font-weight: 600; text-underline-offset: 3px; }
.cta-final-note { margin-top: 18px; font-size: .9rem; color: rgba(60, 20, 50, .82) !important; font-weight: 550; }

/* ---------- FOOTER : le matin ---------- */
footer { position: relative; padding: 64px var(--gutter) 32px; background: #FCF4EE; color: var(--graphite-2); }
.footer-inner { max-width: var(--wrap); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; padding-bottom: 42px; border-bottom: 1px solid rgba(84, 39, 216, .14); }
.footer-brand h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 1.2rem; font-weight: 700; color: var(--graphite); }
.footer-brand img { width: 30px; height: 30px; }
.footer-brand p { max-width: 26em; font-size: .93rem; line-height: 1.6; }
.footer-col h4 { margin-bottom: 14px; font-family: var(--f-hand); font-weight: 700; font-size: 1.45rem; line-height: 1; color: var(--encre); }
.footer-col a { display: block; margin-bottom: 9px; font-size: .92rem; color: var(--graphite-2); text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--encre); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 22px; font-size: .82rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-legal a { color: var(--graphite-2); text-decoration: none; }
.footer-legal a:hover { color: var(--encre); text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 400px) {
  .nav-clock svg { display: none; }
}
@media (max-width: 379px) {
  .nav-clock { display: none !important; }
}
@media (max-width: 1080px) {
  .nav-links { gap: 18px; }
  .nav-clock { display: none; }
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .floating-badge.top-left { left: 0; }
  .floating-badge.bottom-right { right: 0; }
}

@media (max-width: 900px) {
  body { font-size: 16px; }
  .nav { height: 64px; }
  .nav-hamburger { display: block; margin-left: 52px; }
  .nav-clock { display: flex; padding: 5px 9px; font-size: .78rem; }
  .nav { gap: 10px; }
  .nav-links {
    position: absolute; top: 64px; left: 12px; right: 12px;
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px;
    background-color: var(--papier); background-image: var(--grain);
    border-radius: 6px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
    opacity: 0; visibility: hidden; transform: translateY(-10px) rotate(-1deg);
    transition: opacity .3s, transform .4s var(--ease), visibility 0s .4s;
  }
  .nav.nav-open .nav-links { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .4s var(--ease); }
  .nav.nav-open { background: rgba(13, 11, 38, .92); }
  .nav-links a:not(.nav-cta) { display: block; padding: 13px 12px; font-size: 1.05rem; color: var(--graphite); border-bottom: 1px solid rgba(110, 90, 220, .14); background: none; }
  .nav-links a:not(.nav-cta):hover { color: var(--encre); }
  .nav-links li:last-child { padding: 12px 0 2px; }
  .nav-cta { display: block; text-align: center; background: var(--violet); color: #fff; box-shadow: 0 4px 0 #4B20B9; padding: 13px; }

  .hero { padding-top: 84px; min-height: auto; }
  .hero-content { grid-template-columns: 1fr; gap: 6px; }
  .hero-visual { order: -1; aspect-ratio: 1.18; margin: 0 -6px 26px; }
  .copie-stage { inset: -4% -6% 4% -6%; }
  .copie-tabs { bottom: -14px; }
  .copie-tab { font-size: 1.18rem; padding: 7px 12px 8px; }
  .floating-badge { font-size: 1.02rem; padding: 7px 10px 9px; }
  .floating-badge.top-left { top: -5%; left: 0; }
  .floating-badge.bottom-right { bottom: 14%; right: 0; }
  .hero h1 { font-size: clamp(2.45rem, 9.6vw, 3.6rem); }
  .stats-inner > div { padding: 2px 18px; }
  .stat-number { font-size: 1.85rem; }

  .split, .faq-layout { grid-template-columns: 1fr; }
  .split-head, .faq-header { position: static; }
  .problem-sheet { padding: 40px 22px 24px 62px; transform: rotate(.6deg); }
  .problem-sheet.paper { background-image: var(--grain), linear-gradient(90deg, transparent 44px, rgba(240, 86, 138, .55) 44px, rgba(240, 86, 138, .55) 45.5px, transparent 45.5px), repeating-linear-gradient(180deg, transparent 0 31px, rgba(110, 90, 220, .15) 31px 32px); }
  .problem-card { grid-template-columns: 1fr; gap: 6px; }
  .problem-card .doodle { width: 40px; height: 40px; }

  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps-path { display: none; }

  .profs-layout { grid-template-columns: 1fr; }
  .prof-card.is-on { transform: translateX(0) scale(1); }
  .phone-scene { margin-top: 10px; }

  .scan-content { grid-template-columns: 1fr; }
  .scan-frame { transform: rotateX(6deg) rotateZ(-1deg); }

  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; }
  .stamp { right: -6px; }

  .launch-grid { grid-template-columns: 1fr; }
  .ticket { grid-template-columns: 1fr; -webkit-mask: none; mask: none; }
  .ticket-stub { border-left: 0; border-top: 2.5px dashed rgba(84, 39, 216, .3); }
  .ticket-main { padding: 28px 26px 22px; }
  .ticket-stub .btn-primary { white-space: normal; }

  .blog-grid { grid-template-columns: 1fr; }
  .fc-memo { position: static; display: block; width: auto; margin: 14px auto 0; text-align: center; transform: rotate(-2deg); }
  .fc-memo::before { display: none; }
  .fc-scene.show-memo .fc-memo { transform: rotate(-2deg); }

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .nav-logo { font-size: 1.02rem; gap: 8px; }
  .nav-logo img { width: 30px; height: 30px; }
  .feature-card { padding: 26px 22px 26px; }
  .stats-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats-inner > div { padding: 2px 10px; }
  .stat-label { font-size: .78rem; }
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: 68px 1fr; column-gap: 18px; }
  .step-number { grid-row: span 2; margin: 0; }
  .prof-card { grid-template-columns: 1fr; gap: 10px; padding: 22px; }
  .phone-mockup { transform: none; }
  .scan-notes { padding: 22px 16px 16px 58px; font-size: 1.55rem; line-height: 32px; background-position: 0 0, -12px 0, 0 22px, 0 22px; }
  .scan-notes .sn-title { font-size: 1.85rem; }
  .pricing-card { padding: 32px 24px 28px; }
  .fc-card { height: 330px; }
  .fc-face { padding: 30px 22px 24px; }
  .floating-badge.bottom-right { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .doodle { stroke-dashoffset: 0; }
  .strike::after { clip-path: none; }
  .scan-frame { --scan: 1 !important; }
  .js .stamp { opacity: .92; transform: rotate(-9deg); }
}
