/* src/assets/css/variables.css */

:root {
  /* --- COULEURS (inchangées) --- */
  --color-purple: #7B13D6;
  --color-red: #F91616;
  --color-green: #43AC59;
  --color-yellow: #FFC700;
  --color-dark: #1d1d1b;
  --color-white: #ffffff;
  
  /* --- TYPOGRAPHIE ZALANDO SANS --- */
  --font-heading: 'Zalando Sans', sans-serif;
  --font-body: 'Zalando Sans', sans-serif;

  /* --- SPACING --- */
  --container-width: 1100px;
  --radius: 8px;
}

body {
  font-family: var(--font-body);
  color: var(--color-dark);
  margin: 0;
  line-height: 1.5;
  background-color: var(--color-white);
  /* Poids normal pour le corps de texte */
  font-weight: 400; 
}

/* --- TITRES --- */
h1 {
  font-family: var(--font-heading);
  color: var(--color-purple);
  font-size: 3rem;
  line-height: 1;
  text-transform: uppercase;
  
  /* C'est ici que la magie opère pour le style "LFI / Zalando" */
  font-weight: 900;       /* Black (très gras) */
  font-stretch: 75%;      /* Condensed (plus étroit) pour l'impact */
  /* Si font-stretch ne marche pas sur certains navigateurs : */
  font-variation-settings: 'wdth' 75, 'wght' 900;
}

h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-purple);
  text-transform: uppercase;
  font-weight: 800;       /* ExtraBold */
  font-stretch: 85%;      /* Semi-Condensed */
  font-variation-settings: 'wdth' 85, 'wght' 800;
}

/* --- BOUTONS --- */
.btn-insoumis {
  font-family: var(--font-heading);
  font-weight: 700;       /* Bold */
  font-stretch: 100%;     /* Normal width */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;     /* Centre verticalement */
  justify-content: center; /* Centre horizontalement */
  background-color: var(--color-red);
  color: white;
  padding: 12px 28px;
  text-decoration: none;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
}
.btn-insoumis:hover {
  transform: translateY(-2px);
  background-color: #d00000; /* Rouge un peu plus sombre au survol */
}

/* Variante bouton Jaune (ex: pour des actions secondaires) */
.btn-secondary {
  background-color: var(--color-yellow);
  color: var(--color-dark); /* Texte noir sur fond jaune pour le contraste */
}

/* --- LAYOUT & HEADER --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  background: white;
  border-bottom: 2px solid var(--color-purple); /* Bordure du menu en VIOLET */
  padding: 10px 0;
  box-shadow: 0 4px 12px rgba(123, 19, 214, 0.1); /* Ombre légère violette */
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  height: 100px;
  width: auto;
  display: block;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  color: var(--color-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.nav-list a:hover {
  color: var(--color-purple); /* Survol des liens en VIOLET */
}

/* Style spécifique pour le bouton dans le menu */
.nav-list .btn-insoumis.is-small {
  padding: 8px 16px;
  font-size: 0.85rem;
  background-color: var(--color-red);
  color: white !important;
}

/* --- NAVIGATION RESPONSIVE --- */

/* 1. Le bouton Burger (Caché par défaut sur PC) */
.mobile-nav-toggle {
    display: none; 
}

/* 2. Styles spécifiques au Mobile (Écrans < 768px) */
@media (max-width: 768px) {
    .site-logo {
        height: 50px;
    }
    /* On affiche le bouton Burger */
    .mobile-nav-toggle {
        display: block;
        background: transparent;
        border: 2px solid var(--color-purple);
        color: var(--color-purple);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 5px 10px;
        border-radius: 5px;
        z-index: 9999;
        margin-left: auto;
    }

    /* On transforme la liste en menu vertical */
    .nav-list {
        position: fixed;
        z-index: 1000;
        inset: 0 0 0 30%; /* Prend 70% de l'écran sur la droite */
        background: white; /* Fond blanc */
        flex-direction: column;
        padding: min(30vh, 10rem) 2rem; /* Gros padding en haut */
        transform: translateX(100%); /* Caché hors de l'écran (à droite) */
        transition: transform 350ms ease-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1); /* Ombre sur le côté */
        border-left: 5px solid var(--color-purple);
    }

    /* Quand le menu est ouvert (via le JS) */
    .nav-list[data-visible="true"] {
        transform: translateX(0%); /* Il revient à sa place */
    }

    /* Style des liens dans le menu mobile */
    .nav-list li {
        margin-bottom: 2rem;
    }

    .nav-list a {
        font-size: 1.2rem;
        display: block;
    }

    /* Le bouton "Nous rejoindre" en bas du menu mobile */
    .nav-list .btn-insoumis.is-small {
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }
}

