/* =========================================================
   FEUILLE DE STYLE PRINCIPALE - ULTIMATE AIR CHALLENGE
   Style inspiré d’un menu de jeu vidéo futuriste aviation
   ========================================================= */

   /* =========================================================
   FIX GLOBAL : MARGE SOUS LA NAVBAR COCKPIT
   Empêche le header d'écraser les sections HERO / WELCOME
   ========================================================= */

/* Mobile : navbar réduite = compensation réduite */
@media (max-width: 900px) {
    body {
        padding-top: 75px; /* correspond à .navbar.shrink (67px arrondi) */
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
}

/* === 1. PARAMÈTRES GLOBAUX === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  max-width: 100%;
 box-sizing: border-box;
}

body {
  background-color: #000;
  color: #f9d342; /* Jaune aviation */
  font-family: 'Rajdhani', sans-serif;
  max-width: 100%;
  overflow-x: hidden !important;
  padding-top: 90px; /* correspond à .navbar height (90px) */
}


/* =========================================================
   1. NAVBAR PRINCIPALE – STYLE COCKPIT
   ========================================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    padding: 0 70px;

    background: rgba(0, 0, 0, 0.92);
    border-bottom: 2px solid #f9d342;

    display: flex;
    justify-content: space-between;
    align-items: center;

    z-index: 1000;
    overflow: visible;

    transition: height 0.5s ease, background 0.3s ease;
}

/* Mode rétracté au scroll */
.navbar.shrink {
    height: 67px;
    background: rgba(0, 0, 0, 0.72);
}

/* ===============================
   LOGO NAVBAR – STYLE COCKPIT
   =============================== */
.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 58px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 6px rgba(249,211,66,0.25));

    transition:
        height 0.4s cubic-bezier(.25, .8, .25, 1),
        transform 0.4s cubic-bezier(.25, .8, .25, 1),
        filter 0.4s ease;
}

.navbar.shrink .logo img {
    height: 45px;
    transform: translateY(1px); /* légère glisse vers le bas */
    filter: drop-shadow(0 0 4px rgba(249,211,66,0.18));
}


/* Animation sobre hover */
.logo:hover img {
    transform: scale(1.05);
}

/* Responsive mobile */
@media (max-width: 768px) {
    .logo img {
        height: 48px;
    }
}

/* =========================================================
   2. NAV LINKS – HIGHLIGHT + GLOSSY CONTINU
   ========================================================= */

.nav-links {
    list-style: none;
    display: flex;
    gap: 60px;
    align-items: center;
}

.nav-links li a {
    position: relative;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;

    color: #f9d342;
    text-decoration: none;

    padding: 8px 0;
    overflow: hidden;

    transition: color .25s ease, text-shadow .25s ease;
}

/* Glow cockpit */
.nav-links li a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(249,211,66,0.85);
}

/* Barre lumineuse sous le lien */
.nav-links li a::after {
    content: "";
    position: absolute;

    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);

    height: 2px;
    width: 0;

    background: linear-gradient(
        90deg,
        rgba(249,211,66,0) 0%,
        rgba(249,211,66,0.1) 10%,
        rgba(249,211,66,0.9) 50%,
        rgba(249,211,66,0.1) 90%,
        rgba(249,211,66,0) 100%
    );
    filter: blur(.7px);

    transition: width .3s ease-out;
}

.nav-links li a:hover::after {
    width: 100%;
}

/* Loop glossy permanent */
.nav-links li a .glossy-loop {
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;

    pointer-events: none;

    background: linear-gradient(
        90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.22) 50%,
        rgba(255,255,255,0) 100%
    );

    opacity: 0.15;
    transform: skewX(-25deg);

    animation: glossyLoopSoft 2.4s linear infinite;
}

@keyframes glossyLoopSoft {
    0%   { left: -120%; opacity: 0.05; }
    40%  { opacity: 0.18; }
    100% { left: 130%; opacity: 0.05; }
}

/* =========================================================
   LIEN ACTIF — EXACTEMENT COMME LE HOVER (cockpit lumineux)
   ========================================================= */
.nav-links li a.active {
    color: #fff;
    text-shadow: 0 0 10px rgba(249,211,66,0.85);
}

.nav-links li a.active::after {
    width: 100%;
}

