*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --gold: #f0c040;
  --gold-light: #ffe080;
  --dark: #080c14;
  --white: #ffffff;
  --glass: rgba(0,0,0,0.6);
  --border: rgba(255, 255, 255, 0.4);
}

body, html {
  width: 100%; height: 100%;
  overflow: hidden;
  font-family: 'Rajdhani', sans-serif;
  background: var(--dark);
}

/* SLIDER */
.slider { position: fixed; inset: 0; z-index: 0; }
.slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
}
.slide.active { opacity: 1; }

/* IMAGES DU SLIDER */
.slide:nth-child(1) { background-image: url("image16.jpg.jpg"); }
.slide:nth-child(2) { background-image: url("image1.jpg.jpg"); }
.slide:nth-child(3) { background-image: url("image2.jpg.jpg"); }
.slide:nth-child(4) { background-image: url("image3.jpg.jpg"); }
.slide:nth-child(5) { background-image: url("image4.jpg.jpg"); }

.slider::after {
  content:''; position:absolute; inset:0;
  background: linear-gradient(to bottom, rgba(8,12,20,0.4) 0%, rgba(8,12,20,0.8) 100%);
  z-index:1;
}

/* UI LAYER */
.ui-layer {
  position: fixed; inset: 0; z-index: 10;
  display: flex; flex-direction: column; pointer-events: none;
}

/* HEADER */
.header { display: flex; justify-content: center; padding: 20px 0; pointer-events: auto; }
.logo-main { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.logo-main img { height: 65px; width: auto; filter: drop-shadow(0 0 10px var(--gold)); }
.brand { font-family: 'Orbitron'; font-size: 1.8rem; font-weight: 900; color: var(--gold); letter-spacing: 3px; text-transform: uppercase; }
.brand span { color: var(--white); }

/* ZONE CENTRALE */
.center-zone { flex: 1; display: flex; align-items: center; justify-content: space-between; padding: 0 50px; }

/* FORMATION BOX (GAUCHE) */
.formation-box {
  pointer-events: auto; background: var(--glass); backdrop-filter: blur(8px);
  border: 2px solid var(--border); border-radius: 5px; padding: 30px;
  max-width: 420px; color: white;
}
.formation-box h2 { font-family: 'Orbitron'; font-size: 1.1rem; color: var(--gold); margin-bottom: 20px; text-transform: uppercase; }
.formation-box ul { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.formation-box li { display: flex; gap: 10px; font-size: 0.9rem; line-height: 1.4; }
.icon { color: var(--gold); font-weight: bold; }

.cta-btn {
  margin-top: 25px; display: inline-block; padding: 10px 25px;
  background: var(--gold); color: black; font-family: 'Orbitron';
  font-size: 0.7rem; font-weight: 700; text-decoration: none;
  clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
}

/* LOGO SECONDAIRE (CENTRE AGRANDI) */
.logo-secondary-wrap { flex: 1; display: flex; justify-content: center; pointer-events: none; }
.logo-secondary { width: 320px; position: relative; }
.logo-secondary img { width: 100%; height: auto; filter: drop-shadow(0 0 30px rgba(240,192,64,0.5)); }

.spacer-right { flex: 0 0 420px; }

/* FOOTER */
.footer-bar {
  pointer-events: auto; background: rgba(0,0,0,0.8);
  border-top: 1px solid var(--gold); padding: 15px 50px;
}
.about-text { color: white; text-align: center; font-size: 0.9rem; letter-spacing: 1px; }
.about-text strong { color: var(--gold); }

/* DOTS */
.dots { position: fixed; bottom: 70px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 20; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer; }
.dot.active { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.hero-text {
    position: absolute;
    top: 120px; /* Juste sous le logo du haut */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 80%;
    z-index: 20;
    pointer-events: none;
}

.hero-text h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: white;
    letter-spacing: 5px;
    text-shadow: 0 0 15px rgba(240, 192, 64, 0.5);
    margin-bottom: 15px;
}

.hero-text p {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}
/* --- ADAPTATION MOBILE --- */
@media (max-width: 768px) {
    .center-zone {
        flex-direction: column; /* Empile les blocs verticalement */
        align-items: center;
        gap: 20px;
    }

    .formation-box, .bonus-box {
        width: 90%; /* Prend presque toute la largeur du téléphone */
        max-width: none;
        position: relative; /* Évite qu'ils flottent au-dessus du logo */
        top: 0;
        left: 0;
    }

    .logo-secondary-wrap {
        width: 80%;
        margin: 20px 0;
    }

    h1 {
        font-size: 1.8rem; /* Réduit la taille du gros titre */
    }
}