/* ==========================================================================
   HEX 2027 - Modern Light Theme & Fluid Animations Stylesheet
   Palette "Évasion Solaire" : Violet #3c1a52, Or Solaire #f39c12, Sable #f7f4ec, Fond #fcfbfe
   ========================================================================== */

:root {
    --hex-purple: #3c1a52;
    --hex-purple-dark: #2a113a;
    --hex-purple-light: #52266f;
    --hex-gold: #f39c12;
    --hex-gold-light: #f5af42;
    --hex-gold-dark: #d68209;
    --hex-sand: #f7f4ec;
    --hex-sand-dark: #eee8d8;
    --hex-bg: #fcfbfe;
    --hex-white: #ffffff;
    --hex-text: #2c1a3b;
    --hex-text-muted: #6b5c77;
    --hex-border: rgba(60, 26, 82, 0.1);
    --hex-shadow-sm: 0 4px 15px rgba(60, 26, 82, 0.05);
    --hex-shadow-md: 0 10px 30px rgba(60, 26, 82, 0.08);
    --hex-shadow-lg: 0 20px 45px rgba(60, 26, 82, 0.12);
    --hex-radius-sm: 0.75rem;
    --hex-radius-md: 1.25rem;
    --hex-radius-lg: 2rem;
    --hex-font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --hex-font-body: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    --hex-font-mono: 'Space Grotesk', monospace;
}

/* Base resets & typography for light pages */
body.hex-light-page {
    background-color: var(--hex-bg);
    color: var(--hex-text);
    font-family: var(--hex-font-body);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Smooth reveal animations */
@keyframes hexFadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hexFloatSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes hexPulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(243, 156, 18, 0); }
}

.hex-animate-fade {
    animation: hexFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hex-animate-delay-1 { animation-delay: 0.15s; }
.hex-animate-delay-2 { animation-delay: 0.3s; }
.hex-animate-delay-3 { animation-delay: 0.45s; }

/* Light Header Navigation Enhancements */
.nav-item-link.active-page {
    color: var(--hex-gold) !important;
    position: relative;
    font-weight: 700;
}
.nav-item-link.active-page::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--hex-gold);
    border-radius: 2px;
}

/* Hero Section (Light & Airy) */
.hex-page-hero {
    position: relative;
    padding: 5rem 1.5rem 4rem 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #fdf9f2 50%, #f7f4ec 100%);
    border-bottom: 1px solid var(--hex-border);
    overflow: hidden;
    text-align: center;
}

.hex-page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(circle, rgba(243, 156, 18, 0.12) 0%, rgba(60, 26, 82, 0.03) 60%, transparent 80%);
    pointer-events: none;
    z-index: 1;
}

.hex-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.1rem;
    background: rgba(243, 156, 18, 0.12);
    border: 1px solid rgba(243, 156, 18, 0.35);
    color: var(--hex-purple);
    font-size: 0.825rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 2rem;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 2;
}

.hex-hero-title {
    font-family: var(--hex-font-heading);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    color: var(--hex-purple);
    line-height: 1.15;
    margin: 0 auto 1.25rem auto;
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hex-hero-title span {
    color: var(--hex-gold);
    display: inline-block;
}

.hex-hero-lead {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--hex-text-muted);
    max-width: 720px;
    margin: 0 auto 2.25rem auto;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* Key Metrics Bar (Light Luxury) */
.hex-metrics-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem auto 0 auto;
    max-width: 1000px;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--hex-border);
    border-radius: var(--hex-radius-md);
    box-shadow: var(--hex-shadow-sm);
    position: relative;
    z-index: 2;
}

.hex-metric-item {
    text-align: center;
    padding: 0 1rem;
}

.hex-metric-num {
    font-family: var(--hex-font-mono);
    font-size: 2rem;
    font-weight: 800;
    color: var(--hex-purple);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.hex-metric-num span {
    color: var(--hex-gold);
}

.hex-metric-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hex-text-muted);
}

/* Filter Pills & Interactive Tabs */
.hex-tabs-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hex-tab-btn {
    padding: 0.7rem 1.4rem;
    background: var(--hex-white);
    border: 1px solid var(--hex-border);
    border-radius: 2rem;
    color: var(--hex-purple);
    font-size: 0.925rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(60, 26, 82, 0.04);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hex-tab-btn:hover {
    border-color: var(--hex-gold);
    color: var(--hex-gold-dark);
    transform: translateY(-2px);
    box-shadow: var(--hex-shadow-sm);
}

.hex-tab-btn.active {
    background: var(--hex-purple);
    color: #ffffff !important;
    border-color: var(--hex-purple);
    box-shadow: 0 6px 18px rgba(60, 26, 82, 0.2);
}

.hex-tab-btn.active .tab-badge {
    background: var(--hex-gold);
    color: var(--hex-purple);
}

.tab-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(60, 26, 82, 0.08);
    border-radius: 1rem;
    transition: all 0.2s ease;
}

