/* ── Tokens ─────────────────────────────────────────────────────── */
:root {
  --paper:   #ffffff;
  --paper-hi:#f7f9fc;
  --paper-lo:#eef2f7;
  --ink:     #0a0a0a;
  --ink-soft:#3a3a3a;
  --ink-mute:#7a7a7a;
  --rule:    #e6e6e3;
  --blue:    #1747a6;
  --blue-soft:#dde6f4;
  --fluo:    #ecff00;
  --grid:    #aab3c0;
  --ff-fat:  'DM Sans', system-ui, sans-serif;
  --ff-serif:'Newsreader', Georgia, serif;
  --ff-sans: 'Inter', system-ui, sans-serif;
  --ff-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ff-hand: 'Caveat', cursive;

  /* ────────────────────────────────────────────────────
   * TYPE SCALE fluide — mobile-first via clamp()
   * Ratio body : Major Third (1.25)
   * Ratio display : Perfect Fifth (1.5)
   * 12 tokens couvrent 100% du site (vs 72 valeurs avant)
   * ──────────────────────────────────────────────────── */
  --fs-monument:   clamp(80px, 14vw,  200px);
  --fs-display-xl: clamp(44px, 8.5vw, 104px);
  --fs-display:    clamp(36px, 6.5vw,  88px);
  --fs-h2:         clamp(28px, 4vw,    48px);
  --fs-h3:         clamp(22px, 2.4vw,  32px);
  --fs-lead:       clamp(16px, 1.4vw,  20px);
  --fs-body:       clamp(15px, 1.15vw, 17px);
  --fs-small:      clamp(12px, 0.95vw, 14px);
  --fs-mono:       clamp(10px, 0.85vw, 11px);
  --fs-hand-sm:    clamp(18px, 1.7vw,  24px);
  --fs-hand-lg:    clamp(26px, 3.2vw,  40px);
  --fs-em-stat:    clamp(36px, 4.5vw,  56px);
  /* — Nav dédié (plus discret que --fs-lead) */
  --fs-nav:        clamp(13px, 0.95vw, 14px);
}

/* ── Classes utilitaires typo (pour migration progressive des inline) ── */
.fs-monument   { font-size: var(--fs-monument) !important; }
.fs-display-xl { font-size: var(--fs-display-xl) !important; }
.fs-display    { font-size: var(--fs-display) !important; }
.fs-h2         { font-size: var(--fs-h2) !important; }
.fs-h3         { font-size: var(--fs-h3) !important; }
.fs-lead       { font-size: var(--fs-lead) !important; }
.fs-body       { font-size: var(--fs-body) !important; }
.fs-small      { font-size: var(--fs-small) !important; }
.fs-mono       { font-size: var(--fs-mono) !important; }
.fs-hand-sm    { font-size: var(--fs-hand-sm) !important; }
.fs-hand-lg    { font-size: var(--fs-hand-lg) !important; }
.fs-em-stat    { font-size: var(--fs-em-stat) !important; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--ff-sans); color: var(--ink); background: var(--paper);
  background-image: url(assets/paper.jpg);
  background-repeat: repeat;
  background-size: 400px 400px; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
iframe { max-width: 100%; }
a { color: inherit; text-decoration: none; }
@keyframes hf-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ── Primitives ─────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--ff-mono); font-size: var(--fs-mono); letter-spacing: .22em;
  text-transform: uppercase; color: var(--blue);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow .dot { width: 6px; height: 6px; background: var(--blue); border-radius: 50%; }