.nav-links li a.active .glossy-loop {
    opacity: 0.25;          /* un peu plus visible que hover */
    animation-duration: 1.8s; /* léger boost pour effet "actif" */
}


/* =========================================================
   3. DROPDOWN COCKPIT — STRUCTURE PRINCIPALE
   ========================================================= */

.dropdown-bubble {
    position: relative;

}

/* Lien parent */
.bubble-trigger {
    position: relative;
    z-index: 4000;
}

/* Tiroir complet */
.bubble-wrap {
    position: absolute;
    top: var(--bubble-top, 90px);
    left: 50%;
    transform: translateX(-50%);

    width: 300px; /* largeur du menu drop */
    height: auto !important; 
    padding-bottom: 10px !important; /* pour décider du padding en bas, et rajouter une marge */
    background: rgba(0,0,0,0.92);
    border: 2px solid #f9d342;
    border-top: none;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;

    overflow: hidden;
    opacity: 0;
    pointer-events: none;

    transition: opacity .25s ease;
    z-index: 3500;
    
}
/* =========================================================
   FIX COCKPIT – restaurer le vrai drop desktop (300px)
   ========================================================= */
@media (min-width: 901px) {

    /* Force la largeur fixe telle qu’elle fonctionnait AVANT */
    .dropdown-bubble .bubble-wrap {
        width: 300px !important;
        max-width: 300px !important;
        min-width: 300px !important;

        left: 50% !important;
        transform: translateX(-50%) !important;

        position: absolute !important;
        display: block !important;
    }

    /* Force l’élément parent à REVENIR au comportement desktop */
    .dropdown-bubble {
        position: relative !important;
        width: auto !important;
        display: inline-block !important;
    }
}

/* Panneau glossy intérieur */
.bubble-panel {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;

    background: radial-gradient(
        ellipse at top,
        rgba(255,255,255,0.06) 0%,
        rgba(255,255,255,0.01) 35%,
        rgba(255,255,255,0) 70%
    );
}

/* Contenu vertical */
.bubble-content {
    position: relative;
    width: 80%;
    margin: 0 auto;
    padding-top: 6px;
    display: flex;
    flex-direction: column;
    text-align: center;
    z-index: 5;
}

/* Quand le menu est ouvert */
.dropdown-bubble.open .bubble-wrap {
    opacity: 1;
    pointer-events: auto;
    height: auto;
}

/* =========================================================
   4. LIENS DE SOUS-MENU — GLOSSY PRO + GLOW (INTÉGRATION FUSION)
   ========================================================= */

.bubble-content a {
    display: block;
    position: relative;

    font-size: 1.3rem;
    font-weight: 400;
    color: #f9d342;
    text-decoration: none;
    padding: 12px 0 !important;
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid rgba(249,211,66,0.14);
    background: none;
    transition: color .25s ease, text-shadow .25s ease;
    z-index: 5;
}


.bubble-content a:last-child {
    border-bottom: none;
}

/* =========================================================
    4.1. GLOSSY PERMANENT — STYLE DOUX + CONTINU
   ========================================================= */

.bubble-content a::after {
    content: "";
    position: absolute;
    
    top: 0;
    left: -90%;
    width: 65%;
    height: 100%;
    background: linear-gradient(
        125deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.15) 50%,
        rgba(255,255,255,0) 100%
    );

    transform: skewX(-20deg);
    opacity: .12;
    pointer-events: none;
    z-index: 25;

    animation: glossyLoopDiagonal 3s linear infinite;
}


/* Flash glossy d’attaque plus doux et plus court */
.bubble-content a:hover::after {
   animation: glossyLoopDiagonal 3s linear infinite;
}


/* boucle glossy en grande diagonale */
@keyframes glossyLoopDiagonal {
    0%   { left: -180%; opacity: 0.08; }
    50%  { opacity: 0.18; }
    100% { left: 160%; opacity: 0.08; }
}

/* =========================================================
   4.2. GLOSSY D’ATTAQUE (HOVER) — VERSION PLUS DOUCE
   ========================================================= */

