/* =========================================
   1. RESET & VARIABLES (Thème Premium OCOI)
   ========================================= */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* --- NOUVELLE PALETTE --- */
    --primary: #033342;       /* Bleu Pétrole profond */
    --primary-light: #054559; /* Une nuance plus claire pour le survol/footer */
    
    --accent: #9d7230;        /* Or / Bronze */
    --accent-hover: #b8863b;  /* Or un peu plus éclatant au survol */
    
    --bg-body: #F8FAFC;       /* Gris très clair pour le fond de page */
    --bg-surface: #FFFFFF;    /* Blanc pour les cartes */
    
    --text-main: #033342;     /* On utilise le bleu profond pour le texte principal */
    --text-muted: #64748B;    /* Gris neutre pour les descriptions */
    --border: #E2E8F0;
    
    --radius: 4px;
    --font-main: 'Inter', system-ui, sans-serif;
    --font-mono: 'Fira Code', 'Consolas', monospace;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* =========================================
   2. LANGUAGE SELECTOR
   ========================================= */
.language-selector-header {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 0;
    position: relative;
    z-index: 10;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.lang-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.lang-btn.active:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
    background-color: var(--primary);
    color: white;
    padding: 1rem 0 4rem; /* Un peu plus d'espace pour respirer */
    position: relative;
    border-bottom: 4px solid var(--accent); /* Petite touche dorée en bas du header */
    
    /* Motif Grille Subtile */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.title-main-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.ocoi-logo-inline {
    height: 7rem;
    width: auto;
    object-fit: cover;
    border-radius: 50%;
    overflow: hidden;
}

.title-main {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: #FFFFFF;
}

.title-subtitle {
    display: block;
    font-size: 1.25rem;
    color: #cbd5e1; /* Gris clair bleuté */
    font-weight: 400;
}

/* --- Bloc Central Essentials --- */
.hero-essentials {
    margin: 3rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero-info-line {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--accent); /* Texte en OR pour ressortir sur le bleu */
    background: rgba(3, 51, 66, 0.85); /* Fond plus opaque pour plus de contraste */
    border: 2px solid var(--accent); /* Bordure dorée plus visible */
    padding: 1rem 2rem;
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(157, 114, 48, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.separator { 
    color: rgba(255,255,255,0.2); 
}

/* Bouton Principal (si décommenté plus tard) */
.hero-btn {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    font-weight: 600;
    padding: 1rem 3rem;
    border-radius: var(--radius);
    font-size: 1.1rem;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.hero-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* Titre "Deux parcours sont proposés" */
.hero-choices-title {
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: -0.5rem;
    
}

/* --- Navigation Secondaire Détaillée --- */
.hero-secondary-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
    width: 100%;
    max-width: 800px;
}

.btn-secondary-detailed {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    
    background: rgba(3, 51, 66, 0.75); /* Fond plus opaque pour plus de contraste */
    border: 2px solid var(--accent); /* Bordure dorée plus épaisse */
    border-radius: 8px;
    padding: 2rem;
    
    color: #E2E8F0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(157, 114, 48, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.btn-secondary-detailed:hover {
    background: rgba(157, 114, 48, 0.15); /* Légère teinte dorée au survol */
    border-color: var(--accent-hover); /* Bordure Or plus claire */
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(157, 114, 48, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.btn-secondary-detailed:hover .btn-title {
    color: var(--accent); /* Le titre devient doré au survol */
}

.btn-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94A3B8;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.btn-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #F1F5F9;
    margin-bottom: 0.75rem;
    display: block;
    transition: color 0.3s;
    letter-spacing: 0.02em;
}

.btn-time {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.btn-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: #CBD5E1;
    font-weight: 400;
}

.hero-description {
    font-size: 1.1rem;
    color: #ffffff;
    max-width: 600px;
    margin: 0 auto;
    margin-top: 3rem;
    font-style: italic;
    
}

/* =========================================
   4. ANNOUNCEMENT SECTION
   ========================================= */
.announcement {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 3rem 0;
    border-bottom: 4px solid var(--accent);
    position: relative;
}

.announcement-content {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 2px solid var(--accent);
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.announcement-icon {
    font-size: 3rem;
    line-height: 1;
    flex-shrink: 0;
}

.announcement-text {
    flex: 1;
}

.announcement-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.announcement-intro {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.announcement-schedules {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.schedule-item {
    background: var(--bg-body);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid var(--accent);
}

.schedule-badge {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.schedule-time {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.75rem;
    font-family: var(--font-mono);
}

.schedule-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* =========================================
   5. MAIN CONTENT
   ========================================= */

.intro {
    padding: 4rem 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
}

.intro-content {
    max-width: 750px;
    margin: 0 auto;
    padding-left: 2rem;
    border-left: 4px solid var(--accent); /* Ligne verticale dorée */
}

.intro-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.intro-text strong {
    color: var(--text-main);
    font-weight: 600;
}

/* Parcours */
.parcours {
    padding: 5rem 0;
    background-color: var(--bg-body);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    margin-bottom: 3.5rem;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.parcours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.parcours-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-top: 5px solid transparent; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.parcours-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* On garde le vert pour débutant (sémantique) mais on adapte l'expert en OR */
.parcours-beginner { border-top-color: #10B981; }
.parcours-expert { border-top-color: var(--accent); } /* L'expert passe en Or */

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.card-description {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

/* Nouveaux styles de boutons cartes "Gold Outline" */
.card-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
    width: 100%;
    text-align: center;
    border: 1px solid transparent;
}

/* Bouton Débutant : Garde une touche de vert subtile ou passe au thème ? */
/* Option : On harmonise tout en thème Gold/Blue pour faire pro */
.btn-start-beginner {
    background-color: white;
    color: var(--primary);
    border: 1px solid var(--primary);
}
.btn-start-beginner:hover { 
    background-color: var(--primary);
    color: white;
}

/* Bouton Expert : Full Gold */
.btn-start-expert {
    background-color: white;
    color: var(--accent);
    border: 1px solid var(--accent);
}
.btn-start-expert:hover { 
    background-color: var(--accent);
    color: white;
}

/* Details */
.details {
    padding: 4rem 0;
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background-color: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.detail-value {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
}

.event-link {
    color: var(--accent);
    border-bottom: 1px solid transparent;
}
.event-link:hover { border-bottom-color: var(--accent); }

/* Footer */
.footer {
    background-color: var(--primary); /* Footer en bleu profond */
    color: #94A3B8;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.footer-link:hover {
    opacity: 0.8;
}

.footer-logo {
    height: 1.2rem;
    width: auto;
    vertical-align: middle;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.footer-link:hover .footer-logo {
    opacity: 1;
}

.footer strong { 
    background: linear-gradient(to right, #22d3ee, #2dd4bf, #22d3ee);
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 15px;
} /* "Athern" en doré */

/* =========================================
   6. POPUP MODAL
   ========================================= */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 51, 66, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--accent);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.popup-overlay.active .popup-content {
    transform: scale(1) translateY(0);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.popup-close:hover {
    color: var(--primary);
}

.popup-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.popup-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.popup-text {
    font-size: 1rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.popup-schedules {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.popup-schedule-item {
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 6px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.popup-schedule-item strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.popup-schedule-item span {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
    font-family: var(--font-mono);
}

.popup-button {
    width: 100%;
    background-color: var(--accent);
    color: white;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: var(--radius);
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.popup-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(157, 114, 48, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .title-main-wrapper {
        gap: 0.75rem;
    }
    
    .ocoi-logo-inline {
        height: 2.25rem;
        width: 2.25rem;
    }
    
    .title-main { font-size: 2.25rem; }
    
    .title-subtitle {
        font-size: 1rem;
    }
    
    .hero {
        padding: 0rem 0 1rem;
    }
    
    .hero-essentials {
        margin: 2rem 0;
        gap: 1rem;
    }
    
.hero-info-line {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    gap: 0.4rem;
    align-items: center;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    text-align: center;
}
    
    .hero-info-line span {
        display: block;
        width: 100%;
    }
    
    .separator { 
        display: none; 
    }
    
    .hero-secondary-buttons {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .btn-secondary-detailed {
        padding: 1.5rem;
    }
    
    .btn-title {
        font-size: 1.1rem;
    }
    
    .btn-desc {
        font-size: 0.95rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-top: 2rem;
        padding: 0 1rem;
    }
    
    .announcement {
        padding: 2rem 0;
    }
    
    .announcement-content {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .announcement-icon {
        font-size: 2rem;
    }
    
    .announcement-title {
        font-size: 1.25rem;
    }
    
    .announcement-intro {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .announcement-schedules {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .schedule-item {
        padding: 1.25rem;
    }
    
    .intro {
        padding: 3rem 0;
    }
    
    .intro-content { 
        border-left: none; 
        padding-left: 0; 
    }
    
    .intro-text {
        font-size: 1rem;
    }
    
    .language-selector-header {
        padding: 0.75rem 0;
    }
    
    .lang-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .btn-time {
        font-size: 0.9rem;
    }
    
    .popup-content {
        padding: 1.5rem;
        max-width: 95%;
    }
    
    .popup-title {
        font-size: 1.25rem;
    }
    
    .popup-text {
        font-size: 0.95rem;
    }
    
    .popup-icon {
        font-size: 2.5rem;
    }
}