/* ============================================================
   STYLES GÉNÉRAUX
   ============================================================ */
:root {
    --primary-color: #00796b;
    --primary-dark: #004d40;
    --bg-color: #f5f7fa;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --text-color: #1a2a3a;
    --font-family: 'Roboto', sans-serif;
    --card-radius: 16px;
    --card-padding: 24px 20px;
    --transition: all 0.2s ease;
    --page-width: 85%;
    --page-max-width: 1400px;
    --page-padding: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    font-family: var(--font-family);
    background: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================================
   CONTENEUR PRINCIPAL
   ============================================================ */
.app-container {
    width: var(--page-width);
    max-width: var(--page-max-width);
    margin: 0 auto;
    padding: 16px var(--page-padding);
    flex: 1;
}

/* ============================================================
   CARTES
   ============================================================ */
.card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    padding: var(--card-padding);
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

/* ============================================================
   BARRE DE SÉPARATION
   ============================================================ */
.separator-wrapper {
    padding: 10px 0;
    width: var(--page-width);
    max-width: var(--page-max-width);
    margin: 0 auto;
    padding-left: var(--page-padding);
    padding-right: var(--page-padding);
}

.separator-line {
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* ============================================================
   SECTION PRÉSENTATION
   ============================================================ */
.main-title {
    color: var(--primary-color);
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 20px;
    color: var(--text-color);
    font-weight: 500;
    text-align: center;
    margin-top: 4px;
}

.intro {
    background-color: #e6f7f5;
    border-radius: 12px;
    padding: 16px;
    font-size: 14px;
    line-height: 1.6;
    text-align: justify;
}

.intro strong {
    color: var(--primary-color);
}

.intro p {
    margin-bottom: 6px;
}

.intro p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   BOUTON "QUI SOMMES-NOUS"
   ============================================================ */
.link-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.link-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    font-weight: 500;
    font-size: 14px;
    width: auto;
    white-space: nowrap;
}

.link-button:hover {
    background: #e6f7f5;
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    transition: var(--transition);
    flex-shrink: 0;
}

.link-button:hover .link-arrow {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 121, 107, 0.35);
}

/* ============================================================
   SECTION QUIZ
   ============================================================ */
.date-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.date-nav-btn {
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.date-nav-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
}

.date-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.date-display {
    font-weight: 600;
    font-size: 17px;
    color: var(--primary-color);
    min-width: 180px;
    text-align: center;
}

.today-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 9px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s;
}

.today-btn:hover {
    background: var(--primary-dark);
}

.mini-calendar {
    background: #f8fafc;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 20px;
    border: 1px solid #d1d5db;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.calendar-month-btn {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: #475569;
}

.calendar-month-btn:hover:not(:disabled) {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.calendar-month-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #f1f5f9;
}

.calendar-month-title {
    font-weight: 700;
    font-size: 15px;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    margin-bottom: 8px;
}

.calendar-weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    padding: 4px 0;
    text-transform: uppercase;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.15s;
    border: 2px solid transparent;
    color: #475569;
    background: white;
    width: 100%;
    max-width: 38px;
    margin: 0 auto;
}

.calendar-day:hover:not(.empty):not(.disabled) {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #1e293b;
}

.calendar-day.empty {
    cursor: default;
    background: transparent;
}

.calendar-day.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #f1f5f9;
    color: #94a3b8;
}

.calendar-day.today {
    border-color: var(--primary-color);
    background: #f0fdf4;
    font-weight: 600;
    color: var(--primary-color);
}

.calendar-day.selected {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    border-color: var(--primary-dark);
    box-shadow: 0 2px 4px rgba(0, 121, 107, 0.3);
}

.calendar-day.has-questions {
    position: relative;
}

.calendar-day.has-questions::after {
    content: '';
    position: absolute;
    bottom: 3px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary-color);
}

.calendar-day.selected.has-questions::after {
    background: white;
}

.score-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    padding: 12px 20px;
    border-radius: 40px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.score-label {
    font-weight: 500;
    font-size: 15px;
}

.score-value {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 18px;
}

.questions-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 16px;
    color: #64748b;
    font-weight: 500;
}

.questions-indicator .current {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 18px;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 10px;
}

