/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hiérarchie Typographique */
body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-weight: 400;
    font-size: 16px;
}

/* Titres principaux */
h1 {
    font-family: 'Montserrat', 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-family: 'Montserrat', 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    letter-spacing: -0.01em;
}

h3 {
    font-family: 'Montserrat', 'Poppins', sans-serif;
    font-weight: 600;
    font-size: clamp(1.25rem, 3vw, 2rem);
}

h4 {
    font-family: 'Roboto', 'Poppins', sans-serif;
    font-weight: 500;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
}

/* Texte principal */
p {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
}

/* Texte secondaire */
.subtitle {
    font-family: 'Roboto', 'Poppins', sans-serif;
    font-weight: 300;
    font-style: italic;
    opacity: 0.8;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

/* Boutons */
button {
    font-family: 'Roboto', 'Poppins', sans-serif;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Statistiques */
.stat-card h3 {
    font-family: 'Montserrat', 'Poppins', sans-serif;
    font-weight: 600;
}

.percentage, .time-display, .counter {
    font-family: 'Montserrat', 'Poppins', sans-serif;
    font-weight: 800;
}

.stat-number {
    font-family: 'Montserrat', 'Poppins', sans-serif;
    font-weight: 700;
}

.stat-label {
    font-family: 'Roboto', 'Poppins', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    position: relative;
}

.header-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
}

.theme-btn, .sound-btn, .color-theme-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.3s ease;
}

.theme-btn:hover, .sound-btn:hover, .color-theme-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* Thèmes colorés */
body.romantic-theme {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
}

body.romantic-theme header {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
}

body.romantic-theme .stat-card {
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    border-left-color: #ff6b9d;
}

