*{
  box-sizing: border-box;
}	

:root{
  --nav-height: 80px;
}

header{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:var(--nav-height);
  z-index:9999;
}

body{
margin:0;
background:#0a0a0a;
color:white;
font-family:'Montserrat', sans-serif;
padding-top: var(--nav-height);
}

nav{
display:flex;
align-items:center;
position:fixed;
width: 100%;
gap: 20px;
background:#000000dd;
justify-content:space-between;
padding:14px 25px;
z-index:999;
}

.nav-left{
display:flex;
align-items:center;
gap:15px;
}

nav ul{
display:flex;
gap:18px;
list-style:none;
flex-wrap: wrap;
justify-content: flex-end;
margin-left: auto;
margin-right: 100px;
}

nav a{
color:white;
font-size: 15px;
white-space: nowrap;
text-decoration:none;
font-family:'Montserrat', sans-serif;
font-weight:600;
position:relative;
padding:6px 0;
letter-spacing:1px;
}

nav a::after{
content:"";
position:absolute;
left:50%;
bottom:-4px;
width:0%;
height:3px;
background:#ff2a00;
transition:all .3s ease;
transform:translateX(-50%);
border-radius:2px;
}

nav a:hover::after{
width:100%;
}

h1, h2, h3, .section-title, .cinematic-title{
font-family:'Bebas Neue', sans-serif;
letter-spacing:2px;
}

/* LOGO NAVBAR */

.logo{
display:flex;
align-items:center;
text-decoration:none;
flex-shrink:0;
}

/* taille contrôlée */
.logo img{
height:75px;          
width:auto;
transition:0.3s ease;
}

/* quand on scroll (nav FX actif) */
nav.scrolled .logo img{
height:42px;          
}

.hidden{
display:none !important;
} 

.menu-btn{
display: none !important;
flex-direction:column;
gap:6px;
background:none;
border:none;
cursor:pointer;
z-index:10000;
}

.menu-btn span{
width:28px;
height:3px;
background:white;
border-radius:2px;
box-shadow:0 0 6px rgba(0,0,0,.7);
transition:.3s;
}

.hero-overlay{
position:absolute;
width:100%;
height:100%;
background:rgba(0,0,0,.7);
z-index: 1;
}

.hero-content{
position:relative;
text-align:center;
z-index: 2;
}

.cta{
background:#ff2a00;
padding:15px 35px;
text-decoration:none;
color:white;
font-weight:bold;
position:relative;
overflow:hidden;
z-index:1;
}

.cta::before{
content:"";
position:absolute;
left:0;
bottom:0;
width:0%;
height:100%;
background:#ffae00;
z-index:-1;
transition:width .35s ease;
}

/* animation */
.cta:hover::before{
width:100%;
}

.cta:hover{
color:black;
}

section{
padding:100px 10%;
text-align:center;
scroll-margin-top: calc(var(--nav-height) + 10px);
}

/* liens de contenu */
section a{
position:relative;
text-decoration:none;
color:#ffae00;
}

section a::after{
content:"";
position:absolute;
left:0;
bottom:-2px;
width:0%;
height:2px;
background:#ffae00;
transition:.3s;
}

section a:hover::after{
width:100%;
}

.event-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
gap:20px;
}

.gallery{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:15px;
}

.gallery img{
width:100%;
border-radius:10px;
}

.rules{
list-style:none;
}

input,button{
padding:15px;
border:none;
}

iframe{
width:100%;
height:350px;
border:none;
margin-top:20px;
}

/* ===== OFFROAD DUST ===== */

.dust-container{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
pointer-events:none;
overflow:hidden;
z-index:2;
}

.dust{
position:absolute;
bottom:-50px;
background:radial-gradient(circle,
rgba(210,180,140,.35) 0%,
rgba(210,180,140,0) 70%);
border-radius:50%;
animation:rise linear infinite;
filter:blur(8px);
z-index: 9999;
}

@keyframes rise{

0%{
transform:translateY(0) translateX(0);
opacity:0;
}

20%{
opacity:.6;
}

100%{
transform:translateY(-120vh)
translateX(150px);
opacity:0;
}

}

/* couche poussière devant logo */
.hero-dust{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
pointer-events:none;
z-index:6;
overflow:hidden;
}

.cinematic-dust{
position:absolute;
bottom:-80px;

background:radial-gradient(circle,
rgba(210,180,140,.55) 0%,
rgba(210,180,140,.25) 40%,
rgba(210,180,140,0) 70%);

border-radius:50%;
filter:blur(10px);
opacity:0;

animation:cinematicRise linear forwards;
}

@keyframes cinematicRise{

0%{
transform:translateY(0) translateX(0) scale(.7);
opacity:0;
}

20%{
opacity:.7;
}

100%{
transform:translateY(-110vh) translateX(200px) scale(1.3);
opacity:0;
}
}

