/* /env/fauvedit.css — styles compacts pour le header + formulaires */
:root { --border:#d1d5db; --ink:#111827; --muted:#6b7280; }
* { box-sizing: border-box; }
body { margin:0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color:var(--ink); }
.container { max-width:1100px; margin:0 auto; padding:0 16px; }

/* Header */
.site-header { display:flex; align-items:center; padding:10px 0; border-bottom:1px solid #e5e7eb; background:#fff; }
.site-header .container { width:100%; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.brand { display:flex; align-items:center; gap:12px; text-decoration:none; color:inherit; }
.brand-logo { height:40px; width:auto; display:block; }
.brand-title { font-size:1.25rem; font-weight:700; letter-spacing:.01em; }
.nav-right { display:flex; align-items:center; gap:12px; }

/* Badges rôles */
.user-badge { padding:6px 10px; border-radius:10px; font-weight:600; display:inline-flex; align-items:center; border:1px solid transparent; }
.badge-client { background:#e6f6ea; color:#065f46; border-color:#A7F3D0; } /* vert client */
.badge-admin  { background:#e5f0ff; color:#1e3a8a; border-color:#BFDBFE; }  /* bleu admin */

/* Boutons */
.btn { padding:6px 12px; border-radius:12px; text-decoration:none; border:1px solid var(--border); display:inline-block; }
.btn-primary { background:var(--ink); color:#fff; border-color:var(--ink); }
.btn-ghost { background:transparent; color:var(--ink); }

/* Formulaires */
.form { display:grid; gap:12px; }
.form-control { width:100%; padding:10px 12px; border:1px solid var(--border); border-radius:10px; }
.alert-error { background:#fee2e2; border:1px solid #fecaca; padding:12px; border-radius:12px; }
.help { color:var(--muted); margin-top:10px; }
:root {
    --bg: #0d0e12;
    --card: #181b22;
    --text: #e9e9e9;
    --accent: #52d1c1;
    --accent-dark: #3ba596;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
}

/* === Header & Footer === */
.site-header, .site-footer {
    flex-shrink: 0;
    width: 100%;
}

.site-header {
    background: #11141a;
    padding: 15px 30px;
}

.header-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-inner h1 {
    color: var(--accent);
    font-size: 1.3rem;
}

nav a {
    color: var(--text);
    margin-left: 15px;
    text-decoration: none;
    transition: color 0.3s;
}

nav a:hover,
nav a.active {
    color: var(--accent);
}

/* === Main : centrage garanti === */
.site-main {
    flex: 1;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start;
    padding: 60px 20px;
    width: 100%;
}

/* === Bloc principal du quiz === */
.quiz-container {
    background: var(--card);
    border-radius: 10px;
    padding: 30px;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
    margin: 0 auto; /* centrage horizontal forcé */
    position: relative;
}

/* === Footer === */
.site-footer {
    background: #11141a;
    text-align: center;
    padding: 15px;
    color: #aaa;
    font-size: 0.9em;
}

/* === Titres === */
h2, h3 {
    color: var(--accent);
    margin-bottom: 10px;
}

/* === Formulaire d’introduction === */
.form-field {
    margin-top: 15px;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
}

input[type="text"],
select {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: none;
    background: #22252c;
    color: var(--text);
}

button {
    margin-top: 20px;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 5px;
    padding: 10px 25px;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
}

button:hover {
    background: var(--accent-dark);
    transform: scale(1.03);
}

/* === Questions === */
.question {
    display: none;
}

.question.active {
    display: block;
}

.question p {
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Réponses verticales */
.question label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #22252c;
    padding: 10px 15px;
    margin: 8px 0;
    border-radius: 6px;
    transition: background 0.2s ease, transform 0.1s ease;
    cursor: pointer;
    line-height: 1.4;
}

.question label:hover {
    background: #2b2f37;
    transform: scale(1.01);
}

.question input[type="radio"] {
    margin-top: 4px;
    accent-color: var(--accent);
}

.next-btn {
    display: inline-block;
    margin-top: 20px;
}

/* === Barre de progression === */
#progress-bar {
    width: 100%;
    background: #22252c;
    border-radius: 5px;
    height: 10px;
    margin-bottom: 20px;
}

#progress {
    width: 0%;
    height: 10px;
    background: var(--accent);
    border-radius: 5px;
    transition: width 0.3s ease;
}

/* === Résultat final === */
.hidden {
    display: none;
}

#result {
    text-align: center;
    margin-top: 30px;
}

#result h3 {
    color: var(--accent);
    margin-bottom: 10px;
}

#result p {
    line-height: 1.6;
}

/* === Ajustements globaux FAUV éditions === */

/* Décalage global sous le header fixe */
.site-main {
    padding-top: 100px; /* décale le contenu sous le header */
}

/* Harmonisation des sections (mêmes largeurs, marges alignées) */
.section {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* Ajustement du manifeste (pleine largeur dans son conteneur) */
.manifest {
    display: block;
    max-width: 100%;
}


.site-footer {
    background: #111;
    color: #ddd;
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col {
    flex: 1 1 250px;
}

.footer-col h3 {
    margin-bottom: 12px;
    font-size: 1.15rem;
    color: #fff;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col ul li a {
    color: #d1d5db;
    text-decoration: none;
}

.footer-col ul li a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: .9rem;
    color: #999;
}
