/* ═══════════════════════════════════════════════════════════════════════
 * LZ Hero Pro — Lineazur Couverture
 * Design : Premium classique avec compositions distinctives
 * Couleurs : #152738 (marine) / #808186 (gris)
 * ═══════════════════════════════════════════════════════════════════════ */

:root {
    --lz-marine: #152738;
    --lz-gris: #808186;
    --lz-white: #ffffff;
    --lz-marine-soft: rgba(21, 39, 56, 0.85);
    --lz-marine-deep: rgba(10, 22, 34, 0.92);
    --lz-shadow-lg: 0 25px 60px -15px rgba(10, 22, 34, 0.5);
    --lz-shadow-md: 0 8px 24px -8px rgba(10, 22, 34, 0.35);
    --lz-radius: 4px;
    --lz-transition: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ─── CONTAINER PRINCIPAL ──────────────────────────────────────────────── */
.lz-hero {
    position: relative;
    width: 100%;
    min-height: 90vh;
    height: 90vh;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--lz-marine);
    isolation: isolate;
    display: block;
}

/* H1 SEO — affichage ou masqué */
.lz-hero__page-title {
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--lz-white);
    margin: 0;
    text-align: center;
    letter-spacing: -0.02em;
    line-height: 1.2;
    padding: 0 20px;
}

.lz-hero__page-title--sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ─── SLIDES ───────────────────────────────────────────────────────────── */
.lz-hero__slides {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.lz-hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 0;
    display: none !important;
}

.lz-hero__slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
    display: block !important;
    animation: lz-fade-slide 1.2s ease forwards;
}

@keyframes lz-fade-slide {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ─── MÉDIA ────────────────────────────────────────────────────────────── */
.lz-hero__media {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.lz-hero__image,
.lz-hero__video {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100% !important;
    height: 100% !important;
    min-width: 100%;
    min-height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.05);
    transition: transform 8s ease-out;
}

.lz-hero__slide.is-active .lz-hero__image,
.lz-hero__slide.is-active .lz-hero__video {
    transform: scale(1);
}

.lz-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

/* Effet vignette additionnel pour la lisibilité */
.lz-hero__slide::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    background:
        radial-gradient(ellipse at center, transparent 30%, rgba(10, 22, 34, 0.4) 100%),
        linear-gradient(180deg, rgba(10, 22, 34, 0.3) 0%, transparent 30%, transparent 60%, rgba(10, 22, 34, 0.5) 100%);
    pointer-events: none;
}

/* ─── CONTENU CENTRÉ ───────────────────────────────────────────────────── */
.lz-hero__content {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 220px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    left: 0;
    right: 0;
}

/* ─── KICKER (Surtitre) — 4 styles ─────────────────────────────────────── */
.lz-hero__kicker {
    font-family: 'Manrope', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--lz-white);
    margin-bottom: 28px;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    opacity: 0;
    transform: translateY(20px);
    animation: lz-fade-in 0.8s ease 0.3s forwards;
}

.lz-hero__slide.is-active .lz-hero__kicker {
    opacity: 0;
    animation: lz-fade-in 0.8s ease 0.3s forwards;
}

/* Style "line" : avec ligne horizontale */
.lz-hero__kicker--line::before,
.lz-hero__kicker--line::after {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--lz-gris);
    display: inline-block;
}

/* Style "dot" : avec point */
.lz-hero__kicker--dot::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lz-gris);
    display: inline-block;
}

/* Style "bracket" : avec crochets */
.lz-hero__kicker--bracket::before {
    content: '[';
    font-weight: 400;
    color: var(--lz-gris);
}
.lz-hero__kicker--bracket::after {
    content: ']';
    font-weight: 400;
    color: var(--lz-gris);
}

/* Style "plain" : pas d'ornement */
.lz-hero__kicker--plain::before,
.lz-hero__kicker--plain::after {
    display: none;
}

/* ─── TITRE H2 ─────────────────────────────────────────────────────────── */
.lz-hero__title {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 4.2rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--lz-white);
    margin: 0 0 24px;
    max-width: 900px;
    opacity: 0;
    transform: translateY(30px);
    animation: lz-fade-in 1s ease 0.5s forwards;
}

.lz-hero__title-accent {
    color: #a3b8c8;
    font-style: italic;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

/* Soulignement subtil sur l'accent */
.lz-hero__title-accent::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.05em;
    height: 2px;
    background: var(--lz-gris);
    opacity: 0.6;
    transform: scaleX(0);
    transform-origin: left;
    animation: lz-underline 0.8s ease 1.5s forwards;
}

