
:root {
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --light-color: #f8f9fa;
    --dark-color: #2c3e50;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Conteneurs internes spécifiques à la page Expression Orale.
   On NE touche PAS à .header global (navbar) ni à .site-footer (footer global). */
#eo-consignes.container,
#eo-detail-root.container {
    max-width: 920px;
    margin: 0 auto;
    padding: 20px clamp(1rem, 4vw, 1.75rem);
    box-sizing: border-box;
    width: 100%;
}

/* En-tête épreuve / consignes : bloc foncé centré (évite texte blanc sur fond clair via section h1) */
#eo-consignes > header.eo-exam-page-header,
#eo-detail-root > header.eo-exam-page-header {
    background: var(--tcf-secondary, #141622);
    color: var(--tcf-text-on-dark, #ffffff);
    padding: 1.15rem 1.1rem;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 1.15rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
}

#eo-consignes > header.eo-exam-page-header::before,
#eo-detail-root > header.eo-exam-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
    pointer-events: none;
}

#eo-consignes > header.eo-exam-page-header .header-content,
#eo-detail-root > header.eo-exam-page-header .header-content {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

#eo-consignes > header.eo-exam-page-header h1,
#eo-detail-root > header.eo-exam-page-header h1 {
    font-size: clamp(1.15rem, 2.4vw, 1.55rem);
    font-weight: 750;
    margin: 0 0 0.45rem;
    padding-bottom: 0;
    text-align: center;
    text-transform: none;
    letter-spacing: -0.01em;
    color: #ffffff !important;
    text-shadow: none;
    position: relative;
    line-height: 1.25;
}

#eo-consignes > header.eo-exam-page-header h1::before,
#eo-detail-root > header.eo-exam-page-header h1::before {
    display: none;
}

#eo-consignes > header.eo-exam-page-header h1::after,
#eo-detail-root > header.eo-exam-page-header h1::after {
    content: '';
    display: block;
    width: 2.4rem;
    height: 3px;
    margin: 0.55rem auto 0;
    border-radius: 999px;
    background: #d30d0d;
}

#eo-consignes > header.eo-exam-page-header .subtitle,
#eo-detail-root > header.eo-exam-page-header .subtitle,
#eo-consignes > header.eo-exam-page-header p,
#eo-detail-root > header.eo-exam-page-header p {
    font-size: clamp(0.8rem, 1.6vw, 0.92rem);
    line-height: 1.4;
    max-width: 36rem;
    margin: 0 auto;
    text-align: center;
    color: rgba(255, 255, 255, 0.82) !important;
    opacity: 1;
    position: relative;
}

#eo-detail-root > header.eo-exam-page-header h1 i,
#eo-consignes > header.eo-exam-page-header h1 i {
    margin-right: 0.35em;
    vertical-align: middle;
}

/* Parties = accordéons type « combinaison » (rouge comme EE) */
#eo-detail-container .combinaison,
#eo-consignes-container .combinaison {
    margin-bottom: 0.75rem;
}

#eo-detail-container .combinaison-header,
#eo-consignes-container .combinaison-header,
#eo-detail-container .combinaison-header.eo-part-bar {
    background-color: #9c0a0a !important;
    background: #9c0a0a !important;
    color: #fff !important;
    gap: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.35rem;
    min-height: 0;
}

#eo-detail-container .combinaison-header h2,
#eo-consignes-container .combinaison-header h2 {
    margin: 0;
    font-size: 1.35rem;
    flex-shrink: 0;
    color: #fff !important;
    line-height: 1.25;
}

#eo-detail-container .combinaison-header .eo-part-meta,
#eo-consignes-container .combinaison-header .eo-part-meta,
#eo-detail-container .eo-part-bar .eo-part-meta {
    font-size: 0.92rem;
    font-weight: 600;
    opacity: 0.95;
    margin: 0;
    white-space: nowrap;
    color: #fff !important;
}

#eo-detail-container .eo-part-bar .tcf-combo-bar__right {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
    margin-left: auto;
}

#eo-detail-container .eo-part-bar .icon {
    color: #fff;
    font-size: 0.85rem;
    line-height: 1;
}

#eo-detail-container .eo-prompt .enonce-label,
#eo-detail-container .eo-subject-card .enonce-label {
    color: var(--main-color);
    font-size: 1rem;
    margin: 0 0 0.5rem;
    font-weight: 700;
}

#eo-detail-container .eo-role-label {
    font-size: 0.95rem;
    color: var(--tcf-text-muted, #6c757d);
    margin: -0.5rem 0 0.75rem;
    font-style: italic;
}

