/* =========================================
   CHARTE GRAPHIQUE : VERSION DEFINITIVE 2.0
   "RADIANT UNION" - LOGO DÉBORDANT
   ========================================= */

/* --- 1. VARIABLES --- */
:root {
    /* Les 4 Couleurs du Logo */
    --color-red: #e2283d;      
    --color-green: #30a066;    
    --color-yellow: #FFD700;   
    --color-purple: #5e32a6;   
    
    /* Typographie & Nuances */
    --dark-text: #222222;      /* Anthracite (pas de noir pur) */
    --grey-text: #555555;
    --grey-light: #f9f9f9;
    --border-grey: #e0e0e0;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

/* --- 2. BASES --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    background-color: #ffffff;
    color: var(--dark-text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: 0.2s; }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative; /* Indispensable pour le logo flottant */
}

/* --- 3. HEADER "DÉBORDANT" --- */
.radiant-header {
    background-color: #fff;
    box-shadow: 0 4px 25px rgba(0,0,0,0.03); 
    position: relative;
    z-index: 100;
}

/* Ligne dégradée supérieure (L'ADN du logo) */
.gradient-line {
    height: 8px;
    width: 100%;
    background: linear-gradient(90deg, 
        var(--color-red) 0%, 
        var(--color-green) 35%, 
        var(--color-yellow) 70%, 
        var(--color-purple) 100%);
}

.header-main-row {
    display: flex;
    justify-content: flex-end; /* On pousse tout à droite car le logo flotte à gauche */
    align-items: center;
    padding: 15px 0 5px 0;
    min-height: 100px; /* Hauteur minimale pour le texte */
}

/* LOGO DÉBORDANT (FLOTTANT) */
.logo-area {
    position: absolute; /* Sort du flux normal */
    top: 5px;           /* Collé en haut */
    left: 20px;         /* Collé à gauche (aligné avec le padding container) */
    width: 240px;       /* Taille imposante */
    z-index: 200;       /* Passe au-dessus du menu */
}

.logo-svg {
    width: 100%;
    height: auto;
    /* Ombre portée pour détacher le logo qui "flotte" */
    filter: drop-shadow(0 5px 8px rgba(0,0,0,0.15)); 
}

/* BLOC IDENTITÉ (DROITE) */
.identity-area {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.top-meta {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--color-red);
    letter-spacing: 1px;
    line-height: 1;
    margin-bottom: 6px;
}

.sub-meta {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem; /* Équilibré avec le nom */
    color: var(--dark-text);
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: -0.5px;
}

/* NOM CANDIDAT (Lien) */
.candidate-link-title {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem; /* Même poids que le collectif */
    text-transform: uppercase;
    margin-top: 4px;
}

.candidate-link-title:hover {
    transform: translateX(-3px);
}

/* Effet dégradé sur le nom */
.text-gradient {
    background: linear-gradient(45deg, var(--color-purple), var(--color-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--color-purple);
}

.bio-line {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--grey-text);
    font-style: italic;
    margin-top: 4px;
    font-weight: 500;
}

/* --- 4. NAVIGATION (AÉRIENNE & BLANCHE) --- */
.nav-wrapper {
    border-top: 1px solid #f2f2f2;
    margin-top: 10px;
    background: #fff; /* Fond blanc forcé */
}

.main-navigation ul {
    display: flex;
    flex-wrap: wrap; /* Autorise le menu à passer sur plusieurs lignes */
    justify-content: flex-end; /* Aligne les boutons à droite */
    list-style: none;
    padding: 0;
    margin: 0 0 0 auto; /* Pousse le bloc de liens vers la droite */
    max-width: calc(100% - 260px); /* Interdit au menu d'aller dans la zone du logo (260px à gauche) */
}

.main-navigation a {
    display: block;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    color: var(--dark-text);
    padding: 18px 20px;
    position: relative;
}

/* Hover lumineux */
.main-navigation a:hover,
.main-navigation a.active {
    background-color: #fffef8;
    color: #000;
}

/* Barre colorée au survol */
.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--color-yellow);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation a.active::after {
    width: 100%;
}