/* ─── SOUS-TITRE ───────────────────────────────────────────────────────── */
.lz-hero__subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 40px;
    max-width: 680px;
    opacity: 0;
    transform: translateY(20px);
    animation: lz-fade-in 1s ease 0.7s forwards;
}

/* ─── BOUTONS ──────────────────────────────────────────────────────────── */
.lz-hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    animation: lz-fade-in 1s ease 0.9s forwards;
}

.lz-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    border-radius: var(--lz-radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    line-height: 1;
}

.lz-hero__btn-text {
    position: relative;
    z-index: 2;
}

.lz-hero__btn-icon {
    display: inline-flex;
    align-items: center;
    position: relative;
    z-index: 2;
    transition: transform 0.35s ease;
}

.lz-hero__btn-icon svg,
.lz-hero__btn-icon i {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

/* Bouton primary */
.lz-hero__btn--primary {
    background: var(--lz-marine);
    color: var(--lz-white);
    border-color: var(--lz-marine);
}

.lz-hero__btn--primary:hover {
    background: var(--lz-white);
    color: var(--lz-marine);
    border-color: var(--lz-white);
    transform: translateY(-2px);
    box-shadow: var(--lz-shadow-md);
}

.lz-hero__btn--primary:hover .lz-hero__btn-icon {
    transform: translateX(4px);
}

/* Bouton secondary — outline */
.lz-hero__btn--secondary {
    background: transparent;
    color: var(--lz-white);
    border-color: var(--lz-white);
    backdrop-filter: blur(4px);
}

.lz-hero__btn--secondary:hover {
    background: var(--lz-white);
    color: var(--lz-marine);
    border-color: var(--lz-white);
    transform: translateY(-2px);
}

.lz-hero__btn--secondary:hover .lz-hero__btn-icon {
    animation: lz-shake 0.4s ease;
}

/* Bouton tertiary — pour téléphone fixe (gris par défaut) */
.lz-hero__btn--tertiary {
    background: var(--lz-gris);
    color: var(--lz-white);
    border-color: var(--lz-gris);
}

.lz-hero__btn--tertiary:hover {
    background: var(--lz-white);
    color: var(--lz-marine);
    border-color: var(--lz-white);
    transform: translateY(-2px);
    box-shadow: var(--lz-shadow-md);
}

.lz-hero__btn--tertiary:hover .lz-hero__btn-icon {
    animation: lz-shake 0.4s ease;
}

/* ─── BARRE INFÉRIEURE (badges + témoignage) ───────────────────────────── */
.lz-hero__bottom-bar {
    position: absolute;
    bottom: 70px;
    left: 0;
    right: 0;
    z-index: 15;
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    opacity: 0;
    animation: lz-fade-in 1s ease 1.1s forwards;
}

/* Badges — composition différente : ligne avec séparateurs verticaux fins */
.lz-hero__badges {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.lz-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--lz-white);
    letter-spacing: 0.02em;
    position: relative;
}

.lz-hero__badge:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.2);
}

.lz-hero__badge i,
.lz-hero__badge svg {
    width: 16px;
    height: 16px;
    font-size: 16px;
    color: #a3b8c8;
}

/* Témoignage Google — card glassmorphisme à droite */
.lz-hero__testi {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--lz-radius);
    color: var(--lz-white);
    text-decoration: none;
    transition: all 0.35s ease;
    font-family: 'Inter', sans-serif;
}

.lz-hero__testi:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: var(--lz-shadow-md);
}

.lz-hero__testi-stars {
    display: inline-flex;
    gap: 1px;
}

.lz-hero__testi-star {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.25);
    line-height: 1;
}

.lz-hero__testi-star.is-filled {
    color: #fbbc05;
}

.lz-hero__testi-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.lz-hero__testi-meta strong {
    font-size: 0.85rem;
    font-weight: 600;
}

.lz-hero__testi-meta span {
    font-size: 0.72rem;
    opacity: 0.7;
    letter-spacing: 0.02em;
}

/* ─── FLÈCHES NAVIGATION ──────────────────────────────────────────────── */
.lz-hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--lz-white);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.lz-hero__arrow:hover {
    background: var(--lz-white);
    color: var(--lz-marine);
    border-color: var(--lz-white);
    transform: translateY(-50%) scale(1.05);
}

.lz-hero__arrow--prev {
    left: 30px;
}

.lz-hero__arrow--next {
    right: 30px;
}

/* ─── DOTS ─────────────────────────────────────────────────────────────── */
.lz-hero__dots {
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    z-index: 20;
    display: inline-flex;
    gap: 12px;
}