.bubble-content a::before {
    content: "";
    position: absolute;

    top: 0;
    left: -90%;
    width: 65%;
    height: 100%;

    background: linear-gradient(
        120deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.45) 50%,
        rgba(255,255,255,0) 100%
    );

    transform: skewX(-20deg);
    opacity: 0;

    pointer-events: none;
    z-index: 15;
}

/* Flash glossy d’attaque plus doux et plus court */
.bubble-content a:hover::before {
    animation: glossyAttackBubble .55s ease-in-out forwards;
}

@keyframes glossyAttackBubble {
    0%   { left: -90%; opacity: .22; }
    40%  { opacity: .55; }
    100% { left: 130%; opacity: 0; }
}



/* =========================================================
   4.3. HOVER GLOW — STYLE COCKPIT
   ========================================================= */

.bubble-content a:hover {
    color: #fff;
    text-shadow: 0 0 12px rgba(249,211,66,0.9);

    background: linear-gradient(
        90deg,
        rgba(249,211,66,0)   0%,
        rgba(249,211,66,0.06)   10%,
        rgba(249,211,66,0.1) 50%,
        rgba(249,211,66,0.06)   90%,
        rgba(249,211,66,0) 100%
    );
}

/* =========================================================
   HAMBURGER — STYLE COCKPIT MOBILE
   ========================================================= */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;

    width: 34px;
    height: 28px;

    position: relative;
    z-index: 2001;
}

.hamburger span {
    display: block;
    height: 4px;
    width: 100%;
    background: var(--uac-yellow);
    border-radius: 20px;
    box-shadow: 0 0 6px rgba(249,211,66,0.55);
    transition: .35s ease;
}

/* Animation quand ouvert */
.hamburger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* ===================== MOBILE ONLY ===================== */
.desktop-only { display: block; }
.mobile-dropdown { display: none; }

/* ============== HAMBURGER ============== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    width: 34px;
    height: 28px;
    z-index: 3000;
}

.hamburger span {
    display: block;
    height: 4px;
    background: var(--uac-yellow);
    border-radius: 20px;
    transition: .35s;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* ===================== MENU MOBILE ===================== */
@media (max-width: 1280px) {

    .desktop-only { display: none; }
    .mobile-dropdown { display: block; }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        flex-direction: column;
        top: 90px;
        left: 0;
        width: 100%;
        height: calc(100vh - 90px);
        background: rgba(0, 0, 0, 0.94);
        padding-top: 30px;
        gap: 22px;

        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform .35s ease, opacity .35s ease;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links li a {
        font-size: 1.8rem;
        padding: 12px 0;
    }

    .mobile-drop-btn {
        background:none;
        border:none;
        color: var(--uac-yellow);
        font-size: 1.8rem;
        text-transform: uppercase;
        font-weight: 700;
        cursor:pointer;
    }

    .mobile-drop-content {
        display:none;
        flex-direction:column;
        padding-left:10px;
        gap:10px;
    }

    .mobile-dropdown.open .mobile-drop-content {
        display:flex;
    }

}

/* =========================================================
   MENU MOBILE — MODE "FULL WIDTH" COCKPIT
   ========================================================= */

@media (max-width: 900px) {

    .nav-links {
        position: fixed;
        top: 90px;
        left: 0;
        width: 100vw;
        height: calc(100vh - 90px);

        background: rgba(0,0,0,0.92);
        border-top: 1px solid rgba(249,211,66,0.25);

        flex-direction: column;
        gap: 25px;
        padding-top: 40px;

        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;

        transition: transform .4s ease, opacity .4s ease;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    /* Liens cockpit en version verticale */
    .nav-links li a {
        font-size: 1.7rem;
        padding: 12px 0;
    }

    /* Cacher les dropdowns “bulle” version desktop */
    .dropdown-bubble .bubble-wrap {
        display: none;
    }

    /* Remplacer les dropdowns par sous-menu simple */
    .dropdown-mobile {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        text-align: center;
    }

    .dropdown-mobile a {
        font-size: 1.35rem;
        padding: 10px 0;
        color: var(--uac-yellow);
    }

    /* Afficher hamburger */
    .hamburger {
        display: flex;
    }
}

/* =========================================================
   SECTION HERO AVEC IMAGE DE FOND (fond3.jpg)
   ANIMATION : DÉCALAGE HORIZONTAL AU SCROLL + APPARITION IMAGE
   ========================================================= */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;   /* Centré au départ */
  height: 100vh;
  overflow: hidden;
  color: #f9d342;
  background: url('../img/fond3.jpg') center/cover no-repeat;
}