/* Rotation des couleurs menu */
.main-navigation li:nth-child(4n+1) a::after { background: var(--color-red); }
.main-navigation li:nth-child(4n+2) a::after { background: var(--color-green); }
.main-navigation li:nth-child(4n+3) a::after { background: var(--color-yellow); }
.main-navigation li:nth-child(4n+4) a::after { background: var(--color-purple); }

/* --- 5. AUTOMATISATION CONTENU BRUT (FICHES) --- */
.main-content { padding: 50px 0; }

.main-content h1 {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--dark-text);
    text-transform: uppercase;
    margin-bottom: 30px;
    border-bottom: 3px solid var(--color-red);
    padding-bottom: 15px;
}

/* Titres H2 avec couleurs alternées */
.main-content h2 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    margin: 40px 0 20px 0;
    padding: 10px 15px;
    background: var(--grey-light);
    border-left: 8px solid var(--dark-text);
    text-transform: uppercase;
}

.main-content h2:nth-of-type(4n+1) { border-left-color: var(--color-red); color: var(--color-red); }
.main-content h2:nth-of-type(4n+2) { border-left-color: var(--color-green); color: var(--color-green); }
.main-content h2:nth-of-type(4n+3) { border-left-color: var(--color-yellow); color: #b59200; }
.main-content h2:nth-of-type(4n+4) { border-left-color: var(--color-purple); color: var(--color-purple); }

.main-content p {
    margin-bottom: 18px;
    font-size: 1.05rem;
    color: #444;
    text-align: justify;
}

.main-content ul, .main-content ol { 
    margin-bottom: 30px; 
    padding-left: 10px;
    list-style: none;
}

.main-content li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.main-content li::before {
    content: "■";
    position: absolute; left: 0; top: 1px; font-size: 0.8rem;
    color: var(--dark-text);
}

/* Puce colorée selon le titre précédent */
.main-content h2:nth-of-type(4n+1) ~ ul li::before { color: var(--color-red); }
.main-content h2:nth-of-type(4n+2) ~ ul li::before { color: var(--color-green); }
.main-content h2:nth-of-type(4n+3) ~ ul li::before { color: var(--color-yellow); }
.main-content h2:nth-of-type(4n+4) ~ ul li::before { color: var(--color-purple); }

/* --- 6. TABLEAUX AUTOMATIQUES --- */
.main-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    border: 3px solid var(--dark-text);
    font-size: 0.95rem;
}

.main-content th {
    background-color: var(--dark-text);
    color: var(--color-yellow);
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    padding: 12px 15px;
    text-align: left;
}

.main-content td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-grey);
    border-right: 1px solid var(--border-grey);
    color: #333;
}

