/* Identité visuelle par défaut. */
:root{ --primary:#176b91; --primary-rgb:23, 107, 145; --secondary-rgb:69, 183, 199; --success-rgb:37, 123, 99; --danger-rgb:220, 53, 69; --warning-rgb:245, 158, 11; --info-rgb:56, 189, 248; --primary-light:#48a7c7; --primary-dark:#10516f; --primary-hover:#145e80; --secondary:#45b7c7; --secondary-hover:#299aaa; --text:#183443; --text-muted:#607986; --bg:#edf5f5; --body-bg:#edf5f5; --bg-card:#fbfdfb; --card-bg:#fbfdfb; --light:#e5f0f1; --border:#d4e3e5; --glass:rgba(251, 253, 251, .92); --glass-2:#fbfdfb; --glass-soft:rgba(229, 240, 241, .72); --glass-brd:#d4e3e5; --glass-brd-soft:#dce9ea; --grad-brand:linear-gradient(120deg, #176b91, #45b7c7); --font-body:"DM Sans", sans-serif; --font-display:"Manrope", sans-serif; --font-family:var(--font-body); --radius:1.1rem; --radius-sm:.7rem; --shadow:0 14px 38px rgba(24, 70, 84, .08); --shadow-hover:0 20px 46px rgba(24, 70, 84, .14); --bs-primary:#176b91; --bs-primary-rgb:23, 107, 145; --bs-secondary:#607986; --bs-success:#257b63; --bs-info:#45b7c7; --bs-body-font-family:var(--font-body); --bs-body-color:#183443; --bs-body-bg:#edf5f5; --bs-link-color:#176b91; --bs-link-hover-color:#10516f; color-scheme:light; }

html, body{ min-height:100%; max-width:100%; overflow-x:clip; }
body{ color:var(--text); font-family:var(--font-body); line-height:1.65; }
h1, h2, h3, h4, h5, h6{ font-family:var(--font-display); color:var(--text); }
a{ color:var(--primary); text-underline-offset:.18em; }
a:hover{ color:var(--primary-dark); }
::selection{ background:rgba(var(--secondary-rgb), .28); color:var(--text); }
.logo{ font-size:1.28rem; color:var(--text); max-width:13rem; }
.logo span{ background:none; color:var(--text); -webkit-text-fill-color:currentColor; letter-spacing:-.045em; }
.logo img{ height:36px; }
.site-breadcrumb{ width:min(100% - 2rem, 1320px); margin:1.2rem auto .65rem; padding:.55rem .85rem; border:1px solid var(--border); border-radius:.7rem; background:var(--bg-card); font-size:.84rem; }
.site-breadcrumb a{ text-decoration:none; }
.main-with-sidebar{ display:block; flex:1 0 auto; margin:0 auto; }
.main-with-sidebar .main-content{ min-width:0; padding:.5rem 0 2rem; }
.main-with-sidebar .sidebar{ min-width:0; }
.sidebar .banner{ margin-top:.65rem; }
.banner-container .banner{ border-radius:.85rem; box-shadow:var(--shadow); }
.banner-image{ border-radius:inherit; }
.evenement-banner{ background:linear-gradient(110deg, var(--primary-hover), #249caf); }
.messages-container{ margin-bottom:1.25rem; }
.alert{ border-radius:.8rem; }
.alert-error{ color:#842029; background-color:#f8d7da; border-color:#f5c2c7; }
.close-alert{ border:0; background:transparent; color:currentColor; margin-left:auto; }
.close-alert i{ color:currentColor; }
.btn{ --bs-btn-border-radius:.72rem; --bs-btn-font-weight:700; text-decoration:none; transition:transform .18s ease, background-color .18s ease, box-shadow .18s ease; }
.btn:hover{ transform:translateY(-1px); }
.btn-primary, .btn-success{ --bs-btn-bg:#176b91; --bs-btn-border-color:#176b91; --bs-btn-hover-bg:#10516f; --bs-btn-hover-border-color:#10516f; --bs-btn-active-bg:#10516f; --bs-btn-active-border-color:#10516f; color:#fff; background:var(--primary); border-color:var(--primary); box-shadow:0 6px 16px rgba(var(--primary-rgb), .15); }
.btn-primary:hover, .btn-success:hover{ background:var(--primary-dark); border-color:var(--primary-dark); }
.btn-outline, .btn-outline-primary{ color:var(--primary); border:1px solid var(--primary); background:transparent; }
.btn-outline:hover, .btn-outline-primary:hover{ color:#fff; background:var(--primary); border-color:var(--primary); }
.btn-secondary{ --bs-btn-bg:#56717c; --bs-btn-border-color:#56717c; --bs-btn-hover-bg:#3e5a65; --bs-btn-hover-border-color:#3e5a65; }
.badge, .badge-primary, .badge-secondary, .badge-success, .badge-warning, .badge-danger{ border-radius:999px; font-weight:700; letter-spacing:.01em; }
.badge-primary{ color:#155977; background:#d9eff3; }
.badge-secondary{ color:#516a74; background:#e7eff0; }
.badge-success{ color:#216b56; background:#dcefe8; }
.badge-warning{ color:#7b5b21; background:#f6ebce; }
.badge-danger{ color:#873f47; background:#f6dfe1; }
.card{ color:var(--text); border:1px solid var(--border); border-radius:1rem; background:var(--bg-card); box-shadow:var(--shadow); }
.card-body{ color:var(--text); }
.form-control, .form-select, input[type="text"], input[type="email"], input[type="password"], input[type="number"], textarea, select{ color:var(--text); background-color:var(--bg-card); border-color:var(--border); border-radius:.68rem; }
.form-control:focus, .form-select:focus, input:focus, textarea:focus, select:focus{ color:var(--text); background-color:var(--bg-card); border-color:var(--secondary); box-shadow:0 0 0 .22rem rgba(var(--secondary-rgb), .18); }
label{ font-weight:650; color:var(--text); }
hr{ border-color:var(--border); opacity:1; }
.hero::after{ content:""; position:absolute; width:24rem; aspect-ratio:1; right:-8rem; bottom:-14rem; border:1px solid rgba(var(--secondary-rgb), .22); border-radius:50%; box-shadow:0 0 0 2.6rem rgba(var(--secondary-rgb), .035), 0 0 0 5.2rem rgba(var(--secondary-rgb), .025); pointer-events:none; }
.section-header{ text-align:left; margin:0 0 1.5rem; }
.section-tag{ color:var(--primary); font-size:.78rem; text-transform:uppercase; letter-spacing:.13em; font-weight:800; }
.section-header h2{ max-width:680px; margin-top:.45rem; font-size:clamp(1.8rem, 4vw, 2.75rem); letter-spacing:-.05em; }
.section-header .highlight{ background:none; color:var(--primary); -webkit-text-fill-color:currentColor; }
.feature-card{ padding:1.5rem; border:1px solid var(--border); border-radius:1rem; background:var(--bg-card); box-shadow:0 8px 24px rgba(24, 70, 84, .045); }
.feature-card:nth-child(2){ margin-top:1.2rem; }
.feature-card:nth-child(3){ margin-top:2.4rem; }
.feature-icon-wrapper{ background:#e1f2f3; border:0; border-radius:.85rem; }
.feature-icon-wrapper i, .feature-icon{ color:var(--primary); }
.feature-card h3{ margin:1rem 0 .55rem; font-size:1.1rem; }
.feature-card p{ color:var(--text-muted); font-size:.94rem; }
.testimonial-card{ padding:1.5rem; border:1px solid var(--border); border-radius:1rem; background:var(--bg-card); }
.testimonial-card .stars{ color:#bc8c35; }
.btn-reset{ border-radius:.68rem; border-color:var(--border); background:var(--bg-card); }
.quiz-card{ background:var(--bg-card); border-color:var(--border); border-radius:.9rem; }
.quiz-card:hover{ border-color:rgba(var(--secondary-rgb), .55); }
.lesson-detail-container{ width:min(100%, 920px); margin:1rem auto 3rem; padding:0; }
.lesson-detail-container > .card{ padding:clamp(1rem, 4vw, 2.2rem) !important; }
.lesson-content{ border:1px solid var(--border); background:var(--glass-soft); border-radius:.9rem; }
.lesson-actions .btn{ border-radius:.7rem; }
.section-list li{ border-color:var(--border); }
.quiz-card-lesson{ background:var(--bg-card); border-color:var(--border); border-radius:.9rem; }
.auth-container{ width:min(100% - 1.5rem, 560px); margin:clamp(1.25rem, 4vw, 3rem) auto; }
.auth-card{ overflow:hidden; padding:0; }
.auth-header{ padding:2rem 2rem 1.2rem; text-align:left; }
.auth-header > div{ margin:0 0 1.1rem !important; width:3.3rem !important; height:3.3rem !important; border-radius:.9rem !important; box-shadow:none !important; }
.auth-header h2{ margin-bottom:.35rem; font-size:1.8rem; letter-spacing:-.05em; }
.auth-header p{ color:var(--text-muted); }
.auth-card form{ padding:0 2rem 1.4rem; }
.auth-card .form-group{ margin-bottom:1rem; }
.auth-card label{ display:block; margin-bottom:.4rem; font-size:.9rem; }
.auth-card input:not([type="checkbox"]){ width:100%; min-height:2.85rem; padding:.65rem .8rem; border:1px solid var(--border); border-radius:.65rem; background:var(--bg-card); color:var(--text); }
.auth-card .password-field{ position:relative; }
.auth-card .password-field input{ padding-right:3rem; }
.auth-card .toggle-password{ position:absolute; right:.45rem; top:50%; transform:translateY(-50%); width:2.2rem; height:2.2rem; border:0; border-radius:.5rem; background:transparent; color:var(--text-muted); }
.auth-card .btn-block{ width:100%; justify-content:center; border-radius:.7rem; }
.auth-links{ padding:1.1rem 2rem; border-top:1px solid var(--border); background:var(--glass-soft); text-align:center; }
.auth-links p{ margin:0; color:var(--text-muted); font-size:.9rem; }
.auth-links a{ font-weight:700; text-decoration:none; }
footer{ margin-top:auto; padding:2.25rem 1rem; color:var(--text); background:#dcebed; border-top:1px solid var(--border); }
html[data-theme="dark"] footer, html[data-bs-theme="dark"] footer{ color:var(--text); }
@media (max-width:767.98px){
.hero{ grid-template-columns:1fr; width:min(100% - 1rem, 42rem); padding:1.3rem; gap:1rem; }
.feature-card:nth-child(n){ margin-top:0; }
.btn-reset{ width:100%; }
}
@media (min-width:768px) and (max-width:991.98px){
.feature-card:nth-child(n){ margin-top:0; }
}
@media (prefers-reduced-motion: reduce){
*, *::before, *::after{ scroll-behavior:auto !important; }
}
.banner-header .banner-image, .banner-footer .banner-image{ max-height:none; height:auto; object-fit:contain; }
.banner-mobile-only{ display:none !important; }
.banner-mobile-only .banner-image{ width:100%; max-width:640px; margin-inline:auto; }
@media (max-width:991.98px){
.banner-desktop-only{ display:none !important; }
.banner-mobile-only{ display:block !important; }
}
.sidebar .banner-container{ width:100%; margin-inline:0; }
.sidebar .banner-sidebar .banner-image{ max-height:32rem; object-fit:contain; }
@media (min-width:992px){
.sidebar .banner-sidebar{ position:sticky; top:5rem; }
}
@media (max-width:991.98px){
.main-with-sidebar .row > .main-content{ order:1; }
.main-with-sidebar .row > .sidebar{ order:2; }
.sidebar .banner-sidebar .banner-image{ max-height:20rem; }
}