/* Couches de contraste */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45); /* voile léger */
  z-index: 1;
}

/* =========================================================
   IMAGE DU PILOTE – APPARITION EN FONDU + ZOOM LÉGER
   ========================================================= */

.hero-image {
  position: absolute;
  left: 80px;
  top: 50%;
  transform: translateY(-50%) scale(1);
  opacity: 0;                    /* invisible au départ */
  z-index: 3;
  width: 500px;                  /* largeur fixe souhaitée */
  height: auto;                  /* hauteur auto */
  border: none;                  /* pas de bordure */
  box-shadow: none;              /* pas d’ombre */
  transition: opacity 1.2s ease, transform 1.2s ease;
}

/* --- Apparition fluide --- */
.hero-image.visible {
  opacity: 1;                    /* apparition douce */
  transform: translateY(-50%) scale(1.03); /* zoom léger */
}

/* --- Version mobile --- */
@media (max-width: 768px) {
  .hero-image {
    width: 320px;
    left: 30px;
  }
}

/* =========================================================
   CONTENU TEXTE DU HERO + DÉCALAGE
   ========================================================= */

.hero-content {
  position: relative;
  z-index: 4;
  text-align: left;
  transition: transform 1s ease;
}

/* Animation de décalage du texte */
.hero.move-right .hero-content {
  transform: translateX(180px);
}

/* =========================================================
   STYLE DU TITRE ET DU SOUS-TITRE
   ========================================================= */

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.hero h1 span {
  color: #fff;
}

.subtitle {
  margin-top: 20px;
  color: #c9c9c9;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

/* --- Version mobile --- */
@media (max-width: 768px) {
  .hero {
    height: 80vh;
  }
  .hero h1 {
    font-size: 2.8rem;
  }
  .hero.move-right .hero-content {
    transform: translateX(120px);
  }
}

/* === Couche sombre pour lisibilité === */
.hero::before {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(
to bottom,
rgba(0, 0, 0, 0.50) 0%,
rgba(0, 0, 0, 0.55) 40%,
rgba(0, 0, 0, 0.7) 100%
);
z-index: 1;
}

/* === Contenu HERO qui va se déplacer sur X === */
.hero-content {
position: relative;
z-index: 2;
max-width: 800px;
padding: 20px;
text-align: left; / on décale l’alignement car le bloc partira à droite */

/* --- Animation horizontale par translation --- */
transform: translateX(0); /* position initiale */
transition: transform 1s ease; /* animation fluide de 2 secondes */
}

/* === Activation du déplacement vers la droite === /
/* Cette classe sera ajoutée / retirée dynamiquement en JS */
.hero.move-right .hero-content {
transform: translateX(250px);
}

/* === Titre du HERO === */
.hero h1 {
font-size: 4rem;
font-weight: 700;
line-height: 1.1;
text-transform: uppercase;
}

.hero h1 span {
color: #fff;
}

/* === Sous-titre === */
.subtitle {
margin-top: 20px;
color: #c9c9c9;
font-size: 1.1rem;
letter-spacing: 1px;
}

/* === Version mobile === */
@media (max-width: 768px) {
.hero {
height: 80vh;
}
.hero h1 {
font-size: 2.6rem;
}

/* On réduit la translation sur mobile pour éviter un débordement excessif */
.hero.move-right .hero-content {
transform: translateX(120px);
}
}

/* =========================================================
   SECTION D’INTRODUCTION — UAC WELCOME (VERSION MULTI-LIGNES)
   ========================================================= */

.uac-welcome {
  position: relative;
  height: 100vh;
  background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.65) 0%,
      rgba(0, 0, 0, 0.85) 100%
    ),
    url('../img/fond4.jpg') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  color: var(--uac-yellow);
  z-index: 2;
}

/* =========================================================
   LIGNES COCKPIT ANIMÉES — effet traversant
   ========================================================= */

