/**
 * Le Tour de Moi - Home Page Styles
 * Narrative and Expedition sections
 */

/* ==========================================================================
   SECTION 1 — L’AVENTURE (NARRATIVE)
   ========================================================================== */

.adventure-section {
    background: #FFFFFF;
    padding: 140px 0 130px;
}

.adventure-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: clamp(64px, 7vw, 110px);
    align-items: center;
}

.section-eyebrow {
    display: inline-block;
    margin-bottom: 24px;
    color: #C66A1A;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.adventure-content h2 {
    max-width: 760px;
    margin: 0;
    color: #141414;
    font-size: clamp(2.6rem, 3.3vw, 4.25rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
    font-weight: 800;
}

.adventure-lead {
    max-width: 680px;
    margin: 32px 0 0;
    color: #141414;
    font-size: clamp(1.25rem, 1.65vw, 1.65rem);
    line-height: 1.45;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.adventure-text {
    max-width: 650px;
    margin-top: 32px;
}

.adventure-text p {
    margin: 0 0 18px;
    color: rgba(20, 20, 20, 0.68);
    font-size: 1.05rem;
    line-height: 1.8;
}

.adventure-text p:last-child {
    margin-bottom: 0;
}

.adventure-btn {
    margin-top: 40px;
}

.adventure-visual {
    position: relative;
}

.adventure-image {
    position: relative;
    border-radius: 32px;
    box-shadow: 0 12px 48px rgba(20, 20, 20, 0.08);
    overflow: hidden;
    line-height: 0;
}

.adventure-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    aspect-ratio: 4 / 5;
}

/* ==========================================================================
   SECTION 2 — L’EXPÉDITION (IMMERSIF)
   ========================================================================== */

.expedition-section {
    background: #F8F8F6;
    padding: 140px 0;
}

.section-heading--center {
    max-width: 860px;
    margin: 0 auto 72px;
    text-align: center;
}

.section-heading--center h2 {
    margin: 0;
    color: #141414;
    font-size: clamp(2.4rem, 3.6vw, 3.8rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
    font-weight: 800;
}

.section-heading--center p {
    margin: 24px auto 0;
    max-width: 660px;
    color: rgba(20,20,20,0.64);
    font-size: 1.12rem;
    line-height: 1.75;
}

/* --------------------------------------------------------------------------
   LIVE PANEL
   -------------------------------------------------------------------------- */

.expedition-live-panel {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    background: #141914;
    border-radius: 28px;
    overflow: hidden;
    min-height: 480px;
    margin-bottom: 40px;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.12);
}

.live-panel-content {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #FFFFFF;
}

.live-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #C66A1A;
    margin-bottom: 0;
}

.live-update-time {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.pulse {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #C66A1A;
    box-shadow: 0 0 0 rgba(198, 106, 26, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(198, 106, 26, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(198, 106, 26, 0); }
    100% { box-shadow: 0 0 0 0 rgba(198, 106, 26, 0); }
}

.live-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.5rem;
}

.live-location {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.live-chapter {
    font-size: 1rem;
    color: #C66A1A;
    font-weight: 700;
    margin-bottom: 3rem;
}

.live-stats,
.live-stats-v2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 1200px) {
    .live-stats-v2 {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .live-stats-v2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }
}

.live-stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.live-stat-item .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.4);
    font-weight: 700;
}

.live-stat-item .value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.3;
}

.live-panel-visual {
    background: #1A1F1A;
    position: relative;
    overflow: hidden;
}

.home-map-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
    position: relative;
}

/* Couche transparente pour capturer le clic au-dessus de Leaflet */
.home-map-link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1000;
    background: transparent;
}

.home-map-link:hover .home-live-map {
    filter: brightness(1.1);
    transition: filter var(--transition-fast);
}

.home-live-map {
    width: 100%;
    height: 100%;
    min-height: 480px;
}

@media (max-width: 1024px) {
    .home-live-map {
        height: 300px;
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .home-live-map {
        height: 200px;
        min-height: 200px;
    }
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-dot {
    width: 12px;
    height: 12px;
    background: #C66A1A;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 20px #C66A1A;
}

.map-dot::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 2px solid #C66A1A;
    border-radius: 50%;
    animation: map-pulse 2s infinite;
}

@keyframes map-pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* --------------------------------------------------------------------------
   FEATURE GRID (3 COLUMNS)
   -------------------------------------------------------------------------- */

.expedition-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

/* --------------------------------------------------------------------------
   EXPEDITION BANNER
   -------------------------------------------------------------------------- */

.expedition-cta-banner {
    position: relative;
    width: 100%;
    min-height: 360px;
    border-radius: 28px;
    overflow: hidden;
    background-image: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%, transparent 100%), url('/assets/images/home/expedition/expedition-banner.webp');
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    padding: 0 4rem;
}

.expedition-cta-banner .section-eyebrow,
.expedition-cta-banner h2,
.expedition-cta-banner p {
    color: #FFFFFF;
}

.expedition-banner-content {
    max-width: 730px;
    color: #FFFFFF;
}

.expedition-banner-content .section-eyebrow {
    color: #C66A1A;
    margin-bottom: 1rem;
}

.expedition-banner-content h2 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    color: #FFFFFF;
}

.expedition-banner-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

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

@media (max-width: 1024px) {
    .adventure-section {
        padding: 110px 0;
    }

    .adventure-inner {
        gap: 40px;
    }

    .adventure-content h2 {
        font-size: clamp(2.25rem, 4vw, 3rem);
    }

    .expedition-section {
        padding: 110px 0;
    }

    .expedition-live-panel {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .live-panel-content {
        padding: 3rem;
    }

    .live-panel-visual {
        height: 300px;
    }

    .expedition-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .expedition-cta-banner {
        min-height: 320px;
        padding: 3rem;
    }

    .expedition-banner-content h2 {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .adventure-section {
        padding: 60px 0;
    }

    .adventure-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-eyebrow {
        margin-bottom: 12px;
    }

    .adventure-image {
        max-width: 600px;
        margin: 0 auto;
        border-radius: 24px;
    }

    .adventure-content h2 {
        font-size: clamp(2.35rem, 10vw, 3rem);
        line-height: 1.05;
    }

    .adventure-lead {
        font-size: 1.18rem;
        margin-top: 22px;
    }

    .adventure-text {
        margin-top: 22px;
    }

    .adventure-text p {
        font-size: 1rem;
        line-height: 1.75;
        margin-bottom: 1.25rem;
    }

    .adventure-btn {
        margin-top: 30px;
    }

    .expedition-section {
        padding: 60px 0;
    }

    .expedition-cta-banner {
        min-height: 240px;
        padding: 2rem 1.5rem;
        border-radius: 16px;
        background-image: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%), url('/assets/images/home/expedition/expedition-banner.webp');
    }

    .expedition-banner-content h2 {
        font-size: 1.75rem;
    }

    .expedition-banner-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .live-panel-content {
        padding: 2rem 1.25rem;
    }

    .live-badge {
        margin-bottom: 1rem;
    }

    .live-location {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .live-chapter {
        margin-bottom: 1.25rem;
    }

    .live-stats {
        margin-bottom: 1.5rem;
        padding-top: 1.25rem;
    }

    .live-panel-visual {
        height: 200px;
    }

}

@media (max-width: 640px) {
    .expedition-feature-grid {
        grid-template-columns: 1fr;
    }

    .live-stats {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* Neutralisation des animations sur le footer pour respecter la consigne "uniquement partenaires" */
.main-footer.reveal,
.main-footer .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}
