/* ═══════════════════════════════════════════════════════════════════
   ACA NASAPUNK LIGHT — Design system Landing v5.1 (direction finale Pat)
   Palette du jeu : papier, rouge, orange, or, navy. Plus de fond étoilé.
   Mix des 4 concepts validés :
     A « Stripe Hero »      : papier + titre navy massif + bande diagonale
     B « Cartes Mission »   : bande fine en tête de carte + numéros télémétrie
     C « Panneau Navy »     : sections sombres contrastées, accent or
     D « Manuel Technique » : sommaires numérotés, lignes fines, réfs mono
   Mapping produits : Immersif=rouge · Initiative=orange · Club=or · Coventure/Arène=navy
   Chaque page définit : body.cosmos { --accent:#hex; --accent-ink:#fff|#1B2A47; }
   (le vocabulaire de classes reste celui de cosmos.css : mêmes noms, nouveau look)
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --paper:   #F4F5F7;
  --white:   #FFFFFF;
  --ink:     #1B2A47;   /* texte principal, navy profond */
  --navy:    #314B7A;
  --red:     #C32136;
  --orange:  #DF5F35;
  --gold:    #D8A953;
  --gold-ink:#A87F2F;   /* or assombri pour texte sur fond clair (AA) */
  --line:       rgba(27,42,71,0.14);
  --line-soft:  rgba(27,42,71,0.08);
  --txt:        var(--ink);
  --txt-dim:    rgba(27,42,71,0.72);
  --txt-muted:  rgba(27,42,71,0.5);
  --accent:     var(--navy);
  --accent-ink: #ffffff;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --disp: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
}

* { -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }
body.cosmos {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  letter-spacing: -0.011em;
  min-height: 100vh;
  overflow-x: hidden;
}
.cwrap { position: relative; z-index: 1; }
#cosmos-stars { display: none; } /* héritage v5.0 : starfield abandonné */

/* ── Signature : bande tricolore (rouge → orange → or) ── */
.stripe { display: flex; height: 10px; }
.stripe i { flex: 1; }
.stripe i:nth-child(1) { background: var(--red); }
.stripe i:nth-child(2) { background: var(--orange); }
.stripe i:nth-child(3) { background: var(--gold); }
.stripe--thin { height: 4px; }
.stripe--diag { height: clamp(70px, 9vw, 120px); clip-path: polygon(0 38%, 100% 0, 100% 62%, 0 100%); }
.stripe--v { position: absolute; top: 0; bottom: 0; left: 0; width: 12px; flex-direction: column; height: auto; }

/* ── Typo ── */
.cdisp { font-family: var(--disp); font-weight: 800; letter-spacing: -0.04em; line-height: 1.04; }
.cdisp-hero { font-family: var(--disp); font-weight: 900; letter-spacing: -0.05em; line-height: 1.0; font-size: clamp(2.5rem, 7vw, 5.2rem); }
.ctitle { font-family: var(--disp); font-weight: 900; letter-spacing: -0.035em; font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.05; }
.cbody { color: var(--txt-dim); font-size: 1.06rem; line-height: 1.7; }
.csmall { color: var(--txt-muted); font-size: .9rem; line-height: 1.6; }
.caccent { color: var(--accent); }

/* Étiquette HUD mono (« 01 // NOM ») */
.chud {
  font-family: var(--mono); font-size: .68rem; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 12px;
}
.chud::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
.chud--bare::before { display: none; }

/* Badge statut */
.cstatus {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .66rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--txt-dim); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 4px; background: var(--white);
}
.cstatus .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ── Sections / structure ── */
.csec { position: relative; max-width: 1160px; margin: 0 auto; padding: 90px 24px; }
.csec--tight { padding: 52px 24px; }
.csec--full { max-width: none; padding-left: 0; padding-right: 0; }

/* Règle graduée (D) */
.crule { position: relative; height: 1px; background: var(--line); margin: 0 24px; max-width: 1160px; }
@media (min-width: 1208px) { .crule { margin: 0 auto; } }
.crule--strong { height: 2px; background: var(--ink); }

/* ── Cartes Mission (B) : panneau blanc, bande tricolore en tête via .stripe ── */
.ccard {
  position: relative; background: var(--white);
  border: 1px solid var(--line); border-radius: 12px; padding: 26px;
  box-shadow: 0 10px 28px rgba(27,42,71,0.06);
  transition: transform .25s, box-shadow .25s;
  overflow: hidden;
}
.ccard:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(27,42,71,0.12); }
.ccard--flat, .ccard--flat:hover { transform: none; box-shadow: none; }
.ccard--accent { border-top: 4px solid var(--accent); }
.ccard--paper { background: var(--paper); }
/* bande tricolore en tête de carte : <div class="ccard ccard--stripe"> */
.ccard--stripe { padding-top: 30px; }
.ccard--stripe::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--red) 0 33.4%, var(--orange) 33.4% 66.7%, var(--gold) 66.7% 100%);
}

/* Numéro télémétrie (B / D) */
.tnum { font-family: var(--mono); font-weight: 700; font-size: 2.8rem; letter-spacing: -0.04em; line-height: 1; color: var(--accent); }
.tnum--red { color: var(--red); } .tnum--orange { color: var(--orange); } .tnum--gold { color: var(--gold-ink); } .tnum--navy { color: var(--navy); }

/* ── Panneau Navy (C) ── */
.npanel { position: relative; background: var(--ink); color: var(--paper); overflow: hidden; }
.npanel .cbody { color: rgba(244,245,247,0.74); }
.npanel .csmall { color: rgba(244,245,247,0.55); }
.npanel .chud { color: var(--gold); } .npanel .chud::before { background: var(--gold); }
.npanel .cstatus { color: rgba(244,245,247,0.8); border-color: rgba(244,245,247,0.25); background: rgba(244,245,247,0.05); }
.npanel .caccent { color: var(--gold); }
.npanel .crule { background: rgba(244,245,247,0.16); }

