/**
 * Font Face Declaration - Volvo Broad Pro Digital
 */
@font-face {
    font-family: 'Volvo Broad Pro Digital';
    src: url('./font/VolvoBroadProDigital.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    /* Améliore les performances de chargement */
}

html {
    scroll-behavior: smooth;
    margin: 0!important;
}

body {
    font-family: sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.intro-section h2,
.wof-content h2,
.page-id-24 .intro-section h1,
.single-quiz .intro-section h1,
.gift-title {
    font-family: 'Volvo Broad Pro Digital', sans-serif;
}

/* Container principal qui contient intro + fiches + sidebar */
/* Quiz */

/* Styles généraux pour le quiz */
#quiz-app {
    background: #FFFFFFCC;
    padding: 15px;
    position: relative;
}

/* En-tête de la question */
#quiz-question h2 {
    color: #0A4B78;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Question principale */
#quiz-question>p {
    color: #083A5E;
    font-size: 16px;
    margin-bottom: 30px;
    font-weight: 700;
}

/* Options de réponse (QCM) */
/* .quiz-option {
    background: #F5F5F5;
    border: 2px solid #E0E0E0;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
}

.quiz-option::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #0A4B78;
    border-radius: 3px;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.quiz-option:hover {
    background: #EBEBEB;
    border-color: #0A4B78;
}

.quiz-option.selected {
    background: #E3F2FD;
    border-color: #0A4B78;
}

.quiz-option.selected::before {
    background: #0A4B78;
    content: '✓';
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
} */

.quiz-option.correct {
    background: #E8F5E9;
    border-color: #9FBF36;
}

.quiz-option.correct::before {
    background: #9FBF36;
    border-color: #9FBF36;
    content: '✓';
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-option.incorrect {
    background: #FFEBEE;
    border-color: #C72722;
}

.quiz-option.incorrect::before {
    background: #C72722;
    border-color: #C72722;
    content: '✗';
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Styles pour les questions audio */
#quiz-question audio {
    width: 100%;
    margin-bottom: 20px;
}

/* Styles pour le drag and drop */
.drag-inline {
    margin-top: 30px;
}

.drag-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.drag-label {
    flex: 0 0 200px;
    font-weight: 600;
    color: #333;
    text-align: right;
    padding-right: 20px;
}

.drag-slot {
    flex: 1;
    background: #F5F5F5;
    border: 2px dashed #CCCCCC;
    padding: 15px 20px;
    border-radius: 8px;
    cursor: move;
    transition: all 0.3s ease;
    min-height: 50px;
    display: flex;
    align-items: center;
    position: relative;

    &:before {
        content: '';
        position: absolute;
        background-image: url('./images/move_v.svg');
        background-size: contain;
        background-color: #F5F5F5;
        width: 7px;
        height: 7px;
        padding: 7px;
        border-radius: 50px;
        background-repeat: no-repeat;
        top: 5px;
        right: 5px;
        opacity: 0.4;
    }
}

.drag-slot:hover {
    background: #EBEBEB;
}

.drag-slot.dragging {
    opacity: 0.5;
}

.drag-slot.drag-over {
    background: #E3F2FD;
    border-color: #0A4B78;
}

.drag-slot.correct {
    background: #E8F5E9;
    border: 2px solid #9FBF36;
}

.drag-slot.incorrect {
    background: #FFEBEE;
    border: 2px solid #C72722;
}

/* Zone d'explication */
/* #explication {
    background: #FFF3E0;
    border-left: 4px solid #FF9800;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    color: #333;
    line-height: 1.6;
} */

/* Boutons de contrôle */
#quiz-controls {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

#quiz-controls button {
    background: white;
    color: #0A4B78;
    padding: 12px 30px;
    border: none;
    border: 2px solid #083A5E;
    /* border-radius: 5px; */
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

#quiz-controls button::after {
    content: '→';
    margin-left: 10px;
}

#quiz-controls button:hover {
    background: #083A5E;
    color: white;
    transform: translateY(-2px);
}

#quiz-controls button:disabled {
    background: #CCCCCC;
    cursor: not-allowed;
    transform: none;
}