.carousel-container {
    flex: 1;
    overflow: hidden;
    border-radius: 12px;
    min-width: 0;
    display: flex;
    align-items: stretch;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    align-items: stretch;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
    padding: 0 2px;
    display: flex;
    align-items: stretch;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.carousel-arrow {
    background: white;
    border: 2px solid #cbd5e1;
    color: #475569;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    align-self: center;
}

.carousel-arrow:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 6px rgba(0, 121, 107, 0.3);
}

.carousel-arrow:disabled {
    opacity: 0.2;
    cursor: not-allowed;
    border-color: var(--border-color);
    color: #cbd5e1;
    box-shadow: none;
}

.carousel-dots-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 6px 0;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    padding: 0;
    outline: none;
}

.carousel-dot:hover {
    background: #94a3b8;
    transform: scale(1.2);
}

.carousel-dot.active {
    background: var(--primary-color);
    width: 32px;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0, 121, 107, 0.4);
}

.carousel-dot.answered-correct {
    background: #4ade80;
}

.carousel-dot.answered-wrong {
    background: #f87171;
}

.question-block {
    background: white;
    border-radius: 16px;
    padding: 26px;
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: border-color 0.3s;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    word-wrap: break-word;
    overflow-wrap: break-word;
    height: auto;
    min-height: auto;
}

.question-block.answered {
    border-color: var(--primary-color);
}

.question-content {
    flex: 0 1 auto;
    overflow-y: visible;
    overflow-x: hidden;
    padding-right: 6px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.question-number {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    text-align: center;
    line-height: 36px;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.question-text {
    font-weight: 600;
    font-size: 19px;
    margin-bottom: 18px;
    color: #0b2b3b;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
    max-width: 100%;
}

.qcm-option {
    background: #f8fafc;
    padding: 14px 18px;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    font-weight: 500;
    user-select: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.5;
    max-width: 100%;
}

.qcm-option:hover:not(.disabled-option) {
    border-color: var(--primary-color);
    background: #f0f9f7;
}

.qcm-option.selected-qcm {
    border-color: var(--primary-color) !important;
    background: #b2dfdb !important;
    font-weight: 700;
}

.qcm-option.correct-qcm {
    border-color: #2e7d32 !important;
    background: #c8e6c9 !important;
    font-weight: 700;
}

.qcm-option.wrong-qcm {
    border-color: #c62828 !important;
    background: #ffcdd2 !important;
    font-weight: 700;
}

.qcm-option.disabled-option {
    cursor: default;
    opacity: 0.8;
}

.vf-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8fafc;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 8px;
    border: 1px solid var(--border-color);
    gap: 10px;
    max-width: 100%;
}

.vf-label {
    font-weight: 500;
    font-size: 16px;
    width: 100%;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.5;
    max-width: 100%;
}

.vf-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.vf-btn {
    background: #f1f5f9;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    padding: 9px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: var(--transition);
    min-width: 80px;
    text-align: center;
    user-select: none;
    flex-shrink: 0;
}

.vf-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    background: #e6f7f5;
}

.vf-btn:disabled {
    cursor: default;
    opacity: 0.8;
}

.vf-btn.selected-true {
    background: var(--primary-color);
    border-color: var(--primary-dark);
    color: white;
}

.vf-btn.selected-false {
    background: #c62828;
    border-color: #b71c1c;
    color: white;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    flex-shrink: 0;
    border-top: 1px solid var(--border-color);
    justify-content: center;
    align-items: center;
}

.btn {
    background: #e2e8f0;
    border: none;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-group .carousel-arrow-inline {
    display: none;
}

.feedback-box {
    background: #f8fafc;
    border-radius: 10px;
    padding: 16px 20px;
    margin-top: 14px;
    border-left: 5px solid var(--primary-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex-shrink: 0;
    width: 100%;
    border-top: 1px solid var(--border-color);
    max-width: 100%;
}

.feedback-correct {
    border-left-color: #2e7d32;
    background: #f0fdf4;
}

.feedback-wrong {
    border-left-color: #c62828;
    background: #fef2f2;
}

.feedback-box .feedback-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 17px;
    font-weight: 600;
}

.feedback-box .feedback-header .icon {
    font-size: 20px;
}

.feedback-box .explanation {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    margin: 0 auto;
    padding-left: 4px;
    text-align: justify;
    hyphens: auto;
}

.no-questions {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.no-questions-icon {
    font-size: 52px;
    margin-bottom: 14px;
}

.no-questions p {
    font-size: 18px;
}

.no-questions .sub {
    font-size: 16px;
    color: #94a3b8;
    margin-top: 10px;
}

/* ============================================================
   SECTION ACTUALITÉS
   ============================================================ */
.epi-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 6px;
}

.epi-carousel-container {
    flex: 1;
    overflow: hidden;
    border-radius: 12px;
    min-width: 0;
    display: flex;
    align-items: stretch;
    background: #f8fafc;
    border: 1px solid var(--border-color);
}

.epi-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    align-items: stretch;
}

