/* Proposition A+ : « le cahier qui prend vie ». Polices système uniquement. */
.prop-banner { background: #111827; color: #fff; text-align: center; font-size: .9rem; padding: 6px 12px; }
.prop-banner a { color: #ffd36b; margin: 0 4px; }
.x { --ink: #0f1630; --red: #d9363e; --hand: "Bradley Hand", "Segoe Print", "Chalkboard SE", "Marker Felt", cursive; --sheet-grid: rgba(59, 91, 219, .16); }
.x main { overflow-x: clip; max-width: none; padding: 0; }
.x h1, .x h2, .x h3 { text-wrap: balance; }
.x .btn { margin-top: 0; font-size: 1.05rem; padding: 14px 28px; }
.x-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

/* Héros */
.x-hero { max-width: 1240px; margin: 0 auto; padding: clamp(32px, 7vh, 88px) 16px clamp(56px, 9vh, 110px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.x-hero h1 { font-size: clamp(2.7rem, 6.2vw, 5.6rem); line-height: .98; letter-spacing: -.04em; margin: 0; color: var(--text); }
.x-lead { font-size: clamp(1.1rem, 1.45vw, 1.32rem); line-height: 1.55; max-width: 40ch; margin: 24px 0 0; color: var(--text); }
.x-levels { display: flex; gap: 6px; flex-wrap: wrap; margin: 26px 0 0; }
.x-levels span { font: 700 .95rem var(--font-title); padding: 5px 12px; border-radius: 999px; background: var(--card); color: var(--muted); }

.x-stage { position: relative; min-height: 520px; }
.sheet { position: absolute; inset: 0 4% 0 0; display: flex; flex-direction: column; background-color: #fffefb; border-radius: 6px;
  background-image: linear-gradient(90deg, transparent 54px, rgba(217, 54, 62, .55) 54px, rgba(217, 54, 62, .55) 56px, transparent 56px),
    linear-gradient(var(--sheet-grid) 1px, transparent 1px), linear-gradient(90deg, var(--sheet-grid) 1px, transparent 1px);
  background-size: auto, 22px 22px, 22px 22px;
  padding: 34px 30px 26px 76px; transform: rotate(-2.2deg); color: #16213d;
  box-shadow: 0 2px 4px rgba(15, 22, 48, .06), 0 30px 70px -20px rgba(15, 22, 48, .35); }
.sheet::before { content: ""; position: absolute; left: 18px; top: 40px; bottom: 40px; width: 14px;
  background: radial-gradient(circle at 7px 7px, var(--bg) 6px, transparent 6.5px) 0 0 / 14px 66px repeat-y; }
.sheet-tag { margin: 0 0 14px; font: 700 .95rem var(--font-title); color: var(--accent); }
.sheet-q { font-size: 1.25rem; line-height: 1.6; margin: 0; max-width: 26ch; }
.sheet-q b { font-variant-numeric: tabular-nums; }
.hand { font-family: var(--hand); }
.sheet-a { font-size: 1.7rem; margin: 18px 0 0; color: #2340b0; display: flex; align-items: center; gap: 14px; }
.red { color: var(--red); }
.sheet-note { margin: 6px 0 0 40px; font-size: 1.3rem; transform: rotate(-4deg); transform-origin: left; opacity: 0; transition: opacity .4s .9s; }
.pen { fill: none; stroke: var(--red); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.pen-check { width: 46px; flex: none; }
.pen-check path { stroke-dasharray: 80; stroke-dashoffset: 80; }
.figure-draw { margin-top: auto; width: 62%; max-width: 300px; overflow: visible; }
.figure-draw .ln { fill: none; stroke: #2340b0; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; }
.figure-draw .arc { fill: none; stroke: #2340b0; stroke-width: 1.6; stroke-dasharray: 60; stroke-dashoffset: 60; }
.figure-draw text { font: 600 15px var(--font); fill: #16213d; opacity: 0; transition: opacity .4s 1.6s; }
.figure-draw .red-t { fill: var(--red); font-family: var(--hand); font-size: 18px; }
.drawn .pen-check path { transition: stroke-dashoffset .5s .55s cubic-bezier(.6,0,.3,1); stroke-dashoffset: 0; }
.drawn .sheet-note { opacity: 1; }
.drawn .figure-draw .ln { transition: stroke-dashoffset .9s cubic-bezier(.6,0,.3,1); stroke-dashoffset: 0; }
.drawn .figure-draw .l2 { transition-delay: .35s; } .drawn .figure-draw .l3 { transition-delay: .7s; } .drawn .figure-draw .sq { transition-delay: 1s; }
.drawn .figure-draw .arc { transition: stroke-dashoffset .6s 1.2s; stroke-dashoffset: 0; }
.drawn .figure-draw text { opacity: 1; }
.flip { display: inline-block; }
.flip.in { animation: flip .5s cubic-bezier(.2,.7,.2,1); }
@keyframes flip { from { opacity: 0; transform: translateY(-.45em); filter: blur(3px); } }
.sticky { position: absolute; right: -2%; bottom: 12%; width: 210px; padding: 16px 16px 18px; background: #ffe58a; color: #3b2f00; transform: rotate(4deg); border-radius: 3px;
  box-shadow: 0 14px 30px -12px rgba(60, 45, 0, .45); animation: bob 6s ease-in-out infinite; }
.sticky b { display: block; font: 800 1rem var(--font-title); margin-bottom: 4px; }
.sticky span { font-size: .95rem; line-height: 1.4; }
.chip { position: absolute; left: 4%; top: -22px; z-index: 2; background: var(--ink); color: #fff; font: 700 .98rem var(--font-title); padding: 12px 18px; border-radius: 999px; box-shadow: 0 14px 30px -12px rgba(15,22,48,.6); animation: bob 7s -2s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -10px; } }

/* Chiffres */
.x-numbers { max-width: 1240px; margin: 0 auto clamp(70px, 10vw, 140px); padding: 0 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.x-numbers div { display: grid; gap: 6px; align-content: start; }
.x-numbers b { font: 800 clamp(2.8rem, 5.5vw, 4.6rem)/1 var(--font-title); letter-spacing: -.03em; color: var(--accent); font-variant-numeric: tabular-nums; }
.x-numbers span { color: var(--text); max-width: 22ch; }

/* Essayer : bande d'encre */
.x-try { background: var(--ink); color: #eef1fb; padding: clamp(64px, 9vw, 130px) 16px; }
.x-try-in { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.x-try h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: 1; letter-spacing: -.035em; margin: 0 0 18px; color: #fff; }
.x-try-copy p { font-size: 1.15rem; color: #c9d0ea; max-width: 38ch; }
.x-try .try-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.x-try .try-tabs button { margin: 0; min-height: 40px; padding: 8px 16px; }
.x-try .try-tabs button.secondary { color: #fff; border-color: rgba(255,255,255,.35); }
.x-try .try-tabs button.secondary:hover { background: rgba(255,255,255,.08); }
.x-try-sheet { background-color: #fffefb; color: #16213d; border-radius: 8px; padding: clamp(20px, 3vw, 36px);
  background-image: linear-gradient(var(--sheet-grid) 1px, transparent 1px), linear-gradient(90deg, var(--sheet-grid) 1px, transparent 1px); background-size: 22px 22px;
  --text: #16213d; --muted: #5d6882; --card: #fffefb; --bg: #f4f6fb; --line: #dfe4f2; color-scheme: light;
  transform: rotate(.6deg); transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .6s; }
.js-anim .x-try-sheet:not(.in) { transform: translateY(30px) rotate(.6deg); opacity: .001; }
.x-try-sheet .demo-ex { background: transparent; border: 0; box-shadow: none; padding: 0; margin: 0; }
.x-try-sheet .demo-ex > h2 { color: #16213d; font-size: 1.35rem; margin-top: 0; }

/* Professeur */
.x-prof { max-width: 1240px; margin: 0 auto; padding: clamp(64px, 8vw, 110px) 16px; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.x-prof .prof-badge { width: 76px; height: 76px; margin-bottom: 18px; }
.x-prof h2 { font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; letter-spacing: -.04em; margin: 0; position: relative; display: inline-block; }
.x-prof h2 .underline { position: absolute; left: 0; bottom: -14px; width: 100%; height: 22px; }
.underline path { stroke-dasharray: 320; stroke-dashoffset: 0; }
.js-anim .underline:not(.in) path { stroke-dashoffset: 320; }
.underline path { transition: stroke-dashoffset 1s .2s cubic-bezier(.6,0,.3,1); }
.x-prof-name p { font-size: 1.3rem; margin-top: 30px; max-width: 26ch; }
.x-prof-list h3 { font-size: 1.3rem; margin: 6px 0 16px; }
.x-prof-list .checks { gap: 16px; font-size: 1.08rem; }

/* Formules */
.x-plans { max-width: 1240px; margin: 0 auto; padding: 0 16px clamp(70px, 10vw, 140px); }
.x-plans h2 { font-size: clamp(1.9rem, 3.8vw, 3.2rem); line-height: 1.05; letter-spacing: -.03em; max-width: 20ch; margin: 0 0 30px; }
.x-plan-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: end; margin-bottom: 16px; }
.x-plan-row a { display: grid; gap: 8px; padding: 26px; border-radius: 18px; background: var(--card); color: inherit; text-decoration: none;
  transition: transform .7s cubic-bezier(.2,.7,.2,1), opacity .5s, box-shadow .2s; }
.js-anim .x-plan-row a:not(.in) { transform: translateY(24px); opacity: .001; }
.x-plan-row a:nth-child(2) { transition-delay: .09s; } .x-plan-row a:nth-child(3) { transition-delay: .18s; }
.x-plan-row a:hover { box-shadow: 0 18px 40px -18px rgba(15,22,48,.35); }
.x-plan-row a.best { background: var(--ink); color: #fff; padding-block: 40px; }
.x-plan-row em { font-style: normal; font: 700 .9rem var(--font-title); color: #ffd36b; }
.x-plan-row b { font: 800 1.25rem var(--font-title); }
.x-plan-row .p { font: 800 3rem/1 var(--font-title); letter-spacing: -.03em; }
.x-plan-row small { font-size: 1rem; font-weight: 600; opacity: .7; }

/* Fin */
.x-end { background: var(--accent); color: #fff; text-align: center; padding: clamp(64px, 9vw, 120px) 16px; }
.x-end h2 { font-size: clamp(2rem, 4.6vw, 3.8rem); letter-spacing: -.035em; margin: 0; color: #fff; }
.x-end .x-cta { justify-content: center; }
.x-end .btn:not(.secondary) { background: #fff; color: var(--accent); }
.x-end .btn.secondary { color: #fff; border-color: rgba(255,255,255,.6); }
.x .site-foot { margin-top: 0; }

@media (max-width: 900px) {
  .x-hero, .x-try-in, .x-prof { grid-template-columns: 1fr; }
  .x-stage { min-height: 440px; margin-top: 10px; }
  .x-numbers { grid-template-columns: 1fr 1fr; }
  .x-plan-row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .x-stage { min-height: 400px; }
  .sheet { padding: 26px 18px 18px 52px; inset: 0; }
  .sheet::before { left: 10px; }
  .sheet { background-image: linear-gradient(90deg, transparent 38px, rgba(217, 54, 62, .55) 38px, rgba(217, 54, 62, .55) 40px, transparent 40px), linear-gradient(var(--sheet-grid) 1px, transparent 1px), linear-gradient(90deg, var(--sheet-grid) 1px, transparent 1px); }
  .sheet-q { font-size: 1.08rem; }
  .sheet-a { font-size: 1.35rem; }
  .pen-check { width: 36px; }
  .sheet-note { font-size: 1.1rem; margin-left: 10px; }
  .figure-draw { width: 58%; }
  .sticky { width: 170px; right: -4px; top: auto; bottom: -26px; }
  .chip { left: -4px; bottom: auto; top: -18px; font-size: .9rem; padding: 9px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .sticky, .chip { animation: none; }
  .x-try-sheet, .x-plan-row a { transform: none; opacity: 1; transition: none; }
  .underline path, .pen-check path, .figure-draw .ln, .figure-draw .arc { stroke-dashoffset: 0; transition: none; }
}
@media (prefers-color-scheme: dark) {
  .x { --ink: #070b1a; }
  .x-levels span { color: var(--text); }
}
.chip i { display: inline-block; width: 7px; height: 12px; border: solid #8fe3b0; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translateY(-2px); margin-right: 10px; }
