/* ===================================
   EXAMENS OFFICIELS - NOUVEAU DESIGN
   Design moderne et professionnel
   =================================== */

.exam-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    padding-top: 100px;
}

/* --- HEADER --- */
.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--deep-blue);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.page-header h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--cyan);
    border-radius: 2px;
}

.page-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- GRILLE INTELLIGENTE --- */
.exam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

/* CARTE EXAMEN */
.exam-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.08);
}

.exam-card:hover {
    transform: translateY(-5px);
    border-color: var(--cyan);
    box-shadow: 0 20px 40px -10px rgba(0, 212, 255, 0.15);
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    background: #F1F5F9;
    color: var(--text-muted);
}

.card-badge.premium {
    background: #FFF7ED;
    color: #C2410C;
    border: 1px solid #FFEDD5;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: #F0F9FF;
    color: var(--cyan);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.5rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.card-title {
    font-size: 1.2rem;
    color: var(--deep-blue);
    margin-bottom: 8px;
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.select-btn {
    background: transparent;
    color: var(--deep-blue);
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    font-size: 0.9rem;
    transition: 0.2s;
}

.exam-card:hover .select-btn {
    background: var(--deep-blue);
    color: white;
    border-color: var(--deep-blue);
}

/* --- SECTION FORMULAIRE --- */
.booking-section {
    background: var(--deep-blue);
    border-radius: 30px;
    padding: 50px;
    color: white;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.4);
    margin-bottom: 60px;
    scroll-margin-top: 40px;
}

.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.booking-info h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
}

.booking-info p {
    color: var(--text-on-dark);
    margin-bottom: 30px;
    line-height: 1.6;
}

.steps-list {
    list-style: none;
    padding: 0;
}

.step-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.step-num {
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--cyan);
    flex-shrink: 0;
}

/* GRILLE CHAMPS (2 colonnes) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.dark-input {
    width: 100%;
    padding: 14px;
    background: #1E293B;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: 0.3s;
}

.dark-input:focus {
    border-color: var(--cyan);
    background: rgba(0, 212, 255, 0.05);
}

.dark-input::placeholder {
    color: rgba(255,255,255,0.4);
}

select.dark-input {
    appearance: none;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--cyan);
    color: var(--deep-blue);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

/* --- ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* --- RESPONSIVE OPTIMISÉ POUR MOBILE --- */
@media (max-width: 900px) {
    .exam-container {
        padding-top: 90px;
    }

    .booking-section {
        padding: 30px 20px;
    }

    .booking-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* On cache les étapes sur mobile pour gagner de la place */
    .steps-list {
        display: none;
    }

    .booking-info {
        text-align: center;
    }

    .booking-info h2 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .booking-info p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    /* On garde les 2 colonnes pour les inputs courts même sur mobile */
    .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .dark-input {
        padding: 12px;
        font-size: 0.9rem;
    }
}

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

/* Hamburger menu spacing - aligner avec les autres pages */
@media(max-width: 900px) {
    /* Réajuster le padding-top pour être cohérent avec les autres pages */
    .exam-container {
        padding-top: 80px;
    }
}

/* Footer responsive - liens superposés sur mobile */
@media(max-width: 768px) {
    footer div[style*="margin-bottom"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    footer a[style*="margin"] {
        margin: 0 !important;
        display: block !important;
    }
}
