/* ============================================
   VARIABLES
   ============================================ */
   :root {
    /* Comprendre l'IA (gris-bleu, neutre/pédagogique) */
    --comprendre-ia-primary: #37474f;
    --comprendre-ia-secondary: #455a64;
    --comprendre-ia-light: #eceff1;
    
    /* Risques (orange-rouge, alerte) */
    --risques-primary: #ff5722;
    --risques-secondary: #ff8a65;
    --risques-light: #fbe9e7;
    
    /* Éthique (violet, réflexion/valeurs) */
    --ethique-primary: #7e57c2;
    --ethique-secondary: #9575cd;
    --ethique-light: #ede7f6;
    
    /* Données (vert, protection) */
    --donnees-primary: #4caf50;
    --donnees-secondary: #81c784;
    --donnees-light: #e8f5e9;
    
    /* Prompts (orange, méthode/créativité) */
    --prompts-primary: #ff6f00;
    --prompts-secondary: #ffb300;
    --prompts-light: #fff8e1;
    
    /* Usages (cyan, pratique/concret) */
    --usages-primary: #00acc1;
    --usages-secondary: #26c6da;
    --usages-light: #e0f7fa;

    /* Glossaire (jaune-vert) */
    --glossaire-primary: #9e9d24;
    --glossaire-secondary: #c0ca33;
    --glossaire-light: #f9fbe7;
    
    /* Couleurs générales */
    --accent-primary: #42a5f5;
    --accent-secondary: #64b5f6;
    --bg: #f4f6f8;
    --text-dark: #37474f;
    --text-light: #757575;
    --border: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
}

/* ============================================
   RESET ET BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.4;
    color: var(--text-dark);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   HEADER
   ============================================ */
