/* =====================================================
   SECTION BANNIÈRE — Projecteur néon pulsé
===================================================== */

/* --------------------
   SETTINGS GLOBAUX
-------------------- */
#en-tete {
    position: relative;
    overflow: hidden;
}

#en-tete > * {
    position: relative;
    z-index: 1;
}

/* --------------------
   FOND NÉON (pseudo-élément)
-------------------- */
#en-tete::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;

    background:
        radial-gradient(
            ellipse at top left,
            color-mix(in srgb, var(--color-primary) 60%, transparent) 0%,
            color-mix(in srgb, var(--color-primary) 35%, transparent) 25%,
            color-mix(in srgb, var(--color-primary) 15%, transparent) 45%,
            transparent 65%
        ),
        radial-gradient(
            ellipse at top right,
            color-mix(in srgb, var(--color-accent) 55%, transparent) 0%,
            color-mix(in srgb, var(--color-accent) 30%, transparent) 25%,
            color-mix(in srgb, var(--color-accent) 12%, transparent) 45%,
            transparent 65%
        );

    opacity: 0.8;
    filter: blur(0.8rem);
    animation: neon-projector 6s ease-in-out infinite alternate;
}

@keyframes neon-projector {
    0% {
        opacity: 0.55;
        filter: blur(0.6rem);
    }
    100% {
        opacity: 1;
        filter: blur(1.2rem);
    }
}

/* --------------------
   CONTENEUR BANNIÈRE
-------------------- */
.font-banner {
    min-height: 100svh;
    padding: 2rem 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(2rem, 5vh, 4rem);

    color: #fff;

    background:
        linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
        url("/images/ordinateur.jpg") center bottom / cover no-repeat,
        black;
}

/* --------------------
   LOGO
-------------------- */
.logo-container {
    margin: 4rem auto 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 5;
}

.font-banner .logo {
    width: clamp(12rem, 25vw, 16rem);
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 0.3rem 0.7rem rgba(0,0,0,0.75));
}

/* Ligne animée */
.logo-line {
    height: 0.125rem;
    margin: 4rem auto 0;

    background: linear-gradient(to right, transparent, #fff, transparent);
    opacity: 0;

    animation: drawLine 2s ease-out forwards;
    animation-delay: 0.15s;
}

@keyframes drawLine {
    0% {
        width: 0;
        opacity: 0;
    }
    40% {
        width: 8rem;
        opacity: 1;
    }
    100% {
        width: 16rem;
        opacity: 1;
    }
}

/* --------------------
   TITRE & SOUS-TITRE
-------------------- */
.titre-container {
    margin: auto auto 2rem;
    max-width: 80%;
    text-align: center;
    z-index: 5;
}

.font-banner h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    text-shadow: 0 0.15rem 0.3rem rgba(0,0,0,0.7);
}

.font-banner p {
    margin-top: 0.5rem;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    opacity: 0.9;
}


/* =====================================================
   RESPONSIVE
===================================================== */

/* Tablette / Mobile */
@media (max-width: 799px) {
    .font-banner {
        min-height: 80svh;
        padding: 1rem 0;
        gap: clamp(1.5rem, 4vh, 3rem);
    }

    .logo-container {
        margin: 2rem auto 0.5rem;
    }

    .font-banner .logo {
        width: clamp(10rem, 40vw, 14rem);
    }

    .logo-line {
        width: 12.5rem;
        opacity: 1;
        animation: drawLineMobile 2s ease-out forwards;
    }

    @keyframes drawLineMobile {
        0% { width: 0; opacity: 0; }
        40% { width: 6.25rem; opacity: 1; }
        100% { width: 12.5rem; opacity: 1; }
    }

    .font-banner h1 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .titre-container {
        margin-top: 70px;
    }
}