body.tragic-theme {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

body.tragic-theme header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

body.tragic-theme .stat-card {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-left-color: #4facfe;
}

body.angry-theme {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 50%, #ff3838 100%);
}

body.angry-theme header {
    background: linear-gradient(135deg, #ff4757 0%, #ff3838 100%);
}

body.angry-theme .stat-card {
    background: linear-gradient(135deg, #ffeaa7 0%, #ff7675 100%);
    border-left-color: #ff4757;
}

body.angry-theme .stat-card.critical {
    animation: shake 0.5s ease-in-out;
}

/* Background dynamique selon l'heure */
body.morning-bg {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

body.afternoon-bg {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

body.evening-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body.night-bg {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

/* Background selon le niveau d'amour */
body.love-high {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    animation: none;
}

body.love-medium {
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
}

body.love-low {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body.love-critical {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    animation: none;
}

/* Thèmes Saisonniers */
body.christmas-theme {
    background: linear-gradient(135deg, #d32f2f 0%, #1b5e20 50%, #d32f2f 100%);
}

body.christmas-theme header {
    background: linear-gradient(135deg, #b71c1c 0%, #0d47a1 100%);
}

body.christmas-theme .stat-card {
    background: linear-gradient(135deg, #ffebee 0%, #e8f5e8 100%);
    border-left-color: #d32f2f;
}

body.christmas-theme h1, body.christmas-theme h2 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

body.halloween-theme {
    background: linear-gradient(135deg, #212121 0%, #ff5722 50%, #212121 100%);
}

body.halloween-theme header {
    background: linear-gradient(135deg, #ff5722 0%, #212121 100%);
}

body.halloween-theme .stat-card {
    background: linear-gradient(135deg, #ffecb3 0%, #ffcc02 100%);
    border-left-color: #ff5722;
}

body.halloween-theme h1, body.halloween-theme h2 {
    font-family: 'Montserrat', cursive;
    text-shadow: 2px 2px 4px rgba(255, 87, 34, 0.5);
}

body.summer-theme {
    background: linear-gradient(135deg, #00796b 0%, #ffeb3b 50%, #00796b 100%);
}

body.summer-theme header {
    background: linear-gradient(135deg, #004d40 0%, #f57c00 100%);
}

body.summer-theme .stat-card {
    background: linear-gradient(135deg, #e0f2f1 0%, #fff8e1 100%);
    border-left-color: #00796b;
}

body.summer-theme h1, body.summer-theme h2 {
    text-shadow: 1px 1px 2px rgba(0, 121, 107, 0.3);
}

/* Modal des thèmes */
.theme-modal-overlay {
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.theme-modal h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.theme-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.theme-option {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    color: white;
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.theme-option:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: none;
}

.theme-option.active {
    border-color: #ff4757;
    background: rgba(255, 71, 87, 0.3);
}

.close-modal {
    background: #ff4757;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.close-modal:hover {
    background: #ff3742;
}

/* Mode Easter Egg - Désactivé pour éviter les mouvements */
body.easter-egg-mode {
    animation: none;
}

body.easter-egg-mode * {
    animation: none;
}

/* Animations de fadeOut */
@keyframes fadeOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100px); }
}

/* Éléments saisonniers */
.seasonal-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.seasonal-element {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.6;
    animation: seasonalFloat 10s linear infinite;
    pointer-events: none;
}

@keyframes seasonalFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

.seasonal-element.snowflake {
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.seasonal-element.bat {
    color: #ff5722;
    font-size: 1.2rem;
}

.seasonal-element.butterfly {
    color: #ffeb3b;
    font-size: 1.3rem;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.subtitle {
    font-style: italic;
    opacity: 0.8;
    font-size: 0.9rem;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Chronomètre en temps réel */
.realtime-timer {
    margin-bottom: 3rem;
}

.timer-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.timer-display {
    font-size: 3rem;
    font-weight: bold;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
}

.reset-btn {
    background: rgba(255,255,255,0.2);
    border: 2px solid white;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background: white;
    color: #667eea;
}

/* Outils personnalisés */
.custom-tools {
    margin-bottom: 3rem;
}

.tool-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.tool-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.file-input {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 2px dashed #e9ecef;
    border-radius: 8px;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}


/* Cartes de statistiques */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.trends-predictions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.trend-card, .prediction-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.trend-card h4, .prediction-card h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.trend-card p, .prediction-card p {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0;
}

.trend-card.positive { border-left: 4px solid #27ae60; }
.trend-card.negative { border-left: 4px solid #e74c3c; }
.prediction-card { border-left: 4px solid #3498db; }

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.stat-card.danger {
    border-left: 5px solid #ff4757;
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
}

.stat-card.warning {
    border-left: 5px solid #ffa726;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
}

.stat-card.critical {
    border-left: 5px solid #ff3838;
    background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
}

.stat-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.percentage {
    font-size: 3rem;
    font-weight: bold;
    color: #ff4757;
    margin-bottom: 0.5rem;
}

.time-display {
    font-size: 2rem;
    font-weight: bold;
    color: #ffa726;
    margin-bottom: 0.5rem;
}

.counter {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ff3838;
    margin-bottom: 0.5rem;
}

/* Section graphiques */
.charts-section {
    margin-bottom: 3rem;
}

.chart-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.chart-container h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.chart-note {
    text-align: center;
    font-style: italic;
    color: #7f8c8d;
    margin-top: 1rem;
}

/* Découvertes scientifiques */
.scientific-findings {
    margin-bottom: 3rem;
}

.scientific-findings h2 {
    text-align: center;
    color: white;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.finding-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.finding-card h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.finding-card ul {
    padding-left: 1.5rem;
}

.finding-card li {
    margin-bottom: 0.5rem;
}

/* Grille de statistiques */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #ff4757;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Conclusion */
.conclusion {
    margin-bottom: 3rem;
}

.conclusion h2 {
    text-align: center;
    color: white;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.conclusion-card {
    background: white;
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.big-conclusion {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.disclaimer {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #856404;
}

.love-note {
    font-size: 1.2rem;
    color: #e74c3c;
    font-style: italic;
}

/* Section interactive */
.interactive-section {
    margin-bottom: 3rem;
}

.interactive-section h2 {
    text-align: center;
    color: white;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.quiz-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.question {
    margin-bottom: 2rem;
}

.question p {
    margin-bottom: 1rem;
    font-weight: bold;
    color: #2c3e50;
}

.question button {
    display: block;
    width: 100%;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border: none;
    border-radius: 8px;
    background: #3498db;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.question button:hover {
    background: #2980b9;
}

.score-display {
    text-align: center;
    padding: 1rem;
    background: #ecf0f1;
    border-radius: 8px;
}

.score-display p {
    font-size: 1.2rem;
    font-weight: bold;
}

#suspicionScore {
    color: #e74c3c;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
}

footer p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}


/* Quiz étendu */
.quiz-btn {
    background: #ff4757;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 1rem;
    transition: background 0.3s ease;
}

.quiz-btn:hover {
    background: #ff3742;
}

/* Effets visuels */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.particle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ff4757"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>') no-repeat center;
    background-size: contain;
    animation: fall 3s linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 15;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ff4757;
    animation: confetti-fall 2s ease-in-out infinite;
}

/* Nouveaux effets visuels */
#floating-emojis {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.floating-emoji {
    position: absolute;
    font-size: 2rem;
    animation: float-emoji 4s ease-out infinite;
    opacity: 0.7;
}

@keyframes float-emoji {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

#sparkles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 6;
}

#click-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 7;
}

.click-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: clickParticle 1s ease-out infinite;
    pointer-events: none;
}

@keyframes clickParticle {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffd700;
    border-radius: 50%;
    animation: sparkle 2s ease-out infinite;
}

@keyframes sparkle {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}

#background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.05;
}

.confetti:nth-child(odd) {
    background: #ffa726;
}

.confetti:nth-child(3n) {
    background: #42a5f5;
}

.confetti:nth-child(4n) {
    background: #66bb6a;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Mode sombre */
body.dark-mode {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
}

body.dark-mode header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

body.dark-mode .stat-card,
body.dark-mode .chart-container,
body.dark-mode .finding-card,
body.dark-mode .conclusion-card,
body.dark-mode .quiz-container,
body.dark-mode .tool-card {
    background: #34495e;
    color: #ecf0f1;
}

body.dark-mode .finding-card h4,
body.dark-mode .tool-card h3 {
    color: #ecf0f1;
}

body.dark-mode footer {
    background: #2c3e50;
}

/* Mini-jeux */
.mini-games {
    margin-bottom: 3rem;
}

.mini-games h2 {
    text-align: center;
    color: white;
    margin-bottom: 2rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.game-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    text-align: center;
}

.game-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.game-card p {
    margin-bottom: 1rem;
    color: #666;
}

.game-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.game-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.game-content {
    margin-top: 1rem;
}

.hidden {
    display: none;
}

.love-calculator {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.love-calculator input {
    padding: 0.5rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
}

.love-result {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-weight: bold;
    color: #e74c3c;
}

.prediction-result {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}

.records-display {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.records-display p {
    margin: 0.5rem 0;
    font-weight: bold;
}


/* Galerie Photos */
.photo-gallery {
    margin-bottom: 3rem;
}

.photo-gallery h2 {
    text-align: center;
    color: white;
    margin-bottom: 1rem;
}

.gallery-description {
    text-align: center;
    color: rgba(255,255,255,0.8);
    font-style: italic;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.photo-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.photo-item:hover {
    transform: none;
}

.photo-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.photo-caption {
    padding: 1rem;
    text-align: center;
    font-weight: bold;
    color: #2c3e50;
}

.gallery-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.gallery-btn {
    background: #ff4757;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.gallery-btn:hover {
    background: #ff3742;
    transform: none;
}

.photo-gallery.hidden .gallery-grid,
.photo-gallery.hidden .gallery-description {
    display: none;
}

.photo-gallery.hidden .gallery-controls {
    margin-top: 2rem;
}

/* Animations avancées */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceIn {
    0% { transform: scale(0.3) translateY(50px); opacity: 0; }
    50% { transform: scale(1.05) translateY(-10px); opacity: 1; }
    70% { transform: scale(0.9) translateY(5px); }
    100% { transform: scale(1) translateY(0); }
}

@keyframes elastic {
    0% { transform: scale(0); }
    55% { transform: scale(1.15); }
    65% { transform: scale(0.95); }
    75% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Classes d'animation */
.animate-bounce { animation: bounceIn 0.8s ease-out; }
.animate-elastic { animation: elastic 0.8s ease-out; }
.animate-slide-left { animation: slideInLeft 0.6s ease-out; }
.animate-slide-right { animation: slideInRight 0.6s ease-out; }
.animate-pulse { animation: pulse 2s infinite; }
.animate-shake { animation: shake 0.5s ease-in-out; }

/* Transitions de page - Désactivées pour éviter les mouvements */
section {
    transition: none;
}

section:hover {
    transform: none;
}

/* Effets au scroll */
.fade-in-scroll {
    opacity: 1;
    transform: none;
    transition: none;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: none;
}

.stat-card, .chart-container, .finding-card, .conclusion-card, .quiz-container {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    header h2 {
        font-size: 1.2rem;
    }

    .stats-overview {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .percentage, .time-display, .counter {
        font-size: 2rem;
    }
}

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

    .big-conclusion {
        font-size: 1.2rem;
    }
}