:root {
    --gi-orange: #f57c00;
    --gi-dark: #1a1a1a;
}

.gi-hero-container {
    position: relative;
    width: 100%;
    height: 85vh; /* Hauteur desktop */
    min-height: 500px;
    background: #000;
    overflow: hidden;
}

.gi-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
}

.gi-slide.active {
    opacity: 1;
    z-index: 2;
}

/* L'Overlay aux couleurs du logo */

.gi-slide-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* On passe de 0.5 à 0.75 sur la partie gauche pour bien faire ressortir le texte */
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.75) 0%, rgba(10, 25, 47, 0.25) 100%);
    display: flex;
    align-items: center;
    padding: 0 8%;
}

.gi-slide-content {
    max-width: 800px;
    color: #ffffff;
}

.gi-slide-content h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #fff;
}


.gi-slide-content p {
    /* On passe d'environ 1.25rem à 1.1rem pour plus de finesse */
    font-size: clamp(0.95rem, 1.5vw, 1.1rem); 
    margin-bottom: 30px; /* Un peu moins d'espace sous le texte */
    line-height: 1.5;    /* Interlignage équilibré */
    max-width: 600px;    /* On limite la largeur pour faciliter la lecture */
    opacity: 0.85;       /* Une légère transparence pour un look plus "premium" */
}

/* On renforce aussi l'ombre sous le texte pour plus de lisibilité */
.gi-slide-content h1, 
.gi-slide-content p {
    text-shadow: 0px 4px 15px rgba(0, 0, 0, 0.6);
}

/* Boutons */
.gi-hero-btns { display: flex; gap: 20px; }

.gi-btn-hero {
    padding: 16px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-family: sans-serif;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.gi-btn-hero.primary { background: var(--gi-orange); color: #fff; border: 2px solid var(--gi-orange); }
.gi-btn-hero.secondary { border: 2px solid #fff; color: #fff; }

.gi-btn-hero:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }

/* Navigation par flèches */
.gi-slider-nav {
    position: absolute;
    bottom: 40px; right: 50px;
    display: flex; gap: 15px;
    z-index: 100;
}

.gi-slider-nav button {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff; width: 55px; height: 55px;
    border-radius: 50%; cursor: pointer;
    font-size: 18px; transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
}

.gi-slider-nav button:hover { background: var(--gi-orange); border-color: var(--gi-orange); }

/* Navigation par points (Dots) */
.gi-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100;
}

.gi-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gi-dot.active {
    background: var(--gi-orange);
    transform: scale(1.3);
}

/* GESTION DES FLÈCHES */
.gi-slider-nav { display: none; } /* Cachées par défaut (Mobile) */



/* Animations de texte */
.gi-animate-up { transform: translateY(30px); opacity: 0; transition: 0.8s ease-out; }
.gi-slide.active .gi-animate-up { transform: translateY(0); opacity: 1; }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }


/* Remplacez ou ajoutez ces classes dans votre CSS */

.gi-animate-up { 
    transform: translateY(40px); 
    opacity: 0; 
    filter: blur(10px); /* Ajoute un léger flou au départ */
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
}

.gi-slide.active .gi-animate-up { 
    transform: translateY(0); 
    opacity: 1; 
    filter: blur(0);
}

/* Cascade : chaque élément arrive avec un léger retard */
.delay-1 { transition-delay: 0.3s; } /* Description */
.delay-2 { transition-delay: 0.6s; } /* Boutons */


@media (min-width: 1024px) {
    .gi-slider-nav {
        display: flex; /* Visibles uniquement sur Desktop */
        position: absolute;
        bottom: 40px;
        right: 50px;
        gap: 15px;
        z-index: 100;
    }
    .gi-slider-dots { display: none;}
}



/* Responsive */
@media (max-width: 768px) {
    .gi-hero-container { height: 65vh; }
    .gi-hero-btns { flex-direction: column; }
    .gi-slider-nav { right: 50%; transform: translateX(50%); bottom: 20px; }
}