/* ===== CINEMATIC HERO ===== */


.mobile-video { display: none; }

.hero{
position:relative;
height:calc(115vh - var(--nav-height));
overflow:hidden;
display:flex;
align-items:center;
justify-content:center;
text-align:center;
}

/* VIDEO */
.hero-video{
position:absolute;
top:50%;
left:50%;
min-width:100%;
min-height:100%;
transform:translate(-50%,-50%);
object-fit:cover;
z-index:0;
}

/* DARK OVERLAY */
.hero-overlay{
position:absolute;
width:100%;
height:100%;
background:
linear-gradient(
to top,
rgba(0,0,0,.85),
rgba(0,0,0,.3)
);
z-index:1;
}

/* TITLE ANIMATION */

.cinematic-title{
font-size:90px;
font-family:'Bebas Neue', sans-serif;
color:#ff2a00;
letter-spacing:4px;
opacity:0;
transform:translateY(40px);
animation:titleReveal 1.5s ease forwards;
text-shadow:
0 4px 12px rgba(0,0,0,.8),
0 0 30px rgba(0,0,0,.6);
}

.cinematic-sub{
font-size:24px;
margin:20px 0;
opacity:0;
animation:fadeUp 2.5s ease forwards;
}

.cta{
opacity:0;
animation:fadeUp 3.5s ease forwards;
}

@keyframes titleReveal{
to{
opacity:1;
transform:translateY(0);
}
}

@keyframes fadeUp{
to{
opacity:1;
transform:translateY(0);
}
}

/* ===== HERO PRESENTER ===== */

.presented-text{
margin-top:20px;
font-size:18px;
letter-spacing:3px;
color:#ffae00;
text-transform:uppercase;
opacity:.9;
}

.hero-presenter-logo{
margin:15px auto;
max-width:320px;
width:70%;
background:white;
padding:12px 18px;
border-radius:10px;

animation:logoReveal 2s ease forwards;

box-shadow:
0 0 25px rgba(0,0,0,.6);
}

/* animation cinéma */
@keyframes logoReveal{

0%{
opacity:0;
transform:translateY(30px);
}

100%{
opacity:1;
transform:translateY(0);
}

}

.hero-content{
position:relative;
z-index:5;
}

/* tiers */

.tier{
text-align:center;
margin-bottom:60px;
}

.tier h2{
color:#ffae00;
margin-bottom:25px;
}

.rules-section{
padding:100px 10%;
background:#0e0e0e;
text-align:center;
}

.rules-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
gap:25px;
margin-top:40px;
}

.rule-card{
background:#1a1a1a;
padding:25px;
border-radius:12px;
transition:.25s;
border:1px solid rgba(255,255,255,.05);
}

.rule-card:hover{
transform:translateY(-6px);
border-color:#ff2a00;
box-shadow:0 0 20px rgba(255,42,0,.25);
}

.rule-card h3{
margin-bottom:12px;
color:#ffae00;
}

.rules-toggle{
margin-top:40px;
background:#ff2a00;
color:white;
padding:14px 30px;
border:none;
cursor:pointer;
font-weight:bold;
}

.rules-details{
max-height:0;
overflow:hidden;
transition:max-height .5s ease;
margin-top:25px;
text-align:left;
}

.rules-details ul{
line-height:1.7;
}

.disclaimer-box{
margin-top:30px;
background:#141414;
border-left:4px solid #ff2a00;
padding:25px;
border-radius:10px;
max-width:900px;
margin-left: auto;
margin-right: auto;
text-align: left;
}

/* Confirmation règlements */

.rules-confirmation{
margin-top:30px;
text-align:center;
}

.rules-checkbox{
display:flex;
align-items:center;
justify-content:center;
gap:10px;
font-weight:600;
cursor:pointer;
}

.rules-checkbox input{
width:18px;
height:18px;
cursor:pointer;
}

.rules-note{
margin-top:10px;
color:#ccc;
font-size:14px;
}

/* section inscription cachée */

.hidden-register{
display:none;
}

/* ===== POPUP DÉCHARGE ===== */

.rules-popup{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.75);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:20000;
  padding:20px;
}

.rules-popup.active{
  display:flex;
}

.rules-popup-content{
  max-width:500px;
  width:100%;
  background:#141414;
  border:1px solid rgba(255,255,255,.08);
  border-left:4px solid #ff2a00;
  border-radius:14px;
  padding:28px;
  text-align:center;
  box-shadow:0 15px 40px rgba(0,0,0,.45);
}

.rules-popup-content h3{
  margin-bottom:12px;
  color:#ff2a00;
}

.rules-popup-content p{
  color:#d7d7d7;
  line-height:1.6;
}

.rules-popup-actions{
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
  margin-top:22px;
}

