/* ═══════════════════════════════════════════════════════════════════════════
   layout.css — Ossature de la page.

   Reprend l'ossature des outils d'audit NLION (nav 62 px, colonne de 980 px,
   hero centré, panneaux blancs à coins arrondis), avec les adaptations
   nécessaires aux petits écrans : ces outils-là sont consultés au bureau,
   celui-ci doit rester lisible sur un téléphone.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Barre de navigation ─────────────────────────────────────────────────── */
.site-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 1px 8px rgba(30, 20, 10, 0.05);
}

.site-nav .nav-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.site-nav .nav-logo img { height: 26px; width: auto; }
.site-nav .nav-logo .nav-logo-text {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--noir);
    letter-spacing: 0.02em;
}

.site-nav .nav-badge {
    background: var(--orange-bg);
    color: var(--orange);
    font-size: 0.66rem;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 20px;
    border: 1px solid rgba(196, 88, 26, 0.22);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}
:root[data-theme="dark"] .site-nav .nav-badge { border-color: var(--border-strong); }

.site-nav .nav-spacer { flex: 1 1 auto; }
.site-nav .nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-icon-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--ease), border-color var(--ease);
}
.nav-icon-btn:hover { background: var(--orange-bg); border-color: var(--orange); }

.site-nav .back {
    font-size: 0.78rem;
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--ease);
}
.site-nav .back:hover { color: var(--orange); }

/* Sous 480 px, le lien de retour disparaît : le logo y renvoie déjà. */
@media (max-width: 479px) {
    .site-nav .back { display: none; }
}

/* Au-delà, mise en page exacte de la charte : 62 px de haut, 32 px de marges. */
@media (min-width: 720px) {
    .site-nav { padding: 0 32px; height: 62px; flex-wrap: nowrap; }
    .site-nav .nav-logo img { height: 30px; }
}

/* ── Colonne principale ──────────────────────────────────────────────────── */
main {
    max-width: 980px;
    margin: 0 auto;
    padding: 26px 14px 70px;
}

@media (min-width: 600px) {
    main { padding: 44px 20px 90px; }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { text-align: center; margin-bottom: 28px; }

.hero h1 {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: clamp(1.9rem, 4.5vw, 2.9rem);
    color: var(--noir);
    margin-bottom: 10px;
    line-height: 1.15;
}
.hero h1 em { color: var(--orange); font-style: italic; }

.hero p {
    color: var(--muted);
    font-size: 0.92rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (min-width: 600px) {
    .hero { margin-bottom: 40px; }
}

/* ── Panneau ─────────────────────────────────────────────────────────────── */
.panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    padding: 22px 18px;
    margin-bottom: 24px;
    transition: box-shadow var(--ease);
}
.panel:hover { box-shadow: var(--shadow-lg); }

@media (min-width: 600px) {
    .panel { padding: 30px; }
}

.panel-title {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--noir);
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── Titre de section ────────────────────────────────────────────────────── */
.section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin: 30px 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── Pied de page ────────────────────────────────────────────────────────── */
.site-footer {
    text-align: center;
    padding: 36px 16px 24px;
    font-size: 0.74rem;
    color: var(--muted);
    line-height: 1.7;
}
.site-footer a { color: var(--orange); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ── États d'écran (consentement → chargement → résultats) ───────────────── */
#loading-screen { display: none; flex-direction: column; align-items: center; padding: 60px 20px; }
#results-screen { display: none; }

/* Le rapport reçoit le focus à l'ouverture pour que les lecteurs d'écran et
   la navigation au clavier repartent de son début. Ce point d'entrée
   programmatique n'a pas à être entouré d'un liseré : il n'est pas
   actionnable, et le contour cerclerait toute la page. */
#results-screen:focus,
#results-screen:focus-visible { outline: none; }
