* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #ff6b00;
    --primary-dark: #ff5500;
    --bg: #1a1a1f;
    --bg-card: #24242b;
    --text: #f5f5f5;
    --text-muted: #9e9ea8;
    --border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    background-image: url('/assets/images/index-img.png');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    color: var(--text);
    height: 100vh;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr auto;
    position: relative;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26,26,31,0.5) 0%,
        rgba(26,26,31,0.2) 40%,
        rgba(26,26,31,0.8) 85%,
        rgba(26,26,31,1) 100%
    );
    z-index: 0;
    pointer-events: none;
}





/* ── FOND PARTICULES + ORBES ── */
.bg-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    animation: drift 10s ease-in-out infinite;
}
.orb-1 {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(255,107,0,0.35), transparent 70%);
    top: -250px; left: -200px;
    animation-delay: 0s; animation-duration: 14s;
}
.orb-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255,165,0,0.25), transparent 70%);
    bottom: -150px; right: -150px;
    animation-delay: -5s; animation-duration: 11s;
}
.orb-3 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(255,80,0,0.2), transparent 70%);
    top: 40%; left: 55%;
    animation-delay: -8s; animation-duration: 9s;
}
@keyframes drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(40px, -30px) scale(1.08); }
    66%       { transform: translate(-25px, 35px) scale(0.93); }
}

    50%       { opacity: 1; }
}


    5%   { opacity: 0.6; }
    95%  { opacity: 0.3; }
    100% { transform: translateY(-100px); opacity: 0; }
}
    10%  { opacity: 0.7; }
    90%  { opacity: 0.4; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ── HEADER ── */
header {
    position: relative;
    z-index: 10;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    animation: fadeDown 0.5s ease both;
}
.logo {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    position: relative;
    transition: opacity 0.3s;
}
.logo:hover { opacity: 0.8; }

/* ── MAIN ── */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 10;
    gap: 0;
    margin: auto 0;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(255, 107, 0, 0.1);
    border: 1px solid rgba(255, 107, 0, 0.3);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.5rem 1.3rem;
    border-radius: 30px;
    margin-bottom: 2.25rem;
    animation: fadeDown 0.5s 0.1s ease both;
    box-shadow: 0 0 20px rgba(255,107,0,0.15);
}
.badge-dot {
    width: 7px; height: 7px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 1.4s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(255,107,0,0.8);
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1);   box-shadow: 0 0 8px rgba(255,107,0,0.8); }
    50%       { opacity: 0.3; transform: scale(0.6); box-shadow: none; }
}

/* Titre */
h1 {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    animation: fadeDown 0.5s 0.2s ease both;
}
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #ffa500 60%, #ffcc00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}
@keyframes gradientShift {
    0%, 100% { }
    50%       { }
}

/* Subtitle */
.subtitle {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    color: var(--text-muted);
    max-width: 480px;
    line-height: 1.75;
    animation: fadeDown 0.5s 0.3s ease both;
}

/* ── FOOTER ── */
footer {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 1.75rem 2rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    border-top: 1px solid var(--border);
    animation: fadeUp 0.5s 0.5s ease both;
}

/* ── ANIMATIONS ── */
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-18px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */

/* Tablette */
@media (max-width: 1024px) {
    h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
    .orb-1 { width: 500px; height: 500px; }
    .orb-2 { width: 350px; height: 350px; }
    .orb-3 { width: 250px; height: 250px; }
}

/* Mobile landscape + petites tablettes */
@media (max-width: 768px) {
    body {
        background-attachment: scroll; /* fixed bug sur iOS */
        height: auto;
        min-height: 100vh;
        grid-template-rows: auto 1fr auto;
    }
    header {
        padding: 1.5rem 1rem;
    }
    .logo { font-size: 1.4rem; }
    main {
        padding: 1.5rem 1.25rem;
    }
    h1 {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 1.25rem;
    }
    .subtitle {
        font-size: 0.95rem;
        max-width: 100%;
        padding: 0 0.5rem;
    }
    .badge {
        font-size: 0.72rem;
        padding: 0.45rem 1rem;
        margin-bottom: 1.75rem;
    }
    .orb-1 { width: 350px; height: 350px; top: -150px; left: -100px; }
    .orb-2 { width: 250px; height: 250px; }
    .orb-3 { display: none; }
    footer { padding: 1.25rem 1rem; font-size: 0.78rem; }
}

