:root {
    --ci-orange: #FF8200;
    --ci-orange-light: #FFF0E0;
    --ci-green: #009A44;
    --ci-green-light: #E6F7ED;
    --text-dark: #1A1A1A;
    --text-grey: #666666;
    --bg-white: #FFFFFF;
    --bg-light: #F9FAFB;
    --border-color: #E5E7EB;
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.03);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.06);
    --radius-sm: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: var(--bg-light); color: var(--text-dark); line-height: 1.5; display: flex; flex-direction: column; min-height: 100vh; -webkit-font-smoothing: antialiased; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Section Header & Titles - Espacement réduit */
.section-header { margin-bottom: 25px; }
.section-header.center { text-align: center; }
.section-header h2 { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.5px; margin-top: 5px; }
.badge-outline { font-size: 0.7rem; font-weight: 700; color: var(--ci-green); letter-spacing: 1px; text-transform: uppercase; }

h1 { font-size: 3rem; font-weight: 800; line-height: 1.1; margin-bottom: 1rem; letter-spacing: -1.5px; }
h2 { font-size: 2rem; font-weight: 700; letter-spacing: -0.5px; }
.highlight-orange { color: var(--ci-orange); }
.highlight-green { color: var(--ci-green); }

/* Navbar */
.navbar { background: rgba(255,255,255,0.9); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(0,0,0,0.05); padding: 12px 0; transition: var(--transition); }
.nav-container { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.logo { font-size: 1.2rem; font-weight: 800; display: flex; align-items: center; gap: 8px; white-space: nowrap; letter-spacing: -0.5px; }
.logo span { color: var(--ci-orange); }
.nav-logo-img { height: 32px; width: auto; object-fit: contain; }

/* Sélecteur de Langue */
.lang-selector { display: none; }
@media(min-width: 768px) { .lang-selector { display: block; margin-right: 10px; } }
#globalLangSelect {
    padding: 6px 10px; border-radius: 6px; border: 1px solid var(--border-color);
    background: white; font-weight: 600; color: var(--text-dark); cursor: pointer; outline: none; font-size: 0.85rem;
}
#globalLangSelect:focus { border-color: var(--ci-orange); }

.search-bar-container { flex-grow: 1; max-width: 300px; position: relative; display: none; }
@media(min-width: 768px) { .search-bar-container { display: block; } }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-grey); font-size: 1rem; }
#globalSearch { width: 100%; padding: 8px 12px 8px 38px; border-radius: 50px; border: 1px solid var(--border-color); background: rgba(0,0,0,0.03); transition: var(--transition); outline: none; font-size: 0.85rem; }
#globalSearch:focus { background: white; border-color: var(--ci-orange); box-shadow: 0 0 0 3px rgba(255, 130, 0, 0.08); }

.nav-actions { display: flex; gap: 10px; align-items: center; }
.btn-text { background: none; border: none; font-weight: 600; font-size: 0.85rem; cursor: pointer; color: var(--text-dark); padding: 6px 10px; transition: var(--transition); }
.btn-text:hover { color: var(--ci-orange); }
.btn-primary-sm { background: var(--ci-orange); color: white; padding: 8px 16px; border: none; border-radius: 50px; font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: var(--transition); }
.btn-primary-sm:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255, 130, 0, 0.2); }
.burger { display: none; font-size: 1.4rem; cursor: pointer; }

