/* ============================================
   HERO - Pages intérieures
   Structure: Cadre blanc de 80px (marges = 2× largeur blip) + padding intérieur 60px
   ============================================ */

/* Hero - Marges pour créer le cadre blanc */
.laika-hero {
    position: relative;
    width: auto;
    height: calc(100vh - 155px); /* 100vh - (75px top + 80px bottom) */
    overflow: visible; /* Visible pour laisser passer le scroll indicator */
    margin: 75px 80px 80px 80px; /* Top 75px pour header, reste 80px = 2× largeur blip (40px) */
    padding: 0;
}

/* Background Image - Couvre tout le hero */
.laika-hero__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.laika-hero__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.laika-hero__background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Container - Padding intérieur pour espacer le contenu */
.laika-hero__container {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    padding: 60px var(--space-3xl); /* 80px de chaque côté : le blip (40px) plus une marge de 40px */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Logo centré en haut */
.laika-hero__logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 0;
}

.laika-hero__logo a {
    display: block;
}

.laika-hero__logo img {
    width: 248px;
    height: 103px;
    object-fit: contain;
    display: block;
}

/* Content aligné à gauche en bas */
.laika-hero__content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 80px;
}

.laika-hero__title {
    font-family: var(--font-heading);
    font-size: 83.414px;
    font-weight: var(--fw-regular);
    text-transform: uppercase;
    line-height: 83.865px;
    color: var(--color-noir);
    margin: 0;
}

.laika-hero__subtitle {
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 300;
    line-height: 38px;
    color: var(--color-noir);
    max-width: 560px;
    margin: 0;
}

/* Variante dark */
.laika-hero--dark .laika-hero__title,
.laika-hero--dark .laika-hero__subtitle {
    color: var(--color-blanc);
}

/* Variante avec vidéo — logo et texte en blanc */
.laika-hero--has-video .laika-hero__title,
.laika-hero--has-video .laika-hero__subtitle {
    color: #fff;
}

.laika-hero--has-video .laika-hero__logo img {
    filter: brightness(0) invert(1);
}

/* Page Nous : logo blanc pendant le 1er tiers de la vidéo, puis noir (classe posée par le script de hero.php,
   fondu de 1.5 s comme l'ancien fondu de la page Entreprises) */
.laika-hero--nous.laika-hero--has-video .laika-hero__logo img {
    transition: filter 1.5s ease;
}

.laika-hero--nous.laika-hero--has-video.laika-hero--logo-dark .laika-hero__logo img {
    filter: none;
}

/* Page Particuliers : logo noir en permanence (la source du logo est noire, on annule l'inversion) */
.laika-hero--particuliers.laika-hero--has-video .laika-hero__logo img {
    filter: none;
}

/* Dégradé bas — identique à hero-home (backdrop-filter pour assombrir sans ajouter de couleur) */
.laika-hero--has-video::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    backdrop-filter: brightness(0.4);
    -webkit-backdrop-filter: brightness(0.4);
    -webkit-mask-image: linear-gradient(to top, black, transparent);
    mask-image: linear-gradient(to top, black, transparent);
    z-index: 2;
    pointer-events: none;
}

/* #633 — Cible ancre scroll hero : compensation header fixe ~100px */
#apres-hero {
    scroll-margin-top: 100px;
}

/* Scroll Indicator - Bouton scroll hero — #658 (remplace ancre <a>) */
.scroll-indicator {
    appearance: none; /* #658 — reset styles natifs du <button> */
    border: none; /* #658 — pas de bordure native bouton */
    background: none; /* Sera écrasé par background-color ci-dessous */
    padding: 0; /* Reset padding natif bouton */
    font: inherit; /* Reset font natif bouton */
    position: absolute;
    bottom: -50px; /* À cheval sur le bas du hero */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10; /* Inférieur au theme-nav sticky (z-index: 100) */
    width: 100px;
    height: 100px;
    background-color: var(--color-blanc);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding-top: 12px; /* Décale l'ensemble légèrement vers le bas dans le cercle */
}

.scroll-indicator:hover {
    transform: translateX(-50%) translateY(5px);
}