#eo-detail-container .eo-correction-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1rem;
    padding: 0.65rem 1.25rem;
    border: 2px solid var(--main-color);
    border-radius: 50px;
    background: #fff;
    color: var(--main-color);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

#eo-detail-container .eo-correction-toggle-btn:hover,
#eo-detail-container .eo-correction-toggle-btn[aria-expanded="true"] {
    background: var(--main-color);
    color: #fff;
}

#eo-detail-container .eo-correction-panel {
    margin-top: 1rem;
}

#eo-detail-container .eo-correction-body {
    white-space: normal;
    line-height: 1.45;
}

.attention-box {
    background-color: var(--warning-color);
    color: white;
    padding: 18px;
    border-radius: 8px;
    margin: 25px 0;
    text-align: center;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-weight: 500;
}

.attention-box i {
    font-size: 1.8rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 40px 0 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--main-color);
    color: var(--text-color);
}

.section-title i {
    font-size: 2rem;
    color: var(--main-color);
    background: rgba(211, 13, 13, 0.1);
    padding: 10px;
    border-radius: 50%;
}

/* Expression orale : un sujet par ligne (comme les tâches EE) */
#eo-detail-container .task-container,
.task-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    margin-bottom: 1.5rem;
}

#eo-detail-container .task-card,
#eo-detail-container .task-card.eo-subject-card,
.task-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.task-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 5px solid var(--main-color);
    position: relative;
    overflow: hidden;
}

.task-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: var(--main-color);
    opacity: 0.05;
    border-radius: 50%;
    transform: translate(30%, 30%);
}

.task-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.task-card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-color);
    margin-bottom: 18px;
    font-size: 1.45rem;
}

.task-card h3 i {
    color: var(--main-color);
    font-size: 1.8rem;
}

.task-card p,
.task-card div {
    margin-bottom: 15px;
    line-height: 1.7;
    font-size: 1.12rem;
}

.task-card .card-number {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--main-color);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom-left-radius: 12px;
    font-weight: bold;
}

.subject-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.subject-item {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 5px solid var(--main-color);
    position: relative;
}

.subject-item:hover {
    transform: translateX(8px);
}

.subject-item h4 {
    color: var(--text-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
}

.subject-item h4 i {
    color: var(--main-color);
}

.badge {
    display: inline-block;
    background-color: var(--main-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-right: 12px;
    font-weight: 600;
}

#eo-consignes > footer,
#eo-detail-root > footer,
#eo-detail-container > footer {
    text-align: center;
    margin-top: 60px;
    padding: 30px;
    background: linear-gradient(135deg, var(--text-color), #000);
    color: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

#eo-consignes > footer p,
#eo-detail-root > footer p,
#eo-detail-container > footer p {
    opacity: 0.9;
}

/* Nouveau style pour les boutons de navigation */
.task-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.task-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    background: white;
    border: 2px solid var(--main-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--main-color);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.task-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--main-color);
    transition: var(--transition);
    z-index: -1;
}

.task-btn:hover::before {
    width: 100%;
}

.task-btn:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(211, 13, 13, 0.3);
}

.task-btn.active {
    background: var(--main-color);
    color: white;
}

.task-btn i {
    font-size: 1.4rem;
}

/* Animation pour le changement de section */
.task-section {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.task-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
    .subject-list {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    
    #eo-consignes > header.eo-exam-page-header,
    #eo-detail-root > header.eo-exam-page-header {
        padding: 0.75rem 0.8rem;
        margin-bottom: 0.85rem;
        border-radius: 10px;
    }

    #eo-consignes > header.eo-exam-page-header h1,
    #eo-detail-root > header.eo-exam-page-header h1 {
        font-size: 1.05rem;
        margin-bottom: 0.3rem;
    }

    #eo-consignes > header.eo-exam-page-header h1::after,
    #eo-detail-root > header.eo-exam-page-header h1::after {
        width: 1.85rem;
        height: 2.5px;
        margin-top: 0.4rem;
    }

    #eo-consignes > header.eo-exam-page-header .subtitle,
    #eo-detail-root > header.eo-exam-page-header .subtitle {
        font-size: 0.78rem;
    }
    
    .section-title {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .task-navigation {
        flex-direction: column;
        align-items: center;
    }
    
    .task-btn {
        width: 100%;
        max-width: 300px;
    }

    .task-card {
        padding: 16px !important;
    }
}