.popup-btn{
  border:none;
  padding:12px 18px;
  border-radius:10px;
  font-weight:700;
  cursor:pointer;
}

.popup-btn.primary{
  background:#ff2a00;
  color:#fff;
}

.popup-btn.secondary{
  background:#2a2a2a;
  color:#fff;
}

/* ===== SECTION INSCRIPTION ZEFFY ===== */

.zeffy-register-card{
max-width:520px;
margin:40px auto;
padding:35px;
background:#141414;
border-radius:14px;
text-align:center;
border:1px solid rgba(255,255,255,.08);
box-shadow:0 15px 40px rgba(0,0,0,.35);
}

.zeffy-header{
display:flex;
align-items:center;
justify-content:center;
gap:12px;
margin-bottom:20px;
flex-wrap:wrap;
}

.zeffy-logo{
height:26px;
}

.secure-payment{
font-size:14px;
opacity:.8;
}

.register-text{
margin-bottom:10px;
}

.prize-message{
color:#ffae00;
font-weight:600;
margin-bottom:25px;
}

.zeffy-btn{
display:inline-block;
background:#ff2a00;
color:#fff;
padding:18px 32px;
font-size:18px;
font-weight:700;
border-radius:10px;
text-decoration:none;
transition:.25s;
box-shadow:0 8px 25px rgba(0,0,0,.35);
}

.zeffy-btn:hover{
transform:translateY(-3px);
background:#d62300;
}

/* CTA inscription */

.register-cta{
margin-top:25px;
background:linear-gradient(90deg,#ff2a00,#ff4d00);
padding:18px;
border-radius:12px;
display:inline-block;
box-shadow:0 10px 30px rgba(0,0,0,.35);
}

.register-btn{
color:white;
font-size:18px;
font-weight:700;
text-decoration:none;
padding:12px 24px;
display:inline-block;
}

.register-cta:hover{
transform:translateY(-3px);
transition:.25s;
}

/* ===== FAQ PRO ===== */

.faq-section{
  padding:100px 10%;
  background:#0c0c0c;
}

.faq-list{
  max-width:900px;
  margin:40px auto 0;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.faq-item{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  background:#171717;
  border:1px solid rgba(255,255,255,.06);
  color:#fff;
  padding:18px 18px;
  border-radius:12px;
  cursor:pointer;
  text-align:left;
  transition:.25s;
}

.faq-item:hover{
  border-color:#ff2a00;
  box-shadow:0 0 18px rgba(255,42,0,.18);
  transform:translateY(-2px);
}

.faq-icon{
  font-size:22px;
  color:#ffae00;
  flex-shrink:0;
  transition:.25s;
}

.faq-panel{
  max-height:0;
  overflow:hidden;
  background:#101010;
  border-left:3px solid rgba(255,174,0,.7);
  border-radius:10px;
  padding:0 18px;
  transition:max-height .35s ease, padding .35s ease;
}

.faq-panel p{
  color:#d6d6d6;
  line-height:1.7;
  margin:14px 0 18px;
}

.faq-item[aria-expanded="true"] .faq-icon{
  transform:rotate(45deg);
  color:#ff2a00;
}

.faq-cta{
  display:inline-block;
  margin-top:12px;
  background:#ff2a00;
  color:#fff !important;
  padding:10px 16px;
  border-radius:8px;
  text-decoration:none;
  font-weight:700;
}

.faq-cta:hover{
  filter:brightness(1.05);
}

/* ===== FACEBOOK CONTACT ===== */

.contact-social{
margin-top:25px;
display:flex;
align-items:center;
justify-content:center;
gap:15px;
}

.facebook-link{
width:48px;
height:48px;
background:#1877F2;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
transition:.25s;
box-shadow:0 6px 18px rgba(0,0,0,.35);
}

.facebook-link svg{
width:20px;
height:20px;
}

.facebook-link:hover{
transform:translateY(-3px) scale(1.08);
background:#0f5dd1;
}

.fb-text{
font-weight:600;
letter-spacing:.5px;
}

/* ===== EMAIL CONTACT ===== */

.email-social{
margin-top:15px;
}

.email-link{
width:48px;
height:48px;
background:#ff2a00;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
transition:.25s;
box-shadow:0 6px 18px rgba(0,0,0,.35);
}

.email-link svg{
width:22px;
height:22px;
}

.email-link:hover{
transform:translateY(-3px) scale(1.08);
background:#cc2100;
}

.email-text{
font-weight:600;
letter-spacing:.5px;
}

.floating-register{
  display: none;
}

/* ===== SPONSORS (NO ANIMATION) ===== */

.sponsors-block{
  padding:100px 10%;
  background:#0b0b0b;
  text-align:center;
}

.section-title.small{
  font-size:28px;
  margin-top:35px;
}

/* Grille responsive */
.sponsors-grid{
  margin:35px auto 0;
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(160px, 1fr));
  gap:18px;
  max-width:1100px;
}

.sponsor-card{
  background:#141414;
  border:1px solid rgba(255,255,255,.06);
  border-radius:14px;
  padding:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:.25s;
  text-decoration:none;
}

.sponsor-card:hover{
  transform:translateY(-4px);
  border-color:#ff2a00;
  box-shadow:0 0 18px rgba(255,42,0,.18);
}

.sponsor-card img{
  max-width:100%;
  height:64px;
  width:auto;
  object-fit:contain;
  filter:grayscale(100%);
  opacity:.85;
  transition:.25s;
}

.sponsor-card:hover img{
  filter:none;
  opacity:1;
  transform:scale(1.04);
}

/* Majeurs un peu plus “prestige” */
.sponsor-card.major img{
  height:78px;
}

/* Bouton */
.sponsors-toggle{
  margin:28px auto 0;
  background:#ff2a00;
  color:#fff;
  border:none;
  padding:14px 22px;
  border-radius:10px;
  font-weight:800;
  cursor:pointer;
}

/* Minors cachés par défaut (PC + mobile) */
.sponsors-minors-wrap{
  max-height:0;
  overflow:hidden;
  transition:max-height .45s ease;
}

/* Quand ouvert */
.show-all-sponsors .sponsors-minors-wrap{
  max-height:2000px; /* assez grand pour tous les logos */
}

/* ===== POPUP COMMANDITAIRES ===== */

.sponsor-popup{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.75);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:30000;
  padding:20px;

  opacity:0;
  visibility:hidden;
  transition:opacity .35s ease, visibility .35s ease;
}