header {
    background: white;
    box-shadow: 0 2px 4px var(--shadow);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.header-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

header h1 {
    font-size: 2rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

header p {
    color: var(--text-light);
    font-size: 1.4rem;
    font-weight: 600;
}

.flower-link {
    display: inline-block;
    cursor: pointer;
    margin-right: 1rem;
}

.flower-decoration {
    height: 5rem;
    width: 5rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
    background-image: url('./flower-color.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

.flower-link:hover .flower-decoration {
    transform: scale(1.1);
}

/* ============================================
   MAIN
   ============================================ */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    flex: 1;
    width: 100%;
}

/* ============================================
   LOADING
   ============================================ */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.loading i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.loading p {
    font-size: 1.2rem;
}

/* ============================================
   SECTIONS NIVEAU 1
   ============================================ */
.section-card {
    background: white;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
    transition: box-shadow 0.3s ease;
}

.section-card:hover {
    box-shadow: 0 4px 12px var(--shadow-hover);
}

.section-header {
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: stretch;
    gap: 0;
    transition: background-color 0.3s ease;
    user-select: none;
    background: white;
}

.section-header .section-icon {
    font-size: 1.5rem;
    min-width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-header h2 {
    flex: 1;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 1rem 1.25rem;
    transition: color 0.3s ease;
    color: var(--text-dark);
}

.section-header .toggle-icon {
    font-size: 1rem;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, color 0.3s ease;
    color: var(--text-dark);
}

.section-header.active .toggle-icon {
    transform: rotate(180deg);
}

/* ============================================
   COULEURS SECTIONS - ICÔNES
   ============================================ */
.section-card[data-section="comprendre-ia"] .section-icon {
    background: var(--comprendre-ia-primary);
    color: white;
}

.section-card[data-section="risques"] .section-icon {
    background: var(--risques-primary);
    color: white;
}

.section-card[data-section="ethique"] .section-icon {
    background: var(--ethique-primary);
    color: white;
}

.section-card[data-section="donnees"] .section-icon {
    background: var(--donnees-primary);
    color: white;
}

.section-card[data-section="prompts"] .section-icon {
    background: var(--prompts-primary);
    color: white;
}

.section-card[data-section="usages"] .section-icon {
    background: var(--usages-primary);
    color: white;
}

.section-card[data-section="glossaire"] .section-icon {
    background: var(--glossaire-primary);
    color: white;
}

/* ============================================
   COULEURS SECTIONS - HOVER & ACTIVE
   ============================================ */

/* Comprendre l'IA */
.section-card[data-section="comprendre-ia"] .section-header:hover,
.section-card[data-section="comprendre-ia"] .section-header.active {
    background: var(--comprendre-ia-primary);
}

.section-card[data-section="comprendre-ia"] .section-header:hover h2,
.section-card[data-section="comprendre-ia"] .section-header:hover .toggle-icon,
.section-card[data-section="comprendre-ia"] .section-header.active h2,
.section-card[data-section="comprendre-ia"] .section-header.active .toggle-icon {
    color: white;
}

/* Risques */
.section-card[data-section="risques"] .section-header:hover,
.section-card[data-section="risques"] .section-header.active {
    background: var(--risques-primary);
}

.section-card[data-section="risques"] .section-header:hover h2,
.section-card[data-section="risques"] .section-header:hover .toggle-icon,
.section-card[data-section="risques"] .section-header.active h2,
.section-card[data-section="risques"] .section-header.active .toggle-icon {
    color: white;
}

/* Éthique */
.section-card[data-section="ethique"] .section-header:hover,
.section-card[data-section="ethique"] .section-header.active {
    background: var(--ethique-primary);
}

.section-card[data-section="ethique"] .section-header:hover h2,
.section-card[data-section="ethique"] .section-header:hover .toggle-icon,
.section-card[data-section="ethique"] .section-header.active h2,
.section-card[data-section="ethique"] .section-header.active .toggle-icon {
    color: white;
}

/* Données */
.section-card[data-section="donnees"] .section-header:hover,
.section-card[data-section="donnees"] .section-header.active {
    background: var(--donnees-primary);
}

.section-card[data-section="donnees"] .section-header:hover h2,
.section-card[data-section="donnees"] .section-header:hover .toggle-icon,
.section-card[data-section="donnees"] .section-header.active h2,
.section-card[data-section="donnees"] .section-header.active .toggle-icon {
    color: white;
}

/* Prompts */
.section-card[data-section="prompts"] .section-header:hover,
.section-card[data-section="prompts"] .section-header.active {
    background: var(--prompts-primary);
}

.section-card[data-section="prompts"] .section-header:hover h2,
.section-card[data-section="prompts"] .section-header:hover .toggle-icon,
.section-card[data-section="prompts"] .section-header.active h2,
.section-card[data-section="prompts"] .section-header.active .toggle-icon {
    color: white;
}

/* Usages */
.section-card[data-section="usages"] .section-header:hover,
.section-card[data-section="usages"] .section-header.active {
    background: var(--usages-primary);
}

.section-card[data-section="usages"] .section-header:hover h2,
.section-card[data-section="usages"] .section-header:hover .toggle-icon,
.section-card[data-section="usages"] .section-header.active h2,
.section-card[data-section="usages"] .section-header.active .toggle-icon {
    color: white;
}

.section-card[data-section="glossaire"] .section-header:hover,
.section-card[data-section="glossaire"] .section-header.active {
    background: var(--glossaire-primary);
}

.section-card[data-section="glossaire"] .section-header:hover h2,
.section-card[data-section="glossaire"] .section-header:hover .toggle-icon,
.section-card[data-section="glossaire"] .section-header.active h2,
.section-card[data-section="glossaire"] .section-header.active .toggle-icon {
    color: white;
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.section-content.active {
    max-height: 10000px;
}

/* ============================================
   NIVEAU 2
   ============================================ */
.niveau2-item {
    border-bottom: 1px solid var(--border);
}

.niveau2-item:last-child {
    border-bottom: none;
}

.niveau2-header {
    width: 100%;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    border: none;
    text-align: left;
    font-family: inherit;
    transition: background-color 0.2s ease;
    user-select: none;
}

.niveau2-header h3 {
    flex: 1;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
}

.niveau2-header .toggle-icon {
    transition: transform 0.3s ease;
    color: var(--text-light);
}

.niveau2-header.active .toggle-icon {
    transform: rotate(180deg);
}

/* Couleurs niveau 2 - hover et active */
.section-card[data-section="comprendre-ia"] .niveau2-header:hover,
.section-card[data-section="comprendre-ia"] .niveau2-header.active {
    background: var(--comprendre-ia-light);
}

.section-card[data-section="risques"] .niveau2-header:hover,
.section-card[data-section="risques"] .niveau2-header.active {
    background: var(--risques-light);
}

.section-card[data-section="ethique"] .niveau2-header:hover,
.section-card[data-section="ethique"] .niveau2-header.active {
    background: var(--ethique-light);
}

.section-card[data-section="donnees"] .niveau2-header:hover,
.section-card[data-section="donnees"] .niveau2-header.active {
    background: var(--donnees-light);
}

.section-card[data-section="prompts"] .niveau2-header:hover,
.section-card[data-section="prompts"] .niveau2-header.active {
    background: var(--prompts-light);
}

.section-card[data-section="usages"] .niveau2-header:hover,
.section-card[data-section="usages"] .niveau2-header.active {
    background: var(--usages-light);
}

.section-card[data-section="glossaire"] .niveau2-header:hover,
.section-card[data-section="glossaire"] .niveau2-header.active {
    background: var(--glossaire-light);
}

.niveau2-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.niveau2-content.active {
    max-height: 8000px;
}

/* ============================================
   INDICATEURS TEMPS/DIFFICULTÉ NIVEAU 2
   ============================================ */

/* Container du header niveau 2 */
.niveau2-header-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.niveau2-header-content h3 {
    flex: 1;
    margin: 0;
}

/* Container des métadonnées */
.niveau2-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Difficulté — simple rond de couleur */
.meta-difficulte {
    display: inline-block;
    width: 12px;
    height: 12px;
    min-width: 12px;   /* ← empêche la compression par flexbox */
    min-height: 12px;  /* ← empêche la compression par flexbox */
    border-radius: 50%;
    flex-shrink: 0;
}

/* Temps — largeur fixe pour uniformiser */
.meta-temps {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    white-space: nowrap;
    background: var(--bg);
    color: var(--text-light);
    min-width: 5.5rem;      /* ← largeur minimale uniforme */
    text-align: center;     /* ← centrer le texte dedans */
}

.meta-temps i {
    margin-right: 0.3rem;
    font-size: 0.75rem;
}

/* Difficulté - couleurs par niveau */
.meta-difficulte {
    color: white;
}

.meta-difficulte.debutant {
    background: #4caf50;
}

.meta-difficulte.intermediaire {
    background: #ff9800;
}

.meta-difficulte.avance {
    background: #f44336;
}

/* Ajustement du header niveau 2 pour accommoder les metas */
.niveau2-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ============================================
   RESPONSIVE - INDICATEURS
   ============================================ */

@media (max-width: 768px) {
    .niveau2-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .niveau2-meta {
        gap: 0.5rem;
    }
    
    .meta-difficulte {
        width: 10px;
        height: 10px;
        min-width: 10px;
        min-height: 10px;
    }
    
    .meta-temps {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
        min-width: 4.5rem;
    }
}

@media (max-width: 480px) {
    .niveau2-meta {
        flex-wrap: wrap;
    }
}

/* ============================================
   INDICATEURS TEMPS/DIFFICULTÉ NIVEAU 2
   ============================================ */
   .niveau2-header-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.niveau2-header-content h3 {
    flex: 1;
    margin: 0;
}

.niveau2-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Temps */
.meta-temps {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    white-space: nowrap;
    background: var(--bg);
    color: var(--text-light);
}

.meta-temps i {
    margin-right: 0.3rem;
    font-size: 0.75rem;
}

/* Difficulté — simple rond de couleur */
.meta-difficulte {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.meta-difficulte.debutant {
    background: #4caf50;
}

.meta-difficulte.intermediaire {
    background: #ff9800;
}

.meta-difficulte.avance {
    background: #f44336;
}

/* ============================================
   ACTIVITÉS NIVEAU 2 (icône flask)
   ============================================ */
   .activite-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 6px;
    font-size: 0.95rem;
    color: white;
    flex-shrink: 0;
}

/* Fond coloré par section */
.section-card[data-section="comprendre-ia"] .activite-icon { background: var(--comprendre-ia-primary); }
.section-card[data-section="risques"] .activite-icon { background: var(--risques-primary); }
.section-card[data-section="ethique"] .activite-icon { background: var(--ethique-primary); }
.section-card[data-section="donnees"] .activite-icon { background: var(--donnees-primary); }
.section-card[data-section="prompts"] .activite-icon { background: var(--prompts-primary); }
.section-card[data-section="usages"] .activite-icon { background: var(--usages-primary); }
.section-card[data-section="glossaire"] .activite-icon { background: var(--glossaire-primary); }

/* ============================================
   RESPONSIVE - INDICATEURS ET ACTIVITÉS
   ============================================ */

@media (max-width: 768px) {
    .niveau2-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .niveau2-meta {
        gap: 0.5rem;
    }
    
    .meta-temps,
    .meta-difficulte {
        font-size: 0.75rem;
    }
    
    .activite-icon {
        width: 30px;
        height: 30px;
        min-width: 30px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .niveau2-meta {
        flex-wrap: wrap;
    }
}

/* ============================================
   NIVEAU 3
   ============================================ */
.niveau3-item {
    padding: 1.5rem;
    margin: 1rem 1.5rem;
    background: white;
    border-left: 4px solid;
    border-radius: 4px;
}

/* Bordures colorées niveau 3 */
.section-card[data-section="comprendre-ia"] .niveau3-item {
    border-left-color: var(--comprendre-ia-secondary);
}

.section-card[data-section="risques"] .niveau3-item {
    border-left-color: var(--risques-secondary);
}

.section-card[data-section="ethique"] .niveau3-item {
    border-left-color: var(--ethique-secondary);
}

.section-card[data-section="donnees"] .niveau3-item {
    border-left-color: var(--donnees-secondary);
}

.section-card[data-section="prompts"] .niveau3-item {
    border-left-color: var(--prompts-secondary);
}

.section-card[data-section="usages"] .niveau3-item {
    border-left-color: var(--usages-secondary);
}

.section-card[data-section="glossaire"] .niveau3-item {
    border-left-color: var(--glossaire-secondary);
}

.niveau3-item h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.niveau3-item h4 i {
    font-size: 1.3rem;
}

.niveau3-item table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.95rem;
}

.niveau3-item th,
.niveau3-item td {
    border: 1px solid var(--border);
    padding: 0.75rem;
    text-align: left;
}

.niveau3-item th {
    background: var(--bg);
    font-weight: 600;
}

.niveau3-item tr:hover {
    background: var(--bg);
}

.contenu-principal {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.contenu-principal strong {
    font-weight: 600;
}

.contenu-principal ul,
.contenu-principal ol {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.contenu-principal li {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.contenu-principal code {
    background: var(--bg);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.95em;
}

/* ============================================
   ACCORDÉONS
   ============================================ */
.accordeons {
    margin-top: 1.5rem;
}

.accordeon {
    margin-bottom: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    background: white;
}

.accordeon-header {
    width: 100%;
    background: white;
    border: none;
    padding: 1rem 1.25rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: background-color 0.2s ease;
}

.accordeon-header:hover {
    background: var(--bg);
}

.accordeon-header i {
    transition: transform 0.3s ease;
    color: var(--text-light);
    font-size: 0.9rem;
}

.accordeon-header.active {
    background: var(--bg);
}

.accordeon-header.active i {
    transform: rotate(180deg);
}

.accordeon-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordeon-content.active {
    max-height: 3000px;
    padding: 1.25rem;
    border-top: 1px solid var(--border);
}

.accordeon-content ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.accordeon-content li {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.accordeon-content strong {
    color: var(--text-dark);
    font-weight: 600;
}

.accordeon-content p {
    margin: 0.75rem 0;
}

/* ============================================
   LIENS
   ============================================ */
.liens {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.liens li {
    margin: 0.75rem 0;
    padding-left: 1.75rem;
    position: relative;
}

.liens li::before {
    content: "\f0c1";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--text-light);
}

.liens a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.liens a:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

/* ============================================
   CHIFFRES CLÉS
   ============================================ */
.chiffres-cles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.chiffre-item {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid var(--risques-primary);
}

.chiffre-item .nombre {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--risques-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.chiffre-item .description {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.4;
}

.chiffre-item .source {
    margin-top: 0.75rem;
    font-size: 0.85rem;
}

.chiffre-item .source a {
    color: var(--text-light);
    text-decoration: none;
}

.chiffre-item .source a:hover {
    color: var(--risques-primary);
    text-decoration: underline;
}

/* Responsive pour les chiffres */
@media (max-width: 900px) {
    .chiffres-cles {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .chiffres-cles {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   MÉDIAS (IMAGES ET VIDÉOS)
   ============================================ */
.medias-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.media-item {
    margin: 0;
    background: var(--bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px var(--shadow);
}

.media-item img,
.media-item video {
    width: 100%;
    height: auto;
    display: block;
}

.media-item figcaption {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.media-item figcaption strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

/* Responsive médias */
@media (max-width: 768px) {
    .medias-container {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: zoom-out;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    margin-top: 1rem;
    max-width: 600px;
    text-align: center;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.5;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.lightbox-close:hover {
    background: var(--accent-primary);
    color: white;
    transform: rotate(90deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .lightbox-image {
        max-height: 70vh;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .lightbox-caption {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        max-width: 90%;
    }
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: white;
    padding: 1rem 0;
    text-align: center;
    color: var(--text-light);
    box-shadow: 0 -2px 4px var(--shadow);
    margin-top: 1rem;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-content a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-content a:hover {
    color: var(--accent-primary);
    text-decoration: underline;
}

.contact-short {
    display: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.7rem;
        text-align: center;   
    }
    header p {
        display: none;
    }
    
    .section-header h2 {
        font-size: 1.2rem;
    }
    
    .niveau3-item {
        margin: 1rem 0.5rem;
        padding: 1rem;
    }

    /* Niveau 1 - Désactiver le hover uniquement quand NON actif */
    .section-card .section-header:hover:not(.active) {
        background: white !important;
    }
    
    .section-card .section-header:hover:not(.active) h2,
    .section-card .section-header:hover:not(.active) .toggle-icon {
        color: var(--text-dark) !important;
    }

    .copyright {
        display: block;
    }
    
    .separator-1 {
        display: none;
    }
}

@media (max-width: 510px) {
    header h1 {
        font-size: 1.4rem;       
    }
    
    .flower-link {
        margin-right: 0;
    }

    .flower-decoration {
        height: 3rem;
        width: 3rem;
        transition: none;
    }
    
    .section-header h2 {
        padding: 0.8rem 1.25rem;
    }
    
    .contact-full {
        display: none;
    }
    
    .contact-short {
        display: inline;
    }
    
    footer {
        padding: 1rem 0;
    }
    
    .footer-content {
        font-size: 0.85rem;
    }
}

@media (max-width: 400px) {
    header h1 {
        font-size: 1.35rem;
        letter-spacing: normal;     
    }
}

@media (max-width: 381px) {
    header h1 {
        font-size: 1.3rem;
        letter-spacing: normal;     
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-card {
    animation: fadeIn 0.4s ease-out;
}