:root {
    --bg-color: #111111;
    --widget-bg: #1a1a1a;
    --primary-orange: #FFBF40;
    --text-light: #f0f0f0;
    --text-secondary: #a0a0a0;
    --font-title: 'Gentium Book Plus', serif;
    --font-body: 'Roboto', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-color);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
}

#widget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.widget {
    background-color: var(--widget-bg);
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
    position: relative;
    overflow: hidden;
    height: 350px;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.8rem;
    flex-shrink: 0;
}

.widget-header i { font-size: 1.5rem; color: var(--primary-orange); }
.widget-header h3 {
    font-family: var(--font-title);
    font-size: 1.3rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.widget-content {
    flex-grow: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.widget-content::-webkit-scrollbar { width: 5px; }
.widget-content::-webkit-scrollbar-track { background: #2a2a2a; }
.widget-content::-webkit-scrollbar-thumb { background: var(--primary-orange); border-radius: 5px; }

.widget-content p { font-size: 0.95rem; }
.widget-content strong { color: var(--primary-orange); font-weight: 400; }

.widget-reload-icon, .widget-detail-link {
    position: absolute;
    bottom: 10px;
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
    z-index: 10;
}

.widget-reload-icon {
    left: 15px; /* Position originale */
    font-size: 1rem;
}
.widget-detail-link {
    right: 15px; /* Position originale */
    font-weight: bold;
    font-size: 1.5rem;
}

.widget-reload-icon:hover { color: var(--primary-orange); transform: rotate(90deg); }
.widget-detail-link:hover { color: var(--primary-orange); transform: translateX(3px); }

/* --- REALIA --- */
.widget-Realia { padding: 0; cursor: pointer; }
.widget-Realia .widget-header { padding: 1.5rem 1.5rem 0.8rem 1.5rem; margin-bottom: 0; position: absolute; z-index: 5; background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent); width: 100%; border-bottom: none; }
.widget-Realia .widget-header h3 { color: white; }
.widget-Realia .widget-content { height: 100%; overflow: hidden; }
.widget-Realia .widget-image { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; margin: 0; }
.widget-Realia .widget-detail-link { display: none; }
/* Style commun pour les widgets affichant une image en plein écran */
.widget-image-display { 
    padding: 0; 
    cursor: pointer; 
}
.widget-image-display .widget-header { 
    padding: 1.5rem 1.5rem 0.8rem 1.5rem; 
    margin-bottom: 0; 
    position: absolute; 
    z-index: 5; 
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent); 
    width: 100%; 
    border-bottom: none; 
}
.widget-image-display .widget-header h3 { 
    color: white; 
}
.widget-image-display .widget-content { 
    height: 100%; 
    overflow: hidden; /* Empêche l'ascenseur */
}
.widget-image-display .widget-image { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; /* Comportement par défaut (pour Realia) */
    border-radius: 18px; /* Bords arrondis */
    margin: 0; 
}
.widget-image-display .widget-detail-link { 
    display: none; 
}

/* Règle spécifique pour déformer l'image de l'Atlas UNIQUEMENT */
.widget-Atlas .widget-image {
    object-fit: fill; /* Déforme l'image pour remplir le conteneur */
}

/* --- QUIZ --- */
/*.quiz-content { justify-content: center; overflow: hidden; }
.quiz-question { font-weight: bold; margin-bottom: 15px; }
.quiz-answers-container { display: flex; flex-direction: column; gap: 8px; margin-top: 15px; transition: opacity 0.4s; }
.quiz-answer { padding: 10px 12px; background-color: #2b2b2b; border-radius: 6px; cursor: pointer; font-size: 0.95rem; transition: background-color 0.2s; }
.quiz-answer:not(.answered):hover { background-color: #3a3a3a; }
.quiz-answer.answered { cursor: default; }
.quiz-info-transition { opacity: 0; position: absolute; top: 50%; left: 1.5rem; right: 1.5rem; transform: translateY(-50%); text-align: center; transition: opacity 0.4s 0.2s; pointer-events: none; }
.quiz-info-transition.visible { opacity: 1; }
.quiz-answers-container.hidden-transition { opacity: 0; }--*/

/* ==========================================================================
   STYLE QUIZ (VERSION HAUTEMENT AFFINÉE)
   ========================================================================== */

/* --- STRUCTURE ET TAILLE --- */
.widget-Quiz {
    display: flex;
    flex-direction: column;
}

.widget-Quiz .widget-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* --- QUESTION --- */
.widget-Quiz .quiz-question {
    font-size: 0.95rem; /* Police plus petite pour la question */
    line-height: 1.4;
    margin-bottom: 1.25rem; /* Espace avant les réponses */
}

/* Le `strong` n'est plus un block, il reste en ligne */
.widget-Quiz .quiz-question strong {
    color: var(--primary-orange);
    font-weight: 700;
}

/* --- CONTENEUR DE LA PARTIE VARIABLE (RÉPONSES PUIS JUSTIFICATION) --- */
.widget-Quiz .quiz-answers-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1; /* Permet à cette zone de s'étirer un peu */
}

