/* =========================================================
   assets/css/global.css - CYBER / TERMINAL THEME
   ========================================================= */

/* --- Variables CSS (Facilite le changement de thème) --- */
:root {
    --color-background: #111;
    --color-text-light: #f0f0f0;
    --color-text-grey: #aaa;
    --color-accent: #00FF41; /* Vert Électrique */
    --color-secondary: #00FFFF; /* Cyan */
    --font-terminal: 'Share Tech Mono', monospace;
    --font-sans: 'Arial', sans-serif;
}

/* --- Global Reset & Body --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-background);
    color: var(--color-text-light);
    line-height: 1.6;
    padding-top: 60px; /* Espace pour l'en-tête fixe */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
    text-shadow: 0 0 5px var(--color-secondary);
}

.accent-text {
    color: var(--color-accent);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* --- En-tête et Navigation (Cypher Style) --- */
#main-header {
    background-color: rgba(17, 17, 17, 0.95);
    border-bottom: 2px solid var(--color-accent);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 0 15px var(--color-accent); /* Effet de lueur */
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

.logo a {
    font-family: var(--font-terminal);
    font-size: 1.5em;
    font-weight: bold;
    color: var(--color-text-light);
    /* Effet de lueur subtil */
    text-shadow: 0 0 3px var(--color-accent); 
}

.nav-links {
    list-style: none;
    display: flex;
    place-items: center;
}

.nav-links li a {
    color: var(--color-text-grey);
    padding: 10px 15px;
    margin: 0 5px;
    font-family: var(--font-terminal);
    text-transform: uppercase;
    position: relative;
    /* Ligne de fond "scanner" */
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

.nav-links li a:hover {
    color: var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
    text-shadow: none;
}

.nav-links i {
    margin-right: 8px;
}

/* --- Boutons (Bouton accentué) --- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid var(--color-accent);
    background-color: transparent;
    color: var(--color-accent);
    font-family: var(--font-terminal);
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: var(--color-accent);
    color: var(--color-background);
    box-shadow: 0 0 15px var(--color-accent);
}

/* --- Pied de Page --- */
/* =========================================================
   FOOTER
   ========================================================= */
#main-footer {
    background-color: var(--color-darker); /* Couleur de fond plus foncée */
    color: var(--color-text-grey);
    padding: 40px 0 20px 0;
    border-top: 1px solid var(--color-secondary); /* Bordure supérieure subtile */
    font-family: var(--font-sans);
}

.footer-content {
    display: flex;
    flex-wrap: wrap; /* Permet aux colonnes de passer à la ligne sur mobile */
    justify-content: space-between;
    gap: 30px; /* Espace entre les colonnes */
    margin-bottom: 30px;
}

.footer-column {
    flex: 1; /* Chaque colonne prend la même largeur */
    min-width: 250px; /* Largeur minimale avant de passer à la ligne */
}

.footer-logo {
    font-family: var(--font-terminal);
    font-size: 1.5em;
    color: var(--color-text-light);
    margin-bottom: 10px;
}

.footer-logo .accent-text {
    color: var(--color-accent); /* Conserve la couleur accent pour INIT() */
}

.footer-tagline {
    font-size: 0.9em;
    line-height: 1.5;
}

.footer-column h4 {
    font-family: var(--font-terminal);
    font-size: 1.1em;
    color: var(--color-secondary);
    margin-bottom: 20px;
    position: relative;
}

/* Soulignement stylisé pour les titres de colonnes */
.footer-column h4::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--color-accent);
    margin-top: 5px;
}


.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--color-text-grey);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--color-accent);
}

.footer-column ul li a i {
    margin-right: 8px;
    color: var(--color-secondary); /* Icônes cyan par défaut */
}
.footer-column ul li a:hover i {
    color: var(--color-accent); /* Icônes accent au survol */
}

/* Styles spécifiques pour la colonne "Mon École" */
.footer-school p {
    margin-bottom: 10px;
}

.footer-school a {
    color: var(--color-text-grey);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex; /* Pour aligner l'icône et le texte */
    align-items: center;
}

.footer-school a:hover {
    color: var(--color-accent);
}

.footer-school a i {
    margin-right: 8px;
    color: var(--color-secondary);
}
.footer-school a:hover i {
    color: var(--color-accent);
}

.footer-version {
    font-family: var(--font-terminal);
    font-size: 0.85em;
    color: var(--color-text-darker); /* Plus discret */
    margin-top: 20px;
    border-top: 1px dashed rgba(255, 255, 255, 0.05);
    padding-top: 10px;
}


.footer-bottom {
    background-color: #0d0d0d; /* Fond encore plus sombre pour le copyright */
    padding: 15px 0;
    text-align: center;
    font-size: 0.85em;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
}

/* --- Responsive pour le Footer --- */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    .footer-column {
        min-width: auto;
    }
    .footer-column h4::after {
        margin-left: auto;
        margin-right: auto;
    }
    .footer-school a {
        justify-content: center;
    }
}

/* --- Terminal Heading Effect (Placeholder pour JS) --- */
.terminal-heading {
    font-family: var(--font-terminal);
    color: var(--color-accent);
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 0 0 10px var(--color-accent);
}

/* Animation du curseur clignotant */
.cursor {
    font-weight: normal;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to {
        color: transparent;
    }
    50% {
        color: var(--color-accent);
    }
}

.pages-preview {
    padding: 60px 20px;
}

.preview-card {
    display: flex;
    align-items: center;
    gap: 40px; /* Espace entre texte et image */
    margin-bottom: 80px;
    padding: 30px;
    border: 1px solid rgba(0, 255, 65, 0.2);
    background-color: #1a1a1a;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 255, 65, 0.3);
}