/* --- FOOTER --- */
.site-footer {
  background: var(--color-purple); /* Footer passe en VIOLET */
  color: white;
  padding: 3rem 0;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.site-footer a {
  color: var(--color-yellow); /* Liens du footer en JAUNE */
  text-decoration: none;
  font-weight: bold;
}

.site-footer h3 {
  color: white;
  border-bottom: 2px solid var(--color-green); /* Souligné en VERT */
  display: inline-block;
  padding-bottom: 5px;
}

/* --- ELEMENTS SPECIFIQUES (Agenda, Rejoindre) --- */

/* Cartes Agenda */
.agenda-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 3rem;
}

.event-card {
  border: 1px solid #ddd;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  background: white;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
  overflow: hidden;
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  border-color: var(--color-purple);
}

.event-date {
  background-color: var(--color-green); /* Date en VERT */
  color: white;
  padding: 8px 15px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
}

.event-card-content {
  padding: 1.5rem;
}

.read-more {
  color: var(--color-purple);
  font-weight: bold;
}
/* --- FILTRES AGENDA --- */

.agenda-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 3rem;
}

.filter-btn {
    background: white;
    border: 1px solid var(--color-purple);
    color: var(--color-purple);
    padding: 8px 16px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.filter-btn:hover {
    background-color: #f3e5fa; /* Violet très clair */
}

.filter-btn.active {
    background-color: var(--color-purple);
    color: white;
    box-shadow: 0 4px 10px rgba(123, 19, 214, 0.3);
}

/* Badge TYPE sur la carte événement */
.event-type-badge {
    display: inline-block;
    font-size: 0.75rem;
    color: #666;
    background: #eee;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
}
/* Page Rejoindre */
/* --- STYLES PAGE REJOINDRE (Restaurés & mis à jour) --- */

/* Texte d'introduction */
.intro-text {
    font-size: 1.25rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    color: var(--color-dark);
}

/* Les boîtes (Boucles & Formulaire) */
.action-box {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    /* Petite touche de design : Bordure haute en Jaune */
    border-top: 4px solid var(--color-yellow);
}

.action-box h2 {
    margin-top: 0;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    color: var(--color-purple);
}

/* Grille des boutons sociaux (Telegram / WhatsApp) */
.buttons-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.btn-social {
    flex: 1; /* S'étendent pour prendre la place dispo */
    min-width: 200px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: opacity 0.2s, transform 0.2s;
}

.btn-social:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Couleurs officielles des réseaux */
.telegram { background-color: #229ED9; }
.whatsapp { background-color: #25D366; }

/* --- FORMULAIRE --- */
.contact-form {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

/* Styles des champs de saisie */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: #fafafa;
    box-sizing: border-box; /* Empêche le padding de casser la largeur */
    transition: border-color 0.2s, background-color 0.2s;
}

/* Quand on clique dans le champ : bordure violette */
.contact-form input:focus {
    outline: none;
    border-color: var(--color-purple);
    background-color: white;
}

/* Groupe de cases à cocher */
.checkbox-group {
    background: var(--color-grey);
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid #eee;
}

.checkbox-group label {
    font-weight: 400; /* Texte normal pour les options */
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-group label:last-child {
    margin-bottom: 0;
}

/* Couleur de la case cochée */
.checkbox-group input[type="checkbox"] {
    accent-color: var(--color-purple);
    width: 18px;
    height: 18px;
}

/* --- PAGE DÉTAIL ÉVÉNEMENT (Restauré et mis à jour) --- */

.event-page {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: #666;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.back-link:hover {
    color: var(--color-purple);
}

.event-header {
    border-bottom: 4px solid var(--color-purple); /* Souligné en VIOLET */
    padding-bottom: 1.5rem;
    margin-bottom: 2.5rem;
}

.event-header h1 {
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

/* Badge de date en haut de la page */
.date-badge {
    display: inline-block;
    background-color: var(--color-green);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Mise en page : Contenu à gauche, Infos à droite */
.event-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2/3 pour le texte, 1/3 pour la sidebar */
    gap: 3rem;
}

/* La colonne de texte principal */
.event-content {
    font-size: 1.1rem;
}

.event-content h2 {
    color: var(--color-purple);
    margin-top: 2rem;
}

.event-content ul {
    list-style-type: square;
    padding-left: 1.2rem;
    color: var(--color-dark);
}

/* La barre latérale (Sidebar) */
.event-sidebar .info-block {
    background: var(--color-grey); /* Fond gris clair */
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border-top: 4px solid var(--color-yellow); /* Petit accent JAUNE */
}

.event-sidebar h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: var(--color-dark);
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.event-sidebar p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* RESPONSIVE : Sur mobile, on empile tout */
@media (max-width: 768px) {
    .event-grid {
        grid-template-columns: 1fr; /* Une seule colonne */
        gap: 2rem;
    }
    
    .event-header h1 {
        font-size: 1.8rem; /* Titre plus petit sur mobile */
    }
}

/* --- CAROUSEL AGENDA --- */

/* En-tête avec titre et boutons alignés */
.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* Les boutons de navigation (< >) */
.nav-btn {
    background: var(--color-purple);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.nav-btn:hover {
    background: var(--color-red);
}

/* Le conteneur qui défile (Le Rail) */
.carousel-container {
    display: flex;
    gap: 20px;
    overflow-x: auto; /* Permet le scroll horizontal */
    scroll-snap-type: x mandatory; /* Force l'alignement des cartes */
    padding-bottom: 20px; /* Espace pour la barre de défilement éventuelle */
    
    /* Cache la barre de défilement (optionnel, plus joli) */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE */
}

.carousel-container::-webkit-scrollbar { 
    display: none; /* Chrome/Safari */
}

/* La Carte individuelle */
.carousel-card {
    flex: 0 0 300px; /* Largeur fixe : 300px par carte */
    scroll-snap-align: start; /* La carte se cale à gauche */
    
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.carousel-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-purple);
}

/* Style interne de la carte */
.carousel-date {
    background-color: var(--color-green);
    color: white;
    padding: 10px 15px;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.carousel-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Remplit l'espace */
}

.carousel-content h3 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.carousel-content .location {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.btn-link {
    margin-top: auto; /* Pousse le lien tout en bas */
    text-decoration: none;
    color: var(--color-purple);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Mobile : Ajustement */
@media (max-width: 600px) {
    .carousel-card {
        flex: 0 0 85%; /* Sur mobile, la carte prend 85% de l'écran pour qu'on voie qu'il y en a une autre à côté */
    }
}

/* --- HERO SECTION (SPLIT) --- */
.hero-split {
    /* Fond dégradé subtil violet LFI */
    background: linear-gradient(135deg, #fdfbfd 0%, #f4eafb 100%);
    padding: 3rem 0;
    overflow: hidden; /* Pour gérer l'image qui dépasse */
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

.slogan-top {
    font-family: var(--font-heading);
    color: var(--color-green);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin: 10px 0 20px 0;
    line-height: 1.1;
}

.hero-text .highlight {
    color: var(--color-red);
    /* Effet surligneur jaune */
    background: linear-gradient(120deg, var(--color-yellow) 0%, var(--color-yellow) 100%);
    background-repeat: no-repeat;
    background-size: 100% 30%;
    background-position: 0 88%;
}

.hero-text p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-outline {
    background-color: transparent;
    color: var(--color-purple);
    border: 2px solid var(--color-purple);
}

.btn-outline:hover {
    background-color: var(--color-purple);
    color: white;
}

.hero-image {
    display: flex;            /* Active le mode Flexbox */
    justify-content: center;  /* Centre horizontalement */
    align-items: center;      /* Centre verticalement */
    width: 100%;              /* S'assure qu'elle prend toute la largeur dispo */
}

.hero-image img {
    width: 50%;
    border-radius: var(--radius);
    /* Petite ombre portée */
    /* box-shadow: 20px 20px 0px var(--color-yellow);  */
    /* transform: rotate(2deg); Petit effet dynamique */
}

/* --- CARTES PRIORITÉS --- */
.priorities-section {
    padding: 3rem 0;
    background: white;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.priority-card {
    display: block;
    padding: 2rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--color-dark);
    transition: transform 0.2s;
    border: 2px solid transparent;
}

.priority-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.priority-card .icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}
.priority-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem; /* Un peu plus petit pour tenir sur 2 lignes */
    line-height: 1.2;
    min-height: 2.4em; /* Force une hauteur min pour aligner les textes */
}
/* Couleurs spécifiques des cartes */
.priority-card.green {
    background-color: #eafbf0;
    border-color: #c9f0d5;
}
.priority-card.green h3 { color: var(--color-green); }

.priority-card.yellow {
    background-color: #fffbf0;
    border-color: #ffeeb0;
}
.priority-card.yellow h3 { color: #dcb315; }

.priority-card.purple {
    background-color: #f6edfd;
    border-color: #e3cbf9;
}
.priority-card.purple h3 { color: var(--color-purple); }


/* Nouveau style pour le sous-titre (L'accroche) */
.card-subtitle {
    font-weight: 700; /* Gras */
    color: var(--color-dark);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-family: var(--font-heading);
}

/* Nouveau style pour la description (Le détail) */
.card-desc {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* Astuce : Sur mobile, on remet les hauteurs en auto */
@media (max-width: 768px) {
    .priority-card h3 {
        min-height: auto;
    }
}

/* --- COMPTE À REBOURS --- */
/* --- COMPTE À REBOURS & ACTIONS --- */
.countdown-bar {
    background-color: var(--color-dark);
    color: white;
    padding: 1.5rem 0;
    margin-top: 4rem;
    border-top: 4px solid var(--color-red); /* Petit rappel rouge LFI */
}

.countdown-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Partie Texte */
.countdown-text {
    font-family: var(--font-heading);
}

.main-date {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.deadline-alert {
    color: var(--color-yellow); /* Le jaune pour l'alerte */
    font-weight: bold;
    font-size: 1rem;
    animation: pulse 2s infinite; /* Petite animation pour attirer l'œil */
}

/* Partie Boutons */
.countdown-actions {
    display: flex;
    gap: 15px;
}

.btn-action-civic {
    padding: 10px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    transition: transform 0.2s, background 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-action-civic:hover {
    transform: translateY(-2px);
}

/* Bouton Inscription (Le plus important visuellement) */
.btn-action-civic.primary {
    background-color: var(--color-yellow);
    color: var(--color-dark);
}

.btn-action-civic.primary:hover {
    background-color: #ffdb4d;
}

/* Bouton Procuration (Secondaire) */
.btn-action-civic.secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-action-civic.secondary:hover {
    background-color: white;
    color: var(--color-dark);
}

/* Animation discrète pour l'alerte date */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

/* RESPONSIVE : Sur mobile, on empile tout proprement */
@media (max-width: 900px) {
    .countdown-flex {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .countdown-actions {
        flex-direction: column; /* Les boutons l'un sous l'autre sur mobile */
        width: 100%;
    }

    .btn-action-civic {
        width: 100%; /* Boutons pleine largeur pour être faciles à cliquer */
        box-sizing: border-box;
    }
}
/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr; /* Une seule colonne */
        text-align: center;
    }
    
    .hero-image img {
        max-width: 25%;
        margin: 0 auto;
        display: block;
    }

    .hero-buttons {
        justify-content: center;
    }

    .countdown-flex {
        flex-direction: column;
        text-align: center;
    }
}

/* --- PAGE PROGRAMME --- */

/* --- PAGE PROGRAMME (CORRIGÉ) --- */

.program-header {
    display: flex;           /* Active Flexbox */
    flex-direction: column;  /* Empile les éléments (Titre, sous-titre, barre) */
    align-items: center;     /* CENTRE tout horizontalement */
    text-align: center;
    margin: 2rem 0 3rem 0;
}

.lfi-download-block {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Barre de recherche (Le conteneur) */
.search-box {
    position: relative;
    width: 100%;             /* Prend toute la largeur disponible... */
    max-width: 500px;        /* ... jusqu'à 500px maximum */
    margin-top: 2rem;
}

/* Le champ de saisie */
.search-box input {
    width: 100%;
    box-sizing: border-box;  /* IMPORTANT : Le padding ne grossit pas la boite */
    padding: 15px 20px;      /* Espace interne */
    padding-right: 50px;     /* Espace à droite pour ne pas écrire sur la loupe */
    font-size: 1.1rem;
    border: 2px solid var(--color-purple);
    border-radius: 50px;
    outline: none;
    font-family: var(--font-body);
    transition: box-shadow 0.2s;
    background: white;
}

.search-box input:focus {
    box-shadow: 0 0 0 4px rgba(123, 19, 214, 0.2);
}

/* L'icône Loupe */
.search-icon {
    position: absolute;
    right: 15px;             /* Calé à 15px du bord droit */
    top: 50%;                /* Centré verticalement */
    transform: translateY(-50%); /* Ajustement fin du centrage */
    font-size: 1.2rem;
    color: var(--color-purple);
    pointer-events: none;    /* Permet de cliquer "à travers" la loupe */
}


/* Grille Programme */
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.program-card {
    background: white;
    border: 1px solid #eee;
    border-radius: var(--radius);
    padding: 2rem;
    text-decoration: none;
    color: var(--color-dark);
    display: flex; /* Flex pour aligner le footer en bas */
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    border-top: 5px solid #ccc; /* Couleur par défaut */
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.program-card h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}
.proposition-item:active {
    background-color: #f5f5f5; /* Le fond grisé légèrement */
    transform: scale(0.98);    /* La carte rapetisse un tout petit peu (effet bouton) */
    transition: transform 0.1s;
}
.card-emoji {
    font-size: 2.5rem;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 50%;
    display: inline-block;
}

.mini-tags {
    margin-top: auto; /* Pousse les tags en bas de la carte */
    padding-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mini-tags span {
    font-size: 0.8rem;
    color: #666;
    background: #eee;
    padding: 2px 8px;
    border-radius: 4px;
}

.see-more {
    margin-top: 1rem;
    color: var(--color-purple);
    font-weight: bold;
    text-align: right;
    display: block;
}

/* Couleurs par thème */
.program-card.theme-purple { border-top-color: var(--color-purple); }
.program-card.theme-green { border-top-color: var(--color-green); }
.program-card.theme-yellow { border-top-color: var(--color-yellow); }
.program-card.theme-red { border-top-color: var(--color-red); }

/* --- PAGE DÉTAIL PROPOSITION --- */
.proposal-detail {
    max-width: 800px;
    margin: 0 auto;
}

.proposal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.proposal-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.proposal-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.tag-pill {
    display: inline-block;
    background: var(--color-grey);
    padding: 5px 15px;
    border-radius: 20px;
    margin: 0 5px;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--color-dark);
}

.proposal-content {
    font-size: 1.15rem;
    line-height: 1.8;
}

.proposal-content h2, .proposal-content h3 {
    color: var(--color-purple);
    margin-top: 2rem;
}

.proposal-cta {
    margin-top: 4rem;
    background: var(--color-grey);
    padding: 2rem;
    text-align: center;
    border-radius: var(--radius);
}

/* --- NUAGE DE MOTS-CLÉS (Programme) --- */

.keywords-cloud {
    max-width: 800px;
    margin: 1.5rem auto 0 auto;
}

.cloud-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    font-style: italic;
}

.cloud-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.cloud-btn {
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.9rem;
    color: var(--color-dark);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
}

.cloud-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    border-color: var(--color-purple);
}

/* Style du bouton actif (sélectionné) */
.cloud-btn.active {
    background-color: var(--color-purple);
    color: white;
    border-color: var(--color-purple);
    font-weight: bold;
}
/* --- GESTION DU NUAGE DE MOTS PLIABLE --- */

/* Par défaut, les tags marqués "hidden-tag" sont cachés */
.cloud-btn.hidden-tag {
    display: none;
}

/* MAGIE : Si le conteneur a la classe "expanded", on affiche tout ! */
.cloud-tags.expanded .cloud-btn.hidden-tag {
    display: inline-block;
    animation: fadeIn 0.5s;
}

/* Petit effet d'apparition douce */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Style du bouton "Voir plus" (lien discret) */
.btn-text-link {
    background: none;
    border: none;
    color: var(--color-purple);
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 5px;
}

.btn-text-link:hover {
    color: var(--color-dark);
}
/* --- ENCART RÉSUMÉ (Fiches Programme) --- */

.summary-box {
    background-color: #f8f9fa; /* Gris très clair */
    border-left: 6px solid var(--color-purple); /* Bordure violette à gauche */
    padding: 2rem;
    margin-bottom: 3rem;
    border-radius: 0 var(--radius) var(--radius) 0; /* Arrondi sauf à gauche */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.summary-box h3 {
    margin-top: 0;
    color: var(--color-purple);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-box ul {
    margin: 0;
    padding-left: 1.2rem;
}

.summary-box li {
    font-family: var(--font-heading); /* Police titre pour l'impact */
    font-weight: 700; /* En gras */
    color: var(--color-dark);
    margin-bottom: 10px;
    font-size: 1.1rem;
    line-height: 1.4;
}

.summary-box li::marker {
    color: var(--color-green); /* Les puces en vert */
    font-size: 1.2rem;
}

/* Variante : Si le thème de la page est vert, on adapte la bordure */
.theme-green .summary-box { border-left-color: var(--color-green); }
.theme-green .summary-box h3 { color: var(--color-green); }

.theme-yellow .summary-box { border-left-color: var(--color-yellow); }
.theme-yellow .summary-box h3 { color: #dcb315; }

/* --- TABLEAUX (Markdown) --- */

/* Conteneur pour rendre le tableau responsive sur mobile (scroll horizontal) */
table {
    display: block;
    overflow-x: auto;
    width: 100%;
    border-collapse: collapse; /* Supprime les espaces entre les bordures */
    margin: 2rem 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* En-tête du tableau */
thead {
    background-color: var(--color-purple); /* Fond Violet */
    color: white;
}

th {
    padding: 15px;
    text-align: left;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Cellules du corps */
td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    color: var(--color-dark);
}

/* Effet "Zèbre" : une ligne sur deux est grisée pour la lisibilité */
tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Au survol d'une ligne */
tbody tr:hover {
    background-color: #f0e6fa; /* Violet très très clair */
}

/* Si tu veux que le tableau prenne toute la largeur disponible */
table {
    width: 100%;
    border-spacing: 0;
}