.eyebrow .ln  { width: 24px; height: 1px; background: var(--blue); }
.eyebrow.fluo { color: var(--fluo); }
.eyebrow.fluo .dot { background: var(--fluo); }
.eyebrow.fluo .ln  { background: var(--fluo); }
.eyebrow-center { justify-content: center; }
.display {
  font-family: var(--ff-fat); font-weight: 900; font-size: var(--fs-display);
  line-height: .95; letter-spacing: -.035em; color: var(--ink); text-transform: lowercase;
  text-wrap: balance;          /* équilibre le wrap (Chrome 114+, FF, Safari) — pas d'hyphenation */
  hyphens: manual;             /* JAMAIS de coupure auto, même sur mots longs */
}
/* Titres : balance par défaut, AUCUNE hyphenation (préserve les mots) */
h1, h2, h3, .fs-display-xl, .fs-display, .fs-h2, .fs-h3, .punchline-wrap {
  text-wrap: balance;
  hyphens: manual;
}
.hi {
  position: relative; display: inline; padding: 0 .08em;
  background: linear-gradient(102deg, transparent 0%, var(--fluo) 3%, var(--fluo) 97%, transparent 100%);
  background-size: 100% 78%; background-repeat: no-repeat; background-position: center 60%; color: var(--ink);
  /* permet au highlight de wrapper proprement sur plusieurs lignes au lieu de bloquer en inline-block */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.em { font-family: var(--ff-serif); font-style: italic; font-weight: 400; font-size: 1.07em; letter-spacing: -.005em; text-transform: none; }
.body-text { font-family: var(--ff-sans); font-size: var(--fs-body); line-height: 1.55; color: var(--ink-soft); letter-spacing: -.005em; }
.hand { font-family: var(--ff-hand); font-size: var(--fs-hand-sm); font-weight: 600; color: var(--blue); line-height: 1; }
.mono-label { font-family: var(--ff-mono); font-size: var(--fs-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-sans); font-weight: 500; font-size: 14px;
  letter-spacing: -.005em; border: 1.5px solid var(--ink);
  border-radius: 0; white-space: nowrap; cursor: pointer; transition: opacity .15s;
}
.btn:hover { opacity: .85; }
.btn-s  { padding: 8px 14px; font-size: 13px; }
.btn-m  { padding: 13px 22px; }
.btn-l  { padding: 17px 28px; font-size: 15px; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 4px 4px 0 var(--ink); }
.btn-fluo    { background: var(--fluo); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn-ghost   { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-plain   { background: transparent; color: var(--ink); border-color: transparent; text-decoration: underline; text-underline-offset: 5px; }
.tag { display: inline-flex; padding: 5px 12px; font-family: var(--ff-mono); font-size: var(--fs-mono); letter-spacing: .14em; text-transform: uppercase; font-weight: 500; border-radius: 0; }
.tag-outline  { background: transparent; color: var(--ink-soft); border: 1.5px solid var(--ink); }
.tag-solid    { background: var(--ink); color: #fff; border: 1.5px solid var(--ink); }
.tag-fluo     { background: var(--fluo); color: var(--ink); border: 1.5px solid var(--ink); }
.tag-bluesoft { background: var(--blue-soft); color: var(--blue); border: 1.5px solid var(--blue); }

/* ── Image placeholder ──────────────────────────────────────────── */
.img-ph { position: relative; overflow: hidden; border: 1.5px solid var(--ink); }
.img-ph.portrait { background: linear-gradient(160deg, #4a4540 0%, #8a7a6a 40%, #2a241f 100%); }
.img-ph.photo    { background: linear-gradient(135deg, #2a2a2a 0%, #5a5a55 50%, #1a1a1a 100%); }
.img-ph.object   { background: linear-gradient(135deg, #d4d4ce 0%, #f0eee6 50%, #a8a59a 100%); }
.img-ph.bone     { background: linear-gradient(135deg, #e8e4da 0%, #f5f2ec 50%, #d4cfc5 100%); }
.img-ph .corner  { position: absolute; width: 12px; height: 12px; pointer-events: none; }
.img-ph .corner.tl { top: 0; left: 0; border-top: 1.5px solid var(--fluo); border-left: 1.5px solid var(--fluo); }
.img-ph .corner.tr { top: 0; right: 0; border-top: 1.5px solid var(--fluo); border-right: 1.5px solid var(--fluo); }
.img-ph .corner.bl { bottom: 0; left: 0; border-bottom: 1.5px solid var(--fluo); border-left: 1.5px solid var(--fluo); }
.img-ph .corner.br { bottom: 0; right: 0; border-bottom: 1.5px solid var(--fluo); border-right: 1.5px solid var(--fluo); }
.img-ph .img-label { position: absolute; top: 12px; left: 14px; font-family: var(--ff-mono); font-size: 9px; color: rgba(255,255,255,.78); text-transform: uppercase; letter-spacing: .18em; }
.img-ph .img-dims  { position: absolute; bottom: 10px; right: 12px; font-family: var(--ff-mono); font-size: 9px; color: rgba(255,255,255,.6); letter-spacing: .14em; }

/* ── Layout ─────────────────────────────────────────────────────── */
.inner { max-width: 1280px; margin: 0 auto; }
.sec-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0 80px; align-items: end; margin-bottom: 40px; }
.sec-head.full { grid-template-columns: 1fr; }
.sec-head.center { text-align: center; display: block; }
.sec-head .gap { height: 28px; }

/* ── NAV ────────────────────────────────────────────────────────── */
:root { --nav-h: 66px; }
@media (max-width: 768px) { :root { --nav-h: 56px; } }
@media (max-width: 480px) { :root { --nav-h: 52px; } }

nav.main-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: var(--paper); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; padding: 18px 56px; border-bottom: 1.5px solid var(--ink); background: var(--paper); }
.nav-logo { flex-shrink: 1; min-width: 0; }
.nav-logo img { max-height: 26px; width: auto; max-width: 100%; display: block; }
.nav-links { display: flex; align-items: center; font-family: var(--ff-fat); font-size: var(--fs-nav); color: var(--ink); font-weight: 700; letter-spacing: -.02em; }
.nav-item { display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px; cursor: pointer; white-space: nowrap; user-select: none; }
.nav-item:hover .nav-label, .nav-item.is-active .nav-label { text-decoration: underline; text-underline-offset: 4px; }
.nav-dot { color: var(--ink); font-size: 18px; line-height: 1; margin-left: 3px; opacity: .55; transition: opacity .15s; }
.nav-item:hover .nav-dot, .nav-item.is-active .nav-dot { opacity: 1; }
.nav-plain { display: inline-flex; align-items: center; padding: 6px 14px; color: var(--ink); white-space: nowrap; }
.nav-plain:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-actions { display: flex; gap: 14px; align-items: center; }
.nav-lang { font-family: var(--ff-mono); font-size: var(--fs-mono); color: var(--ink-mute); letter-spacing: .12em; }
.nav-bar .btn { border-radius: 0 !important; }

/* ── MEGA ───────────────────────────────────────────────────────── */
.mega-panel { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1.5px solid var(--ink); box-shadow: 0 20px 48px rgba(10,10,10,.08); z-index: 200; border-radius: 0; }
.mega-panel.is-open { display: block; }
.mega-panel *, .mega-panel *::before, .mega-panel *::after { border-radius: 0 !important; }
.mega-limit { max-width: 1280px; margin: 0 auto; padding: 40px 56px 44px; }
.mega-phases { display: grid; grid-template-columns: repeat(3, 1fr) 240px; gap: 0; align-items: start; }
.mega-phase { display: flex; flex-direction: column; gap: 10px; padding: 0 44px 0 0; border-right: 1px solid var(--rule); margin-right: 44px; }
.mega-phase:last-of-type { border-right: none; margin-right: 0; padding-right: 0; }
.mega-phase-letter { font-family: var(--ff-fat); font-weight: 1000; font-size: var(--fs-em-stat); color: var(--ink); line-height: .85; letter-spacing: -.04em; }
.mega-phase-dur { font-family: var(--ff-mono); font-size: var(--fs-mono); color: var(--blue); letter-spacing: .16em; text-transform: uppercase; margin-top: 4px; }
.mega-phase-name { font-family: var(--ff-fat); font-weight: 900; font-size: var(--fs-body); color: var(--ink); letter-spacing: -.025em; text-transform: lowercase; }
.mega-phase-desc { font-family: var(--ff-sans); font-size: var(--fs-body); color: var(--ink-soft); line-height: 1.52; }
.mega-cta-col { display: flex; flex-direction: column; gap: 14px; padding-left: 44px; justify-content: center; height: 100%; }
.mega-prog-wrap { display: grid; grid-template-columns: 22% 1fr 280px; column-gap: 0; min-height: 340px; background: var(--paper); }
.mega-prog-col-left { padding: 36px 28px 36px 56px; display: flex; flex-direction: column; justify-content: flex-start; gap: 0; border-right: 1px solid var(--rule); }
.mega-prog-caveat { font-family: var(--ff-hand); font-weight: 700; font-size: var(--fs-hand-sm); color: var(--ink); line-height: 1.08; margin: 12px 0 0; }
.mega-prog-col-mid { padding: 0; display: flex; flex-direction: column; gap: 0; border-right: 1px solid var(--rule); }
.mega-prog-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 13px 32px; border-bottom: 1px solid var(--rule); color: inherit; text-decoration: none; transition: background .12s; }
.mega-prog-row:hover { background: var(--paper-hi); }
.mega-prog-row:last-child { border-bottom: none; }
.mega-prog-row.vedette { background: var(--paper-lo); }
.mega-prog-row.vedette:hover { background: var(--blue-soft); }
.mega-prog-num { font-family: var(--ff-mono); font-size: var(--fs-mono); color: var(--ink-mute); letter-spacing: .1em; align-self: flex-start; padding-top: 2px; }
.mega-prog-body { display: flex; flex-direction: column; gap: 2px; }
.mega-prog-title { font-family: var(--ff-fat); font-weight: 800; font-size: var(--fs-body); color: var(--ink); letter-spacing: -.015em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; line-height: 1.2; }
.mega-prog-sub { font-family: var(--ff-sans); font-size: var(--fs-small); color: var(--ink-mute); line-height: 1.4; }
.mega-prog-price { font-family: var(--ff-hand); font-size: var(--fs-lead); font-weight: 600; color: var(--ink); white-space: nowrap; line-height: 1; text-align: right; }
.mega-prog-price.accent { color: var(--blue); font-style: italic; }
.mega-prog-col-right { padding: 0 32px; background: var(--ink); display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.mega-prog-aside-ew { font-family: var(--ff-mono); font-size: var(--fs-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--fluo); }
.mega-prog-aside-title { font-family: var(--ff-hand); font-size: var(--fs-hand-sm); font-weight: 700; color: #fff; line-height: 1.15; }
.mega-prog-aside-body { font-family: var(--ff-sans); font-size: var(--fs-body); color: #cfcfcb; line-height: 1.55; }
.mega-prog-cta { display: inline-flex; align-self: flex-start; align-items: center; justify-content: center; gap: 10px; background: var(--fluo); color: var(--ink); padding: 8px 14px; margin-top: 8px; font-family: var(--ff-sans); font-weight: 500; font-size: 13px; letter-spacing: -.005em; border: 1.5px solid var(--ink); border-radius: 0; cursor: pointer; text-decoration: none; box-shadow: 4px 4px 0 var(--ink); }
.mega-aud-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.mega-aud { display: flex; flex-direction: column; gap: 10px; padding: 0 36px; border-right: 1px solid var(--rule); }
.mega-aud:first-child { padding-left: 0; }
.mega-aud:last-child { border-right: none; }
.mega-aud-emoji { font-size: 26px; line-height: 1; }
.mega-aud-name { font-family: var(--ff-fat); font-weight: 1000; font-size: var(--fs-body); color: var(--ink); letter-spacing: -.025em; text-transform: lowercase; }
.mega-aud-desc { font-family: var(--ff-sans); font-size: var(--fs-body); color: var(--ink-soft); line-height: 1.5; }
.mega-aud-link { font-family: var(--ff-sans); font-size: var(--fs-body); font-weight: 500; color: var(--blue); text-decoration: underline; text-underline-offset: 4px; margin-top: 4px; }
.mega-plat-wrap { display: grid; grid-template-columns: 1fr 300px; }
.mega-plat-main { padding: 40px 56px 44px; }
.mod-tile-ghl { grid-column: span 2; background: var(--paper); border: 1.5px solid var(--ink); border-left: 4px solid var(--fluo); padding: 16px 18px; display: flex; flex-direction: column; gap: 7px; }
.mod-tile-ghl:hover { border-color: var(--ink); border-left-color: var(--fluo); box-shadow: 3px 3px 0 var(--ink); }
.mod-tile-ghl .mod-name { font-size: var(--fs-body); color: var(--ink); }
.mod-tile-ghl .mod-name .art { background: var(--ink); color: var(--fluo); padding: 0 4px; }
.mod-tile-ghl .mod-sub { color: var(--ink-soft); }
.mod-tile-ghl .mod-cta { font-family: var(--ff-mono); font-size: var(--fs-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); margin-top: 4px; }
.modules-sep { display: flex; align-items: center; gap: 12px; margin: 20px 0 8px; }
.modules-sep-line { flex: 1; height: 1px; background: var(--rule); }
.modules-sep-label { font-family: var(--ff-mono); font-size: var(--fs-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); white-space: nowrap; }
.mega-plat-heading { font-family: var(--ff-serif); font-style: italic; font-size: var(--fs-h3); color: var(--ink); line-height: 1.35; margin: 12px 0 24px; max-width: 520px; }
.modules-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mod-tile { padding: 12px 14px; border: 1px solid var(--rule); display: flex; flex-direction: column; gap: 5px; transition: border-color .12s; }
.mod-tile:hover { border-color: var(--ink); }
.mod-name { font-family: var(--ff-sans); font-size: var(--fs-body); font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.mod-sub { font-family: var(--ff-mono); font-size: var(--fs-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.mega-plat-aside { background: var(--ink); padding: 40px 32px; display: flex; flex-direction: column; gap: 16px; }
.mega-aside-ew { font-family: var(--ff-mono); font-size: var(--fs-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--fluo); }
.mega-aside-title { font-family: var(--ff-serif); font-style: italic; font-size: var(--fs-hand-lg); color: #fff; line-height: 1.1; }
.mega-aside-body { font-family: var(--ff-sans); font-size: var(--fs-body); color: #cfcfcb; line-height: 1.55; }

/* ── FOOTER ──────────────────────────────────────────────────────── */
.page-content-wrap { position: relative; z-index: 2; background-color: var(--paper); background-image: url(assets/paper.jpg); background-repeat: repeat; background-size: 400px 400px; }
footer { padding: 80px 56px 36px; background: var(--ink); color: #e6e6e3; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1; width: 100%; }
footer::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(#2566d4 1px, transparent 1px), linear-gradient(90deg, #2566d4 1px, transparent 1px); background-size: 80px 80px; opacity: .08; }
footer .inner-ft { position: relative; }
footer .top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.6fr 1fr; gap: 48px; margin-bottom: 64px; align-items: start; }
footer .logo { min-width: 0; }
footer .logo img { max-height: 36px; width: auto; max-width: 100%; }
footer .tagline { font-family: var(--ff-serif); font-style: italic; font-size: var(--fs-h3); color: #fff; margin-top: 24px; line-height: 1.2; max-width: 320px; }
footer .city { font-family: var(--ff-mono); font-size: var(--fs-mono); color: #8a8a87; letter-spacing: .16em; text-transform: uppercase; margin-top: 28px; }
footer .col-title { font-family: var(--ff-mono); font-size: var(--fs-mono); text-transform: uppercase; letter-spacing: .16em; color: var(--fluo); margin-bottom: 18px; }
footer .col-link { font-family: var(--ff-sans); font-size: var(--fs-small); color: #cfcfcb; padding: 6px 0; letter-spacing: -.005em; display: block; }
footer .col-link:hover { color: #fff; }
footer .bottom { border-top: 1px solid #2a2a27; padding-top: 22px; display: flex; justify-content: space-between; align-items: center; font-family: var(--ff-mono); font-size: var(--fs-mono); color: #8a8a87; letter-spacing: .08em; }

/* ── PAGE SECTIONS ──────────────────────────────────────────────── */
.page-hero { padding: 100px 80px 80px; position: relative; }
.page-section { padding: 120px 80px; }
.page-section.lo { background: var(--paper-lo); }
.page-section.dark { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.page-section.dark::before { content:''; position:absolute; inset:0; opacity:.05; pointer-events:none; background-image:linear-gradient(var(--fluo) 1px,transparent 1px),linear-gradient(90deg,var(--fluo) 1px,transparent 1px); background-size:80px 80px; }
.page-section.dark .relative { position: relative; }

/* ── PEN CHECK SVG shortcut via class ───────────────────────────── */
.check-item { display: flex; gap: 12px; align-items: baseline; }
.check-item svg { flex-shrink: 0; position: relative; top: 2px; }

/* ── NOTEPAD ────────────────────────────────────────────────────── */
.notepad-wrap { position: relative; }
.notepad-stack-1 { position: absolute; inset: 0; background: #f6f3e6; box-shadow: 0 4px 12px rgba(0,0,0,.06); transform: translate(4px, 5px) rotate(-1deg); z-index: 0; }
.notepad-stack-2 { position: absolute; inset: 0; background: #faf7ea; box-shadow: 0 3px 10px rgba(0,0,0,.05); transform: translate(2px, 3px) rotate(.6deg); z-index: 0; }
.notepad { position: relative; z-index: 1; background: #fefdf6; padding: 56px 32px 36px 56px; min-height: 540px; display: flex; flex-direction: column; box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 10px 26px -8px rgba(0,0,0,.18); background-image: linear-gradient(to right, transparent 38px, #f0e6e0 38px, #f0e6e0 39px, transparent 39px), repeating-linear-gradient(to bottom, transparent 0, transparent 27px, #d8dde3 27px, #d8dde3 28px); background-size: auto, auto; background-position: 0 0, 0 12px; }
.notepad .spiral { position: absolute; top: 0; left: 0; right: 0; height: 22px; display: flex; justify-content: space-around; align-items: flex-end; padding: 0 28px; pointer-events: none; }
.notepad .hole { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--paper-lo); box-shadow: inset 0 1px 2px rgba(0,0,0,.25); }
.notepad .hole::before { content: ''; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 5px; height: 22px; border-radius: 3px; background: linear-gradient(180deg, #c9c9c4 0%, #8a8a85 50%, #c9c9c4 100%); border: .5px solid #6a6a65; }
.notepad .tag-row { display: flex; gap: 14px; align-items: center; margin-bottom: 24px; }
.notepad .read-time { font-family: var(--ff-mono); font-size: var(--fs-mono); color: var(--ink-mute); letter-spacing: .12em; }
.notepad .title { font-family: var(--ff-hand); font-weight: 700; font-size: var(--fs-hand-lg); color: var(--ink); line-height: 1.02; letter-spacing: -.01em; margin-bottom: 28px; }
.notepad .excerpt { font-family: var(--ff-sans); font-size: var(--fs-body); color: var(--ink-soft); line-height: 1.65; margin-bottom: 32px; }
.notepad .spacer { flex: 1; }
.notepad .cta-row { align-self: flex-end; display: flex; align-items: flex-end; gap: 10px; }
.notepad .cta-text { font-family: var(--ff-hand); font-weight: 700; font-size: var(--fs-hand-sm); color: var(--ink); line-height: 1; background: linear-gradient(102deg, transparent 0%, var(--fluo) 4%, var(--fluo) 96%, transparent 100%); background-size: 100% 75%; background-repeat: no-repeat; background-position: center 70%; padding: 2px 8px; }


/* ── FAQ GRID ───────────────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.faq-item { padding: 28px 32px; background: var(--paper); border: 1.5px solid var(--ink); }
.faq-q { font-family: var(--ff-fat); font-weight: 900; font-size: var(--fs-h3); color: var(--ink); margin-bottom: 14px; line-height: 1.15; letter-spacing: -.025em; text-transform: lowercase; }
.faq-a { font-family: var(--ff-sans); font-size: var(--fs-body); color: var(--ink-soft); line-height: 1.6; }

/* ── FINAL CTA SECTION ───────────────────────────────────────────── */
.final-cta { padding: 160px 80px 180px; text-align: center; }
.final-cta .display { font-size: var(--fs-display); max-width: 1100px; margin: 0 auto 40px; }

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — Hamburger + Mobile Nav + Foundation Media Queries
   ═══════════════════════════════════════════════════════════════════ */

/* ── BURGER BUTTON ──────────────────────────────────────────────── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  padding: 8px 9px;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE NAV DRAWER ──────────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--paper);
  padding: 64px 0 40px;
  flex-direction: column;
  overflow-y: auto;
  align-items: stretch;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav > * { width: 100%; max-width: 520px; margin-left: auto; margin-right: auto; box-sizing: border-box; }
.mobile-nav-link {
  display: block;
  font-family: var(--ff-fat);
  font-weight: 900;
  font-size: 26px;
  color: var(--ink);
  letter-spacing: -.025em;
  text-transform: lowercase;
  padding: 14px 28px;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
.mobile-nav-link:hover { color: var(--blue); }
.mobile-nav-sub {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 20px 28px 0;
  margin-bottom: -4px;
  display: block;
}
.mobile-nav-cta {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 28px;
}

/* ── MOBILE NAV — accordion mega menu ──────────────────────────── */
.mobile-nav-group { border-bottom: 1px solid var(--rule); }
.mobile-nav-group summary { list-style: none; cursor: pointer; user-select: none; display: flex; align-items: center; justify-content: space-between; outline: none; -webkit-tap-highlight-color: transparent; }
.mobile-nav-group summary::-webkit-details-marker { display: none; }
.mobile-nav-group summary:focus { outline: none; }
.mobile-nav-group summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 4px; }
.mobile-nav-group > .mobile-nav-summary { border-bottom: none; }
.mobile-nav-chevron { font-size: 16px; color: var(--ink-mute); transition: transform .2s ease; line-height: 1; }
.mobile-nav-group[open] .mobile-nav-chevron { transform: rotate(180deg); color: var(--blue); }
.mobile-nav-sublinks {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 28px 18px 44px;
  border-left: 2px solid var(--rule);
  margin-left: 28px;
}
.mobile-nav-sublink {
  font-family: var(--ff-sans);
  font-size: 15px;
  color: var(--ink-soft);
  padding: 10px 0;
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 10px;
  letter-spacing: -.005em;
}
.mobile-nav-sublink strong {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--blue);
  letter-spacing: .14em;
  font-weight: 400;
  flex-shrink: 0;
}
.mobile-nav-sublink em {
  margin-left: auto;
  font-family: var(--ff-mono);
  font-size: 10px;
  font-style: normal;
  color: var(--ink-mute);
  letter-spacing: .08em;
}
.mobile-nav-sublink-ghl {
  font-family: var(--ff-fat);
  font-weight: 900;
  font-size: 18px;
  color: var(--ink);
  text-transform: lowercase;
  letter-spacing: -.02em;
  padding: 14px 0 16px;
}
.mobile-nav-sublink-cta {
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--fluo);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: 14px;
  text-align: center;
  justify-content: center;
  box-shadow: 3px 3px 0 var(--ink);
}
.mobile-nav-modgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  margin: 8px 0 4px;
}
.mobile-nav-modtile {
  padding: 12px 12px;
  font-family: var(--ff-sans);
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  letter-spacing: -.005em;
  line-height: 1.2;
}
.mobile-nav-modtile:nth-child(2n) { border-right: none; }
.mobile-nav-modtile:last-child:nth-child(odd) { grid-column: span 2; text-align: center; background: var(--paper-lo); border-right: none; }
.mobile-nav-modtile:nth-last-child(-n+3) { border-bottom: none; }
.mobile-nav-modtile:active { background: var(--fluo); }

/* ── @media 1024px — iPad (hamburger + typo scale) ─────────────── */
@media (max-width: 1024px) {
  /* Footer — sortir du mode fixed reveal */
  footer { position: relative; bottom: auto; left: auto; right: auto; width: auto; }

  /* Nav */
  .nav-bar { padding: 14px 20px; }
  .nav-links, .nav-actions { display: none; }
  .nav-burger { display: flex; }
  .mega-panel { display: none !important; }

  /* Contain fixed-width elements */
  .img-ph { max-width: 100% !important; }
  .page-preview { max-width: 100%; }

  /* Typography — override inline font-size via !important */
  footer .logo img { max-height: 80px; }
}

/* ── @media 768px — mobile ──────────────────────────────────────── */
@media (max-width: 768px) {
  /* Footer — pas de position:fixed sur mobile (sinon zone vide énorme avant footer) */
  footer { position: static !important; padding: 40px 20px 24px; }
  .page-content-wrap { margin-bottom: 0 !important; }
  footer .top { grid-template-columns: 1fr; gap: 32px; margin-bottom: 36px; }
  footer .bottom { flex-direction: column; gap: 8px; text-align: center; }
  footer .top > div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr 1fr; }
  footer .logo img { max-height: 28px; }

  /* Layout primitives */
  .sec-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
  .page-hero { padding: 56px 24px 48px; }
  .page-section { padding: 64px 24px; }
  .final-cta { padding: 80px 24px 96px; }

  /* Typography */
  /* Contain fixed-width elements */
  .img-ph { max-width: 100% !important; width: 100% !important; }

  /* Notepad */
  .notepad { padding: 40px 18px 28px 40px; min-height: auto; }
  /* FAQ */
  .faq-grid { grid-template-columns: 1fr; }

  /* GLOBAL — boutons longs : autorise wrap sur mobile (évite overflow horizontal) */
  .btn.btn-l, .btn.btn-m { white-space: normal; text-align: center; line-height: 1.25; max-width: 100%; word-break: keep-all; }

  /* GLOBAL — override inline section paddings (gros padding desktop → padding mobile raisonnable) */
  section[style*="padding:140px 80px"],
  section[style*="padding:120px 80px"],
  section[style*="padding:100px 80px"] {
    padding: 64px 24px !important;
  }
  section[style*="padding:120px 80px 100px"] {
    padding: 80px 24px 56px !important;
  }
  section[style*="padding:160px 80px 180px"] {
    padding: 80px 24px 96px !important;
  }
  section[style*="padding:140px 80px 0"] {
    padding: 64px 24px 0 !important;
  }
  section[style*="padding:32px 80px"],
  section[style*="padding:28px 80px"] {
    padding: 28px 24px !important;
  }
}

/* ── @media 480px — small mobile ───────────────────────────────── */
@media (max-width: 480px) {
  .nav-bar { padding: 12px 16px; }
  .page-hero { padding: 44px 16px 36px; }
  .page-section { padding: 48px 16px; }
  .final-cta { padding: 60px 16px 72px; }
  footer { padding: 36px 16px 20px; }
  .notepad { padding: 32px 14px 24px 28px; }

  /* GLOBAL — override inline section paddings encore plus serré */
  section[style*="padding:140px 80px"],
  section[style*="padding:120px 80px"],
  section[style*="padding:100px 80px"] {
    padding: 48px 16px !important;
  }
  section[style*="padding:120px 80px 100px"] {
    padding: 64px 16px 44px !important;
  }
  section[style*="padding:160px 80px 180px"] {
    padding: 64px 16px 72px !important;
  }
  section[style*="padding:140px 80px 0"] {
    padding: 48px 16px 0 !important;
  }
  section[style*="padding:32px 80px"],
  section[style*="padding:28px 80px"] {
    padding: 24px 16px !important;
  }
}