.lz-hero__dot {
    width: 32px;
    height: 3px;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    cursor: pointer;
    transition: all 0.35s ease;
    padding: 0;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.lz-hero__dot::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--lz-white);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.lz-hero__dot.is-active {
    background: rgba(255, 255, 255, 0.35);
}

.lz-hero__dot.is-active::after {
    transform: scaleX(1);
}

/* Auto-play progress bar */
.lz-hero[data-autoplay="1"] .lz-hero__dot.is-active::after {
    animation: lz-progress var(--lz-delay, 6s) linear;
}

/* ─── COMPTEUR (01/03) ─────────────────────────────────────────────────── */
.lz-hero__counter {
    position: absolute;
    right: 30px;
    bottom: 30px;
    z-index: 20;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-family: 'Manrope', sans-serif;
    color: var(--lz-white);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.lz-hero__counter-current {
    font-size: 1.5rem;
    font-weight: 700;
}

.lz-hero__counter-sep,
.lz-hero__counter-total {
    font-size: 0.9rem;
    opacity: 0.6;
}

/* ─── SCROLL INDICATOR — ligne verticale animée ────────────────────────── */
.lz-hero__scroll {
    position: absolute;
    left: 30px;
    bottom: 30px;
    z-index: 20;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: var(--lz-white);
    text-decoration: none;
    font-family: 'Manrope', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.lz-hero__scroll:hover {
    opacity: 0.7;
}

.lz-hero__scroll-text {
    writing-mode: vertical-rl;
}

.lz-hero__scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    margin-top: 8px;
}

.lz-hero__scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: var(--lz-white);
    animation: lz-scroll-line 2s ease-in-out infinite;
}

/* ─── ANIMATIONS ───────────────────────────────────────────────────────── */
@keyframes lz-fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes lz-underline {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

@keyframes lz-shake {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-2px); }
    75%      { transform: translateX(2px); }
}

@keyframes lz-progress {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

@keyframes lz-scroll-line {
    0%   { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

/* ─── RESPONSIVE ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .lz-hero__content {
        padding-top: 140px;
    }

    .lz-hero__bottom-bar {
        padding: 0 30px;
        bottom: 80px;
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .lz-hero__badges {
        justify-content: center;
    }

    .lz-hero__arrow {
        width: 44px;
        height: 44px;
    }

    .lz-hero__arrow--prev { left: 15px; }
    .lz-hero__arrow--next { right: 15px; }

    .lz-hero__scroll { display: none; }
    .lz-hero__counter { display: none; }
}

@media (max-width: 768px) {
    .lz-hero {
        min-height: 600px;
        height: 80vh;
        max-height: 700px;
    }

    .lz-hero__page-title {
        top: 6%;
        font-size: 1.1rem;
    }

    /* Contenu centré verticalement sur mobile aussi */
    .lz-hero__content {
        justify-content: center;
        padding: 90px 20px 40px;
    }

    .lz-hero__kicker {
        font-size: 0.7rem;
        gap: 10px;
        margin-bottom: 20px;
    }

    .lz-hero__kicker--line::before,
    .lz-hero__kicker--line::after {
        width: 24px;
    }

    .lz-hero__title {
        font-size: clamp(1.8rem, 7vw, 2.6rem);
        margin-bottom: 16px;
    }

    .lz-hero__subtitle {
        font-size: 0.95rem;
        margin-bottom: 28px;
    }

    .lz-hero__btn {
        padding: 14px 24px;
        font-size: 0.9rem;
    }

    .lz-hero__buttons {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }

    .lz-hero__buttons .lz-hero__btn {
        width: 100%;
        justify-content: center;
    }

    /* MOBILE : on cache la bottom-bar (badges + témoignage), comme demandé */
    .lz-hero__bottom-bar,
    .lz-hero__badges,
    .lz-hero__testi {
        display: none !important;
    }

    .lz-hero__dots {
        bottom: 24px;
    }

    .lz-hero__dot {
        width: 24px;
    }

    .lz-hero__arrow {
        display: none;
    }
}

/* ─── REDUCED MOTION ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .lz-hero__slide,
    .lz-hero__image,
    .lz-hero__video,
    .lz-hero__kicker,
    .lz-hero__title,
    .lz-hero__title-accent::after,
    .lz-hero__subtitle,
    .lz-hero__buttons,
    .lz-hero__bottom-bar,
    .lz-hero__scroll-line::after,
    .lz-hero__dot.is-active::after {
        animation: none !important;
        transition: opacity 0.3s ease !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* ─── EMPTY STATE ──────────────────────────────────────────────────────── */
.lz-hero__empty {
    padding: 60px 30px;
    text-align: center;
    background: var(--lz-marine);
    color: var(--lz-white);
    font-family: 'Inter', sans-serif;
}
