/* Variables Globales */
:root {
    --primary-color: #3b82f6; /* Bleu */
    --secondary-color: #10b981; /* Vert original */
    --logo-red: #e11d48;
    --logo-green: #22c55e;
    --background-color: #f8fafc; /* Peut-être moins utile avec le body dégradé */
    --text-color: #1f2937; /* Gris foncé pour le texte */
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 🌐 Style Global du Body (version de index.html) */
body {
    /* Supprimer l'ancien fond dégradé si le nouveau fond animé le remplace */
    /* background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%); */ 
    min-height: 100vh;
    margin: 0;
    padding: 0; /* Padding global supprimé, potentiellement à ajouter au container si besoin */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Priorité sur Poppins */
    color: var(--text-color);
    position: relative;
    overflow-x: hidden;
    /* display: flex; align-items: center; flex-direction: column; box-sizing: border-box; -- Supprimé car peut interférer avec la mise en page Bootstrap */
}

/* Animation de fond CSS précédente (Commentée) */
/*
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' fill='rgba(255,255,255,0.2)'%3E%3C/path%3E%3C/svg%3E");
    background-size: 1200px 100px;
    animation: wave-animation 18s linear infinite;
}

.wave:nth-child(2) {
    bottom: 10px;
    opacity: 0.5;
    animation: wave-animation 12s linear infinite;
}

.wave:nth-child(3) {
    bottom: 20px;
    opacity: 0.2;
    animation: wave-animation 8s linear infinite;
}

@keyframes wave-animation {
    0% { background-position-x: 0; }
    100% { background-position-x: 1200px; }
}
*/

/* Nouveau fond animé avec lignes (identique à tuto.html) */
#animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Derrière le contenu */
    overflow: hidden;
    /* Fond dégradé doux et animé */
    background: linear-gradient(135deg, #a8dadc, #457b9d, #1d3557);
    background-size: 300% 300%;
    animation: gradientBG 20s ease infinite;
    /* background-color: #1a1a2e; -- Supprimé */
}

/* Animation pour le fond dégradé */
@keyframes gradientBG {
	0% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

/* Styles pour les pixels coureurs */
.runner-pixel {
    position: absolute;
    left: -20px; /* Départ hors écran */
    width: 15px; /* Largeur du "pixel" */
    height: 5px; /* Hauteur */
    background-color: rgba(255, 255, 255, 0.2); /* Blanc semi-transparent */
    /* top est défini par JS */
}

/* Variations de couleur/style (optionnel) */
.runner-pixel:nth-child(4n) {
    background-color: rgba(241, 250, 140, 0.3); /* Jaune pâle ? */
    width: 20px;
    height: 3px;
}
.runner-pixel:nth-child(7n) {
    background-color: rgba(173, 216, 230, 0.3); /* Bleu clair ? */
    width: 10px;
    height: 6px;
}

/* 🟦 Titres */
h1, h2, h3 {
    color: var(--text-color); /* Titres en gris foncé */
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}
/* Style spécifique pour le titre principal h1 dans index.html */
/* Si besoin, cibler plus spécifiquement, ex: .main-card h1 */
/* .text-4xl { font-size: 2.25rem; line-height: 2.5rem; } */
/* .font-bold { font-weight: 700; } */
/* .mb-6 { margin-bottom: 1.5rem; } */
/* .text-center { text-align: center; } */
/* .text-blue-600 { color: #2563eb; } */


h1 span { /* Animation pulse spécifique */
    margin-left: 10px;
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

/* 🚦 Boutons - Styles généraux et spécifiques fusionnés */
/* Style bouton générique (conservé mais sera écrasé par Bootstrap/btn-*) */
button {
    margin: 5px;
    padding: 10px 20px;
    border: none; /* Bootstrap gère les bordures des boutons */
    border-radius: 8px; /* Bootstrap a ses propres arrondis */
    background-color: #3b82f6; /* Sera écrasé par .btn-primary */
    color: white;
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, transform 0.1s, box-shadow 0.3s;
}
button:hover {
    background-color: #1d4ed8;
    transform: scale(1.05); /* Peut entrer en conflit avec les transitions .btn-* */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
button:active {
    transform: scale(1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Styles spécifiques .btn-* (depuis index.html - plus précis) */
.btn-primary {
    background-color: var(--secondary-color); /* Bouton primaire en VERT */
    border-color: var(--secondary-color);
    transition: all 0.3s ease; 
}
.btn-primary:hover {
    background-color: #059669; /* Vert plus foncé au survol */
    border-color: #059669;
    transform: translateY(-2px); 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); 
}

.btn-success {
    background-color: var(--logo-green); /* Bouton succès en vert logo (peut être le même que primaire) */
    border-color: var(--logo-green);
    transition: all 0.3s ease;
}
.btn-success:hover {
    background-color: #16a34a; /* Vert plus foncé au survol */
    border-color: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* 📦 Conteneurs */
/* Style .main-content (original - peut-être inutilisé si index.html n'utilise que .main-card) */
.main-content {
    max-width: 1000px;
    flex: 1;
    margin: 20px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    /* animation: fadeIn 0.5s ease-in-out; - Déplacé vers .fade-in */
}

/* Conteneur principal fluide (depuis index.html) */
.container-fluid {
    max-width: 1400px; /* Plus grand que .main-content */
    margin: 0 auto;
    padding: 2rem 1rem; /* Style de index.html */
}

/* Carte principale (depuis index.html) */
.main-card {
    background-color: var(--card-bg);
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

/* Styles pour les bannières publicitaires (Fusion) */
.ad-banner {
    width: 160px;
    /* Utilisation de height de index.html, mais suppression min-height */
    height: 300px;
    background-color: rgba(255, 255, 255, 0.8);
    margin: 10px 0;
    text-align: center;
    border-radius: 0.5rem;
    box-shadow: var(--card-shadow); /* Utilise la variable :root */
    transition: all 0.3s ease;
    padding: 10px; /* Conservé de l'original */
    /* display: flex, align-items, justify-content conservés pour centrer le contenu si la pub ne charge pas */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #888; /* Ajouté depuis index.html */
    /* line-height: 300px; -- Supprimé car cause problèmes */
    /* line-height: normal; -- Supprimé car par défaut */
}
.ad-banner:hover { /* Style hover de index.html */
    transform: translateY(-5px);
    box-shadow: 0 15px 20px -3px rgba(0, 0, 0, 0.15);
}
/* Ajustement pour les publicités responsives */
.ad-banner ins.adsbygoogle {
    display: block;
    width: 100%;
    height: 100%;
    /* min-height: 600px; -- Supprimé car .ad-banner a height: 300px */
}


/* 📊 Tableaux */
/* Style générique table (depuis index.html) */
.table {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    /* Bootstrap gère la largeur et border-collapse */
}

/* Style original pour table (peut être redondant avec Bootstrap) */
/* table { width: 100%; border-collapse: collapse; } */
/* table th, table td { padding: 10px; text-align: center; vertical-align: middle; border-bottom: 1px solid #e5e7eb; } */
/* table th { background-color: #2563eb; color: white; font-weight: 600; } */
/* table tbody tr:nth-child(even) { background-color: #f9fafb; } */
/* table tbody tr:hover { background-color: #e0f2fe; transition: background-color 0.3s ease-in-out; } */

/* Style spécifique .table-dark th (depuis index.html) */
/* Note: Bootstrap définit déjà .table-dark */
.table-dark th {
    background-color: var(--primary-color); /* Ecrase le style Bootstrap .table-dark th */
    border-color: var(--primary-color);
}

/* Conteneur table responsive (original) */
.table-responsive {
    border-radius: 10px; /* Peut-être redondant si .table est utilisé */
    overflow: hidden;
}


/* 📈 Barre de Progression (original) */
.progress { /* Style pour le conteneur de la barre Bootstrap */
    height: 25px; /* Ajusté à la valeur dans index.html */
    border-radius: 10px; /* Style original */
    overflow: hidden; /* Style original */
    /* box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2); -- Style original */
    position: relative; /* Style original */
    /* margin: 10px 0; -- Bootstrap/HTML gère les marges */
    /* background-color: #e5e7eb; -- Bootstrap gère le fond */
}
.progress-bar { /* Style pour la barre Bootstrap elle-même */
    /* width: 0; -- Géré par JS */
    /* height: 100%; -- Bootstrap gère la hauteur */
    text-align: center; /* Style original */
    line-height: 25px; /* Ajusté à la hauteur du parent .progress */
    color: white; /* Style original */
    transition: width 0.4s, background-color 0.2s; /* Style original */
    /* background-color: #22c55e; -- Géré par les classes .bg-* */
    /* border-radius: 10px; -- Hérité de .progress */
}
.progress-bar.bg-info { /* Remplacer bg-info par bg-danger (rouge) */
    /* background-color: #38bdf8; -- Supprimé */
    background-color: var(--logo-red);
}
.progress-bar.bg-success { 
    background-color: var(--logo-green); /* Utiliser le vert logo */
}
/* Style pour le texte DANS la barre de progression */
.progress-bar .progress-text { /* Ciblage plus précis */
    /* position: absolute; -- Pas nécessaire si texte dans la barre */
    /* width: 100%; top: 0; left: 0; -- Pas nécessaire */
    font-weight: bold;
    color: white; /* Redondant avec .progress-bar mais ok */
    line-height: inherit; /* Hérite du line-height de .progress-bar */
    display: block; /* S'assurer qu'il prend la largeur */
}


/* 🔄 Loader / Spinner */
/* Style générique .loader-container (depuis index.html) */
.loader-container {
    text-align: center;
    margin: 2rem 0;
}
/* Style générique .spinner-border (depuis index.html) */
.spinner-border {
    width: 3rem;
    height: 3rem;
    /* Bootstrap gère l'affichage et la couleur via text-* */
}
/* Style spécifique pour #loader (original - peut être inutilisé) */
#loader .spinner-border {
    width: 60px; /* Plus grand que le générique */
    height: 60px;
    margin: 20px auto;
    display: block;
    color: #2563eb;
}


/* 🔍 Barre de Recherche */
#searchRunner { /* Style original */
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    width: 100%;
    max-width: 500px; /* Limite la largeur */
    margin-left: auto;
    margin-right: auto;
    display: block;
    transition: border-color 0.3s;
}
#searchRunner:focus { /* Style original */
    border-color: #2563eb;
    outline: none;
}


/* 🎞️ Transitions & Animations */
/* Style générique .hidden (depuis index.html) */
.hidden {
    display: none !important; /* !important pour s'assurer qu'il prime */
}
/* Style générique .fade-in */
.fade-in {
    animation: fadeIn 0.5s ease-in-out forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); } /* Ajout de transform depuis l'original */
    to { opacity: 1; transform: translateY(0); }
}
/* Animation pour les étapes (depuis index.html) */
.step-transition {
    /* Remplacé par JS: transition: none; */
    /* Remplacé par JS: transform-origin: top; */
    /* Préparer pour les animations Anime.js */
    /* position: absolute; -- Supprimé */
    /* width: 100%;      -- Supprimé */
    /* top: 0;           -- Supprimé */
    /* left: 0;          -- Supprimé */
    opacity: 0; /* Garder invisible initialement pour Anime.js */
}

/* Styles pour l'overlay du coureur - Supprimé */
/*
#runner-overlay {
  position: fixed; 
  top: 40%; 
  left: -250px; 
  width: 200px; 
  height: auto;
  z-index: 1050; 
  pointer-events: none; 
}
*/

/* Classe utilitaire pour cacher */
.hidden {
  display: none !important; /* Assurer le masquage */
}

/* Supprimer les styles CSS d'animation car Anime.js prend le relais */
/*
.step-enter {
    animation: stepEnter 0.7s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    transform: translateZ(0); 
}
@keyframes stepEnter {
    from { 
        opacity: 0; 
        transform: translateX(-40px) translateZ(0); 
    } 
    to { 
        opacity: 1; 
        transform: translateX(0) translateZ(0);
    } 
}
*/

/* Responsive design */
@media (max-width: 1200px) {
    .ad-container {
        display: none;
    }
}

/* Styles pour les onglets (nav-link) avec underline SVG animé */
.nav-link {
    position: relative; /* Nécessaire pour positionner le SVG */
    padding-bottom: 15px !important; /* Laisser de la place en bas pour le SVG (utiliser !important pour surcharger Bootstrap si besoin) */
    background: transparent !important; /* Assurer la transparence */
    border: none !important; /* Supprimer les bordures Bootstrap */
    /* font-size: 1.2rem; -- Ajuster si besoin */
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease; /* Transition pour la couleur du texte et le léger scale au survol */
    /* Supprimer les styles de bouton Bootstrap qui interfèrent */
    box-shadow: none !important; 
}

.nav-link .tab-label {
    display: inline-block; /* Pour permettre la transformation */
    transition: transform 0.3s ease;
}

.nav-link:hover .tab-label {
    transform: translateY(-2px); /* Léger soulèvement du texte au survol */
}

.svg-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    fill: none;
    stroke: var(--secondary-color); /* Couleur par défaut: VERT */
    stroke-width: 2;
    stroke-dasharray: 1000; 
    stroke-dashoffset: 1000;
    pointer-events: none; /* Ne pas interférer avec le clic */
    transition: stroke 0.4s ease; /* Transition douce de la couleur du trait */
}

/* Quand l'onglet est actif, le trait est d'une autre couleur */
.nav-link.active .svg-underline {
    stroke: var(--secondary-color); /* Trait actif: VERT */
}

/* Masquer le loader Bootstrap quand hidden est appliqué */

/* Ajouter une origine de transformation pour les panneaux d'onglets */
.tab-pane {
    transform-origin: center center; /* Pour l'animation scale */
}

/* Réduire taille titre H2 de l'étape 1 */
#step1 h2 {
    font-size: 1.5rem; /* Ajuster cette valeur si besoin */
    margin-bottom: 1rem; /* Réduire aussi la marge */
}

/* Styles pour les particules */
.particle {
    position: absolute;
    /* Position initiale aléatoire (sera animée par JS) */
    left: 50%; 
    top: 50%; 
    /* Taille aléatoire gérée par JS (scale) */
    width: 10px; /* Taille de base */
    height: 10px;
    border-radius: 50%; /* Forme ronde */
    /* Couleurs multiples */
    background-color: var(--primary-color); /* Couleur de base */
    opacity: 0.6; /* Semi-transparent */
}

/* Variations de couleur et taille pour les particules */
.particle:nth-child(3n) {
    background-color: var(--secondary-color);
    width: 15px;
    height: 15px;
    opacity: 0.7;
}

.particle:nth-child(5n) {
    background-color: #ffffff;
    width: 8px;
    height: 8px;
    opacity: 0.5;
}