/* Search Bar (Clean & Instant) */
.hex-search-box {
    max-width: 480px;
    margin: 0 auto 2.5rem auto;
    position: relative;
}

.hex-search-input {
    width: 100%;
    padding: 0.85rem 1.25rem 0.85rem 3rem;
    background: #ffffff;
    border: 1px solid var(--hex-border);
    border-radius: 2rem;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--hex-text);
    box-shadow: var(--hex-shadow-sm);
    transition: all 0.25s ease;
    outline: none;
}

.hex-search-input:focus {
    border-color: var(--hex-gold);
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.18);
}

.hex-search-icon {
    position: absolute;
    left: 1.15rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--hex-text-muted);
    pointer-events: none;
}

/* Card System (Light & Elevated) */
.hex-card {
    background: var(--hex-white);
    border: 1px solid var(--hex-border);
    border-radius: var(--hex-radius-md);
    padding: 1.75rem;
    box-shadow: var(--hex-shadow-sm);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hex-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hex-shadow-md);
    border-color: rgba(243, 156, 18, 0.35);
}

.hex-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.hex-tag {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    background: rgba(243, 156, 18, 0.12);
    color: var(--hex-gold-dark);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hex-tag.purple {
    background: rgba(60, 26, 82, 0.08);
    color: var(--hex-purple);
}

.hex-card-title {
    font-family: var(--hex-font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--hex-purple);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.hex-card-desc {
    color: var(--hex-text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

/* Button UI Components */
.hex-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--hex-gold);
    color: var(--hex-purple);
    font-weight: 750;
    font-size: 0.925rem;
    padding: 0.8rem 1.6rem;
    border-radius: 2rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.35);
    transition: all 0.25s ease;
}

.hex-btn-primary:hover {
    background: var(--hex-gold-dark);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.45);
}

.hex-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #ffffff;
    color: var(--hex-purple);
    font-weight: 700;
    font-size: 0.925rem;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    text-decoration: none;
    border: 1.5px solid var(--hex-purple);
    cursor: pointer;
    transition: all 0.25s ease;
}

.hex-btn-secondary:hover {
    background: var(--hex-purple);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(60, 26, 82, 0.15);
}

.hex-btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.825rem;
    border-radius: 1.5rem;
}

/* Timeline Layout for Program */
.hex-timeline {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
}

.hex-timeline-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
    position: relative;
    transition: all 0.25s ease;
}

.hex-timeline-time {
    flex: 0 0 140px;
    text-align: right;
    font-family: var(--hex-font-mono);
    font-weight: 700;
    color: var(--hex-gold-dark);
    font-size: 0.95rem;
    padding-top: 0.4rem;
}

.hex-timeline-marker {
    position: relative;
    flex: 0 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hex-timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--hex-gold);
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px var(--hex-purple);
    z-index: 2;
    margin-top: 0.4rem;
}

.hex-timeline-line {
    position: absolute;
    top: 20px;
    bottom: -20px;
    width: 2px;
    background: rgba(60, 26, 82, 0.12);
}

.hex-timeline-content {
    flex-grow: 1;
    background: #ffffff;
    border: 1px solid var(--hex-border);
    border-radius: var(--hex-radius-md);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--hex-shadow-sm);
    transition: all 0.25s ease;
}

.hex-timeline-content:hover {
    border-color: rgba(243, 156, 18, 0.4);
    transform: translateX(4px);
    box-shadow: var(--hex-shadow-md);
}

@media (max-width: 768px) {
    .hex-timeline-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    .hex-timeline-time {
        text-align: left;
        flex: auto;
    }
    .hex-timeline-marker {
        display: none;
    }
}

/* Speakers Modern Card */
.hex-speaker-card {
    background: #ffffff;
    border: 1px solid var(--hex-border);
    border-radius: var(--hex-radius-md);
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--hex-shadow-sm);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.hex-speaker-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hex-shadow-md);
    border-color: rgba(243, 156, 18, 0.4);
}

