/* =========================================================
   Page d'accueil — hero clair pleine largeur + aperçu des rubriques
   ========================================================= */

/* --- Hero --- */
.home-hero {
    position: relative;
    min-height: 94vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(120deg, #efe8da 0%, #f6f2e9 55%, #ece2cf 100%);
}

.home-hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.home-hero-media img {
    width: 100%;
    height: 118%;
    margin-top: -9%;
    object-fit: cover;
    will-change: transform;
}

/* Texte posé dans un panneau clair : lisibilité garantie sur n'importe quelle image */
.home-hero-inner {
    position: relative;
    width: min(520px, calc(100vw - clamp(40px, 10vw, 160px)));
    margin-left: clamp(24px, 6vw, 96px);
    padding: 2.6rem 2.2rem 2.4rem;
    color: #14100a;
    background: rgba(252, 250, 244, .93);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    backdrop-filter: blur(10px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(20, 16, 10, .16);
}

.home-hero-kicker {
    font: 500 .8rem 'Roboto', sans-serif;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: #8a6d2f;
    margin-bottom: 1rem;
}

.home-hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5.2vw, 3.6rem);
    line-height: 1.18;
    margin-bottom: 1.1rem;
}

.home-hero-sub {
    max-width: 560px;
    font-size: 1.12rem;
    line-height: 1.65;
    color: rgba(20, 16, 10, .78);
    margin-bottom: 2rem;
}

.home-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .8rem 1.6rem;
    border-radius: 999px;
    font: 500 .95rem 'Roboto', sans-serif;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}

.home-btn-solid {
    background: #14100a;
    color: #f0f0f0;
}

.home-btn-solid:hover {
    background: var(--gradient);
    color: #14100a;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(20, 16, 10, .25);
}

.home-btn-ghost {
    border: 1.5px solid rgba(20, 16, 10, .38);
    color: #14100a;
}

.home-btn-ghost:hover {
    border-color: #14100a;
    background: rgba(20, 16, 10, .06);
    transform: translateY(-2px);
}

.home-hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 18px;
    width: 36px;
    height: 36px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(252, 250, 244, .9);
    border: 1px solid rgba(20, 16, 10, .15);
    color: #14100a;
    font-size: .95rem;
    animation: hero-scroll-nudge 2.2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes hero-scroll-nudge {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 7px); }
}

/* Sur cette page, la barre supérieure se pose sur un hero clair :
   on lui donne un fond sombre dès le départ. */
body:has(.home-hero) .snav-bar {
    background-color: rgba(10, 10, 10, .66);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
}

/* --- Sections d'aperçu --- */
.home-section {
    padding: 4.6rem 0;
    position: relative;
}

.home-section-alt {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.home-goal {
    padding: 5rem 0;
}

.home-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 2.2rem;
    position: relative;
    padding-bottom: .8rem;
}

.home-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 46px;
    height: 3px;
    border-radius: 2px;
    background: var(--gradient);
}

.home-goal-text {
    max-width: 860px;
    font-size: 1.06rem;
    line-height: 1.8;
    color: rgba(240, 240, 240, .75);
}

.home-goal-text em {
    font-style: normal;
    color: var(--ui-cyan);
}

.home-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.4rem;
}

.home-cards-studio {
    grid-template-columns: repeat(auto-fill, minmax(300px, 420px));
}

.home-card {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    padding: 1.6rem 1.5rem;
    text-decoration: none;
    color: var(--light);
    transition: transform .3s ease, border-color .3s ease, background .3s ease;
}

.home-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--primary-rgb), .55);
    background: rgba(255, 255, 255, 0.05);
}

.home-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    color: #14100a;
    font-size: 1.05rem;
    margin-bottom: .5rem;
    transition: transform .3s ease;
}

.home-card:hover .home-card-icon {
    transform: scale(1.08) rotate(-3deg);
}

.home-card h3 {
    font-size: 1.08rem;
}

.home-card p {
    flex: 1;
    font-size: .92rem;
    line-height: 1.6;
    color: rgba(240, 240, 240, .66);
}

.home-card-more {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: .4rem;
    font: 500 .78rem 'Roboto', sans-serif;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ui-cyan);
}

.home-card-more i {
    transition: transform .3s ease;
}

.home-card:hover .home-card-more i {
    transform: translateX(4px);
}

/* --- Bandeau final --- */
.home-final {
    padding: 5.2rem 0;
    text-align: center;
    background:
        radial-gradient(60% 80% at 50% 100%, rgba(var(--primary-rgb), .08), transparent 70%);
}

.home-final p {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(240, 240, 240, .72);
}

.home-final a {
    color: var(--ui-cyan);
    text-decoration: none;
    border-bottom: 1px solid rgba(224, 192, 104, .4);
}

.home-final a:hover {
    color: var(--light);
}

/* --- Apparitions au scroll --- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s var(--snav-ease), transform .6s var(--snav-ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.no-js .reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .home-hero-scroll {
        animation: none;
    }
}

@media (max-width: 768px) {

    /* Design mobile distinct : l'image devient une bande visible,
       le texte passe SOUS l'image, comme un bloc de contenu. */
    .home-hero {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
        padding-top: 64px;
    }

    .home-hero-media {
        position: relative;
        width: 100%;
        aspect-ratio: 5 / 4;
        overflow: hidden;
    }

    .home-hero-media img {
        width: 100%;
        height: 100%;
        margin-top: 0;
        object-fit: cover;
        object-position: center;
    }

    .home-hero-inner {
        position: static;
        width: auto;
        margin: 20px 16px 28px;
        padding: 1.7rem 1.4rem 1.6rem;
        border-radius: 16px;
    }

    .home-hero h1 {
        font-size: 1.65rem;
    }

    .home-hero-sub {
        font-size: 1rem;
    }

    .home-hero-scroll {
        display: none;
    }

    /* Fallback sans image : le fond dégradé remplit la zone média */
    .home-hero.no-hero-img {
        background: linear-gradient(120deg, #efe8da 0%, #f6f2e9 55%, #ece2cf 100%);
    }
}

@media (max-width: 640px) {
    .home-hero-cta .home-btn {
        width: 100%;
    }

    .home-section {
        padding: 3.2rem 0;
    }
}