/* Tige verticale */
.scroll-indicator__stem {
    display: block;
    width: 1.5px;
    height: 32px;
    background-color: var(--color-noir);
    flex-shrink: 0;
}

/* Chevron vers le bas — collé à la tige */
.scroll-indicator__chevron {
    display: block;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid var(--color-noir);
    border-bottom: 1.5px solid var(--color-noir);
    transform: rotate(45deg);
    transform-origin: center center;
    flex-shrink: 0;
    margin-top: -3px; /* Chevauchement léger : chevron collé à la tige */
}

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

@media (max-width: 1024px), (hover: none) and (pointer: coarse) and (orientation: portrait) and (max-width: 1032px) {
    .laika-hero {
        min-height: calc(100vh - 155px);
        margin: 75px 40px 40px 40px;
    }

    .laika-hero__container {
        padding: 40px var(--space-3xl);
    }

    .laika-hero__logo img {
        width: 200px;
        height: auto;
    }

    .laika-hero__title {
        font-size: 60px;
        line-height: 1.1;
    }

    .laika-hero__subtitle {
        font-size: 18px;
        line-height: 32px;
    }

    .scroll-indicator {
        width: 80px;
        height: 80px;
        bottom: -40px;
        padding-top: 8px;
    }

    .scroll-indicator__stem {
        height: 26px;
    }

    .scroll-indicator__chevron {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 768px), (hover: none) and (pointer: coarse) and (orientation: portrait) and (max-width: 1032px) {
    .laika-hero {
        margin: 24px; /* Cadre blanc 24px uniforme — body padding-top: 0 sur mobile */
        height: calc(100vh - 48px); /* Hauteur explicite pour que le container height:100% fonctionne */
        height: calc(100svh - 48px);
        min-height: 0; /* Reset min-height desktop */
    }

    /* Centrer l'image sur mobile — forcer le centrage */
    .laika-hero__background img {
        object-position: center center !important;
    }

    .laika-hero__container {
        padding: 50px 24px 80px 24px; /* 50px top pour descendre le logo, 80px bas pour scroll-indicator */
    }

    .laika-hero__logo img {
        width: 200px; /* Logo réduit de 30% (était 280px) */
        height: auto;
    }

    .laika-hero__title {
        font-size: 48px;
        line-height: 1.1;
    }

    .laika-hero__subtitle {
        font-size: 16px;
        line-height: 28px;
        max-width: 100%;
    }

    .laika-hero__content {
        padding-bottom: 40px; /* Espace pour ne pas coller aux blips */
    }

    .scroll-indicator {
        width: 60px;
        height: 60px;
        bottom: -30px;
        padding-top: 6px;
        pointer-events: auto; /* Garantit la cliquabilité sur mobile même hors flux */
    }

    .scroll-indicator__stem {
        height: 20px;
    }

    .scroll-indicator__chevron {
        width: 6px;
        height: 6px;
    }
}

/* ============================================
   TABLETTE PORTRAIT - Cadre blanc à la proportion de l'ordinateur
   80 px sur 1440 px = 5.5556vw ; hauteur = écran visible moins le cadre (svh : barres de Safari déployées)
   ============================================ */

@media (hover: none) and (pointer: coarse) and (orientation: portrait) and (min-width: 769px) and (max-width: 1032px) {
    .laika-hero {
        margin: 5.5556vw;
        height: calc(100vh - 11.1112vw);
        height: calc(100svh - 11.1112vw);
    }
}

/* ============================================
   PAYSAGE TACTILE - Tablette et téléphone en paysage
   Titres réduits
   ============================================ */

@media (hover: none) and (pointer: coarse) and (orientation: landscape) and (min-width: 769px) and (max-width: 1376px) {
    .laika-hero {
        margin: 75px 5.5556vw 5.5556vw 5.5556vw; /* cadre de l'ordinateur : 80 px sur 1440 px */
        min-height: 0;
        height: calc(100vh - 75px - 5.5556vw);
        height: calc(100svh - 75px - 5.5556vw);
    }

    .laika-hero__title {
        font-size: 64px;
    }

    .laika-hero__subtitle {
        font-size: 20px;
    }
}