.card-text, .card-image {
    flex: 1;
}

.card-text h3 {
    font-size: 2em;
    margin-bottom: 15px;
    color: var(--color-secondary);
    font-family: var(--font-terminal);
}

.card-text p {
    margin-bottom: 20px;
    color: var(--color-text-grey);
}

.card-text .label-info {
    font-family: var(--font-terminal);
    font-size: 0.9em;
    display: block;
    margin-bottom: 5px;
}

.card-image {
    min-height: 200px;
    background-color: #222; /* Placeholder visuel */
    border: 1px dashed var(--color-accent);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-text-grey);
    font-family: var(--font-terminal);
}

/* Modifier l'ordre pour les lignes alternées */
.row-reverse {
    flex-direction: row-reverse;
}

/* Bouton plus petit pour les cards */
.btn-accent-small {
    padding: 8px 15px;
    font-size: 0.9em;
}

/* Media Query pour la responsivité */
@media (max-width: 768px) {
    .preview-card {
        flex-direction: column; /* Empilement vertical sur mobile */
    }
    .row-reverse {
        flex-direction: column; /* Garde l'empilement */
    }
}
/* =========================================================
   Styles FINAUX pour le Dropdown "Outils" (Comportement JS)
   ========================================================= */

/* --- Conteneur LI du Dropdown --- */
.nav-links li.dropdown {
    position: relative; /* Nécessaire pour positionner le contenu */
    /* Assure que ce LI se comporte comme les autres LI de la nav */
    margin: 0 5px; /* Garder la marge des autres li */
    padding: 0; /* Réinitialiser le padding si besoin */
}

/* --- Style du Bouton "Outils" (le lien <a>) --- */
.nav-links li.dropdown .dropbtn {
    display: flex; /* Aligne le texte et l'icône */
    align-items: center; /* Centre verticalement */
    justify-content: center; /* Centre horizontalement */
    
    /* HÉRITER les styles de vos liens de navigation principaux */
    color: var(--color-text-grey);
    padding: 10px 15px; /* MÊME padding que vos .nav-links li a */
    font-family: var(--font-terminal);
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border-bottom: 2px solid transparent; /* Prépare le soulignement */
    transition: color 0.3s ease, border-bottom 0.3s ease;
    cursor: pointer; /* Important pour l'UX */
    text-decoration: none; /* Assurez-vous qu'il n'y a pas de soulignement */
}

/* Style au survol et quand le menu est actif */
.nav-links li.dropdown .dropbtn:hover,
.nav-links li.dropdown .dropbtn.active { /* 'active' ajouté par JS */
    color: var(--color-accent);
    border-bottom: 2px solid var(--color-accent); /* MÊME soulignement que vos .nav-links li a:hover */
    text-shadow: none; /* Annule l'ombre si vos liens hover l'ont */
}

/* Style de l'icône de flèche */
.nav-links li.dropdown .dropbtn .fa-caret-down {
    margin-left: 8px; /* Espace après "Outils" */
    transition: transform 0.3s ease; /* Animation fluide */
}

/* Rotation de la flèche quand le menu est ouvert */
.nav-links li.dropdown .dropbtn.active .fa-caret-down {
    transform: rotate(180deg);
}

/* Contenu du dropdown (le DIV qui s'ouvre) */
.nav-links li.dropdown .dropdown-content {
    display: none; /* Caché par défaut */
    position: absolute;
    background-color: var(--color-darker, #0c0c0c); /* Fond sombre */
    min-width: 220px; /* Largeur minimale */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.6);
    z-index: 1001; /* Au-dessus */
    border: 1px solid var(--color-secondary); /* Bordure Cyan */
    padding: 5px 0;
    left: 0; /* Alignement à gauche du bouton parent */
    top: 100%; /* Juste en dessous */
}

/* Affichage quand JS ajoute la classe .show */
.nav-links li.dropdown .dropdown-content.show {
    display: block;
}

/* Liens dans le dropdown */
.nav-links li.dropdown .dropdown-content a {
    color: var(--color-text-light);
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-family: var(--font-sans); /* Police standard */
    font-size: 0.95em;
    transition: background-color 0.2s ease, color 0.2s ease;
    /* Réinitialisations pour éviter les styles des liens principaux */
    margin: 0; 
    border-bottom: none; 
}

.nav-links li.dropdown .dropdown-content a:hover {
    background-color: var(--color-secondary-dark, #008888);
    color: var(--color-secondary);
}

/* --- Responsive pour le Dropdown (Adapté à votre structure) --- */
@media screen and (max-width: 768px) {
    /* Si votre .nav-links passe en colonne en mobile */
    .nav-links li.dropdown {
         width: 100%;
         margin: 0;
    }
    .nav-links li.dropdown .dropbtn {
        justify-content: space-between; /* Pousse l'icône à droite */
        border-bottom: 1px solid #333; /* Séparateur */
        width: 100%; /* Prend toute la largeur */
        cursor: pointer; /* Important pour l'UX */
        text-decoration: none; /* Assurez-vous qu'il n'y a pas de soulignement */
    }
    .nav-links li.dropdown .dropdown-content {
        position: static; /* S'intègre dans le flux */
        width: 100%;
        box-shadow: none;
        border: none;
        border-top: 1px solid #333;
    }
     .nav-links li.dropdown .dropdown-content a {
        padding-left: 40px; /* Indentation */
        border-bottom: 1px solid #444;
    }
}
