/* --- 1. Variables Globales (Génériques) --- */
:root {
    --color-accent: #00bcd4; /* Cyan/Turquoise pour l'énergie ADT */
    --color-primary: #1e88e5; /* Bleu standard */
    --color-text-dark: #212121;
    --color-text-light: #ffffff;
    --color-gray-light: #f4f4f4;
    --color-gray-dark: #333333;
    --color-discord: #5865F2; /* NOUVEAU: Couleur Blurple de Discord */
    --color-instagram: #C13584; /* Instagram Deep Magenta */
    --color-youtube: #FF0000;
    --color-tiktok-cyan: #69C9D0; /* TikTok Cyan (pour l'effet de survol) */
    --font-family-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --border-radius-main: 8px;
    --box-shadow-main: 0 4px 15px rgba(0, 0, 0, 0.1);
    --card-hover-scale: 1.03; /* Agrandissement au survol */
    --card-shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.2); /* Ombre au survol */
    --link-primary-color-light: #1e88e5;  /*#FF8C00; /* Orange vif pour le mode clair */
    --link-primary-color-dark: #1e88e5; /*#ffae00;  /* Or pour le mode sombre */
}

/* --- Variables de Thème (Light Mode par défaut) --- */
.light-mode {
    --color-background: var(--color-gray-light);
    --color-surface: var(--color-text-light);
    --color-text: var(--color-text-dark);
    --color-header-bg: var(--color-text-light);
    --color-footer-bg: var(--color-gray-dark);
    --color-footer-text: var(--color-text-light);
    --color-hover-bg: rgba(0, 0, 0, 0.05);
    --box-shadow-card: 0 2px 10px rgba(0, 0, 0, 0.08);
    --color-link-default: var(--color-gray-dark);
}

/* --- Variables de Thème (Dark Mode) --- */
.dark-mode {
    --color-background: #121212;
    --color-surface: #1e1e1e;
    --color-text: var(--color-text-light);
    --color-header-bg: #1e1e1e;
    --color-footer-bg: #1e1e1e;
    --color-footer-text: var(--color-text-light);
    --color-hover-bg: rgba(255, 255, 255, 0.1);
    --box-shadow-card: 0 4px 15px rgba(0, 0, 0, 0.4);
    --color-link-default: var(--color-accent);
}



a {
    color: var(--color-link-default);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--color-accent);
}

/* --- 3. Header et Navigation (Moderne & Burger) --- */
.header {
    background-color: var(--color-header-bg);
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--color-accent); 
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.burger-menu {
    display: none; 
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1010;
}

.burger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--color-text);
    transition: all 0.3s ease-in-out;
}

/* NAVIGATION DESKTOP: Centrage du menu */
.main-nav {
    display: block; 
    width: 100%; 
    padding: 15px 0; 
    background-color: var(--color-surface);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    justify-content: center; 
}

.main-nav a {
    /*color: var(--color-text);*/
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.main-nav a.active::after,
.main-nav a:hover::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
    transform: scaleX(1);
    transition: transform 0.3s ease-out;
}

.main-nav a:not(.active)::after {
    transform: scaleX(1);
}


/* --- 4. Mode Sombre (Toggle) --- */
.mode-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mode-toggle i {
    font-size: 1.2em;
}

.light-mode .fa-sun { color: orange; }
.dark-mode .fa-moon { color: var(--color-accent); }

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}
input:checked + .slider {
    background-color: var(--color-accent);
}
input:focus + .slider {
    box-shadow: 0 0 1px var(--color-accent);
}
input:checked + .slider:before {
    transform: translateX(16px);
}
.slider.round {
    border-radius: 24px;
}
.slider.round:before {
    border-radius: 50%;
}


/* --- 5. Sections de Contenu --- */
.content {
    padding-top: 20px;
}

section {
    padding: 60px 0;
}

.section-title {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

.hero-section {
    background-color: var(--color-surface);
    padding: 80px 0;
    text-align: center;
    border-radius: var(--border-radius-main);
    margin: 20px auto;
    width: 90%;
    max-width: 1200px;
}

.hero-section h2 {
    font-size: 3em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-section h2 strong {
    color: var(--color-accent);
}

.hero-section p {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* CTA Standard (Base pour tous les boutons) */
.cta-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease; /* Ajout de la transition pour 'transform' et 'box-shadow' */
    text-align: center;
    border: 2px solid transparent;
}

/* NOUVEAU HOVER: Primary CTA (Bouton principal solide) */
.cta-button.primary {
    background-color: var(--color-accent);
    color: var(--color-text-light);
}

.cta-button.primary:hover {
    background-color: #008c9f; 
    box-shadow: 0 6px 15px rgba(0, 188, 212, 0.4); /* Ombre plus forte */
    transform: translateY(-2px); /* Effet de levage subtil */
}

/* NOUVEAU HOVER: Secondary CTA (Bouton principal bordé) */
.cta-button.secondary {
    background-color: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.cta-button.secondary:hover {
    background-color: rgba(0, 188, 212, 0.15); /* Remplissage léger */
    color: var(--color-accent);
    transform: translateY(-2px); /* Effet de levage subtil */
}

/* NOUVEAU HOVER: Link CTA Primary (Petits boutons pleins) */
.cta-button.link-primary {
    background-color: var(--color-accent);
    color: var(--color-text-light);
    padding: 8px 15px;
    font-size: 0.9em;
    border-radius: 4px;
    transition: background-color 0.3s, transform 0.2s;
}
.cta-button.link-primary:hover {
    background-color: #008c9f; 
    transform: translateY(-1px);
}

