/* ==========================================================================
   Header (toutes les pages) + Hero de la page d'accueil
   Fichier chargé en simple <link> statique (pas de build), voir base.html.twig
   ========================================================================== */

/* ---------- Header ---------- */

.site-header {
    background: #fff;
    box-shadow: 0 2px 12px rgba(15, 23, 42, .06);
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
}

.site-header .navbar-brand img {
    height: 62px;
    width: auto;
}

.site-header .nav-link {
    color: #374151 !important;
    font-weight: 600;
    font-size: .95rem;
    padding: .5rem 1rem !important;
    position: relative;
}

.site-header .nav-link:hover {
    color: var(--dark) !important;
}

.site-header .nav-link.active {
    color: var(--primary) !important;
}

.site-header .nav-link.active::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: -2px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.btn-header-cta {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: .92rem;
    padding: .55rem 1.35rem;
    border-radius: 10px;
    border: none;
    white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .28);
}

.btn-header-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(37, 99, 235, .35);
    color: #fff;
}

.site-header .navbar-toggler {
    border-color: rgba(15, 23, 42, .15);
}

@media (max-width: 991.98px) {
    .site-header .navbar-nav {
        padding: 1rem 0 .5rem;
    }

    .site-header .nav-link.active::after {
        left: 0;
        right: auto;
        bottom: .1rem;
        width: 22px;
    }

    .btn-header-cta {
        width: 100%;
        padding: .75rem 1.25rem;
    }
}

/* ---------- Hero accueil (desktop >= 992px) : photo pleine largeur ---------- */

.hero-accueil {
    position: relative;
    overflow: hidden;
}

@media (min-width: 992px) {
    .hero-accueil {
        aspect-ratio: 1536 / 1024;
        min-height: 640px;
    }

    .hero-accueil-bg {
        position: absolute;
        inset: 0;
        background-image: url('/images/hero-accueil.jpg');
        background-size: cover;
        background-position: center;
        z-index: 0;
    }

    .hero-accueil-copy {
        position: absolute;
        left: 6.4%;
        top: 25%;
        width: 50%;
        z-index: 2;
    }
}

/* ---------- Hero accueil : contenu texte ---------- */

.hero-accueil-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    color: var(--primary);
    font-weight: 800;
    font-size: .78rem;
    letter-spacing: .14em;
}

.hero-accueil-eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--primary);
}

.hero-accueil-title {
    margin: 1.1rem 0 1.4rem;
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -.03em;
    font-size: clamp(2.4rem, 4.1vw, 3.9rem);
    color: var(--dark);
}

.hero-accueil-title span {
    display: block;
    background-image: linear-gradient(100deg, #1a63e8 10%, #16c4ea 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-accueil-lead {
    max-width: 480px;
    color: #4b5768;
    font-size: 1.02rem;
    line-height: 1.65;
    margin-bottom: 0;
}

.hero-accueil-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-top: 1.9rem;
}

.btn-hero-primary {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    padding: .8rem 1.6rem;
    border-radius: 10px;
    border: none;
    box-shadow: 0 12px 24px rgba(37, 99, 235, .3);
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn-hero-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(37, 99, 235, .38);
}

.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    padding: .8rem 1.6rem;
    border-radius: 10px;
    border: 1px solid rgba(37, 99, 235, .35);
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease;
}

.btn-hero-outline:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ---------- Hero accueil : version < 992px (empilée, sans superpositions) ---------- */

@media (max-width: 991.98px) {
    .hero-accueil {
        display: flex;
        flex-direction: column;
        padding: 6.5rem 0 0;
        background: #fff;
    }

    .hero-accueil-copy {
        order: 1;
        padding: 0 1.25rem 2.25rem;
        text-align: center;
    }

    .hero-accueil-eyebrow {
        justify-content: center;
    }

    .hero-accueil-lead {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-accueil-actions {
        justify-content: center;
    }

    .hero-accueil-bg {
        order: 2;
        height: 260px;
        background-image: url('/images/hero-accueil.jpg');
        background-size: cover;
        background-position: center 65%;
    }
}

@media (max-width: 575.98px) {
    .hero-accueil-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-hero-primary,
    .btn-hero-outline {
        justify-content: center;
        width: 100%;
    }

    .hero-accueil-bg {
        height: 200px;
    }
}