/* Hero Section - Padding réduit */
.hero-section { padding: 50px 0; background: radial-gradient(circle at top right, #fffaf5 0%, #ffffff 100%); }
.hero-content { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.badge-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--ci-orange-light); color: var(--ci-orange); padding: 5px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; margin-bottom: 15px; }
.hero-text p { color: var(--text-grey); font-size: 1rem; max-width: 500px; margin-bottom: 20px; }
.hero-buttons { display: flex; gap: 12px; margin-top: 25px; }
.btn-primary { background: var(--ci-orange); color: white; padding: 12px 24px; border: none; border-radius: 10px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: var(--transition); font-size: 0.95rem; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 130, 0, 0.2); }
.btn-secondary { background: white; color: var(--text-dark); border: 1px solid var(--border-color); padding: 12px 24px; border-radius: 10px; font-weight: 600; cursor: pointer; transition: var(--transition); font-size: 0.95rem; }
.btn-secondary:hover { background: var(--bg-light); border-color: #d1d5db; }

/* Floating Card Hero */
.floating-card { background: white; padding: 25px; border-radius: var(--radius-xl); box-shadow: var(--shadow-md); border: 1px solid rgba(0,0,0,0.03); max-width: 320px; margin: 0 auto; transform: rotate(1.5deg); transition: var(--transition); }
.floating-card:hover { transform: rotate(0deg) scale(1.02); }
.card-header-mini { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 0.7rem; font-weight: 700; color: var(--text-grey); text-transform: uppercase; letter-spacing: 0.5px; }
.tag-mini { background: var(--ci-green-light); color: var(--ci-green); padding: 2px 8px; border-radius: 50px; }
.word-pair .label { display: block; font-size: 0.6rem; text-transform: uppercase; color: #a3a3a3; letter-spacing: 1px; font-weight: 700; margin-bottom: 2px; }
.word-pair .value { font-size: 1.2rem; font-weight: 700; color: var(--text-dark); }
.word-pair.local .value { color: var(--ci-orange); font-size: 1.6rem; font-weight: 800; }
.phonetic { font-size: 0.8rem; color: #a3a3a3; font-style: italic; display: block; margin-top: 2px; }
.divider-icon { text-align: center; color: var(--border-color); margin: 15px 0; font-size: 1.1rem; }

/* Stats Grid - Padding réduit */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 40px; background: white; padding: 20px; border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.02); }
.stat-box { text-align: center; border-right: 1px solid var(--border-color); position: relative; }
.stat-box:last-child { border-right: none; }
.icon-circle { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-size: 1.1rem; }
.icon-circle.orange { background: var(--ci-orange-light); color: var(--ci-orange); }
.icon-circle.green { background: var(--ci-green-light); color: var(--ci-green); }
.stat-box h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 2px; letter-spacing: -0.5px; }
.stat-box p { font-size: 0.8rem; color: var(--text-grey); font-weight: 500; }

/* Categories Dashboard */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.category-card { background: white; padding: 18px; border-radius: var(--radius-lg); border: 1px solid var(--border-color); cursor: pointer; transition: var(--transition); display: flex; justify-content: space-between; align-items: center; }
.category-card:hover { border-color: var(--ci-orange); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.category-card h3 { font-size: 1rem; font-weight: 700; color: var(--text-dark); }
.cat-count { background: var(--bg-light); color: var(--text-grey); padding: 3px 10px; border-radius: 50px; font-size: 0.7rem; font-weight: 700; border: 1px solid var(--border-color); }
.category-card:hover .cat-count { background: var(--ci-orange-light); color: var(--ci-orange); border-color: transparent; }

/* Sections Styling - Padding réduit de 80px à 50px */
.section-white { padding: 50px 0; background: white; }
.section-light { padding: 50px 0; background: var(--bg-light); }

/* Filters Component */
.filters { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 25px; justify-content: center; -webkit-overflow-scrolling: touch; }
.filters::-webkit-scrollbar { height: 3px; }
.filters::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 3px; }
.filter-btn { padding: 8px 18px; border: 1px solid var(--border-color); background: white; border-radius: 50px; cursor: pointer; font-weight: 600; font-size: 0.8rem; white-space: nowrap; transition: var(--transition); color: var(--text-grey); }
.filter-btn:hover { border-color: var(--text-dark); color: var(--text-dark); }
.filter-btn.active { background: var(--text-dark); color: white; border-color: var(--text-dark); }

/* Cards Grid Premium */
.cards-grid-premium { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; margin-top: 5px; }
.card-premium { background: var(--bg-light); border-radius: var(--radius-lg); border: 1px solid var(--border-color); padding: 14px 16px; transition: var(--transition); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; height: auto; }
.card-premium:hover { background: white; border-color: transparent; transform: translateY(-2px); box-shadow: var(--shadow-md); }