.epi-carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    cursor: pointer;
    background: #ffffff;
    border-radius: 8px;
}

.epi-carousel-slide img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s;
    user-select: none;
    -webkit-user-drag: none;
}

.epi-carousel-slide img:hover {
    transform: scale(1.005);
}

.epi-carousel-arrow {
    background: white;
    border: 2px solid #cbd5e1;
    color: #475569;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    align-self: center;
}

.epi-carousel-arrow:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 6px rgba(0, 121, 107, 0.3);
}

.epi-carousel-arrow:disabled {
    opacity: 0.2;
    cursor: not-allowed;
    border-color: var(--border-color);
    color: #cbd5e1;
    box-shadow: none;
}

.epi-dots-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 4px 0;
}

.epi-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    padding: 0;
    outline: none;
}

.epi-dot:hover {
    background: #94a3b8;
    transform: scale(1.2);
}

.epi-dot.active {
    background: var(--primary-color);
    width: 32px;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0, 121, 107, 0.4);
}

.epi-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 15px;
    color: #64748b;
    font-weight: 500;
    flex-wrap: wrap;
}

.epi-indicator .current {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 17px;
}

.epi-autoplay-toggle {
    background: white;
    border: 2px solid #cbd5e1;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 13px;
    cursor: pointer;
    color: #475569;
    font-weight: 600;
    transition: var(--transition);
    margin-left: 6px;
}

.epi-autoplay-toggle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f0f9f7;
}

.epi-autoplay-toggle.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.download-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 13px;
    color: #94a3b8;
}

.download-hint svg {
    width: 18px;
    height: 18px;
    fill: #94a3b8;
}

.no-slides {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.no-slides-icon {
    font-size: 52px;
    margin-bottom: 14px;
}

.no-slides p {
    font-size: 18px;
}

/* ============================================================
   SECTION PUBLICATIONS
   ============================================================ */
.page-title {
    color: var(--primary-color);
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4px;
    word-wrap: break-word;
}

.pub-subtitle {
    font-size: 18px;
    color: var(--text-color);
    font-weight: 500;
    text-align: center;
    margin-top: 4px;
    word-wrap: break-word;
}

.content-section {
    margin-bottom: 20px;
    background: #fff;
    border-left: 4px solid var(--primary-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    border-left-width: 6px;
}

.content-section h4 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 10px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-color);
}

.content-section ul {
    list-style: none;
    padding-left: 0;
}

.content-section li {
    padding: 6px 0;
    border-bottom: 1px solid #f0f4f8;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}

.content-section li:last-child {
    border-bottom: none;
}

.content-section li .rec-text {
    flex: 1;
    min-width: 200px;
    text-align: justify;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.content-section li .download-icon {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 50%;
    background: transparent;
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    margin-left: 8px;
    flex-shrink: 0;
}

.content-section li .download-icon:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 121, 107, 0.35);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: var(--bg-color);
    padding: 20px;
    margin-top: auto;
    width: 100%;
}