/* Message de fin de quiz */
#quiz-question h2:has(+ button) {
    text-align: center;
    font-size: 32px;
    color: #0A4B78;
    margin: 40px 0;
}

#quiz-question h2:has(+ button)::before,
#quiz-question h2:has(+ button)::after {
    display: none;
}

/* Bouton retour à l'accueil */
#quiz-question button {
    background: #000;
    color: white;
    padding: 15px 40px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
}

#quiz-question button:hover {
    background: #083A5E;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    #quiz-app {
        padding: 20px;
    }

    .drag-row {
        flex-direction: column;
        align-items: stretch;
    }

    .drag-label {
        text-align: left;
        flex: none;
        padding-right: 0;
        margin-bottom: 10px;
    }

    #quiz-controls {
        justify-content: center;
    }
}

/* Animation de chargement */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#quiz-question {
    animation: fadeIn 0.5s ease-out;
}

/* Styles pour le retour à l'accueil - exclu de la page ID 13 */
.banner+.content-container:not(.page-id-13 .content-container)::before {
    content: '← Retour à l\'accueil';
    position: absolute;
    top: -40px;
    left: 20px;
    background: black;
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner+.content-container::before:hover {
    background: #333;
    transform: translateX(-5px);
}

/* -------------------------------------------------------------------------------- */

/* Container principal */
.content-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    gap: 40px;
}

/* Partie gauche - Contenu principal */
.main-content {
    flex: 1;
}

/* Section d'introduction */
.intro-section {
    margin-bottom: 50px;
}

.single-quiz .intro-section {
    display: flex;
    justify-content: space-between;
}

.intro-section h2 {
    color: #0A4B78;
    font-size: 28px;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: -30px;
    letter-spacing: 1px;
}

.wof-content h2 {
    color: #0A4B78;
    font-size: 28px;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: -30px;
    letter-spacing: 1px;
}

.wof-content h1 {
    text-transform: uppercase;
    font-size: 36px;
    font-weight: 100;
    margin: 0;
    margin: 30px 0 0 0;
    color: #0A4B78;
}

.wof-content hr {
    width: 100%;
    height: 2px;
    background-color: #0A4B78;
    border: none;
}

.page-template-template-medias .intro-section h2 {
    margin-bottom: 0px;
}

.intro-section {
    color: #0A4B78;
    font-size: 36px;
    font-weight: 100;
    margin-bottom: 0px;
    letter-spacing: normal;
}

.intro-section h1 {
    text-transform: uppercase;
    font-size: 36px;
    font-weight: 100;
    margin: 0;
    margin: 30px 0 0 0;
}

.single-quiz .intro-section h1 {
    text-transform: uppercase;
    font-size: 38px;
    font-weight: 500;
    padding: 15px;
    background-color: #FFFFFFCC;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: fit-content;
}

.single-quiz .intro-section h3 {
    margin: 0;
}


.intro-section hr {
    width: 100%;
    height: 2px;
    background-color: #0A4B78;
    border: none;
}

.intro-section p {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
}