.hex-speaker-avatar-wrap {
    width: 110px;
    height: 110px;
    margin: 0 auto 1rem auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--hex-gold);
    box-shadow: 0 6px 18px rgba(60, 26, 82, 0.12);
    position: relative;
}

.hex-speaker-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hex-speaker-card:hover .hex-speaker-avatar {
    transform: scale(1.08);
}

.hex-speaker-name {
    font-family: var(--hex-font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--hex-purple);
    margin: 0 0 0.25rem 0;
}

.hex-speaker-role {
    font-size: 0.8rem;
    color: var(--hex-text-muted);
    line-height: 1.4;
    margin-bottom: 0.35rem;
}

.hex-speaker-org {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--hex-gold-dark);
}

/* Modal Popup (Glassmorphism & Smooth Blur) */
.hex-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(42, 17, 58, 0.65);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: hexFadeInUp 0.3s ease;
}

.hex-modal-backdrop.active {
    display: flex;
}

.hex-modal-card {
    background: #ffffff;
    border-radius: var(--hex-radius-md);
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.25rem;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(243, 156, 18, 0.2);
}

.hex-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(60, 26, 82, 0.06);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hex-purple);
    transition: all 0.2s ease;
}

.hex-modal-close:hover {
    background: rgba(60, 26, 82, 0.15);
    transform: rotate(90deg);
}

/* Form Styles inside Modals */
.hex-form-group {
    margin-bottom: 1.25rem;
}

.hex-form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--hex-purple);
    margin-bottom: 0.4rem;
}

.hex-form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d4cddc;
    border-radius: 0.6rem;
    font-family: inherit;
    font-size: 0.95rem;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.hex-form-control:focus {
    border-color: var(--hex-gold);
    box-shadow: 0 0 0 2px rgba(243, 156, 18, 0.2);
}

/* Grids */
.hex-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.hex-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
}

.hex-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

/* Sections */
.hex-section {
    padding: 4.5rem 1.5rem;
    position: relative;
}

.hex-section-sand {
    background-color: var(--hex-sand);
}

.hex-section-white {
    background-color: var(--hex-white);
}

.hex-section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.hex-section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3rem auto;
}

.hex-section-tag {
    color: var(--hex-gold-dark);
    font-weight: 750;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.hex-section-title {
    font-family: var(--hex-font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--hex-purple);
    margin: 0 0 0.85rem 0;
    line-height: 1.2;
}

.hex-section-subtitle {
    color: var(--hex-text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   Separations et Rythme Visuel des Sections (Light Luxury Design)
   ========================================================================== */

.hex-divider-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(243, 156, 18, 0.35) 50%, transparent 100%);
    margin: 0;
    border: none;
}

.hex-title-underline {
    width: 48px;
    height: 3px;
    background: var(--hex-gold);
    border-radius: 2px;
    margin: 0.75rem auto 1.25rem auto;
}

.hex-section-light-warm {
    background: linear-gradient(180deg, #f7f4ec 0%, #fbf9f4 100%);
    border-top: 1px solid rgba(60, 26, 82, 0.07);
    border-bottom: 1px solid rgba(60, 26, 82, 0.07);
    padding: 5.5rem 1.5rem;
    position: relative;
}

.hex-section-light-pure {
    background-color: #ffffff;
    padding: 5.5rem 1.5rem;
    position: relative;
}

.hex-section-partners-light {
    background: linear-gradient(180deg, #faf7f0 0%, #f4eee2 100%);
    border-top: 1px solid rgba(243, 156, 18, 0.25);
    border-bottom: 1px solid rgba(243, 156, 18, 0.2);
    padding: 5.5rem 1.5rem;
    position: relative;
}

/* Card accent light styling */
.hex-card-elevated-white {
    background: #ffffff !important;
    border: 1px solid rgba(60, 26, 82, 0.08) !important;
    border-radius: var(--hex-radius-md) !important;
    box-shadow: 0 10px 30px rgba(60, 26, 82, 0.05) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.hex-card-elevated-white:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 18px 40px rgba(60, 26, 82, 0.1) !important;
    border-color: rgba(243, 156, 18, 0.4) !important;
}

.hex-partner-card-light {
    background: #ffffff;
    border: 1px solid rgba(243, 156, 18, 0.25);
    border-radius: 1.25rem;
    padding: 1.25rem 2rem;
    box-shadow: 0 8px 24px rgba(60, 26, 82, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    height: 90px;
    width: 240px;
}

.hex-partner-card-light:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(243, 156, 18, 0.25);
    border-color: #f39c12;
}