.sponsor-popup.active{
  opacity:1;
  visibility:visible;
}

.sponsor-popup-content{
  background:#141414;
  border-radius:14px;
  padding:30px;
  text-align:center;
  max-width:500px;
  width:100%;
  border-left:4px solid #ff2a00;
  box-shadow:0 20px 50px rgba(0,0,0,.5);

  transform:scale(.88);
  opacity:0;
  transition:transform .35s ease, opacity .35s ease;
}

.sponsor-popup.active .sponsor-popup-content{
  transform:scale(1);
  opacity:1;
}

.sponsor-popup-content h3{
  color:#ff2a00;
  margin-bottom:10px;
}

.sponsor-popup-logos{
  display:flex;
  justify-content:center;
  gap:20px;
  margin:20px 0;
  flex-wrap:wrap;
}

.sponsor-popup-logos img{
  height:80px;
  max-width:120px;
  object-fit:contain;
  opacity:.9;
  transition:.3s;
}

.sponsor-popup-logos img:hover{
  transform:scale(1.08);
  opacity:1;
}

.popup-close-btn{
  background:#ff2a00;
  color:#fff;
  border:none;
  padding:12px 20px;
  border-radius:8px;
  font-weight:700;
  cursor:pointer;
  transition:.25s;
}

.popup-close-btn:hover{
  transform:translateY(-2px);
  background:#d62300;
}

/* Mobile: logos un peu plus petits */
@media(max-width:768px){
  .sponsors-block{ padding:90px 7%; }
  .sponsor-card img{ height:56px; }
  .sponsor-card.major img{ height:68px; }
}

/* Mobile */
@media(max-width:768px){
  .faq-section{ padding:90px 7%; }
  .faq-item{ padding:16px; }
}

/* Style mobile */

@media (max-width:768px){
  .sponsor-popup-logos img{
    height:60px;
    max-width:90px;
  }
}

@media(max-width:768px){

.hero h1{
font-size:40px;
}

nav ul{
display:none;
flex-direction:column;
background:black;
position:absolute;
top:60px;
width:100%;
left:0;
}

nav ul.active{
display:flex;
}

a:active{
opacity:.7;
}

.menu-btn{
display:flex !important;
color: #fff;
font-size: 30px;
line-height: 1;
cursor:pointer;
user-select: none;
z-index: 1000;
margin-left: auto;
margin-right: 60px;
}

.logo{
display:none;
}

.logo img{
height:42px;
}

nav.scrolled .logo img{
height:38px;
}

.hero-video{
display:none;
}

.mobile-video { 
display: block;
position:absolute;
top:50%;
left:50%;
min-width:100%;
min-height:100%;
transform:translate(-50%,-50%);
object-fit:cover;
z-index:0;
}

.hero{
/*background:url("../images/hero.png")*/
center/cover;
}

.cinematic-title{
font-size:42px;
}

.hero-presenter-logo{
max-width:220px;
padding:10px;
}

/*.floating-register{
display: block;
position:fixed;
bottom:18px;
right:18px;
background:#ff2a00;
color:white;
padding:16px 20px;
border-radius:50px;
font-weight:bold;
z-index:9999;
box-shadow:0 8px 20px rgba(0,0,0,.4);
}*/

}