/* Liste des fiches */
.fiche-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.fiche-list li {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.fiche-list li:hover {
    transform: translateY(-5px);
}

.fiche-list li a {
    display: block;
    position: relative;
    text-decoration: none;
}

.fiche-list li img {
    width: 390px;
    height: auto;
    object-fit: cover;
    display: block;
}

.fiche-list li h3 {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 16px;
    padding: 15px 20px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Fiches verrouillées */
.fiche-list li:not(:has(a)) {
    cursor: not-allowed;
    opacity: 0.7;
}

.fiche-list li:not(:has(a)) img {
    filter: grayscale(100%);
}

.fiche-list li a::after {
    content: '→';
    position: absolute;
    right: 20px;
    bottom: 15px;
    color: white;
    font-size: 20px;
}

.fiche-list li:has(.locked)::before,
.fiche-list li:not(:has(a))::after {
    content: '🔒';
    position: absolute;
    right: 20px;
    bottom: 15px;
    color: white;
    font-size: 20px;
    z-index: 1;
}

/* Sidebar */
.sidebar {
    width: 350px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Top sidebar - Score et liens */
.top-sidebar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.9) 100%), url(https://parcours-excellence.alunitespreprod.com/wp-content/themes/parcours-excellence/images/bouton_score.jpg) no-repeat center center;
    background-size: cover;
    padding: 25px;
    text-align: left;
}

body.single-quiz {
    background-image: url('https://parcours-excellence.alunitespreprod.com/wp-content/themes/parcours-excellence/images/background.jpg');
}

.single-quiz .banner {
    border-bottom: 10px solid #FFFFFF;
}

.single-quiz .top-sidebar {
    background: #FFFFFF75;
    padding-bottom: 50px;
}


.top-sidebar h3 {
    color: #000;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 -10px 0;
}

.top-sidebar h3.sidebar-title {
    font-size: 16px;
    margin-top: 10px;
}

.top-sidebar h3 span {
    font-size: 42px;
    font-weight: 700;
}

.top-sidebar hr {
    width: 100%;
    height: 2px;
    background-color: #000;
    border: none;
    margin: 0;
}

.top-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 50px 0 0 0;
}

.top-sidebar ul li {
    margin-bottom: 15px;
}

.top-sidebar ul li a {
    display: block;
    background-color: #000;
    color: white;
    padding: 10px 16px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
    position: relative;
    text-align: left;
}

.top-sidebar ul li a::after {
    content: '→';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.top-sidebar ul li a:hover {
    background-color: #083A5E;
}

/* Bottom sidebar - Bouton Jouer */
.bottom-sidebar {
    position: relative;
    height: 600px;
    overflow: hidden;
    background-image: url('https://parcours-excellence.alunitespreprod.com/wp-content/themes/parcours-excellence/images/bouton_jouer.jpg');
}

.bottom-sidebar a {
    font-family: 'Volvo Broad Pro Digital';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 80px;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    z-index: 1;
    transition: transform 0.3s ease;
}

.bottom-sidebar a:hover {
    transform: translate(-50%, -50%) scale(0.95);
}

.bottom-sidebar::after {
    content: '→';
    position: absolute;
    right: 20px;
    bottom: -30px;
    transform: translateY(-50%);
    font-size: 40px;
    color: #FFF;
}

/* Responsive */
@media (max-width: 1024px) {
    .content-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .fiche-list {
        grid-template-columns: 1fr;
    }

    .intro-section h1 {
        font-size: 28px;
    }

    .top-sidebar h3 span {
        font-size: 36px;
    }

    .bottom-sidebar a {
        font-size: 36px;
    }
}

/* Effet de fond géométrique pour l'arrière-plan */
body {
    background-color: #FDFAF3;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(45deg,
            transparent,
            transparent 35px,
            rgba(255, 255, 255, .05) 35px,
            rgba(255, 255, 255, .05) 70px);
    pointer-events: none;
    z-index: -1;
}

/* Section personnage */
.quiz-character {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.quiz-character p {
    background: #000;
    color: white;
    padding: 4px 0;
    font-style: italic;
    font-size: 20px;
    font-weight: 500;
    position: relative;
    z-index: 2;
    text-align: center;
    margin: 0;
}

/* Animation au chargement */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sidebar {
    animation: slideInRight 0.6s ease-out;
}

/* Responsive */
/* @media (max-width: 1024px) {
    .content-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        max-width: 400px;
        margin: 30px auto 0;
        position: relative;
        top: auto;
    }
}

@media (max-width: 768px) {
    .quiz-character {
        height: 200px;
    }
    
    .quiz-character img {
        width: 140px;
        height: 140px;
    }
    
    .top-sidebar h3 span {
        font-size: 36px;
    }
    
    .top-sidebar ul li a {
        font-size: 13px;
        padding: 10px 15px;
    }
} */

/* Effet de brillance sur les scores */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.top-sidebar h3 span {
    color: #000;
}

/* ---------------------------------------------------------- */

/* Compteur de questions dans l'intro */
.single-quiz .intro-section {
    text-align: center;
}

.single-quiz .intro-section h1 {
    color: #0A4B78;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}

#question-counter {
    font-size: 28px;
    color: #FFFFFF;
    font-weight: 400;
    margin: 0;
}

#question-counter span {
    color: #FFFFFF;
    font-size: 42px;
    font-weight: 700;
}