/* --- RÉPONSES --- */
.widget-Quiz .quiz-answer {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem; /* Police plus petite pour les réponses */
    transition: background-color 0.2s ease;
}

.widget-Quiz .quiz-answer:not(.answered):hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.widget-Quiz .quiz-answer.answered {
    cursor: default;
}

/* --- JUSTIFICATION (APRÈS LE REMPLACEMENT) --- */
.widget-Quiz .quiz-justification {
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center; 
    margin-top: 1.5rem; /* Pousse la justification vers le bas, mais de manière contrôlée */
}

.widget-Quiz .quiz-justification strong {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* --- EFFET DE TRANSITION --- */
.quiz-answers-container.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* --- ICÔNES --- */
.widget-Quiz .widget-reload-icon,
.widget-Quiz .widget-detail-link {
    position: absolute;
    bottom: 1rem;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.widget-Quiz .widget-reload-icon:hover,
.widget-Quiz .widget-detail-link:hover {
    opacity: 1;
}

.widget-Quiz .widget-reload-icon { left: 1.25rem; }
.widget-Quiz .widget-detail-link { right: 1.25rem; }


/* --- MODALES --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.3s;
    
    /* GESTION DU SCROLL GLOBAL */
    overflow-y: auto; 
    /* On aligne en haut pour permettre le scroll sans couper le début */
    align-items: flex-start; 
    /* Le padding remplace le margin pour centrer visuellement sans bloquer le scroll */
    padding: 20px 0; 
}

.modal.visible { 
    display: flex; 
    justify-content: center; 
    opacity: 1; 
}

.modal-content {
    background-color: var(--widget-bg);
    padding: 20px;
    border: 1px solid #444;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: zoomIn 0.3s;
    
    /* Marge automatique pour le centrage horizontal, et marge basse pour le scroll */
    margin: auto auto 20px auto; 
}

.modal-close {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 1.8rem;
    color: #aaa;
    cursor: pointer;
}
.modal-close:hover { color: white; }

/* REALIA MODAL */
#modal-image { width: 100%; max-height: 70vh; object-fit: contain; border-radius: 5px; }
#modal-info { padding: 20px 10px 0 10px; text-align: left; }
#modal-title { font-family: var(--font-title); color: var(--primary-orange); cursor: pointer; display: inline-block; }
#modal-description { margin-top: 10px; }
#modal-reference { margin-top: 15px; font-size: 0.8em; color: var(--text-secondary); }

/* SETTINGS MODAL */
.settings-modal-content { max-width: 600px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #333; padding-bottom: 10px; margin-bottom: 20px; }
.settings-body p { margin-bottom: 15px; }
#widget-selection-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.widget-option {
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s;
}
.widget-option.selected { border-color: var(--primary-orange); background-color: #2a2a2a; }
.widget-option i { font-size: 1.5rem; color: var(--primary-orange); margin-bottom: 8px; }
.widget-option-title { font-size: 0.9rem; }
.modal-footer { text-align: right; margin-top: 20px; border-top: 1px solid #333; padding-top: 15px; }
.settings-save-btn { background-color: var(--primary-orange); color: #111; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; font-weight: bold; }

/* --- BOUTONS FLOTTANTS --- */
.floating-buttons { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 999; }
.floating-buttons button { width: 50px; height: 50px; border-radius: 50%; border: none; background-color: var(--primary-orange); color: #111; font-size: 1.5rem; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: transform 0.2s; }
.floating-buttons button:hover { transform: scale(1.1); }

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
    #widget-grid { grid-template-columns: 1fr; }
    .widget { height: auto; min-height: 320px; }
}


/* --- BOUTONS FLOTTANTS --- */
.floating-buttons { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 999; }
.floating-buttons button { width: 50px; height: 50px; border-radius: 50%; border: none; background-color: var(--primary-orange); color: #111; font-size: 1.5rem; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: transform 0.2s; }
.floating-buttons button:hover { transform: scale(1.1); }

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
    #widget-grid { grid-template-columns: 1fr; }
    .widget { height: auto; min-height: 320px; }
}

/* --- BOUTONS FLOTTANTS --- */
.floating-buttons { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 999; }
.floating-buttons button { width: 50px; height: 50px; border-radius: 50%; border: none; background-color: var(--primary-orange); color: #111; font-size: 1.5rem; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: transform 0.2s; }
.floating-buttons button:hover { transform: scale(1.1); }

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
    #widget-grid { grid-template-columns: 1fr; }
    .widget { height: auto; min-height: 320px; }
}

/* --- WIDGET MOTS CROISÉS (TEASER) --- */
.widget-Crossword { cursor: pointer; text-align: center; }
.widget-Crossword .widget-content { justify-content: center; align-items: center; }
.crossword-teaser-theme { font-family: var(--font-title); font-size: 1.6rem; color: var(--primary-orange); }
.crossword-teaser-grid { display: grid; grid-template-columns: repeat(5, 20px); grid-template-rows: repeat(5, 20px); gap: 2px; margin-top: 1rem; padding: 3px; background-color: #333; border-radius: 5px; }
.crossword-teaser-cell { width: 20px; height: 20px; background-color: var(--widget-bg); }
.crossword-teaser-cell.black { background-color: #111; }
.crossword-teaser-cta { margin-top: 1rem; color: var(--text-secondary); }

/* --- STYLE MOTS CROISÉS (VERSION FINALE SÉCURISÉE) --- */

:root {
    /* Taille par défaut (Confortable pour 1080p+) */
    --crossword-cell-size: 33px; 
}

/* AJOUT CRUCIAL : Si la hauteur d'affichage est < 720px (Laptops avec barres d'outils)
   On passe en mode compact (28px). 
   Gain de hauteur : (33-28)*15 = 75px gagnés ! */
@media (max-height: 720px) {
    :root { --crossword-cell-size: 28px; }
}

/* Si l'écran est immense (> 950px), on se fait plaisir */
@media (min-height: 950px) {
    :root { --crossword-cell-size: 42px; }
}

/* --- STRUCTURE DE LA MODALE --- */
.crossword-body {
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
    width: 100%;
}

.crossword-game-area {
    max-width: 100%;
    display: flex;
    justify-content: center;
    padding-bottom: 5px;
}

/* Ascenseur (mobile) */
.crossword-game-area::-webkit-scrollbar { height: 6px; width: 6px; }
.crossword-game-area::-webkit-scrollbar-track { background: #222; border-radius: 4px; }
.crossword-game-area::-webkit-scrollbar-thumb { background: var(--primary-orange); border-radius: 4px; }

.crossword-modal-content {
    width: fit-content;
    max-width: 98vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Grille */
.grid {
    display: inline-grid;
    gap: 2px;
    background-color: #333;
    border: 2px solid #444;
    margin: 0 auto;
}

/* Wrapper pour chaque cellule */
.cell-wrapper {
    width: var(--crossword-cell-size);
    height: var(--crossword-cell-size);
    position: relative;
    flex-shrink: 0; 
}

/* Numéro */
.cell-number {
    position: absolute;
    top: 1px;
    left: 2px;
    font-size: 0.6em;
    color: var(--primary-orange);
    font-weight: bold;
    pointer-events: none;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.9);
    z-index: 2;
}

/* Cellule */
.cell {
    width: 100%;
    height: 100%;
    background-color: var(--widget-bg);
    border: 1px solid #444;
    color: var(--text-light);
    text-align: center;
    font-size: calc(var(--crossword-cell-size) * 0.55); 
    font-family: var(--font-title);
    text-transform: uppercase;
    outline: none;
    padding: 0;
    margin: 0;
    border-radius: 0;
    transition: background-color 0.2s, border-color 0.2s;
}

.cell:focus { background-color: #2a2a2a; border-color: var(--primary-orange); box-shadow: inset 0 0 5px rgba(255, 191, 64, 0.3); }
.cell:disabled { background-color: #111; border-color: #222; }
.cell.correct { background-color: rgba(45, 156, 89, 0.3); color: #a0e0b7; }
.cell.incorrect { background-color: rgba(192, 57, 43, 0.3); color: #f5b7b1; animation: shake 0.4s; }

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* --- INFOBULLE --- */
.tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: var(--text-light);
    padding: 8px 12px;
    border-radius: 6px;
    font-family: var(--font-title); 
    font-size: 0.8rem;
    line-height: 1.4;
    white-space: normal;
    width: 220px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 1000;
    border: 1px solid var(--primary-orange);
    box-shadow: 0 4px 15px rgba(0,0,0,0.8);
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--primary-orange);
}

@media (hover: hover) { .cell-wrapper:hover .tooltip { opacity: 1; } }

.direction-indicator { font-weight: bold; color: var(--primary-orange); margin-right: 5px; }

/* --- FOOTER --- */
.crossword-footer {
    flex-direction: column;
    gap: 0.8rem;
    padding-top: 0.8rem;
    margin-top: 0.5rem;
    align-items: center;
    width: 100%;
}

.message {
    font-size: 0.95rem;
    min-height: 40px;
    font-weight: normal;
    color: var(--text-light);
    text-align: center;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.message-line { font-family: var(--font-title); line-height: 1.3; }

.crossword-actions { 
    display: flex; 
    width: 100%; 
    justify-content: space-between; 
    padding: 0 10px;
    margin-top: 5px;
}

.crossword-actions button {
    background-color: var(--primary-orange);
    color: #111;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    min-width: 100px;
}

.crossword-actions button#crossword-solve-btn {
    background-color: transparent;
    border: 1px solid #555;
    color: var(--text-secondary);
}
.crossword-actions button#crossword-solve-btn:hover {
    background-color: #333;
    color: var(--text-light);
    border-color: #777;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    :root {
        --crossword-cell-size: 28px;
    }

    .crossword-game-area {
        justify-content: flex-start; 
        overflow: auto; 
    }

    .crossword-modal-content {
        width: 100vw;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        padding: 10px 5px;
        overflow-y: auto; 
    }

    .modal-close { top: 5px; right: 10px; z-index: 20; }
    .tooltip { display: none !important; }
}

/* --- WIDGET VOCABULAIRE (Style type Realia) --- */
/* Utilise la classe .widget-image-display définie précédemment dans votre CSS */
.widget-Vocabulary .widget-image {
    object-fit: cover;
}

/* --- MODALE VOCABULAIRE --- */
.vocab-modal-content {
    max-width: 1000px; /* Élargi de 700px à 1000px */
    width: 95%;        /* Prend presque toute la largeur sur mobile */
    text-align: center;
    padding: 0;
    overflow: hidden;
    background-color: var(--widget-bg);
    min-height: 600px; /* Hauteur minimale augmentée */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vocab-view {
    display: none;
    width: 100%;
    height: 100%;
    padding: 30px;
    animation: fadeIn 0.4s ease-out;
}
.vocab-view.visible { display: flex; flex-direction: column; align-items: center; justify-content: center; }

/* VUE COUVERTURE */
#vocab-cover-image {
    width: 100%;
    height: auto;      /* Garde les proportions de l'image */
    max-height: 75vh;  /* L'image peut prendre jusqu'à 75% de la hauteur de l'écran (au lieu de 300px) */
    object-fit: contain; /* Affiche TOUTE l'image sans couper les textes/légendes */
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid #333;
    background-color: #111; /* Fond noir si l'image ne remplit pas tout le ratio */
}
#vocab-cover-title {
    font-family: var(--font-title);
    color: var(--primary-orange);
    font-size: 2rem;
    margin-bottom: 2rem;
}
#vocab-start-btn {
    background-color: var(--primary-orange);
    color: #111;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s;
}
#vocab-start-btn:hover { transform: scale(1.05); }

/* VUE JEU */
.vocab-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

.vocab-nav-btn {
    background: transparent;
    border: 1px solid #444;
    color: var(--text-secondary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}
.vocab-nav-btn:hover {
    color: var(--primary-orange);
    border-color: var(--primary-orange);
    background-color: rgba(255, 191, 64, 0.1);
}

.vocab-card {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vocab-word {
    font-family: var(--font-title);
    font-size: 3rem;
    color: var(--primary-orange);
    margin-bottom: 5px;
}
.vocab-strong {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.vocab-options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 400px;
}

.vocab-option-btn {
    background-color: #2b2b2b;
    border: 1px solid #444;
    color: var(--text-light);
    padding: 12px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.2s;
}
.vocab-option-btn:hover:not(.disabled) { background-color: #3a3a3a; }
.vocab-option-btn.correct { background-color: #28a745; border-color: #28a745; color: white; }
.vocab-option-btn.incorrect { background-color: #dc3545; border-color: #dc3545; color: white; }
.vocab-option-btn.disabled { cursor: default; opacity: 0.7; }

.vocab-progress {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
/* --- ANIMATIONS DE TRANSITION VOCABULAIRE --- */

/* La carte doit être positionnée relative pour que les anims fonctionnent bien */
.vocab-card {
    position: relative;
    /* On s'assure que l'animation est fluide */
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

/* 1. Ça part vers la GAUCHE */
.slide-out-left {
    transform: translateX(-50px);
    opacity: 0;
    pointer-events: none; /* On ne peut plus cliquer pendant que ça part */
}

/* 2. État initial à DROITE (invisible) avant de rentrer */
.prepare-slide-in-right {
    transform: translateX(50px);
    opacity: 0;
}

/* 3. Retour au centre (l'animation se fait par suppression de la classe ci-dessus) */