﻿/* =========================================
   CONSOLE DE PILOTAGE RH - STYLE MASTER
   Copyright (c) 2026 Ã‰ric Ferron, LL.B.
   Version: 5.0 (Fusion LMS) (Kia Layout Fix)
   ========================================= */

:root {
    --bg-color: #f8fafc;
    --header-bg: #ffffff;
    --accent: #003366;
    --accent-hover: #004a94;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    --pdf-color: #ef4444;
    --word-color: #2b579a;
    --sensibilisation-color: #0ea5e9;
    --locked-color: #f59e0b;
    --gold: #fbbf24;
    --gold-dark: #d97706;
    --p1-color: #2563eb;
    --p2-color: #4f46e5;
    --p3-color: #f59e0b;
    --p4-color: #059669;
}

body { margin: 0; padding: 0; background-color: var(--bg-color); font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--text-dark); display: flex; flex-direction: column; min-height: 100vh; -webkit-font-smoothing: antialiased; }

/* --- HEADER --- */
header { background: var(--header-bg); border-bottom: 3px solid var(--accent); padding: 10px 0; box-shadow: 0 2px 15px rgba(0,0,0,0.03); position: sticky; top: 0; z-index: 1000; }
.header-content { width: 95%; max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.logo-group { justify-self: start; display: flex; align-items: center; gap: 15px; }
.header-logo-img { height: 75px; width: auto; border-radius: 4px; background: white; padding: 2px; cursor: pointer; }
.header-titles { text-align: center; }
.header-titles h1 { margin: 0; font-size: 1.1em; text-transform: uppercase; color: var(--accent); line-height: 1.2; }
.header-titles p { margin: 2px 0 5px 0; font-size: 0.85em; color: var(--text-light); font-weight: 600; }
.price-container { display: block; margin-top: 2px; }
.price-highlight { color: var(--gold-dark); font-weight: 900; font-size: 1.3em; text-transform: uppercase; white-space: nowrap; }
.price-strike { text-decoration: line-through; opacity: 0.5; font-size: 1em; margin-left: 8px; font-weight: 600; color: #94a3b8; white-space: nowrap; }
.header-nav { justify-self: end; display: flex; justify-content: center; gap: 5px; }

.nav-btn { background: transparent; border: none; color: var(--text-light); padding: 8px 12px; border-radius: 50px; font-weight: 700; cursor: pointer; transition: 0.3s; display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 0.85em; text-transform: uppercase; letter-spacing: 0.5px; }
.nav-btn:hover { background: rgba(0, 51, 102, 0.05); color: var(--accent); }
.nav-btn.active { background: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(0, 51, 102, 0.2); }

/* --- GRID SYSTEM --- */
.container { width: 95%; max-width: 1400px; margin: 15px auto; flex: 1; }
.view { display: none; }
.view.active { display: block; animation: fadeIn 0.4s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.doc-layout { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: stretch; }
.phases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: stretch; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 15px; }

/* --- FLEX UTILS --- */
.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.gap-5 { gap: 5px !important; }
.gap-10 { gap: 10px !important; }
.h-100 { height: 100% !important; }
.flex-1 { flex: 1 !important; }
.flex-grow-0 { flex-grow: 0 !important; } /* Fix Kia Layout */
.justify-center { justify-content: center !important; }

/* --- CARDS & ASIDE --- */
aside { display: flex; flex-direction: column; height: 100%; }
.card { background: #fff; border-radius: 12px; border: 1px solid var(--border-color); box-shadow: var(--card-shadow); padding: 30px; margin-bottom: 25px; display: flex; flex-direction: column; height: 100%; box-sizing: border-box; }
.card-border-accent { border-top: 5px solid var(--accent); }
.card-p1 { border-top: 5px solid var(--p1-color); padding: 15px; margin-bottom: 0; }
.card-p2 { border-top: 5px solid var(--p2-color); padding: 15px; margin-bottom: 0; }
.card-p3 { border-top: 5px solid var(--p3-color); padding: 15px; margin-bottom: 0; }
.card-p4 { border-top: 5px solid var(--p4-color); padding: 15px; margin-bottom: 0; }
.card-links { border-top: 5px solid #64748b; padding: 15px; flex: 0; margin-bottom: 0; }
.card-h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 20px 0; font-size: 1em; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: 0.5px; }

/* --- ELEMENTS & BADGES --- */
.phase-badge, .side-badge { width: 24px; height: 24px; border-radius: 50%; color: #fff; display: flex; justify-content: center; align-items: center; font-weight: bold; flex-shrink: 0; box-shadow: 0 0 0 3px #fff; font-size: 0.75em; }
.side-badge { background: var(--accent); }
.p1 .phase-badge { background: var(--p1-color); }
.p2 .phase-badge { background: var(--p2-color); }
.p3 .phase-badge { background: var(--p3-color); }
.p4 .phase-badge { background: var(--p4-color); }
.badge-link { background: #64748b; }
.phase-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; position: relative; }
.phase-title { font-size: 0.9em; font-weight: 800; text-transform: uppercase; color: var(--text-dark); }
.doc-item { display: flex; flex-direction: column; text-decoration: none; background: #fff; border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; transition: 0.3s; position: relative; }
.doc-item-sidebar { padding: 10px; border-radius: 8px; transition: 0.2s; display: flex; align-items: center; gap: 12px; text-decoration: none; border: 1px solid var(--border-color); background: #f8fafc; margin-bottom: 8px; }
.doc-item-sidebar:hover, .doc-item:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.doc-content { padding: 10px; text-align: center; }
.doc-title { display: block; color: var(--text-dark); font-weight: 700; font-size: 0.9em; margin-bottom: 5px; }
.doc-desc { display: block; color: var(--text-light); font-size: 0.75em; }
.bt-p1 { border-top: 3px solid var(--p1-color); }
.bt-p2 { border-top: 3px solid var(--p2-color); }
.bt-p3 { border-top: 3px solid var(--p3-color); }
.bt-p4 { border-top: 3px solid var(--p4-color); }
.disclaimer-links { font-size: 0.65em; color: var(--pdf-color); margin-top: 8px; line-height: 1.2; font-style: italic; font-weight: 600; }
.grid-1-col { grid-template-columns: 1fr; }
.bg-white { background-color: #fff; }
.font-sm { font-size: 0.8em; }

/* --- RICH CARDS --- */
.rich-card { display: flex; flex-direction: column; justify-content: space-between; height: 100%; text-align: left; padding: 0 !important; overflow: hidden; border: 1px solid #e2e8f0; transition: all 0.3s ease; }
.rich-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); border-color: var(--locked-color); }
.rc-header { background: linear-gradient(to bottom, #fff, #f8fafc); padding: 20px 25px; border-bottom: 1px solid #f1f5f9; display: flex; align-items: center; gap: 15px; }
.rc-icon { font-size: 1.8em; color: var(--locked-color); background: #fffbeb; width: 50px; height: 50px; display: flex; justify-content: center; align-items: center; border-radius: 8px; flex-shrink: 0; }
.rc-title-group h3 { margin: 0 0 5px 0 !important; font-size: 1.1em !important; text-align: left; line-height: 1.2; }
.rc-body { padding: 20px 25px; flex: 1; background: #fff; }
.rc-footer { background: #f8fafc; padding: 12px 25px; border-top: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; font-size: 0.75em; color: #64748b; font-weight: 600; }

/* --- LOCKED & DISCLAIMS --- */
.locked-item { opacity: 0.85; cursor: not-allowed; position: relative; background-color: #f8fafc !important; }
.locked-item::after { content: ''; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23334155' d='M144 144v48H304V144c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192V144C80 64.5 144.5 0 224 0s144 64.5 144 144v48h16c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V256c0-35.3 28.7-64 64-64H80z'/%3E%3C/svg%3E"); background-size: contain; background-repeat: no-repeat; background-position: center; width: 18px; height: 18px; position: absolute; right: 15px; top: 50%; transform: translateY(-50%); }
.eval-tag { display: inline-block; background: var(--gold); color: #000; font-size: 0.7em; font-weight: 900; padding: 3px 8px; border-radius: 4px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.disclaimer-red { text-align: center; font-size: 1em; color: var(--pdf-color); margin: 25px 0 0 0; font-style: italic; font-weight: 700; }

/* --- DEV & MAINT BLOCKS --- */
.dev-banner { background: #fffbeb; border: 1px solid #fde68a; padding: 20px; border-radius: 12px; margin-bottom: 30px; display: flex; align-items: center; gap: 20px; }
.dev-banner-icon { font-size: 2.5em; color: var(--gold-dark); }
.dev-banner-title { margin: 0; color: #92400e; font-size: 1.1em; }
.maint-block { background: #f8fafc; border: 1px solid #e2e8f0; padding: 15px 30px 25px 30px; border-radius: 12px; position: relative; overflow: hidden; margin-top: 20px; }
.maint-watermark { position: absolute; top: -20px; right: -20px; font-size: 10em; color: #f1f5f9; z-index: 0; pointer-events: none; }
.maint-content { position: relative; z-index: 1; text-align: center; }
.maint-title { font-size: 1.2em; margin-bottom: 10px; color: var(--accent); }
.maint-title i { margin-right: 10px; color: var(--gold-dark); }
.maint-text { font-size: 0.95em; max-width: 700px; margin: 0 auto 15px auto; line-height: 1.6; color: var(--text-light); }
.maint-list { display: flex; justify-content: center; gap: 25px; font-size: 0.85em; color: #64748b; margin-bottom: 0; flex-wrap: wrap; font-weight: 600; }
.maint-list span i { color: var(--p4-color); margin-right: 5px; }

/* --- VIDEO --- */
.v-selector { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 30px; max-width: 1200px; margin: 0 auto 30px auto; }
.v-tab { background: #fff; border: 1px solid var(--border-color); color: var(--text-light); padding: 12px; border-radius: 10px; cursor: pointer; transition: all 0.3s; text-align: center; display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); min-height: 90px; }
.v-tab.tab-sens { border-top: 4px solid var(--sensibilisation-color); }
.v-tab.tab-gest { border-top: 4px solid var(--accent); }
.v-tab.active.tab-sens { background: var(--sensibilisation-color); color: #fff; border-color: var(--sensibilisation-color); }
.v-tab.active.tab-gest { background: var(--accent); color: #fff; border-color: var(--accent); }
.v-tab strong { display: block; font-size: 0.9em; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }
.v-tab span { display: block; font-size: 0.75em; opacity: 0.85; margin-bottom: 4px; }
.cible-badge { display: inline-block; margin-top: auto; align-self: center; padding: 2px 8px; border-radius: 4px; font-size: 0.6em; font-weight: 800; text-transform: uppercase; background: #f1f5f9; color: var(--text-light); }
.v-theater { position: relative; width: 100%; max-width: 1150px; margin: 0 auto; aspect-ratio: 16/9; background: #000; border-radius: 15px; overflow: hidden; display: flex; justify-content: center; align-items: center; box-shadow: 0 30px 60px rgba(0,0,0,0.25); }
.v-theater iframe, .v-player-control { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    border: none; 
    z-index: 10; 
    object-fit: contain; 
}
.v-logo-watermark { position: absolute; top: 50%; left: 50%; width: 450px; opacity: 0.10; z-index: 20; pointer-events: none; transform: translate(-50%, -50%); filter: grayscale(100%); }
.video-footer { padding-top: 15px; }

/* --- MODALES & FORMS --- */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15, 23, 42, 0.85); z-index: 9999; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.modal-card { background: white; padding: 25px 30px; border-radius: 16px; text-align: center; max-width: 550px; width: 90%; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; overflow: hidden; z-index: 1; }
.modal-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: url('https://www.ericferron.com/harcelement/clients/f3e4a1b2c5d6e7f8/favicon.png'); background-repeat: no-repeat; background-position: center; background-size: 200px; opacity: 0.1; z-index: -1; }
@keyframes modalPop { 0% { transform: scale(0.8); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.modal-close-btn { position: absolute; top: 10px; right: 15px; background: none; border: none; font-size: 2.5em; font-weight: 300; cursor: pointer; color: #94a3b8; z-index: 10001; line-height: 1; padding: 0; }
.modal-btn { background: var(--accent); color: white; border: none; padding: 12px 30px; border-radius: 50px; font-weight: 700; margin-top: 15px; cursor: pointer; transition: 0.2s; width: 100%; }
.modal-benefit { margin-bottom: 20px; font-weight: 600; color: #0f172a; font-size: 1.1em; line-height: 1.4; }
.modal-price-box { background: #f8fafc; padding: 20px; border-radius: 8px; margin-bottom: 15px; font-size: 0.9em; color: #475569; border: 1px solid #e2e8f0; }
.modal-price-val { font-weight: 800; color: var(--accent); font-size: 1.2em; margin-bottom: 5px; }

.form-group { margin-bottom: 15px; text-align: left; }
.form-label { display: block; font-size: 0.85em; font-weight: 700; color: #334155; margin-bottom: 6px; }
.form-input { width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 6px; font-family: inherit; font-size: 0.95em; box-sizing: border-box; transition: all 0.2s; background: #f8fafc; }
.form-input:focus { border-color: var(--accent); background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1); }
.required-note { font-size: 0.7em; color: var(--pdf-color); margin-top: 5px; }
.optional-label { font-weight: normal; font-size: 0.9em; color: #94a3b8; }
.form-info-box { font-size: 0.8em; color: #64748b; margin-top: 15px; line-height: 1.4; background: #f1f5f9; padding: 10px; border-radius: 6px; }
.form-maint-notice { font-size: 0.85em; color: #475569; background: #fffbeb; border: 1px solid #fde68a; padding: 10px; border-radius: 6px; margin-bottom: 20px; text-align: left; line-height: 1.4; }
.select-field { background-color: #fff; }
.text-area-field { height: 100px; font-family: inherit; }

/* --- FOOTER & UTILS --- */
footer { background: var(--accent); color: #fff; margin-top: 15px; padding: 15px 0; border-top: 4px solid #eab308; }
.footer-inner { max-width: 1400px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; font-size: 0.9em; }
.footer-id { text-align: left; flex: 1; display: flex; align-items: center; gap: 15px; }
.footer-brand-img { height: 60px; width: auto; background: white; border-radius: 4px; padding: 2px; flex-shrink: 0; }
.favicon-img { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.footer-info { display: flex; flex-direction: column; }
.footer-name { display: block; letter-spacing: 1px; font-size: 1.1em; line-height: 1.2; }
.footer-title { display: block; opacity: 0.8; font-size: 0.9em; margin-bottom: 4px; }
.footer-contact { font-size: 0.85em; }
.footer-contact a { color: var(--gold); text-decoration: none; opacity: 0.9; }
.footer-copyright { opacity: 0.6; font-weight: 500; white-space: nowrap; text-align: right; flex: 1; }

.cta-btn-container { text-align: center; display: flex; flex-direction: column; align-items: center; flex: 1; }
.cta-btn { background: #eab308; color: #0f172a; padding: 8px 20px; border-radius: 6px; border: none; cursor: pointer; transition: 0.3s; display: inline-flex; flex-direction: column; align-items: center; gap: 0; box-shadow: 0 4px 15px rgba(234, 179, 8, 0.3); text-decoration: none; }
.cta-btn:hover { transform: translateY(-2px); background: #facc15; }
.cta-btn-main { font-size: 1.3em; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.cta-btn-sub { font-size: 0.95em; font-weight: 700; opacity: 0.95; }
.cta-btn-opt { font-size: 0.85em; opacity: 0.7; font-weight: normal; margin-top: 2px; }

.btn-pill { font-size: 0.75em; text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 20px; border-radius: 50px; transition: 0.3s; }
.btn-pill-primary { color: #fff; background: var(--accent); box-shadow: 0 4px 10px rgba(0,51,102,0.15); border: none; cursor: pointer; }
.btn-pill-secondary { color: var(--accent); background: #fff; border: 1px solid var(--accent); }

.text-accent { color: var(--accent); }
.text-slate { color: #64748b; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mt-auto { margin-top: auto !important; }
.mb-10 { margin-bottom: 10px; }
.mb-30 { margin-bottom: 20px; }
.text-center { text-align: center; }
.m-auto { margin: 0 auto !important; }

/* --- MOBILE STICKY --- */
.mobile-sticky-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--accent); padding: 15px; z-index: 9999; box-shadow: 0 -5px 20px rgba(0,0,0,0.2); border-top: 3px solid #eab308; text-align: center; }
.mobile-sticky-cta button { width: 100%; max-width: 400px; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .header-content { grid-template-columns: 1fr; gap: 15px; text-align: center; }
    .doc-layout { grid-template-columns: 1fr; }
    .phases-grid { grid-template-columns: 1fr; }
    aside { order: 2; margin-top: 30px; }
    main { order: 1; }
    .footer-inner { flex-direction: column; gap: 20px; text-align: center; padding-bottom: 80px; }
    .footer-copyright { text-align: center; }
    .logo-group { justify-content: center; }
    .header-nav { justify-self: center; }
    .mobile-sticky-cta { display: block; animation: slideUp 0.5s ease-out; }
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* --- MAINTENANCE BLOCK V2 --- */
.maint-block-v2 {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--accent);
    border-radius: 8px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 30px;
}
.maint-block-v2 .col-pitch {
    flex: 1;
    padding-right: 30px;
    border-right: 1px solid var(--border-color);
}
.maint-block-v2 .col-features {
    flex: 1;
}
.maint-title-v2 {
    font-size: 1.3em;
    color: var(--text-dark);
    margin-top: 0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.maint-text-v2 {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--text-light);
}
.maint-price-box {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    margin-top: 20px;
}
.maint-price-box .price {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--accent);
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
}
.maint-price-box .price-unit {
    font-size: 0.5em;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
}
.maint-price-box .period {
    display: block;
    font-size: 0.8em;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
}
.maint-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.maint-features-list li {
    display: flex;
    align-items: flex-start;
    font-size: 1em;
    padding: 12px 0;
}
.maint-features-list li:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}
.maint-features-list .feature-icon {
    color: var(--accent);
    font-size: 1.2em;
    margin-right: 15px;
    width: 25px;
    text-align: center;
    padding-top: 3px;
}
.maint-features-list .feature-text strong {
    color: var(--text-dark);
}
.maint-features-list .feature-text small {
    color: var(--text-light);
    display: block;
}
/* --- RESPONSIVE ADDITION FOR MAINT-BLOCK --- */
@media (max-width: 900px) {
    .maint-block-v2 {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    .maint-block-v2 .col-pitch {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 20px;
        width: 100%;
    }
}

/* --- FIXES REMOVED --- */

/* --- RICH CARD UNIFIED FIX (V3) --- */
.rich-card {
    display: flex;
    flex-direction: column;
}
.rc-body {
    flex-grow: 1; /* Force les boîtes à avoir la même hauteur */
}
.rc-body p {
    text-align: justify;
}
.locked-item.rich-card .rc-header,
.locked-item.rich-card .rc-body {
    padding-right: 50px; /* Ajoute un dégagement à droite pour le cadenas */
}


/* =========================================
   STYLES LMS FUSIONNÉS (BOÎTES À OUTILS, QUIZ, ETC.)
   ========================================= */

/* STYLES SPÃ‰CIFIQUES LMS */
:root { --accent: #003366; }

#completion-badge { display: none; background: #28a745; color: white; padding: 10px 20px; border-radius: 8px; margin-top: 15px; font-weight: bold; animation: slideInUp 0.5s ease-out; }
@keyframes slideInUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.lms-lock-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.9); display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 100; color: white; text-align: center; border-radius: 15px; }
.eval-tag-done { background: #28a745 !important; color: white !important; }
.lang-select { padding: 5px 10px; border-radius: 50px; border: 1px solid #003366; background: white; color: #003366; font-weight: bold; cursor: pointer; font-size: 0.8em; margin-right: 15px; }

/* Modales */
.modal-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; /* Viewport width */
    height: 100vh; /* Viewport height */
    background: rgba(0,0,0,0.85); /* Fond trÃ¨s sombre */
    display: none; 
    justify-content: center; 
    align-items: center; 
    z-index: 2147483647 !important; /* Maximum possible */
    padding: 20px;
    backdrop-filter: blur(5px); /* Effet flou moderne */
}
.modal-card { 
    background: white; 
    padding: 30px; 
    border-radius: 15px; 
    width: 100%; 
    max-width: 600px; 
    max-height: 90vh; 
    overflow-y: auto; 
    position: relative; 
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); 
    z-index: 2147483647 !important;
}
.modal-btn { background: var(--accent); color: white; border: none; padding: 12px 25px; border-radius: 8px; font-weight: bold; cursor: pointer; width: 100%; margin-top: 15px; }

/* Quiz Styling (Alignement Gauche ForcÃ©) */
#quiz-container { text-align: left !important; margin-bottom: 20px; width: 100%; }
#quiz-container h3, #quiz-container p { text-align: left !important; width: 100%; }
#quiz-container strong { display: block; margin-bottom: 10px; color: #003366; text-align: left !important; }
#quiz-container div { margin-bottom: 15px; text-align: left !important; }
#quiz-container label { cursor: pointer; margin-left: 5px; text-align: left !important; }
#btn-valider-quiz { width: 100%; padding: 12px; background: #003366; color: white; border: none; border-radius: 5px; font-weight: bold; cursor: pointer; }
#btn-valider-quiz:hover { background: #004080; }

/* Grid Ressources (Cartes) */
.toolbox-section { background: #f8fafc; border: 2px solid #e2e8f0; padding: 25px; border-radius: 15px; margin-top: 30px; box-shadow: inset 0 2px 4px 0 rgba(0,0,0,0.05); }
.toolbox-header { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; color: var(--accent); border-bottom: 2px solid var(--accent); padding-bottom: 10px; }
.toolbox-header h3 { margin: 0; font-size: 1.1em; text-transform: uppercase; letter-spacing: 1px; }

.resource-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 15px; }
.res-card { background: white; border: none; padding: 20px 15px; border-radius: 12px; text-align: center; text-decoration: none; color: #334155; transition: all 0.3s ease; display: flex; flex-direction: column; align-items: center; gap: 10px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06); }
.res-card i, .res-card img { transition: transform 0.3s ease; }
.res-card span { font-size: 0.9em; font-weight: 700; line-height: 1.2; }
.res-card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); border-bottom: 3px solid var(--accent); }
.res-card:hover i, .res-card:hover img { transform: scale(1.1); }