/* Question text */
.question-text {
    color: #333;
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 500;
    text-align: left;
}

/* Grille pour les options de réponse */
.quiz-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 30px;
    border: 2px solid #083A5E;
    padding: 20px 15px;
}

/* Options individuelles */
.quiz-option {
    background: #F5F5F500;
    border: 2px solid #E0E0E000;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px;
}

.quiz-option::before {
    content: '';
    width: 24px;
    height: 24px;
    border: 2px solid #0A4B78;
    margin-right: 15px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.quiz-option:hover {
    /* background: #EBEBEB; */
    /* border-color: #0A4B78; */
    /* transform: translateY(-2px); */
    /* box-shadow: 0 4px 12px rgba(0,0,0,0.1); */
}

.quiz-option.selected {
    /* background: #E3F2FD; */
    /* border-color: #0A4B78; */
}

.quiz-option.selected::before {
    background: #F0CFB1;
    content: '✓';
    color: #083A5E;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

/* États correct/incorrect */
.quiz-option.correct {
    background: #E8F5E9;
    border-color: #9FBF36;
}

.quiz-option.correct::before {
    background: #9FBF36;
    border-color: #9FBF36;
    content: '✓';
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-option.incorrect {
    background: #FFEBEE;
    border-color: #C72722;
}

.quiz-option.incorrect::before {
    background: #C72722;
    border-color: #C72722;
    content: '✗';
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .quiz-options-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    #question-counter span {
        font-size: 36px;
    }

    .question-text {
        font-size: 18px;
    }
}

/* Animation pour le changement de question */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#quiz-question {
    animation: fadeInUp 0.5s ease-out;
}

/* Zone d'explication améliorée */
#explication {
    /* background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    border-left: 4px solid #FF9800;
    padding: 25px;
    border-radius: 10px;
    margin-top: 30px;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.1); */
}

/* Animation spéciale pour bonne réponse */
@keyframes correctPulse {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.sidebar h3.correct-answer {
    animation: correctPulse 1s ease;
}

.sidebar h3.correct-answer span {
    color: #9FBF36 !important;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

/* Transition pour le changement de score */
#live-points {
    transition: all 0.5s ease;
    display: inline-block;
}

#live-points.updated {
    animation: scoreUpdate 0.6s ease;
    font-weight: 700;
}

/* Zone d'explication repositionnée */
#explication {
    background: #FFFFFFAA;
    /* border-radius: 10px; */
    margin: 20px auto;
    max-width: 1200px;
    padding: 0;
    overflow: hidden;
}

/* Message de résultat */
.result-message {
    padding: 20px 0 0 20px;
    font-size: 18px;
    font-weight: 100;
    text-align: left;
}

.result-message.correct {
    color: #083A5E;
    /* color: #2E7D32; */
}

.result-message.incorrect {
    color: #083A5E;
    /* color: #C62828; */
}

/* Contenu de l'explication */
.explication-content {
    padding: 20px;
    color: #083A5E;
    font-size: 16px;
}

/* Animation d'apparition */
#explication {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bouton de téléchargement du règlement */
.bouton {
    display: block;
    background-color: #000;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    font-size: 16px !important;
    position: relative;
    width: 260px;
    margin: 0 auto 30px auto;
}

.bouton::after {
    content: '→';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.bouton:hover {
    background-color: #000000AA;
}

/* GIFTS ------------ Container principal en grille 2 colonnes */
.gifts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: fit-content;
    margin: 20px auto;
}

/* Carte individuelle - CARRÉ PARFAIT */
.gift-card {
    position: relative;
    width: 400px;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Overlay avec contenu */
.gift-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    transition: all 0.3s ease;
}

