/* NADAPROD — pages publiques (landing, /debate). Direction : doc/DESIGN.md,
   « l'imprimé » — encre sur papier chaud, un surligneur vert acide, des
   filets plutôt que des boîtes. Couleurs, polices, thèmes : static/tokens.css.
   Chaque page garde en ligne seulement ce qui lui est propre. */

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: #000; }

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 17px;
    overflow: hidden;
    height: 100vh; height: 100dvh;
    width: 100vw;
    display: flex;
    flex-direction: column;
}

/* ── Cadre ──────────────────────────────────────────── */
main { flex: 1; position: relative; overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth; padding-top: 80px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    max-width: 1240px; margin-inline: auto;
    height: 80px; padding: 0 1.5rem;
    display: flex; justify-content: space-between; align-items: center;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
.header-logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 40px; width: auto; filter: var(--logo-filter); display: block; }
.header-controls { display: flex; align-items: center; gap: .5rem; }

/* Boutons : Archivo, casse normale. Le secondaire tient par un filet ;
   le principal (.primary) porte le seul geste de l'écran : vert + ombre franche. */
.icon-btn {
    background: transparent; color: var(--text-main);
    border: 1px solid var(--border);
    height: 40px; padding: 0 14px;
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font: 600 .875rem/1 var(--font-body); letter-spacing: -.005em;
    text-decoration: none; cursor: pointer;
    transition: border-color .15s, background .15s;
}
.icon-btn:hover { border-color: var(--text-main); }
.icon-btn.primary {
    height: 52px; padding: 0 24px; font-size: 1rem; font-weight: 700;
    background: var(--accent); color: #000;
    border: 2px solid #0b0b0a; box-shadow: 4px 4px 0 var(--text-main);
    transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.icon-btn.primary:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--text-main); }
.icon-btn.primary:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--text-main); }
#auth-btn .auth-icon { display: none; }

/* ── Typographie : quatre voix ──────────────────────── */
/* Titres de page : Big Shoulders. Un mot en Fraunces italique (.accent). */
/* Permanent Marker : une seule graisse, jamais de faux gras ni de capitales forcées. */
h1, h2 { font-family: var(--font-display); font-weight: 400; font-synthesis: none; line-height: 1.04; letter-spacing: normal; }
.accent {
    font-family: var(--font-accent); font-style: italic; font-weight: 300;
    text-transform: none; letter-spacing: -.035em;
    font-size: .82em;
    display: inline-block; padding-right: .06em; /* l'italique déborde */
}
.display-text { font-size: clamp(2.3rem, 6vw, 5.4rem); color: var(--text-main); margin-bottom: 2.25rem; overflow-wrap: anywhere; }

/* Un geste par titre : dans les titres au marqueur, le mot d'accent reste au
   marqueur (deux voix expressives sur une ligne se battent). Fraunces garde
   son rôle d'accent discret dans les sous-titres en Archivo. */
h1 .accent, h2 .accent { font: inherit; letter-spacing: inherit; padding-right: 0; }

/* Sous-titres : Archivo, avec au plus un mot d'accent. */
h3 { font: 600 clamp(1.4rem, 2.2vw, 1.85rem)/1.15 var(--font-body); letter-spacing: -.02em; color: var(--text-main); }
h3 .accent { font-size: 1.08em; letter-spacing: -.02em; }

/* L'unique style en capitales espacées : l'étiquette de section. */
.label { display: block; font: 600 11px/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); }

p { line-height: 1.6; color: var(--text-secondary); font-size: 1.05rem; }
strong { color: var(--text-main); font-weight: 600; }
.section-intro { font-size: clamp(1.15rem, 2.1vw, 1.5rem); line-height: 1.42; letter-spacing: -.012em; max-width: 44rem; color: var(--text-main); margin-bottom: 2.75rem; }
.section-intro em { font-style: normal; font-weight: 600; }

a.text-link { color: var(--text-main); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a.text-link:hover { text-decoration-thickness: 2px; text-decoration-color: rgb(var(--acc-fg)); }

/* Ce qui est machine : mono, calme. */
.mono-line { font: .8rem/1.9 var(--font-mono); color: var(--text-secondary); }

/* Liste à filets (pas de puces). */
.list { list-style: none; border-bottom: 1px solid var(--border); }
.list li { padding: .6rem 0; border-top: 1px solid var(--border); font-size: .95rem; line-height: 1.45; color: var(--text-secondary); }
.list.two { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.5rem; border-bottom: 0; }

/* Focus : le vert lisible (olive en clair, acide en sombre). */
:focus-visible { outline: 2px solid rgb(var(--acc-fg)); outline-offset: 3px; }

@media (max-width: 900px) {
    main { padding-top: 64px; }
    header { height: 64px; padding: 0 1rem; }
    .logo-img { height: 32px; }
    .list.two { grid-template-columns: 1fr; }
    #auth-btn { padding: 0 10px; }
    #auth-btn .auth-icon { display: block; }
    #auth-btn .auth-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    main { scroll-behavior: auto; }
}
