/* Hero Glass - Glassmorphism Design */

:root {
    --hero-glass-primary: var(--primary, #6366f1);
    --hero-glass-white: #ffffff;
    --hero-glass-dark: #0f172a;
    --hero-glass-blur: 20px;
}

/* Section principale - plein écran */
.hero-glass {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: var(--shop-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}

/* Image de fond */
.hero-glass__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-glass__bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1.15);
    }
}

/* Overlay sombre avec dégradé */
.hero-glass__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.5) 0%,
        rgba(15, 23, 42, 0.3) 50%,
        rgba(15, 23, 42, 0.4) 100%
    );
}

/* Conteneur du contenu */
.hero-glass__content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    display: flex;
    justify-content: flex-start;
}

/* Carte glassmorphism */
.hero-glass__card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(var(--hero-glass-blur));
    -webkit-backdrop-filter: blur(var(--hero-glass-blur));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 2.5rem;
    padding: 4rem 4.5rem;
    max-width: 720px;
    width: 100%;
    animation: cardSlideIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(40px);
}

@keyframes cardSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tag/Label animé */
.hero-glass__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--hero-glass-white);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-glass__tag-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* Titre principal */
.hero-glass__title {
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    font-weight: 800;
    line-height: 1.08;
    color: var(--hero-glass-white);
    margin: 0 0 1.5rem;
    letter-spacing: -0.03em;
}

/* Sous-titre */
.hero-glass__subtitle {
    font-size: clamp(1.0625rem, 2vw, 1.375rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 2.5rem;
    max-width: 540px;
}

/* Boutons d'action */
.hero-glass__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-glass__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1.125rem 2.25rem;
    border-radius: 100px;
    font-size: 1.0625rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
}

.hero-glass__btn--primary {
    background: var(--hero-glass-white);
    color: var(--hero-glass-dark) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-glass__btn--primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    color: var(--hero-glass-dark) !important;
}

.hero-glass__btn--primary svg {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-glass__btn--primary:hover svg {
    transform: translateX(4px);
}

.hero-glass__btn--secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--hero-glass-white) !important;
}

.hero-glass__btn--secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--hero-glass-white) !important;
}

/* Indicateurs de confiance */
.hero-glass__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-glass__trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-glass__trust-item svg {
    opacity: 0.8;
}

/* Indicateur de scroll */
.hero-glass__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.hero-glass__scroll-line {
    width: 2px;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent);
    border-radius: 1px;
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% {
        opacity: 0.3;
        transform: scaleY(0.5);
        transform-origin: top;
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* Responsive Tablet */
@media (max-width: 991px) {
    .hero-glass__content {
        justify-content: center;
        padding: 1.5rem;
    }

    .hero-glass__card {
        padding: 2.5rem;
        text-align: center;
        max-width: 520px;
    }

    .hero-glass__tag {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-glass__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-glass__actions {
        justify-content: center;
    }

    .hero-glass__trust {
        justify-content: center;
    }
}

/* Responsive Mobile */
@media (max-width: 576px) {
    .hero-glass {
        min-height: 100svh;
        align-items: flex-end;
        padding-bottom: 5rem;
    }

    .hero-glass__content {
        padding: 1rem;
    }

    .hero-glass__card {
        padding: 1.75rem;
        border-radius: 1.5rem;
    }

    .hero-glass__tag {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 1rem;
    }

    .hero-glass__title {
        margin-bottom: 1rem;
    }

    .hero-glass__subtitle {
        margin-bottom: 1.5rem;
    }

    .hero-glass__actions {
        margin-bottom: 1.75rem;
    }

    .hero-glass__btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
    }

    .hero-glass__trust {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .hero-glass__scroll {
        bottom: 1.5rem;
    }

    .hero-glass__scroll-line {
        height: 35px;
    }
}

/* Mode réduction de mouvement */
@media (prefers-reduced-motion: reduce) {
    .hero-glass__bg-image {
        animation: none;
        transform: scale(1);
    }

    .hero-glass__card {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .hero-glass__tag-dot {
        animation: none;
    }

    .hero-glass__scroll-line {
        animation: none;
        opacity: 0.5;
    }

    .hero-glass__btn:hover {
        transform: none;
    }
}