/* Titre de la récompense - AU CENTRE */
.gift-title {
    color: white;
    font-size: 38px;
    font-weight: 500;
    text-align: center;
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

/* Texte de la récompense - TOUT EN BAS */
.gift-text {
    color: white;
    font-size: 1rem;
    text-align: center;
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.1s;
    align-self: center;
}

/* Effets au survol */
.gift-card:hover .gift-overlay {
    background: rgba(0, 0, 0, 0.7);
}

.gift-card:hover .gift-title {
    opacity: 1;
    transform: translateY(0);
}

.gift-card:hover .gift-text {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .gifts-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gift-title {
        font-size: 1.5rem;
    }

    .gift-text {
        font-size: 0.9rem;
    }
}

/* MEDIAS ====================== */
/* Container principal pour les médias */
.medias-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 50px auto 0px auto;
    max-width: fit-content;
}

.medias-container a {
    font-size: 48px;
    font-weight: 400;
    width: 400px;
    height: 400px;
    text-decoration: none;
    color: white;
    background-color: #0A4B78;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
    font-family: 'Volvo Broad Pro Digital';
}

.medias-container a:hover {
    background-color: #0A4B78AA;
}

.medias-container a.active {
    background-color: #0A4B78AA;
}

footer {
    background: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
}

#page>div.wof-container>div.wof-content>div.wof-item.active>div.wof-section>div>p:nth-child(2)>img {
    display: block;
    margin: auto;
}

#main-content>div.intro-section>div.wp-video {
    margin: auto;
}

/* Q drag & drop */
/* Container principal pour le drag & drop */
.drag-container {
  margin-top: 20px;
}

/* Zone des réponses disponibles */
.drag-source-zone {
  background: #f8f9fa;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
}

.drag-source-zone h3 {
  color: #0A4B78;
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: 600;
}

.drag-source-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.drag-source-item {
  background: #0A4B78;
  color: white;
  padding: 4px 10px;
  border-radius: 25px;
  cursor: grab;
  user-select: none;
  font-weight: 500;
  transition: all 0.3s ease;
  /* border: 2px solid #0A4B78; */
}

.drag-source-item:hover {
  background: #083A5E;
  /* transform: translateY(-2px); */
  /* box-shadow: 0 4px 12px rgba(10, 75, 120, 0.3); */
}

.drag-source-item.dragging {
  opacity: 0.8;
  cursor: grabbing;
}

/* Zone de destination */
.drag-destination-zone h3 {
  color: #0A4B78;
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 600;
}

.drag-row {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  gap: 20px;
}

.drag-label {
  flex: 1;
  font-weight: 500;
  color: #333;
  padding: 12px 0;
}

.drag-slot {
  flex: 1;
  min-height: 50px;
  border: 2px dashed #CCCCCC;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.drag-slot.drag-over {
  border-color: #0A4B78;
  background: #e3f2fd;
}

.drag-slot.filled {
  border-style: solid;
  border-color: #0A4B78;
  background: white;
}

.drag-placeholder {
  color: #6c757d;
  font-style: italic;
  text-align: center;
}

/* Réponse déposée dans une case */
.drag-response {
  background: #7caed1;
  color: #FFFFFF;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: space-between;
}

.remove-response {
  background: #0A4B78AA;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  flex-shrink: 0;
}

.remove-response:hover {
  background: #0A4B78;
}

/* États de validation */
.drag-slot.correct {
  border-color: #9FBF36;
  background-color: #e8f5e9;
}

.drag-slot.incorrect {
  border-color: #C72722;
  background-color: #ffebee;
}

.drag-response.correct {
  background: #9FBF36;
  color: white;
}

.drag-response.incorrect {
  background: #C72722;
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .drag-source-items {
    justify-content: center;
  }
  
  .drag-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .drag-label {
    text-align: center;
    font-weight: 600;
  }
}

/* Bouton de téléchargement PDF avec box-icon */
.download-button {
    display: block;
    width: fit-content;
    align-items: center;
    gap: 10px;
    background: #0A4B78;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px auto 10px auto;
}

.download-button:hover {
    background: #083A5E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 75, 120, 0.3);
}