.card-meta { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-bottom: 8px; }
.tag-cat { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-grey); background: rgba(0,0,0,0.05); padding: 2px 6px; border-radius: 4px; }
.card-premium:hover .tag-cat { background: var(--ci-orange-light); color: var(--ci-orange); }
.fav-btn { background: none; border: none; font-size: 1rem; cursor: pointer; color: #d1d5db; transition: var(--transition); display: flex; align-items: center; justify-content: center; }
.fav-btn:hover { transform: scale(1.1); color: #9ca3af; }
.fav-btn.active { color: #ef4444; }

.word-display { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 2px 0; }
.word-fr { font-size: 0.9rem; color: var(--text-grey); font-weight: 500; word-break: break-word; line-height: 1.2; }
.word-divider { display: flex; align-items: center; justify-content: center; color: #d1d5db; font-size: 0.8rem; height: 100%; }
.word-bete-container { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.word-bete { font-size: 1.15rem; font-weight: 850; color: var(--text-dark); letter-spacing: -0.3px; word-break: break-word; line-height: 1.1; transition: var(--transition); }
.card-premium:hover .word-bete { color: var(--ci-orange); }

/* Contributors Grid */
.contributor-bg { background: #fafafa; }
.contributors-grid { display: flex; justify-content: center; gap: 25px; flex-wrap: wrap; margin-bottom: 40px; }
.contributor-card { background: white; padding: 25px; border-radius: var(--radius-xl); text-align: center; width: 260px; box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.02); transition: var(--transition); }
.contributor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.img-wrapper { width: 100px; height: 100px; margin: 0 auto 15px; border-radius: 50%; overflow: hidden; border: 3px solid white; box-shadow: 0 6px 15px rgba(0,0,0,0.05); }
.contributor-card img { width: 100%; height: 100%; object-fit: cover; }
.contributor-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 2px; }
.role { display: block; font-size: 0.8rem; color: var(--text-grey); margin-bottom: 10px; font-weight: 500; }
.lang-tag { background: var(--ci-green-light); color: var(--ci-green); padding: 3px 12px; border-radius: 50px; font-size: 0.7rem; font-weight: 700; }

/* Recruitment Module */
.recruitment-box { background: var(--text-dark); padding: 40px 30px; border-radius: var(--radius-xl); color: white; text-align: center; position: relative; overflow: hidden; }
.recruitment-box::before { content: ''; position: absolute; top:0; right:0; width: 200px; height: 200px; background: radial-gradient(circle, rgba(255,130,0,0.15) 0%, transparent 70%); pointer-events: none; }
.recruit-content h3 { font-size: 1.8rem; font-weight: 800; margin-bottom: 10px; color: white; letter-spacing: -0.5px; }
.recruit-content p { color: #a3a3a3; font-size: 0.95rem; margin-bottom: 25px; max-width: 500px; margin-left: auto; margin-right: auto; }
.recruit-content .btn-primary { background: white; color: var(--text-dark); }
.recruit-content .btn-primary:hover { background: #f3f4f6; box-shadow: 0 6px 20px rgba(255,255,255,0.1); }

/* UI Chronomètre du Quiz */
.quiz-timer-container { display: flex; align-items: center; gap: 5px; background: var(--ci-orange-light); color: var(--ci-orange); padding: 3px 10px; border-radius: 50px; font-weight: 700; font-size: 0.8rem; }
.timer-progress-bar { width: 100%; height: 3px; background: var(--border-color); border-radius: 2px; margin-bottom: 20px; overflow: hidden; }
#timer-progress { width: 100%; height: 100%; background: var(--ci-orange); transition: width 1s linear; }

/* Interactive Quiz Styling */
.quiz-wrapper { display: flex; justify-content: center; padding: 30px 0; }
.quiz-card-large { background: white; border-radius: var(--radius-xl); padding: 30px; width: 100%; max-width: 550px; box-shadow: var(--shadow-md); border: 1px solid rgba(0,0,0,0.02); }
.quiz-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; border-bottom: 1px solid var(--border-color); padding-bottom: 12px; }
#quiz-category-badge { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; background: var(--bg-light); color: var(--text-grey); padding: 3px 10px; border-radius: 4px; }
#score-display { font-weight: 700; font-size: 0.9rem; color: var(--ci-green); }
.quiz-card-large h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.3; margin-bottom: 20px; text-align: center; color: var(--text-grey); }
#target-word { font-size: 1.5rem; font-weight: 800; display: block; margin-top: 5px; }
.options-grid-premium { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 15px; }
.quiz-opt-btn { width: 100%; padding: 14px 18px; border: 1px solid var(--border-color); border-radius: var(--radius-lg); background: white; font-size: 0.95rem; font-weight: 600; text-align: left; cursor: pointer; transition: var(--transition); color: var(--text-dark); display: flex; justify-content: space-between; align-items: center; }
.quiz-opt-btn:hover:not(:disabled) { border-color: var(--text-dark); background: var(--bg-light); transform: translateX(2px); }
.feedback-box { padding: 12px; border-radius: var(--radius-lg); font-weight: 700; text-align: center; margin-bottom: 15px; font-size: 0.9rem; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Footer Design */
.footer-premium { background: #0b0b0c; color: #ffffff; padding: 50px 0 20px; margin-top: auto; border-top: 1px solid rgba(255,255,255,0.03); }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px; }
.footer-brand h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 15px; display: flex; align-items: center; letter-spacing: -0.5px; }
.footer-brand p { color: #88888b; font-size: 0.9rem; line-height: 1.5; margin-bottom: 20px; max-width: 300px; }
.socials { display: flex; gap: 10px; }
.socials i { font-size: 1.1rem; width: 32px; height: 32px; background: rgba(255,255,255,0.04); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); color: #d1d5db; }
.socials i:hover { color: white; background: var(--ci-orange); transform: translateY(-2px); }

.footer-links h4, .footer-lang h4 { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #6b6b72; margin-bottom: 20px; }
.footer-links ul, .footer-lang ul { list-style: none; }
.footer-links li, .footer-lang li { margin-bottom: 12px; cursor: pointer; color: #bcbcbf; font-size: 0.85rem; font-weight: 500; transition: var(--transition); display: flex; align-items: center; }
.footer-links li:hover { color: white; }
.dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; margin-right: 10px; }
.dot.green { background: var(--ci-green); box-shadow: 0 0 6px var(--ci-green); }
.dot.grey { background: #444446; }
.tag-active { font-size: 0.6rem; background: rgba(0, 154, 68, 0.15); color: #34d399; padding: 1px 6px; border-radius: 3px; margin-left: 8px; font-weight: 600; }
.tag-soon { font-size: 0.6rem; background: rgba(255,255,255,0.04); color: #71717a; padding: 1px 6px; border-radius: 3px; margin-left: 8px; font-weight: 600; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: #71717a; font-weight: 500; }
.dev-link { color: #f4f4f5; text-decoration: none; font-weight: 600; transition: var(--transition); }
.dev-link:hover { color: var(--ci-orange); }

/* Styles pour le Logo Footer */
.footer-logo-img {
    height: 40px; 
    width: auto;
    object-fit: contain;
    margin-bottom: 18px;
    display: block;
    /* Si votre logo est coloré et que vous voulez qu'il ressorte sur le fond noir sans modification : */
    /* filter: brightness(0) invert(1); Supprimez cette ligne si votre logo est déjà clair/blanc. */
}

/* Modals */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); z-index: 999; display: none; opacity: 0; transition: opacity 0.3s ease; }
.modal-overlay.active { display: block; opacity: 1; }
.modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.96); background: white; width: 92%; max-width: 420px; padding: 30px; border-radius: var(--radius-xl); z-index: 1000; display: none; opacity: 0; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15); }
.modal.active { display: block; opacity: 1; transform: translate(-50%, -50%) scale(1); }
.close-modal { position: absolute; top: 15px; right: 15px; background: var(--bg-light); border: none; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-grey); transition: var(--transition); }
.close-modal:hover { background: #e5e7eb; color: var(--text-dark); }
.modal h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 5px; }
.modal p { color: var(--text-grey); font-size: 0.85rem; margin-bottom: 20px; font-weight: 500; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 0.75rem; font-weight: 700; margin-bottom: 5px; color: var(--text-dark); text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input { width: 100%; padding: 10px 14px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); outline: none; font-size: 0.9rem; transition: var(--transition); background: var(--bg-light); }
.form-group input:focus { border-color: var(--text-dark); background: white; box-shadow: 0 0 0 3px rgba(0,0,0,0.03); }
.full-width { width: 100%; justify-content: center; }

/* Responsive Layout */
@media (max-width: 900px) {
    .footer-content { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .footer-brand h3 { justify-content: center; }
    .socials { justify-content: center; }
    .footer-lang li, .footer-links li { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 10px; }
    .hero-content { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .hero-text p { margin: 0 auto; }
    .hero-visual { order: -1; }
    .hero-buttons { justify-content: center; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 15px; }
    .stat-box { border-right: none; }
    .stat-box:nth-child(1), .stat-box:nth-child(2) { border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
    
    .footer-logo-img {
        margin: 0 auto 18px auto; /* Centre le logo sur mobile */
    }
}
@media (max-width: 600px) {
    h1 { font-size: 2.2rem; }
    .nav-actions { display: none; }
    .burger { display: block; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-box { border-bottom: 1px solid var(--border-color) !important; padding-bottom: 12px; }
    .stat-box:last-child { border-bottom: none !important; }
    .word-display { grid-template-columns: 1fr; gap: 4px; text-align: center; }
    .word-bete-container { align-items: center; text-align: center; }
    .word-divider { transform: rotate(90deg); margin: 4px 0; height: 10px; }
}