/* ── Boutons plats ── */
.cbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--disp); font-weight: 700; font-size: .95rem; letter-spacing: -0.01em;
  padding: 16px 32px; border-radius: 8px; text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s;
  cursor: pointer; border: 1.5px solid transparent;
}
.cbtn-primary { background: var(--accent); color: var(--accent-ink); }
.cbtn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(27,42,71,0.22); }
.cbtn-ink { background: var(--ink); color: #fff; }
.cbtn-ink:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(27,42,71,0.25); }
.cbtn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.cbtn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.npanel .cbtn-ghost { color: var(--paper); border-color: rgba(244,245,247,0.3); }
.npanel .cbtn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.cbtn-wide { width: 100%; }

/* Boutons rendus par le shortcode Commerce : harmonisés NASApunk */
.cosmos .aca-cta-btn,
.cosmos a.aca-cta-btn--primary, .cosmos a.aca-cta-btn--ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--disp) !important; font-weight: 700 !important;
  padding: 16px 32px !important; border-radius: 8px !important; text-decoration: none !important;
  background-image: none !important;
}
.cosmos a.aca-cta-btn--primary { background-color: var(--accent) !important; color: var(--accent-ink) !important; border: 1.5px solid transparent !important; }
.cosmos a.aca-cta-btn--ghost   { background-color: transparent !important; color: var(--ink) !important; border: 1.5px solid var(--line) !important; }
.cosmos a.aca-cta-btn--ghost:hover { border-color: var(--accent) !important; color: var(--accent) !important; }
.npanel a.aca-cta-btn--ghost { color: var(--paper) !important; border-color: rgba(244,245,247,0.3) !important; }

/* ── Manuel Technique (D) : rangées numérotées ── */
.mrow { display: grid; grid-template-columns: 100px 1fr auto; gap: 28px; align-items: center; padding: 32px 0; border-top: 1px solid var(--line); }
.mrow:last-of-type { border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .mrow { grid-template-columns: 64px 1fr; } .mrow .mref { display: none; } }
.mrow h3 { font-family: var(--disp); font-weight: 850; font-size: 1.25rem; letter-spacing: -0.02em; margin: 0 0 4px; }
.mrow p { font-size: .92rem; color: var(--txt-dim); line-height: 1.55; max-width: 560px; margin: 0; }
.mref { font-family: var(--mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--txt-muted); white-space: nowrap; }

/* Coordonnées / réfs décoratives */
.ccoords { font-family: var(--mono); font-size: .62rem; letter-spacing: .18em; color: var(--txt-muted); user-select: none; text-transform: uppercase; }
.npanel .ccoords { color: rgba(244,245,247,0.4); }

/* Chiffre télémétrie avec libellé (stats) */
.cstat { }
.cstat .n { font-family: var(--mono); font-weight: 700; font-size: clamp(1.9rem, 4.5vw, 2.6rem); letter-spacing: -0.03em; color: var(--ink); }
.cstat .n em { font-style: normal; color: var(--accent); }
.npanel .cstat .n { color: var(--paper); }
.cstat .l { font-family: var(--mono); font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--txt-muted); margin-top: 6px; }

/* Liste à tirets techniques */
.clist { list-style: none; padding: 0; margin: 0; }
.clist li { position: relative; padding-left: 26px; margin-bottom: 12px; color: var(--txt-dim); line-height: 1.6; }
.clist li::before { content: ""; position: absolute; left: 0; top: .58em; width: 13px; height: 2px; background: var(--accent); }

/* Photo encadrée (hublot clair) */
.cframe { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--white); box-shadow: 0 14px 34px rgba(27,42,71,0.08); }
.cframe img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cframe .tag {
  position: absolute; left: 10px; bottom: 10px; font-family: var(--mono); font-size: .6rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
  background: rgba(244,245,247,0.92); border: 1px solid var(--line); padding: 4px 9px; border-radius: 4px;
}

/* FAQ */
.cfaq details { border: 1px solid var(--line); border-radius: 10px; background: var(--white); padding: 18px 22px; margin-bottom: 10px; }
.cfaq summary { cursor: pointer; font-family: var(--disp); font-weight: 750; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--ink); }
.cfaq summary::after { content: "+"; font-family: var(--mono); color: var(--accent); font-size: 1.15rem; }
.cfaq details[open] summary::after { content: "–"; }
.cfaq details p { margin-top: 12px; color: var(--txt-dim); line-height: 1.65; }

/* Prix télémétrie */
.cprice { font-family: var(--mono); font-weight: 700; font-size: clamp(2.4rem, 5.5vw, 3.6rem); letter-spacing: -0.02em; color: var(--ink); }
.cprice .unit { font-size: .9rem; color: var(--txt-muted); letter-spacing: .06em; }
.cprice--strike { color: var(--txt-muted); text-decoration: line-through; text-decoration-color: var(--red); }
.npanel .cprice { color: var(--paper); }

/* Sticky CTA mobile */
.csticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(244,245,247,0.94); backdrop-filter: blur(12px); border-top: 1px solid var(--line); display: none; }
@media (max-width: 720px) { .csticky.on { display: block; } body.cosmos.has-sticky { padding-bottom: 84px; } }

/* ── Révélation au scroll (progressive enhancement, body.js-rv via JS) ── */
.js-rv .rv, .js-rv .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.js-rv .rv.visible, .js-rv .reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .rv, .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}