.footer-wrapper {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #edf2f7;
    padding: 20px 24px;
    width: var(--page-width);
    max-width: var(--page-max-width);
    margin: 0 auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-col {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-col p {
    margin: 0;
    color: #6b7a8f;
    font-size: 14px;
}

footer nav ul {
    list-style: none;
    display: flex;
    gap: 16px;
    margin: 0;
    padding: 0;
}

footer nav ul li a {
    color: #6b7a8f;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

footer nav ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: transparent;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.social-links a.twitter svg { fill: #000000; }
.social-links a.twitter:hover { transform: scale(1.15); }
.social-links a.bluesky svg { fill: #1185fe; }
.social-links a.bluesky:hover { transform: scale(1.15); }
.social-links a.linkedin svg { fill: #0a66c2; }
.social-links a.linkedin:hover { transform: scale(1.15); }
.social-links a.instagram svg { fill: url(#instagram-gradient); }
.social-links a.instagram:hover { transform: scale(1.15); }
.social-links a.youtube svg { fill: #ff0000; }
.social-links a.youtube:hover { transform: scale(1.15); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal {
    background: white;
    border-radius: 24px;
    padding: 28px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.2);
    text-align: center;
    border-top: 5px solid var(--primary-color);
}

.modal h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 18px;
}

.modal p {
    margin: 14px 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-color);
}

.modal hr {
    margin: 18px 0;
    border: none;
    border-top: 1px solid var(--border-color);
}

.close-modal-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 18px;
}

.close-modal-btn:hover {
    background-color: var(--primary-dark);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Grands écrans (PC) */
@media (min-width: 1025px) {
    :root {
        --page-width: 85%;
        --page-padding: 20px;
    }
}

/* Tablettes */
@media (min-width: 769px) and (max-width: 1024px) {
    :root {
        --page-width: 92%;
        --page-padding: 24px;
        --card-padding: 20px 18px;
    }
}

/* Mobiles */
@media (max-width: 768px) {
    :root {
        --page-width: 100%;
        --page-padding: 18px;
        --card-padding: 16px 14px;
        --card-radius: 12px;
    }

    body {
        font-size: 17px;
    }

    .app-container {
        padding: 12px var(--page-padding);
    }

    .separator-wrapper {
        padding-left: var(--page-padding);
        padding-right: var(--page-padding);
    }

    .main-title {
        font-size: 32px;
    }

    .subtitle {
        font-size: 17px;
    }

    .intro {
        font-size: 13px;
        padding: 14px;
    }

    /* Quiz responsive */
    .carousel-arrow {
        display: none !important;
    }

    .carousel-wrapper {
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .carousel-container {
        border-radius: 8px !important;
        overflow: hidden !important;
    }

    .carousel-slide {
        padding: 0 !important;
    }

    .question-block {
        padding: 18px !important;
        border-radius: 12px !important;
    }

    .question-text {
        font-size: 18px !important;
        hyphens: auto !important;
    }

    .qcm-option {
        padding: 12px 16px !important;
        font-size: 16px !important;
        border-radius: 8px !important;
        white-space: normal !important;
    }

    .vf-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 12px 14px !important;
        gap: 10px !important;
    }

    .vf-label {
        font-size: 16px !important;
        width: 100% !important;
    }

    .vf-buttons {
        width: 100% !important;
        justify-content: center !important;
        gap: 10px !important;
    }

    .vf-btn {
        padding: 8px 14px !important;
        font-size: 15px !important;
        min-width: 70px !important;
        flex: 1 !important;
        max-width: 130px !important;
    }

    .btn-group {
        padding-top: 12px !important;
        margin-top: 12px !important;
        gap: 14px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    .btn-group .btn {
        min-width: 130px !important;
        font-size: 16px !important;
        padding: 10px 20px !important;
    }

    .btn-group .carousel-arrow-inline {
        display: inline-flex !important;
        width: 36px;
        height: 36px;
        font-size: 17px;
        border-radius: 50%;
        border: 2px solid #cbd5e1;
        background: white;
        color: #475569;
        font-weight: 700;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: var(--transition);
        flex-shrink: 0;
        font-family: inherit;
    }

    .btn-group .carousel-arrow-inline:hover:not(:disabled) {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
        box-shadow: 0 2px 6px rgba(0, 121, 107, 0.3);
    }

    .btn-group .carousel-arrow-inline:disabled {
        opacity: 0.2;
        cursor: not-allowed;
        border-color: var(--border-color);
        color: #cbd5e1;
        box-shadow: none;
    }

    .feedback-box {
        padding: 14px 16px !important;
        border-radius: 8px !important;
    }

    .feedback-box .explanation {
        font-size: 16px !important;
        padding-left: 0 !important;
        text-align: justify !important;
        hyphens: auto !important;
    }

    .carousel-dots-container {
        gap: 10px !important;
        margin-top: 12px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    .carousel-dot {
        width: 10px !important;
        height: 10px !important;
        min-width: 10px !important;
    }

    .carousel-dot.active {
        width: 24px !important;
        min-width: 24px !important;
    }

    .score-bar {
        padding: 8px 14px !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        justify-content: center !important;
    }

    .score-label {
        font-size: 14px !important;
    }

    .score-value {
        font-size: 16px !important;
    }

    .mini-calendar {
        padding: 12px !important;
        overflow: hidden !important;
    }

    .calendar-day {
        max-width: 32px !important;
        height: 32px !important;
        font-size: 13px !important;
    }

    .date-selector {
        flex-wrap: wrap !important;
        gap: 8px !important;
        justify-content: center !important;
    }

    .date-display {
        font-size: 14px !important;
        min-width: auto !important;
        word-wrap: break-word !important;
    }

    .today-btn {
        font-size: 13px !important;
        padding: 5px 12px !important;
    }

    .calendar-month-title {
        font-size: 13px !important;
    }

    .questions-indicator {
        font-size: 15px !important;
        text-align: center !important;
    }

    .questions-indicator .current {
        font-size: 16px !important;
    }

    /* Actualités responsive */
    .epi-carousel-arrow {
        display: none !important;
    }

    .epi-carousel-wrapper {
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .epi-carousel-container {
        border-radius: 8px !important;
        overflow: hidden !important;
    }

    .epi-carousel-slide {
        padding: 4px !important;
    }

    .epi-carousel-slide img {
        max-height: 55vh !important;
    }

    .epi-dots-container {
        gap: 8px !important;
        margin-top: 10px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    .epi-dot {
        width: 10px !important;
        height: 10px !important;
        min-width: 10px !important;
    }

    .epi-dot.active {
        width: 20px !important;
        min-width: 20px !important;
    }

    .epi-indicator {
        font-size: 14px !important;
        margin-bottom: 10px !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        justify-content: center !important;
    }

    .epi-indicator .current {
        font-size: 15px !important;
    }

    .download-hint {
        font-size: 12px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    /* Publications responsive */
    .page-title {
        font-size: 26px !important;
        word-wrap: break-word !important;
    }

    .pub-subtitle {
        font-size: 15px !important;
        word-wrap: break-word !important;
    }

    .content-section {
        padding: 14px !important;
        overflow: hidden !important;
    }

    .content-section h4 {
        font-size: 18px !important;
    }

    .content-section li {
        font-size: 14px !important;
        padding: 6px 0 !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        word-wrap: break-word !important;
    }

    .content-section li .rec-text {
        min-width: 100% !important;
        width: 100% !important;
        text-align: left !important;
    }

    .content-section li .download-icon {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        min-height: 28px !important;
        font-size: 14px !important;
        margin-left: 0 !important;
    }

    /* Bouton Qui sommes-nous */
    .link-button {
        padding: 10px 18px !important;
        font-size: 14px !important;
        width: auto !important;
        white-space: nowrap !important;
    }

    .link-arrow {
        width: 26px !important;
        height: 26px !important;
        font-size: 13px !important;
    }

    /* Footer */
    .footer-wrapper {
        border-radius: 8px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        width: 100%;
    }

    .footer-col {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }

    footer nav ul {
        justify-content: center;
        flex-wrap: wrap;
        max-width: 100%;
    }
}

/* Petits smartphones */
@media (max-width: 480px) {
    :root {
        --page-width: 100%;
        --page-padding: 14px;
        --card-padding: 12px 10px;
        --card-radius: 10px;
    }

    .app-container {
        padding: 8px var(--page-padding);
    }

    .separator-wrapper {
        padding-left: var(--page-padding);
        padding-right: var(--page-padding);
    }

    .main-title {
        font-size: 24px;
    }

    .subtitle {
        font-size: 15px;
    }

    .intro {
        font-size: 12px;
        padding: 12px;
    }

    .page-title {
        font-size: 22px !important;
    }

    .pub-subtitle {
        font-size: 14px !important;
    }

    .content-section {
        padding: 12px !important;
    }

    .content-section h4 {
        font-size: 16px !important;
    }

    .content-section li {
        font-size: 13px !important;
    }

    .content-section li .download-icon {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        min-height: 26px !important;
        font-size: 12px !important;
    }

    .link-button {
        padding: 8px 14px !important;
        font-size: 13px !important;
        width: auto !important;
        white-space: nowrap !important;
        gap: 6px !important;
    }

    .link-arrow {
        width: 24px !important;
        height: 24px !important;
        font-size: 12px !important;
        min-width: 24px !important;
    }

    .question-block {
        padding: 14px !important;
    }

    .question-text {
        font-size: 16px !important;
    }

    .qcm-option {
        padding: 10px 12px !important;
        font-size: 15px !important;
    }

    .vf-row {
        padding: 10px 12px !important;
        gap: 8px !important;
    }

    .vf-label {
        font-size: 14px !important;
    }

    .vf-btn {
        padding: 6px 10px !important;
        font-size: 13px !important;
        min-width: 60px !important;
        max-width: 90px !important;
    }

    .btn-group .btn {
        min-width: 100px !important;
        font-size: 14px !important;
        padding: 8px 14px !important;
    }

    .btn-group .carousel-arrow-inline {
        width: 30px !important;
        height: 30px !important;
        font-size: 14px !important;
    }

    .feedback-box {
        padding: 10px 12px !important;
    }

    .feedback-box .feedback-header {
        font-size: 14px !important;
    }

    .feedback-box .feedback-header .icon {
        font-size: 16px !important;
    }

    .feedback-box .explanation {
        font-size: 14px !important;
    }

    .carousel-dot {
        width: 8px !important;
        height: 8px !important;
        min-width: 8px !important;
    }

    .carousel-dot.active {
        width: 18px !important;
        min-width: 18px !important;
    }

    .epi-carousel-slide img {
        max-height: 45vh !important;
    }

    .epi-dot {
        width: 8px !important;
        height: 8px !important;
        min-width: 8px !important;
    }

    .epi-dot.active {
        width: 16px !important;
        min-width: 16px !important;
    }

    .epi-indicator {
        font-size: 12px !important;
    }

    .epi-indicator .current {
        font-size: 13px !important;
    }

    .epi-autoplay-toggle {
        font-size: 11px !important;
        padding: 2px 10px !important;
    }
}

/* Très petits smartphones */
@media (max-width: 380px) {
    :root {
        --page-width: 100%;
        --page-padding: 10px;
        --card-padding: 10px 8px;
    }

    .app-container {
        padding: 6px var(--page-padding);
    }

    .separator-wrapper {
        padding-left: var(--page-padding);
        padding-right: var(--page-padding);
    }

    .main-title {
        font-size: 20px;
    }

    .subtitle {
        font-size: 14px;
    }

    .link-button {
        padding: 6px 12px !important;
        font-size: 12px !important;
        width: auto !important;
        white-space: nowrap !important;
        gap: 4px !important;
        border-radius: 8px !important;
    }

    .link-arrow {
        width: 20px !important;
        height: 20px !important;
        font-size: 10px !important;
        min-width: 20px !important;
        border-width: 1.5px !important;
    }

    .question-block {
        padding: 12px !important;
    }

    .question-text {
        font-size: 15px !important;
    }

    .qcm-option {
        padding: 8px 10px !important;
        font-size: 14px !important;
    }

    .vf-row {
        padding: 8px 10px !important;
    }

    .vf-label {
        font-size: 13px !important;
    }

    .vf-btn {
        padding: 5px 8px !important;
        font-size: 12px !important;
        min-width: 50px !important;
        max-width: 80px !important;
    }

    .btn-group .btn {
        min-width: 80px !important;
        font-size: 13px !important;
        padding: 6px 12px !important;
    }

    .btn-group .carousel-arrow-inline {
        width: 26px !important;
        height: 26px !important;
        font-size: 12px !important;
    }

    .feedback-box .explanation {
        font-size: 13px !important;
    }

    .epi-carousel-slide img {
        max-height: 40vh !important;
    }

    .page-title {
        font-size: 20px !important;
    }

    .pub-subtitle {
        font-size: 13px !important;
    }

    .content-section li {
        font-size: 12px !important;
    }
}

/* Réduction des animations */
@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}