/* =========================================================
   FLV — Front de Libération du Verdunstan
   Couleurs du blason : or, noir (sable), azur et argent.
   ========================================================= */

:root {
    --or: #e2b714;
    --or-clair: #f2d45c;
    --noir: #111111;
    --fond: #171714;
    --carte: #22211c;
    --carte-bord: #34322a;
    --texte: #ebe7da;
    --texte-doux: #b3ad9c;
    --azur: #2f6fd6;
    --argent: #ffffff;
    --largeur: 960px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--fond);
    color: var(--texte);
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img { max-width: 100%; }

a { color: var(--or); }
a:hover { color: var(--or-clair); }

/* ---------- En-tête ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 24px;
    background: var(--noir);
    border-bottom: 4px solid var(--or);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--or);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 4px;
}

.brand img { height: 44px; width: auto; }

.main-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.main-menu a {
    padding: 8px 12px;
    color: var(--texte);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-bottom: 2px solid transparent;
}

.main-menu a:hover { color: var(--or); }

.main-menu a.active {
    color: var(--or);
    border-bottom-color: var(--or);
}

.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px 8px;
    background: none;
    border: 0;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 3px;
    margin: 5px 0;
    background: var(--or);
}

@media (max-width: 860px) {
    .hamburger { display: block; }
    .main-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--noir);
        border-bottom: 4px solid var(--or);
        padding: 8px 0;
    }
    .main-menu.open { display: flex; }
    .main-menu a { padding: 14px 24px; border-bottom: 1px solid var(--carte-bord); }
    .main-menu a.active { border-bottom-color: var(--carte-bord); border-left: 4px solid var(--or); }
}

/* ---------- Bandeau d'accueil ---------- */

.hero {
    text-align: center;
    padding: 56px 24px 40px;
    background:
        linear-gradient(180deg, rgba(17,17,17,0.0) 0%, var(--fond) 100%),
        repeating-linear-gradient(135deg, #1d1c18 0 22px, #191814 22px 44px);
    border-bottom: 1px solid var(--carte-bord);
}

.hero img { width: 150px; height: auto; filter: drop-shadow(0 6px 18px rgba(0,0,0,0.6)); }

.hero h1 {
    margin: 20px 0 8px;
    font-size: clamp(1.6rem, 4.5vw, 2.8rem);
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--argent);
}

.hero .devise {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 22px;
    background: var(--or);
    color: var(--noir);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.page-title {
    max-width: var(--largeur);
    margin: 48px auto 0;
    padding: 0 24px;
}

.page-title h1 {
    margin: 0;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--argent);
}

.page-title p {
    margin: 8px 0 0;
    color: var(--texte-doux);
    font-size: 1.05rem;
}

/* ---------- Contenu ---------- */

main { flex: 1; }

section {
    max-width: var(--largeur);
    margin: 40px auto;
    padding: 0 24px;
}

h2 {
    margin: 0 0 16px;
    padding-left: 14px;
    border-left: 6px solid var(--or);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.3rem;
    color: var(--or);
}

h3 {
    margin: 0 0 8px;
    color: var(--argent);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.block {
    background: var(--carte);
    border: 1px solid var(--carte-bord);
    border-left: 6px solid var(--or);
    padding: 22px 28px;
    margin: 0 0 20px;
}

.block p:first-child { margin-top: 0; }
.block p:last-child { margin-bottom: 0; }

.lead {
    font-size: 1.15rem;
    color: var(--argent);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.card {
    background: var(--carte);
    border: 1px solid var(--carte-bord);
    border-top: 5px solid var(--or);
    padding: 22px 24px;
}

.card .num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--or);
    line-height: 1;
    margin-bottom: 10px;
}

.card p { margin: 0; color: var(--texte-doux); }

.card.ennemi { border-top-color: #8a8a8a; }
.card.allie { border-top-color: var(--azur); }

.slogan {
    margin: 40px 0;
    padding: 28px 24px;
    background: var(--noir);
    border-top: 4px solid var(--or);
    border-bottom: 4px solid var(--or);
    text-align: center;
    font-size: clamp(1.2rem, 3vw, 1.7rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--argent);
}

.slogan span { color: var(--or); }

ul.points { margin: 0; padding-left: 0; list-style: none; }
ul.points li { padding: 8px 0 8px 32px; position: relative; border-bottom: 1px solid var(--carte-bord); }
ul.points li:last-child { border-bottom: 0; }
ul.points li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 15px;
    width: 12px;
    height: 12px;
    background: var(--or);
    clip-path: polygon(35% 0, 65% 0, 65% 35%, 100% 35%, 100% 65%, 65% 65%, 65% 100%, 35% 100%, 35% 65%, 0 65%, 0 35%, 35% 35%);
}

figure { margin: 0 0 20px; }
figure img { display: block; width: 100%; border: 1px solid var(--carte-bord); }
figcaption { margin-top: 8px; color: var(--texte-doux); font-size: 0.9rem; }

/* ---------- Chronologie ---------- */

.timeline { position: relative; margin: 0; padding: 0 0 0 28px; list-style: none; }
.timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 6px;
    bottom: 6px;
    width: 3px;
    background: var(--or);
}

.timeline li { position: relative; margin: 0 0 28px; }
.timeline li::before {
    content: "";
    position: absolute;
    left: -28px;
    top: 6px;
    width: 17px;
    height: 17px;
    background: var(--noir);
    border: 3px solid var(--or);
}

.timeline .date {
    display: inline-block;
    padding: 2px 10px;
    background: var(--or);
    color: var(--noir);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline h3 { margin-top: 8px; }
.timeline p { margin: 0; color: var(--texte-doux); }

/* ---------- Formulaires (Accès interne) ---------- */

input[type="text"], input[type="password"] {
    width: 100%;
    max-width: 360px;
    padding: 10px 12px;
    background: var(--noir);
    color: var(--texte);
    border: 1px solid var(--carte-bord);
    font-size: 1rem;
}

input:focus { outline: 2px solid var(--or); outline-offset: 1px; }

button {
    padding: 10px 22px;
    background: var(--or);
    color: var(--noir);
    border: 0;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

button:hover { background: var(--or-clair); }

.site-header .hamburger { background: none; padding: 10px 8px; }

/* ---------- Pied de page ---------- */

footer {
    margin-top: 48px;
    padding: 28px 24px;
    background: var(--noir);
    border-top: 4px solid var(--or);
    text-align: center;
    color: var(--texte-doux);
    font-size: 0.9rem;
}

footer strong {
    display: block;
    color: var(--or);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 6px;
}

footer .fiction { font-size: 0.78rem; opacity: 0.7; margin: 10px 0 0; }

/* ---------- Communiqués ---------- */

.communique {
    background: var(--carte);
    border: 1px solid var(--carte-bord);
    border-top: 5px solid var(--or);
    padding: 24px 28px;
    margin: 0 0 28px;
    scroll-margin-top: 90px;
}

.communique .entete {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: var(--texte-doux);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.communique .numero {
    padding: 2px 10px;
    background: var(--or);
    color: var(--noir);
    font-weight: 800;
}

.communique h2 { border-left: 0; padding-left: 0; margin-bottom: 14px; }
.communique ul { padding-left: 22px; }
.communique p:last-child { margin-bottom: 0; }

.sommaire { columns: 2 260px; margin: 0; padding-left: 20px; }
.sommaire li { margin: 0 0 6px; break-inside: avoid; }
