/**
 * Front Page Stylesheet
 * Normandie Séminaire Theme
 *
 * @package NormandieSeminaire
 * @since 1.0.0
 */

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Gradient fallback - visible while video loads or if error */
.hero-fallback-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        #1a1a2e 0%,
        #2d2d4a 30%,
        #4a2c4a 60%,
        #8B1538 100%
    );
    z-index: 0;
}

/* Add subtle animation to gradient for visual interest */
.hero--video-error .hero-fallback-gradient,
.hero--video-paused .hero-fallback-gradient {
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* Video becomes visible once loaded */
.hero--video-loaded .hero-video {
    opacity: 1;
}

/* Video avec blur pour anonymisation des visages */
.hero-video--blurred {
    filter: blur(2px);
    transform: scale(1.05); /* Compense le blur sur les bords */
}

/* Hide video if error */
.hero--video-error .hero-video {
    display: none;
}

.hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--color-fond-sombre);
}

/* Show image if video fails to load */
.hero-video:not([src]),
.hero-video[src=""] {
    display: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        /* Vignette effect from edges */
        radial-gradient(ellipse at center, transparent 0%, rgba(26, 26, 46, 0.3) 100%),
        /* Main gradient for branding */
        linear-gradient(
            135deg,
            rgba(139, 21, 56, 0.55) 0%,
            rgba(139, 21, 56, 0.3) 35%,
            rgba(26, 26, 46, 0.5) 70%,
            rgba(26, 26, 46, 0.7) 100%
        ),
        /* Bottom gradient for text readability */
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.4) 0%,
            transparent 50%
        );
}

/* When video has error, make overlay slightly lighter since gradient is visible */
.hero--video-error .hero-overlay {
    background:
        radial-gradient(ellipse at center, transparent 0%, rgba(26, 26, 46, 0.2) 100%),
        linear-gradient(
            135deg,
            rgba(139, 21, 56, 0.3) 0%,
            rgba(139, 21, 56, 0.15) 35%,
            rgba(26, 26, 46, 0.3) 70%,
            rgba(26, 26, 46, 0.4) 100%
        );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-20) 0;
}

.hero-text {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--color-blanc);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: var(--text-5xl);
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: var(--text-6xl);
    }
}

.hero-title--accent {
    color: var(--color-or);
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: var(--text-xl);
    }
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    justify-content: center;
    margin-bottom: var(--space-10);
}

@media (min-width: 640px) {
    .hero-cta-group {
        flex-direction: row;
    }
}

.hero-proof {
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-proof__label {
    display: block;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-3);
}

.hero-proof__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.hero-proof__logos .client-name {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-blanc);
}

.hero-proof__logos .separator {
    color: var(--color-or);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
}

.scroll-indicator__text {
    display: block;
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-2);
}

.scroll-indicator__arrow {
    animation: scrollIndicator 2s ease-in-out infinite;
}

.scroll-indicator__arrow .icon {
    width: 24px;
    height: 24px;
    color: var(--color-or);
}

/* ==========================================================================
   WHY NORMANDIE SECTION
   ========================================================================== */

.why-normandie-section {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/texture-lin.png');
    background-size: 200px;
    opacity: 0.03;
}

.why-normandie-section .container {
    position: relative;
    z-index: 1;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
   PROBLEM SECTION
   ========================================================================== */

.problem-section {
    background-color: var(--color-gris-100);
}

.problem-section .section-header h2 {
    color: var(--color-rouge-normand);
}

.anti-patterns {
    max-width: 1000px;
    margin: 0 auto;
}

.problem-transition {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.transition-text {
    font-family: var(--font-accent);
    font-size: var(--text-2xl);
    font-style: italic;
    color: var(--color-rouge-normand);
    line-height: var(--leading-relaxed);
}

/* ==========================================================================
   COMPARISON SECTION
   ========================================================================== */

.comparison-section .container {
    max-width: 1100px;
}

.comparison-grid {
    margin-top: var(--space-12);
}

/* ==========================================================================
   FORMATS SECTION
   ========================================================================== */

.formats-section {
    background-color: var(--color-blanc-casse);
}

.formats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .formats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .formats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==========================================================================
   METHOD SECTION
   ========================================================================== */

.method-section {
    position: relative;
    overflow: hidden;
}

.method-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        var(--color-fond-sombre) 0%,
        rgba(200, 16, 46, 0.1) 50%,
        var(--color-fond-sombre) 100%
    );
    pointer-events: none;
}