/* Lignes fines avec halo doux */
.uac-welcome::before,
.uac-welcome::after,
.uac-welcome .line-1,
.uac-welcome .line-2 {
  content: "";
  position: absolute;
  width: 160%;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(249,211,66,0) 0%,
    rgba(249,211,66,0.8) 50%,
    rgba(249,211,66,0) 100%
  );
  opacity: 0.4;
  pointer-events: none;
}

/* Ligne principale (celle que tu avais) */
.uac-welcome::before {
  top: 25%;
  transform: rotate(3deg);
  animation: scanline1 4s linear infinite;
}

/* Ligne opposée */
.uac-welcome::after {
  bottom: 30%;
  transform: rotate(-3deg);
  animation: scanline2 7s linear infinite;
  opacity: 0.35;
}


/* Lignes supplémentaires croisées */
.uac-welcome .line-1 {
  top: 10%;
  transform: rotate(15deg);
  animation: scanline3 8s linear infinite;
  opacity: 0.25;
}

.uac-welcome .line-2 {
  bottom: 15%;
  transform: rotate(-10deg);
  animation: scanline4 10s linear infinite;
  opacity: 0.3;
}

/* Animations décalées pour donner vie */
@keyframes scanline1 {
  0% { transform: translateX(-120%) rotate(3deg); }
  100% { transform: translateX(120%) rotate(3deg); }
}

@keyframes scanline2 {
  0% { transform: translateX(120%) rotate(-3deg); }
  100% { transform: translateX(-120%) rotate(-3deg); }
}

@keyframes scanline3 {
  0% { transform: translateX(-150%) rotate(15deg); }
  100% { transform: translateX(150%) rotate(15deg); }
}

@keyframes scanline4 {
  0% { transform: translateX(150%) rotate(-10deg); }
  100% { transform: translateX(-150%) rotate(-10deg); }
}

/* =========================================================
   CONTENU CENTRAL
   ========================================================= */

.uac-welcome-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  animation: slideUpWelcome 1.3s ease-out forwards;
}

@keyframes slideUpWelcome {
  0% { opacity: 0; transform: translateY(60px); }
  100% { opacity: 1; transform: translateY(0); }
}

.uac-welcome-content h1 {
  font-size: 3.2rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.uac-welcome-content h2 {
  font-size: 4.6rem;
  text-transform: uppercase;
  color: var(--uac-yellow);
  text-shadow: 0 0 18px rgba(249,211,66,0.6);
  margin-bottom: 25px;
}

.uac-welcome-content p {
  font-size: 1.2rem;
  color: #ddd;
  line-height: 1.6;
}

/* Mobile */
@media (max-width: 768px) {
  .uac-welcome-content h1 { font-size: 2.1rem; }
  .uac-welcome-content h2 { font-size: 3rem; }
  .uac-welcome-content p  { font-size: 1rem; }
}


/* === 4. BOUTONS === */
/* =========================================================
   BOUTON "LIVE TRACKING" - EFFET GLOSSY ET ZOOM SIMULTANÉS
   ========================================================= */

.btn-glossy {
  position: relative;
  display: inline-block;
  padding: 14px 48px 14px 38px;
  background-color: #f9d342; 
  color: #000;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;        /*   60% de hauteur pour le côté saillant */
  clip-path: polygon(0 0, 100% 0, 100% 60%, 94% 100%, 0 100%);
  border: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

/* === Bande lumineuse glossy === */
.btn-glossy::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 45%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: skewX(-20deg);
  opacity: 0; /* invisible avant le hover */
}

/* === Hover : zoom et glossy ensemble === */
.btn-glossy:hover {
  transform: scale(1.05);
  box-shadow: 0 0 18px rgba(249, 211, 66, 0.45);
}

/* Les deux effets démarrent immédiatement au hover */
.btn-glossy:hover::before {
  animation: glossy-sweep 0.5s ease-in-out forwards;
  opacity: 1;
}

/* === Animation du balayage glossy === */
@keyframes glossy-sweep {
  0% {
    left: -80%;
    opacity: 0.1;
  }
  25% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.7;
  }
  75% {
    opacity: 0.4;
  }
  100% {
    left: 130%;
    opacity: 0;
  }
}

/* === Variante inversée === */
.btn-glossy.alt {
  background-color: #000;
  color: #f9d342;
  border: 2px solid #f9d342;
}