/* Mobile portrait */
@media (max-width: 480px) {
    h1 { font-size: clamp(1.8rem, 9vw, 2.5rem); }
    .subtitle { font-size: 0.9rem; line-height: 1.65; }
    .badge { font-size: 0.68rem; letter-spacing: 0.08em; }
    .badge-dot { width: 6px; height: 6px; }
    /* Réduire les étoiles sur petit écran */
    .star:nth-child(n+10) { display: none; }
}

/* Très petit mobile */
@media (max-width: 360px) {
    h1 { font-size: 1.6rem; }
    header { padding: 1.25rem 0.75rem; }
    main { padding: 1rem 0.75rem; }
}

/* Fix iOS Safari 100vh */
@supports (-webkit-touch-callout: none) {
    body { min-height: -webkit-fill-available; }
}

/* ── ÉTOILES SCINTILLANTES ── */
.stars {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.star {
    position: absolute;
    width: 2px; height: 2px;
    background: rgba(255, 107, 0, 0.7);
    border-radius: 50%;
    animation: twinkle ease-in-out infinite;
}
.star.big { width: 3px; height: 3px; background: rgba(255,165,0,0.6); }
.star.small { width: 1px; height: 1px; background: rgba(255,107,0,0.5); }

.star:nth-child(1)  { top: 12%; left: 8%;  animation-duration: 3.2s; animation-delay: 0s; }
.star:nth-child(2)  { top: 25%; left: 90%; animation-duration: 4.1s; animation-delay: -1s; }
.star:nth-child(3)  { top: 60%; left: 15%; animation-duration: 2.8s; animation-delay: -2s; }
.star:nth-child(4)  { top: 80%; left: 75%; animation-duration: 5.0s; animation-delay: -0.5s; }
.star:nth-child(5)  { top: 40%; left: 50%; animation-duration: 3.7s; animation-delay: -3s; }
.star:nth-child(6)  { top: 70%; left: 35%; animation-duration: 4.4s; animation-delay: -1.5s; }
.star:nth-child(7)  { top: 18%; left: 65%; animation-duration: 2.5s; animation-delay: -2.5s; }
.star:nth-child(8)  { top: 88%; left: 20%; animation-duration: 6.0s; animation-delay: -4s; }
.star:nth-child(9)  { top: 50%; left: 82%; animation-duration: 3.3s; animation-delay: -0.8s; }
.star:nth-child(10) { top: 35%; left: 28%; animation-duration: 4.8s; animation-delay: -3.5s; }
.star:nth-child(11) { top: 5%;  left: 45%; animation-duration: 3.9s; animation-delay: -1.2s; }
.star:nth-child(12) { top: 92%; left: 58%; animation-duration: 2.9s; animation-delay: -2.8s; }
.star:nth-child(13) { top: 55%; left: 5%;  animation-duration: 5.5s; animation-delay: -0.3s; }
.star:nth-child(14) { top: 20%; left: 78%; animation-duration: 4.2s; animation-delay: -4.5s; }
.star:nth-child(15) { top: 75%; left: 92%; animation-duration: 3.1s; animation-delay: -1.8s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.1; transform: scale(0.8); }
    50%       { opacity: 1;   transform: scale(1.4); box-shadow: 0 0 6px rgba(255,107,0,0.8); }
}

/* ── VAGUE BAS ── */
.hero-wave {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1;
    pointer-events: none;
    line-height: 0;
}
.hero-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}