.method-section .container {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   FACILITATOR SECTION
   ========================================================================== */

.facilitator-section {
    background-color: var(--color-blanc);
}

/* ==========================================================================
   SOCIAL PROOF SECTION
   ========================================================================== */

.social-proof-section {
    position: relative;
}

.social-proof-section .container {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   FORMATION SECTION
   ========================================================================== */

.formation-section {
    background: linear-gradient(
        135deg,
        var(--color-bleu-insuffle) 0%,
        var(--color-bleu-insuffle-dark) 100%
    );
}

/* ==========================================================================
   CTA FINAL SECTION
   ========================================================================== */

.cta-final-section {
    background: linear-gradient(
        135deg,
        var(--color-rouge-normand) 0%,
        var(--color-rouge-normand-dark) 100%
    );
}

.cta-final-section .container {
    max-width: 800px;
}

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

@media (max-width: 767px) {
    .hero-section {
        min-height: calc(100vh - 60px);
    }

    .hero-content {
        padding: var(--space-12) 0;
    }

    .hero-cta-group .btn {
        width: 100%;
    }

    .scroll-indicator {
        display: none;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .hero-section {
        min-height: auto;
        padding: var(--space-8) 0;
    }

    .hero-background,
    .scroll-indicator,
    .parallax-bg,
    .method-gradient {
        display: none;
    }

    .hero-title,
    .hero-subtitle {
        color: var(--color-gris-900);
    }

    .section-dark,
    .section-rouge,
    .section-bleu {
        background: var(--color-blanc);
        color: var(--color-gris-900);
    }

    .section-dark h2,
    .section-dark h3,
    .section-rouge h2,
    .section-rouge h3,
    .section-bleu h2,
    .section-bleu h3 {
        color: var(--color-gris-900);
    }
}

/* ==========================================================================
   DESTINATIONS SECTION
   ========================================================================== */

.destinations-section {
    background: var(--color-gris-50);
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-12);
}

@media (max-width: 991px) {
    .destinations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .destinations-grid {
        grid-template-columns: 1fr;
    }
}

.destination-card {
    display: block;
    padding: var(--space-8);
    background: var(--color-blanc);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid var(--color-gris-200);
}

.destination-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--color-rouge-normand);
}

.destination-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-rouge-normand), #a01d44);
    border-radius: 12px;
    margin-bottom: var(--space-4);
}

.destination-card__icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-blanc);
}

.destination-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-gris-900);
    margin-bottom: var(--space-2);
}

.destination-card__text {
    font-size: 0.9375rem;
    color: var(--color-gris-600);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.destination-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-rouge-normand);
    transition: gap 0.3s ease;
}

.destination-card:hover .destination-card__link {
    gap: var(--space-3);
}

.destination-card__link svg {
    width: 16px;
    height: 16px;
}

/* Destinations links */
.destinations-links {
    margin-top: var(--space-10);
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-gris-200);
    text-align: center;
}

.destinations-links__label {
    font-size: 0.875rem;
    color: var(--color-gris-500);
    margin-bottom: var(--space-4);
}

.destinations-links__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2) var(--space-6);
}

.destinations-links__list a {
    font-size: 0.9375rem;
    color: var(--color-gris-700);
    text-decoration: none;
    transition: color 0.3s ease;
}

.destinations-links__list a:hover {
    color: var(--color-rouge-normand);
    text-decoration: underline;
}