.btn-glossy.alt::before {
  background: linear-gradient(
    120deg,
    rgba(249, 211, 66, 0) 0%,
    rgba(249, 211, 66, 0.5) 45%,
    rgba(249, 211, 66, 0) 80%
  );
}


/* === Animation de balayage === */
@keyframes glossy-sweep {
  0% {
    left: -80%;
  }
  100% {
    left: 130%;
  }
}

/* === Variante inversée (fond noir, texte jaune) === */
.btn-glossy.alt {
  background-color: #000;
  color: #f9d342;
  border: 2px solid #f9d342;
}

.btn-glossy.alt::before {
  background: linear-gradient(
    120deg,
    rgba(249, 211, 66, 0) 0%,
    rgba(249, 211, 66, 0.45) 45%,
    rgba(249, 211, 66, 0) 80%
  );
}

/* =========================================================
   GRILLE D’INFORMATION - IMAGE DE FOND + GLOSSY + TEXTE
   ========================================================= */

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 40px;
  padding: 80px 10%;
  background-color: #111;
}

/* === Carte cliquable === */
.info-card {
  position: relative;
  display: block;
  height: 320px;
  color: #f9d342;
  text-decoration: none;
  border: 2px solid #f9d342;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* === Image de fond via div === */
.card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.4s ease, opacity 0.4s ease;
  z-index: 1;
}

/* Zoom de l'image au survol */
.info-card:hover .card-bg {
  transform: scale(1.05);
  opacity: 0.9;
}

/* === Bande glossy au-dessus de tout === */
.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 45%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: skewX(-20deg);
  opacity: 0;
  z-index: 3;
}

/* === Effet glossy animé === */
.info-card:hover::before {
  animation: glossy-sweep 0.7s ease-in-out forwards;
  opacity: 1;
}

/* === Texte superposé === */
.card-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.35) 60%,
    rgba(0, 0, 0, 0) 100%
  );
}

.card-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #f9d342;
  text-transform: uppercase;
}

.card-content p {
  color: #ccc;
  font-size: 1rem;
  line-height: 1.4;
}

/* === Hover global === */
.info-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px rgba(249, 211, 66, 0.4);
}

/* === Animation glossy === */
@keyframes glossy-sweep {
  0% {
    left: -80%;
    opacity: 0.1;
  }
  25% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.8;
  }
  75% {
    opacity: 0.4;
  }
  100% {
    left: 130%;
    opacity: 0;
  }
}

/* === Mobile === */
@media (max-width: 768px) {
  .info-card {
    height: 260px;
  }

  .card-content {
    padding: 20px;
  }

  .card-content h2 {
    font-size: 1.4rem;
  }
}

/* === 6. FOOTER === */
.footer {
  text-align: center;
  padding: 40px 20px;
  color: #777;
  font-size: 0.9rem;
  border-top: 1px solid #222;
}