.main-content tr:nth-child(even) { background-color: #fcfcfc; }
.main-content td[colspan] {
    background-color: var(--grey-light);
    color: var(--color-red);
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    border-top: 2px solid var(--dark-text);
}

/* --- 7. ELEMENTS GRAPHIQUES --- */
.intro-box {
    font-size: 1.25rem; font-weight: 500; font-style: italic; color: #444;
    padding: 30px; background: #fff;
    border-left: 6px solid var(--color-purple);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin: 0 auto 40px;
}

.card-program {
    background: #fff;
    border-left: 12px solid var(--dark-text);
    padding: 25px; margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.card-program:hover { transform: translateY(-3px); }

.card-program h3 {
    font-family: var(--font-heading); font-weight: 800; font-size: 1.3rem; margin-bottom: 8px; text-transform: uppercase;
}
.card-program .subtitle {
    font-family: var(--font-body); weight: 700; font-style: italic; color: #777; margin-bottom: 15px; display: block; font-size: 0.9rem;
}

.theme-red { border-left-color: var(--color-red); } .theme-red h3 { color: var(--color-red); }
.theme-green { border-left-color: var(--color-green); } .theme-green h3 { color: var(--color-green); }
.theme-yellow { border-left-color: var(--color-yellow); background-color: #fffef8; } .theme-yellow h3 { color: #b59200; }
.theme-purple { border-left-color: var(--color-purple); } .theme-purple h3 { color: var(--color-purple); }

.btn-submit-red {
    background-color: var(--color-red); color: #fff;
    font-family: var(--font-heading); font-weight: 800; text-transform: uppercase;
    padding: 15px 30px; border: none; cursor: pointer;
    box-shadow: 0 4px 0 var(--dark-text); transition: all 0.2s;
}
.btn-submit-red:hover { background-color: #c21c2f; transform: translateY(2px); box-shadow: 0 2px 0 var(--dark-text); }

.grid-resources { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.form-v1 input, .form-v1 select, .form-v1 textarea { width: 100%; padding: 12px; border: 2px solid #ddd; font-family: var(--font-body); }
.form-group label { font-weight: 700; font-size: 0.9rem; margin-bottom: 5px; display: block; }

/* --- 8. FOOTER --- */
.site-footer {
    background-color: var(--color-yellow); color: var(--dark-text);
    padding: 60px 0 20px; margin-top: 80px; border-top: 4px solid var(--dark-text);
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-column h3 { font-family: var(--font-heading); font-weight: 900; text-transform: uppercase; font-size: 1.4rem; }
.footer-column h3 span { color: var(--color-red); }
.footer-bottom { border-top: 1px solid rgba(0,0,0,0.1); padding-top: 20px; text-align: center; font-size: 0.8rem; opacity: 0.8; }

/* --- 9. FICHE CANDIDAT --- */
.candidate-hero { margin-top: 20px; }
.candidate-photo img { border: 4px solid var(--color-purple); box-shadow: 10px 10px 0 rgba(94, 50, 166, 0.15); }

/* --- 10. RESPONSIVE --- */
@media (max-width: 900px) {
    /* Sur mobile, on annule le débordement pour tout remettre en colonne */
    .logo-area {
        position: static;
        width: 180px;
        margin: 0 auto 15px auto;
    }

    .header-main-row {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
    
    .identity-area { 
        align-items: center; 
        text-align: center;
        width: 100%;
    }
    

    /* 1. On libère toute la largeur pour le menu et on le centre */
    .main-navigation ul {
        max-width: 100%; /* Annule la restriction liée au logo du PC */
        margin: 0 auto;  /* Centre parfaitement le bloc */
        justify-content: center; /* Centre les boutons */
        padding-left: 0; 
        flex-wrap: wrap;
    }
    
    /* 2. On rend les liens plus compacts pour qu'ils s'imbriquent bien */
    .main-navigation a {
        padding: 10px 12px; /* Réduit l'espace autour du texte */
        font-size: 0.85rem; /* Police légèrement plus petite */
    }
    
    .grid-resources { grid-template-columns: 1fr !important; }
    .main-content table { display: block; overflow-x: auto; }
}




/* --- Bloc de comparaison Avant/Après pour l'accueil --- */
.featured-project-large {
    background: #fff;
    border: 4px solid var(--dark-text);
    padding: 40px;
    margin-bottom: 50px;
    box-shadow: 15px 15px 0px var(--color-blue-line);
}

.comparison-home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 25px;
}

.comparison-item {
    position: relative;
    border: 2px solid var(--dark-text);
    overflow: hidden;
    height: 200px;
}

.comparison-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.comparison-item:hover img {
    transform: scale(1.05);
}

.badge-compare {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 5px 12px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #fff;
}

.badge-compare.today { background: var(--dark-text); }
.badge-compare.tomorrow { background: var(--color-green); }

/* --- Ajustements du Formulaire --- */
.form-v1 textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    margin-top: 5px;
}

.form-v1 textarea:focus {
    outline: none;
    border-color: var(--color-red);
}

.select-full {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    background: #fff;
    font-size: 0.95rem;
    cursor: pointer;
}

/* Thème Indigo pour l'économie/méthode */
.theme-indigo { border-left: 10px solid var(--color-blue-line); }

/* Responsive */
@media (max-width: 768px) {
    .comparison-home-grid {
        grid-template-columns: 1fr;
    }
    .comparison-item {
        height: 150px;
    }
}

/* --- Ajustement pour un design "Joyeux & Vibrant" (Style NUPES) --- */

/* On remplace la section campagne noire par une section lumineuse */
.campaign-section {
    background-color: #fffef2; /* Un jaune très pâle et chaud */
    color: var(--dark-text);
    padding: 80px 0;
    margin-top: 50px;
    border-top: 8px solid var(--color-purple);
    border-bottom: 8px solid var(--color-yellow);
}

/* On rend les compteurs plus vivants */
.counter-card {
    background: #fff;
    border: 4px solid var(--dark-text);
    padding: 30px;
    box-shadow: 12px 12px 0px var(--color-red); /* Ombre rouge vive */
}

.counter-number {
    font-size: 4.5rem;
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--color-purple);
    line-height: 1;
}

/* Formulaire d'accueil plus aéré */
.form-container {
    background: #fff;
    border: 4px solid var(--dark-text);
    padding: 30px;
    box-shadow: 12px 12px 0px var(--color-green); /* Ombre verte vive */
}

/* Thème Économie en Jaune (Vibrant) */
.theme-yellow-vibrant { 
    border-left: 12px solid var(--color-yellow); 
    background-color: #fffdf0;
}
.theme-yellow-vibrant h3 { color: #b59200; }
.theme-yellow-vibrant .project-link { color: #b59200 !important; }

/* --- Forcer les images côte à côte sur ordinateur --- */
.comparison-home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 colonnes forcées */
    gap: 15px;
    margin-top: 25px;
}

.featured-project-large {
    background: #ffffff;
    border: 6px solid var(--dark-text);
    padding: 40px;
    margin-bottom: 50px;
    box-shadow: 20px 20px 0px var(--color-purple); /* Ombre violette pour le projet phare */
}

/* Petits badges ronds et joyeux pour l'agenda */
.agenda-item {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid var(--dark-text);
    margin-bottom: 10px;
    padding: 10px 15px;
    box-shadow: 4px 4px 0px var(--border-grey);
}

.agenda-item.next {
    box-shadow: 6px 6px 0px var(--color-red);
    border-color: var(--color-red);
}

/* Responsive : On ne passe en colonne que sur les petits téléphones */
@media (max-width: 600px) {
    .comparison-home-grid {
        grid-template-columns: 1fr;
    }
    .main-navigation a {
        padding: 8px 6px;
        font-size: 0.75rem;
    }
}
/* =========================================
   EXTENSION : COMPLÉMENTAIRE TOUTES PAGES
   ========================================= */

/* --- 11. PRÉSENTATION THÉMATIQUE (NIVEAU 2) --- */
.project-link {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-top: 15px;
    display: inline-block;
}

.project-link-inline {
    font-weight: 800;
    text-decoration: underline;
}

.implementation-box {
    background-color: #fff;
    border: 4px solid var(--dark-text);
    padding: 40px;
    margin: 50px 0;
}
.implementation-box.border-purple { border-top: 10px solid var(--color-purple); }
.implementation-box.border-green { border-top: 10px solid var(--color-green); }
.implementation-box.border-red { border-top: 10px solid var(--color-red); }

.action-list { list-style: none !important; padding: 0 !important; }
.action-list > li { 
    margin-bottom: 20px !important; 
    padding-left: 0 !important; 
}
.action-list > li::before { content: "" !important; } /* On retire la puce carrée par défaut */

.action-list-nested { margin-top: 10px; }
.action-list-nested li { font-size: 0.95rem; margin-bottom: 5px; }

.analysis-section { margin-top: 60px; }
.analysis-card {
    background: var(--grey-light);
    padding: 25px;
    border: 1px solid var(--border-grey);
}
.title-red { color: var(--color-red); font-weight: 900; }
.title-purple { color: var(--color-purple); font-weight: 900; }

.cta-area {
    margin-top: 60px;
    padding: 40px;
    text-align: center;
    border-top: 1px solid var(--border-grey);
}
.cta-text { font-size: 1.4rem; font-weight: 700; margin-bottom: 20px; }

.badge-tech {
    display: inline-block;
    padding: 6px 12px;
    background: #eee;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    border: 1px solid var(--dark-text);
}

/* --- 12. FICHES TECHNIQUES (NIVEAU 3) --- */
.tech-sheet {
    background: #fff;
}

.deadline-box {
    background: var(--dark-text);
    color: #fff;
    padding: 25px;
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    margin-top: 40px;
    line-height: 1.2;
}

.schema-container {
    margin: 40px 0;
    padding: 20px;
    border: 1px solid var(--border-grey);
    text-align: center;
}

.comparison-card {
    background: #fff;
    border: 1px solid var(--border-grey);
    padding: 15px;
    text-align: center;
}
.badge-dark { background: var(--dark-text); color: #fff; padding: 4px 10px; font-weight: 800; }
.badge-green { background: var(--color-green); color: #fff; padding: 4px 10px; font-weight: 800; }

.grayscale { filter: grayscale(100%); transition: 0.3s; }
.grayscale:hover { filter: grayscale(0%); }
.img-shadow-green { border: 4px solid var(--color-green); }

/* =========================================
   PHOTO BANDEAU ÉQUIPE (ACCUEIL)
   ========================================= */
.team-hero-section {
    width: 100%;
    /* On garde l'esprit "Tract" avec une bordure épaisse en bas pour séparer du texte */
    border-bottom: 5px solid var(--dark-text); 
    background-color: var(--grey-light); /* Fond de secours au chargement */
    overflow: hidden;
}

.team-hero-img {
    width: 100%;
    height: auto;
    display: block;
    /* max-height évite que l'image ne prenne trop de place sur des écrans géants */
    max-height: 400px; 
}

/* Optimisation pour les téléphones : on force une hauteur minimale pour qu'on puisse 
   voir les visages, l'image sera recadrée par le centre automatiquement. */
@media (max-width: 768px) {
    .team-hero-img {
        height: 200px;
        object-fit: cover;
        object-position: center; 
    }
}

/* --- 13. ACCUEIL ET MOBILISATION --- */
.manifesto { padding: 80px 0; }
.manifesto h1 { font-size: 4rem; line-height: 1; margin-bottom: 20px; border: none; }

.alert-box {
    background-color: var(--color-yellow);
    border: 4px solid var(--dark-text);
    padding: 25px;
    margin-bottom: 40px;
}
.alert-content h3 { color: #000; margin-bottom: 5px; }

.agenda-container { margin-top: 25px; }
.agenda-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-grey);
}
.agenda-item.past { opacity: 0.5; }
.agenda-item.next { 
    background: #fff;
    border: 3px solid var(--color-red);
    padding: 20px;
    margin-top: 10px;
}
.date-label { font-family: var(--font-heading); font-weight: 800; width: 120px; color: var(--color-red); }

.campaign-section {
    background-color: #fffef2; /* Jaune très pâle NUPES */
    padding: 80px 0;
    border-top: 4px solid var(--dark-text);
}

.counter-card {
    background: #fff;
    border: 4px solid var(--dark-text);
    padding: 40px;
}
.counter-number {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 5rem;
    line-height: 1;
    color: var(--color-purple);
}
.counter-label { font-weight: 800; text-transform: uppercase; margin-bottom: 20px; }

.progress-bar {
    height: 20px;
    background: #eee;
    border: 2px solid var(--dark-text);
}
.progress-fill {
    height: 100%;
    background: var(--color-green);
}

.form-container {
    background: #fff;
    border: 4px solid var(--dark-text);
    padding: 40px;
}
/* =========================================
   BLOC MANIFESTO (STYLE TRACT OFFICIEL)
   ========================================= */
.manifesto-section {
    background-color: #fff;
    padding: 60px 0;
    /* Reprend la logique de ligne colorée sous l'en-tête de vos tracts */
    border-top: 4px solid var(--color-red); 
    text-align: center;
}

.manifesto-header h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--dark-text);
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.1;
    border: none; /* Enlève la petite barre rouge par défaut des H1 */
    padding-bottom: 0;
}

/* Le même violet que "FABAS" sur les tracts */
.highlight-purple {
    color: var(--color-purple);
}

.manifesto-lead {
    font-family: var(--font-body);
    font-size: 1.3rem;
    line-height: 1.5;
    color: #333;
    max-width: 850px;
    margin: 0 auto 40px auto;
    font-weight: 500;
}

.manifesto-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Boutons : Aplats purs, sans ombres, comme les cartouches de vos tracts */
.btn-tract-red {
    background-color: var(--color-red);
    color: #fff !important;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    padding: 15px 30px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.2s;
}

.btn-tract-red:hover {
    background-color: #bd1a2b; /* Rouge plus foncé au survol */
}

.btn-tract-white {
    background-color: #fff;
    color: var(--dark-text) !important;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    padding: 15px 30px;
    text-transform: uppercase;
    text-decoration: none;
    border: 3px solid var(--dark-text); /* Bordure épaisse typique de vos PDF */
    transition: background-color 0.2s;
}

.btn-tract-white:hover {
    background-color: #f5f5f5;
}

/* Responsive */
@media (max-width: 768px) {
    .manifesto-header h1 { font-size: 2.5rem; }
    .manifesto-actions { flex-direction: column; }
}
/* --- 14. COMPOSANTS SPÉCIFIQUES --- */
.theme-indigo { border-left-color: var(--color-purple); } /* On utilise le violet pour l'indigo */
.theme-yellow-vibrant { border-left-color: var(--color-yellow); background-color: #fffef8; }

.select-full {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    background: #fff;
}

/* Forcer l'affichage côte à côte du "Avant/Après" sur ordinateur */
.comparison-home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.comparison-item {
    position: relative;
    border: 3px solid var(--dark-text);
}

.badge-compare {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 5px 12px;
    font-family: var(--font-heading);
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.8rem;
}
.badge-compare.today { background: var(--dark-text); }
.badge-compare.tomorrow { background: var(--color-green); }

.featured-project-large {
    background: #fff;
    border: 4px solid var(--dark-text);
    padding: 40px;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .grid-resources, .comparison-home-grid { grid-template-columns: 1fr; }
    .manifesto h1 { font-size: 2.5rem; }
}


/* --- 15. UNIFICATION DES FORMULAIRES (ACCUEIL & THEMES) --- */

.form-container, 
.contact-form-section {
    background-color: #fffef2; /* Fond jaune pâle identique à la section campagne */
    border: 4px solid var(--dark-text);
    padding: 40px;
    margin: 40px 0;
    /* On retire les ombres colorées pour rester sur le style "Tract" pur */
    box-shadow: 10px 10px 0px rgba(0,0,0,0.1); 
}

/* Titres dans les formulaires */
.form-container h2, 
.contact-form-section h3 {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--dark-text);
    margin-bottom: 10px;
    text-transform: uppercase;
    border: none; /* On retire la bordure rouge des H1 classiques */
    padding: 0;
}

/* Style des champs (Input, Select, Textarea) */
.form-v1 input, 
.form-v1 select, 
.form-v1 textarea,
.form-action input,
.form-action select,
.form-action textarea {
    width: 100%;
    padding: 15px;
    border: 3px solid var(--dark-text); /* Bordure épaisse style tract */
    background-color: #fff;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 15px;
    border-radius: 0; /* Carré parfait */
}

/* Focus sur les champs */
.form-v1 input:focus, 
.form-v1 textarea:focus,
.form-action input:focus,
.form-action textarea:focus {
    outline: none;
    border-color: var(--color-red);
    background-color: #fffdf0;
}

/* Grille pour les formulaires de présentation (Nom, Prénom, Email sur une ligne) */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 15px;
    margin-bottom: 15px;
}

/* Responsive pour la grille du formulaire */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Bouton spécifique formulaire (déjà présent mais on renforce) */
.btn-submit-red {
    display: block;
    width: 100%;
    background-color: var(--color-red);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.3rem;
    text-transform: uppercase;
    padding: 20px;
    border: 3px solid var(--dark-text);
    cursor: pointer;
    box-shadow: 6px 6px 0px var(--dark-text);
    transition: all 0.1s;
}

.btn-submit-red:hover {
    transform: translate(2px, 2px);
    box-shadow: 3px 3px 0px var(--dark-text);
}

.btn-submit-red:active {
    transform: translate(6px, 6px);
    box-shadow: 0px 0px 0px var(--dark-text);
}

/* =========================================
   17. STYLES SPÉCIFIQUES "MODE IMPRESSION"
   (Utilisé par impression.php)
   ========================================= */

/* --- Barre d'outils écran (Invisible à l'impression) --- */
.screen-toolbar {
    background-color: #222;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    font-family: var(--font-body);
}

.screen-toolbar strong { color: var(--color-yellow); }

.screen-toolbar button {
    background-color: var(--color-green);
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: background 0.2s;
}

.screen-toolbar button:hover { background-color: #268050; }

/* --- Page de Couverture --- */
.cover-page {
    text-align: center;
    padding: 40px 0 60px 0;
    margin-bottom: 60px;
    border-bottom: 1px dashed var(--dark-text);
}

/* LOGO : Centré et Largeur de page */
.cover-logo {
    display: block;
    margin: 0 auto 0px auto; /* Centrage bloc */
    width: 100%;              /* Largeur totale */
    max-width: 100%;          /* S'assure de ne pas dépasser le conteneur */
    height: auto;
}

.cover-url {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-red);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.cover-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.6rem; /* Très gros titre pour la couv */
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--dark-text);
}

.cover-intro {
    font-size: 1rem;
    font-style: italic;
    font-weight: 500;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1;
}

/* --- 16. INSTRUCTIONS D'IMPRESSION --- */
@media print {
    /* 1. Masquer navigation, footer, logo ET tous les types de formulaires */
    .radiant-header, 
    .site-footer, 
    .nav-wrapper,
    .logo-area,
    .no-print,
    .gradient-line,
    .cta-area,
    .btn-submit-red,
    .form-container,         /* Formulaire d'accueil/mobilisation */
    .contact-form-section,   /* Formulaire de contact */
    .form-v1,                /* Structure de formulaire */
    .form-action,            /* Structure de formulaire alternative */
    .form-grid {             /* Grilles de formulaires */
        display: none !important;
    }

    /* 2. Réduction globale de l'espace et des polices */
    body {
        font-size: 10pt; 
        line-height: 1.3;
        background: #fff !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .container {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .main-content {
        padding: 0 !important;
    }

    /* 3. Optimisation des titres pour le papier */
    .main-content h1 {
        font-size: 1.6rem !important;
        margin-bottom: 10px !important;
        padding-bottom: 5px !important;
        border-bottom: 2px solid #000 !important;
    }

    .main-content h2 {
        font-size: 1.1rem !important;
        margin: 15px 0 8px 0 !important;
        padding: 5px !important;
        background: transparent !important; /* Économie d'encre */
        border-left-width: 4px !important;   /* Garde l'aspect visuel mais plus fin */
        border-bottom: 1px solid #eee !important;
    }

    /* 4. Paragraphes et listes compacts */
    p, li {
        margin-bottom: 5px !important;
        text-align: left; /* Parfois le justify rend mal à l'impression */
    }

    /* 5. Blocs de contenu (Programmes, Fiches Tech) */
    .card-program, 
    .implementation-box, 
    .analysis-section,
    .analysis-card,
    .tech-sheet, 
    .intro-box {
        padding: 12px !important;
        margin:  0 !important;
        border-width: 1px !important;
        box-shadow: none !important; /* Supprime les ombres portées (gris sale à l'impression) */
        page-break-inside: avoid;    /* Empêche de couper un encadré sur deux pages */
    }

    /* 6. Tableaux compacts */
    .main-content table {
        margin: 10px 0 !important;
        font-size: 0.85rem !important;
        border-width: 1px !important;
    }

    .main-content td, .main-content th {
        padding: 4px !important;
    }
}

/* --- SECTION VIDÉOS --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}
.video-card {
    background: #fff;
    border: 3px solid var(--dark-text);
    padding: 10px;
    box-shadow: 6px 6px 0px var(--border-grey);
}
.video-card video {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #eee;
}
.video-name {
    margin-top: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    color: var(--dark-text);
}

/* =========================================
   GRILLE DES TRACTS (ACCUEIL)
   ========================================= */
.tracts-container {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 3px dashed var(--border-grey);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.tracts-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--dark-text);
    margin-bottom: 20px;
}

.tracts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.tract-link {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    border: 3px solid var(--dark-text);
    color: var(--dark-text);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.tract-link:hover {
    background: var(--color-yellow); /* Rappel de la couleur jaune de la campagne */
    transform: translateY(-2px);
}

.tract-number {
    background: var(--dark-text);
    color: #fff;
    padding: 12px 15px;
    margin-right: 15px;
    font-weight: 900;
    font-size: 1.1rem;
}

/* Adaptation pour les téléphones */
@media (max-width: 768px) {
    .tracts-grid {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
    }
    .manifesto-actions {
        flex-direction: column;
    }
    .manifesto-actions a {
        width: 100%;
        text-align: center;
    }
}