@media (max-width: 1280px) {

    /* La version desktop disparaît */
    .desktop-only { display: none; }

    /* La version mobile apparaît */
    .mobile-dropdown { display: block; }

    /* Le hamburger */
    .hamburger { display: flex; }

    /* MENU MOBILE FULLSCREEN */
    .nav-links {
        position: fixed;
        top: 90px;
        left: 0;
        width: 100vw;
        height: calc(100vh - 90px);

        background: rgba(0,0,0,0.92);
        border-top: 1px solid rgba(249,211,66,0.25);

        flex-direction: column;
        gap: 25px;
        padding-top: 40px;

        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;

        transition: transform .4s ease, opacity .4s ease;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    /* LINKS */
    .nav-links li a {
        font-size: 1.7rem;
        padding: 12px 0;
    }

    /* MASQUER les dropdown desktop */
    .dropdown-bubble { display: none !important; }

    /* AFFICHER le sous-menu mobile */
    .dropdown-mobile {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        text-align: center;
    }
}

/* =========================================================
   SECTION À PROPOS
   ========================================================= */
.about {
  background: linear-gradient(180deg, #000 0%, #111 100%);
  color: #f9d342;
  text-align: center;
  padding: 100px 10% 80px;
}

.about-container {
  max-width: 900px;
  margin: 0 auto;
}

.about h2 {
  font-size: 2.5rem;
  text-transform: uppercase;
  margin-bottom: 25px;
  letter-spacing: 2px;
}

.about p {
  color: #ddd;
  line-height: 1.6;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

/* =========================================================
   SECTION PARTENAIRES
   ========================================================= */
.partners {
  background-color: #0b0b0b;
  text-align: center;
  padding: 80px 10%;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
}

.partners h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  text-transform: uppercase;
  color: #f9d342;
}

.partner-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 50px;
}

.partner-logos img {
  height: 70px;
  opacity: 0.8;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.partner-logos img:hover {
  transform: scale(1.1);
  opacity: 1;
}

/* =========================================================
   SECTION GALERIE
   ========================================================= */
.gallery {
  background: #111;
  text-align: center;
  padding: 80px 10%;
}

.gallery h2 {
  font-size: 2.2rem;
  color: #f9d342;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  height: 220px;
  background-size: cover;
  background-position: center;
  border: 2px solid #f9d342;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(249, 211, 66, 0.4);
}

/* =========================================================
   FORMULAIRE DE CONTACT
   ========================================================= */
.contact-section {
  background: radial-gradient(circle at center, #0a0a0a 0%, #000 100%);
  padding: 100px 10%;
  color: #f9d342;
  border-top: 1px solid #222;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-container h2 {
  font-size: 2.3rem;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.contact-container p {
  color: #bbb;
  margin-bottom: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-group label {
  margin-bottom: 8px;
  color: #f9d342;
  font-weight: 600;
  letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
  background: #000;
  border: 2px solid #f9d342;
  color: #f9d342;
  padding: 12px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #fff;
  box-shadow: 0 0 10px rgba(249, 211, 66, 0.5);
}

/* Bouton déjà stylisé via .btn-glossy */

@media (max-width: 768px) {
  .contact-section {
    padding: 70px 8%;
  }
  .about h2,
  .partners h2,
  .gallery h2,
  .contact-container h2 {
    font-size: 1.8rem;
  }
}

.partners {
  background-color: #0b0b0b;
  text-align: center;
  padding: 80px 10%;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
}

.partners h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  text-transform: uppercase;
  color: #f9d342;
}

.partner-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 50px;
}

.partner-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 160px;
}

.partner-logo img {
  height: 70px;
  max-width: 100%;
  object-fit: contain;
  opacity: 0.8;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.partner-logo p {
  margin-top: 10px;
  color: #ccc;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.partner-logo:hover img {
  transform: scale(1.05);
  opacity: 1;
}

@media (max-width: 768px) {
  .partner-logo {
    width: 120px;
  }
  .partner-logo img {
    height: 50px;
  }
  .partners {
    padding: 60px 8%;
  }
}

/* =========================================================
   SECTION À PROPOS - PARALLAXE ARRIÈRE PLAN
   ========================================================= */

.about {
  position: relative;
  min-height: 90vh; /* pleine hauteur, mais laisse respirer */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #f9d342;
  overflow: hidden;
  z-index: 1;
  /* On retire le dégradé classique */
  background: none;
}

/* === Image de fond fixe avec effet de profondeur === */
.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 130%; /* légèrement plus grande pour un scroll fluide */
  background-image: url('../img/fond2.jpg'); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* PARALLAXE pur */
  transform: translateZ(0);
  will-change: background-position;
  z-index: 0;
  filter: brightness(0.7) contrast(1.1);
}

/* === Couche de contraste pour le texte === */
.about::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.85) 50%,
    rgba(0, 0, 0, 0.95) 100%
  );
  z-index: 1;
}

/* === Contenu au-dessus de tout === */
.about-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 10% 80px;
}

.about-container h2 {
  font-size: 2.8rem;
  text-transform: uppercase;
  margin-bottom: 25px;
  letter-spacing: 2px;
  color: #f9d342;
  text-shadow: 0 0 15px rgba(249, 211, 66, 0.7);
}

.about-container p {
  color: #ddd;
  line-height: 1.6;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

/* === Réactivité mobile === */
@media (max-width: 768px) {
  .about {
    min-height: 70vh;
  }
  .about-container {
    padding: 60px 8%;
  }
  .about-container h2 {
    font-size: 2rem;
  }
  .about-container p {
    font-size: 1rem;
  }
}
