/* ============================================================
   LaCasatec — Design System
   Moderne · Professionnel · Classique
   ============================================================ */

:root {
    --primary: #0B3B8C;
    --primary-dark: #082B68;
    --primary-light: #E8EEFB;
    --accent: #D4A017;
    --accent-dark: #B8860B;
    --accent-light: #FBF3DC;

    --bg: #FFFFFF;
    --bg-soft: #F4F7FC;
    --surface: #FFFFFF;
    --text: #16233D;
    --text-muted: #5A6B8C;
    --border: #E3E9F3;

    --success: #16A34A;
    --warning: #D97706;
    --info: #2563EB;

    --radius: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(11, 59, 140, .08);
    --shadow: 0 6px 24px rgba(11, 59, 140, .12);
    --shadow-lg: 0 16px 48px rgba(11, 59, 140, .18);
    --font-head: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --header-h: 72px;
}

[data-theme="dark"] {
    --bg: #0B1220;
    --bg-soft: #101A2E;
    --surface: #16223A;
    --text: #E8EEF9;
    --text-muted: #93A5C4;
    --border: #243350;
    --primary: #4F83E3;
    --primary-dark: #3A67C4;
    --primary-light: #1C2C4E;
    --accent: #E3B93E;
    --accent-light: #2A2410;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .4);
    --shadow: 0 6px 24px rgba(0, 0, 0, .5);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, .6);
}

/* ---------- Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
    transition: background .3s, color .3s;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; color: var(--text); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }

.section-head { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 700; margin-bottom: 12px; }
.section-head p { color: var(--text-muted); font-size: 17px; }
.section-head .eyebrow {
    display: inline-block; font-family: var(--font-head); font-size: 13px; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark);
    margin-bottom: 10px;
}

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-head); font-weight: 600; font-size: 15px;
    padding: 12px 26px; border-radius: 999px; border: 2px solid transparent;
    cursor: pointer; transition: all .25s; line-height: 1.2; text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--primary-light); }
.btn-sm { padding: 8px 18px; font-size: 13.5px; }
.btn-lg { padding: 15px 34px; font-size: 16px; }

/* ---------- Bandeau annonce défilant (droite -> gauche) ---------- */
.topbar {
    background: var(--primary-dark); color: #fff; text-align: center;
    padding: 8px 16px; font-size: 14px;
}
.topbar-defilant { padding: 0; overflow: hidden; }
.topbar-track { overflow: hidden; white-space: nowrap; width: 100%; }
.topbar-contenu {
    display: inline-block; padding: 8px 0 8px 100%;
    animation: topbar-defile 25s linear infinite;
    white-space: nowrap; vertical-align: middle;
}
.topbar-contenu p, .topbar-contenu h1, .topbar-contenu h2, .topbar-contenu h3,
.topbar-contenu h4, .topbar-contenu ul, .topbar-contenu ol { display: inline; margin: 0; padding: 0; font-size: 14px; }
.topbar-contenu li { display: inline; margin-right: 18px; }
.topbar-contenu img { height: 22px; width: auto; vertical-align: middle; border-radius: 4px; }
.topbar-contenu a { color: #FFD966; font-weight: 600; text-decoration: underline; pointer-events: auto; }
.topbar-contenu a:hover { color: #fff; }
.topbar-defilant:hover .topbar-contenu { animation-play-state: paused; }
@keyframes topbar-defile {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
    .topbar-contenu { animation: none; padding-left: 0; white-space: normal; }
}

/* ---------- Header ---------- */
.header {
    position: sticky; top: 0; z-index: 100;
    background: var(--bg); border-bottom: 1px solid var(--border);
    transition: box-shadow .3s;
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 42px; height: 42px; object-fit: contain; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 19px; color: var(--text); letter-spacing: -.01em; }
.brand-light .brand-name { color: #fff; }

.nav { display: flex; gap: 6px; }
.nav a {
    padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: 15px; color: var(--text);
    transition: background .2s, color .2s;
}
.nav a:hover { background: var(--primary-light); color: var(--primary); }
.nav a.active { background: var(--primary); color: #fff; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
    background: var(--surface); color: var(--text); cursor: pointer; transition: all .25s;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }
.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span { width: 24px; height: 2.5px; background: var(--text); border-radius: 2px; transition: .3s; }
/* Bouton Connexion / Mon espace : uniquement dans le menu déroulant mobile */
.nav .nav-cta { display: none; }

/* ---------- Hero / Carrousel ---------- */
.hero { position: relative; overflow: hidden; background: var(--primary-dark); min-height: 560px; display: flex; align-items: center; }
.hero-slides { display: flex; flex: 1 0 100%; min-width: 0; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; }
.hero-slides::-webkit-scrollbar { display: none; }
.hero-slide {
    min-width: 100%; padding: 90px 0; color: #fff;
    display: flex; align-items: center;
    scroll-snap-align: start;
}
.hero-content { max-width: 680px; }
.hero-content h1, .hero-content .hero-title { color: #fff; font-size: clamp(30px, 5vw, 52px); font-weight: 800; margin-bottom: 16px; }
.hero-content p { font-size: 18px; opacity: .92; margin-bottom: 28px; color: #DCE6F8; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-nav {
    position: absolute; inset: auto 0 0 0; display: flex; justify-content: center;
    gap: 10px; padding: 22px 0; z-index: 5;
}
.hero-dot { width: 12px; height: 12px; border-radius: 50%; border: none; background: rgba(255,255,255,.35); cursor: pointer; transition: .3s; }
.hero-dot.active { background: var(--accent); transform: scale(1.2); }

/* Voile de chargement du hero */
.hero-loader { position: absolute; inset: 0; z-index: 6; display: flex; align-items: center; justify-content: center; background: rgba(11, 59, 140, 0.25); color: #fff; font-weight: 600; letter-spacing: .02em; text-shadow: 0 1px 10px rgba(0,0,0,.5); transition: opacity .45s ease; }
.hero-loader.hide { opacity: 0; pointer-events: none; }
.hero-loader-dots::after { content: ''; animation: heroDots 1.2s infinite; }
@keyframes heroDots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

/* Points du slider témoignages : conteneur dédié en flux normal (fond clair) */
.temoignages-nav { display: flex; justify-content: center; gap: 10px; padding: 18px 0 4px; }
.temoignage-dot { width: 12px; height: 12px; border-radius: 50%; border: none; padding: 0; background: #CBD5E1; cursor: pointer; transition: .3s; }
.temoignage-dot.active { background: var(--primary); transform: scale(1.2); }

/* ---------- Bandes de statistiques ---------- */
.stats { background: var(--primary); padding: 44px 0; color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; text-align: center; }
.stat-value { font-family: var(--font-head); font-size: clamp(30px, 4vw, 42px); font-weight: 800; color: #fff; }
.stat-label { opacity: .85; font-size: 14.5px; }

/* ---------- Cartes ---------- */
.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .3s, box-shadow .3s;
    display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 16/9; object-fit: cover; width: 100%; background: var(--primary-light); }

/* ---------- Effet zoom + voile texte au survol (images cliquables) ---------- */
.zoom-wrap {
    position: relative; display: block; overflow: hidden;
}
.zoom-wrap .card-img, .zoom-wrap img, .zoom-wrap .card-img-ph { transition: transform .4s ease; }
.zoom-wrap:hover .card-img, .zoom-wrap:hover img, .zoom-wrap:hover .card-img-ph { transform: scale(1.05); }
.zoom-wrap::after {
    content: attr(data-txt);
    position: absolute; inset: 0; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    background: rgba(11, 59, 140, .7);
    color: #fff; font-family: var(--font-head);
    font-size: 15px; font-weight: 600; letter-spacing: .02em;
    opacity: 0; transition: opacity .3s ease;
    text-align: center; padding: 8px;
}
.zoom-wrap:hover::after { opacity: 1; }

/* ---------- Image de formation : cliquable, sans voile ---------- */
.form-img-link {
    display: block; overflow: hidden;
    transition: box-shadow .3s ease;
}
.form-img-link:hover { box-shadow: 0 12px 26px rgba(11, 59, 140, .28); }
.form-img-link img { display: block; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 19px; }
.card-body p { color: var(--text-muted); font-size: 14.5px; flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }

/* ---------- Carte « À la une » (actualités) ---------- */
.actus-grid .card-une {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: stretch;
}
.actus-grid .card-une .zoom-wrap,
.actus-grid .card-une .card-img-ph { height: 100%; }
.actus-grid .card-une .card-img { aspect-ratio: auto; height: 100%; min-height: 300px; }
.actus-grid .card-une .card-img-ph { border-radius: 0; }
.actus-grid .card-une .card-body { padding: 34px 32px; gap: 12px; }
.actus-grid .card-une h3 { font-size: clamp(21px, 2.4vw, 27px); }
.actus-grid .card-une p { font-size: 15px; }
@media (max-width: 700px) {
    .actus-grid .card-une { grid-template-columns: 1fr; }
    .actus-grid .card-une .card-img { min-height: 0; aspect-ratio: 16/9; }
}
.groupe-liste .card-une { display: flex; }
.groupe-liste .card-une .card-img { aspect-ratio: auto; min-height: 0; height: auto; }

/* ---------- Toggle d'affichage carte / liste ---------- */
.vue-toggle { display: inline-flex; border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; }
.vue-btn {
    border: none; background: var(--surface); color: var(--text-muted);
    padding: 10px 14px; font-family: var(--font-body); font-size: 13.5px; cursor: pointer;
}
.vue-btn + .vue-btn { border-left: 1.5px solid var(--border); }
.vue-btn.active { background: var(--primary); color: #fff; }

/* Mode liste : cartes horizontales compactes */
.groupe-liste { grid-template-columns: 1fr !important; gap: 16px; }
.groupe-liste .card { display: flex; align-items: stretch; gap: 0; overflow: hidden; }
.groupe-liste .card-img, .groupe-liste .card-img-ph {
    width: 260px; min-width: 260px; aspect-ratio: auto; align-self: stretch;
}
.groupe-liste .card-img-ph { display: flex; align-items: center; justify-content: center; }
.groupe-liste .card-img-ph svg { width: 60px; height: 60px; }
.groupe-liste .card-body { flex: 1; }
@media (max-width: 640px) {
    .groupe-liste .card { flex-direction: column; }
    .groupe-liste .card-img, .groupe-liste .card-img-ph {
        width: 100%; min-width: 0; aspect-ratio: 16/9;
    }
}

/* ---------- Badges / statuts ---------- */
.badge {
    display: inline-block; padding: 4px 12px; border-radius: 999px;
    font-size: 12.5px; font-weight: 600; font-family: var(--font-head);
}
.badge-programme { background: var(--accent-light); color: var(--warning); }
.badge-en_cours { background: var(--primary-light); color: var(--primary); }
.badge-refuse { background: #FDE7E7; color: #C0392B; }
[data-theme="dark"] .badge-refuse { background: #3A1D1A; }
.badge-termine { background: #E7F6EC; color: var(--success); }
[data-theme="dark"] .badge-termine { background: #123122; }

/* ---------- Activités (Accueil / À propos) ---------- */
.activite-icon {
    width: 58px; height: 58px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
    background: var(--primary-light); color: var(--primary); font-size: 26px; margin-bottom: 14px;
}

/* ---------- Mot du président ---------- */
.president { display: grid; grid-template-columns: 0.85fr 1.4fr; gap: 48px; align-items: center; }
.president-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); max-width: 360px; width: 100%; justify-self: center; }
.president-img img { width: 100%; height: auto; display: block; }
.president-quote { position: relative; padding: 8px 0 8px 26px; border-left: 4px solid var(--accent); font-style: italic; color: var(--text-muted); margin-bottom: 20px; }
.president-quote-sans-barre { border-left: none; padding-left: 0; }

/* ---------- Événements (agenda) ---------- */
.event-stats { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.event-stat {
    background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 16px; padding: 14px 24px; min-width: 128px; text-align: center;
    backdrop-filter: blur(4px);
}
.event-stat strong { display: block; font-family: var(--font-head); font-size: 25px; font-weight: 700; color: var(--accent); line-height: 1.1; }
.event-stat span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .09em; color: #DCE6F8; }

.event-jour { font-family: var(--font-head); font-size: 34px; font-weight: 800; line-height: 1; }
.event-mois { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; opacity: .9; }
.event-annee { font-size: 11px; opacity: .65; }
.event-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.event-infos { font-size: 13.5px; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 5px 18px; }
.event-infos .info { display: inline-flex; align-items: center; gap: 7px; }
.event-infos svg { flex: 0 0 auto; width: 15px; height: 15px; color: var(--primary); }

/* Timeline des événements */
.event-timeline { position: relative; max-width: 880px; margin: 0 auto; }
.event-timeline::before {
    content: ''; position: absolute; left: -13px; top: 8px; bottom: 8px; width: 2px;
    background: linear-gradient(var(--primary-light), var(--border));
}
.event-tl { position: relative; display: grid; grid-template-columns: 112px 1fr; gap: 36px; padding-bottom: 30px; }
.event-tl:last-child { padding-bottom: 0; }
.event-tl::before {
    content: ''; position: absolute; left: -20px; top: 47px; width: 14px; height: 14px;
    border-radius: 50%; background: var(--surface); border: 3px solid var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light); z-index: 1;
}
.event-tl-date {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff; border-radius: var(--radius); padding: 22px 10px; text-align: center;
    box-shadow: var(--shadow-sm); align-self: start;
}
.event-tl-body {
    background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--primary);
    border-radius: var(--radius); padding: 20px 22px;
    display: flex; flex-direction: column; gap: 10px;
    transition: transform .3s, box-shadow .3s;
}
.event-tl:hover .event-tl-body { transform: translateY(-3px); box-shadow: var(--shadow); }
.event-tl-body h3 { font-size: 18px; line-height: 1.35; }
.event-tl-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.event-tl-passe .event-tl-date { background: linear-gradient(160deg, var(--text-muted), #718096); }
.event-tl-passe::before { border-color: var(--text-muted); box-shadow: 0 0 0 4px var(--bg-soft); }
.event-tl-passe .event-tl-body { border-left-color: var(--border); opacity: .8; }
.event-tl-passe:hover .event-tl-body { opacity: 1; }

.event-filters { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.event-filter {
    padding: 10px 24px; border-radius: 999px; border: 1.5px solid var(--border);
    background: var(--surface); color: var(--text); font-family: var(--font-head);
    font-weight: 500; font-size: 14px; cursor: pointer; transition: .25s;
    display: inline-flex; align-items: center; gap: 8px;
}
.event-filter:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.event-filter.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.event-filter .count {
    background: var(--primary-light); color: var(--primary); border-radius: 999px;
    font-size: 12px; font-weight: 700; padding: 1px 9px;
}
.event-filter.active .count { background: rgba(255, 255, 255, .22); color: #fff; }
@media (max-width: 700px) {
    .event-timeline::before { display: none; }
    .event-tl { grid-template-columns: 1fr; gap: 12px; }
    .event-tl::before { display: none; }
    .event-tl-date { flex-direction: row; gap: 10px; padding: 14px 18px; justify-content: flex-start; }
    .event-tl-date .event-jour { font-size: 28px; }
    .event-card { grid-template-columns: 80px 1fr; }
}
@media (max-width: 460px) {
    .event-stats { gap: 10px; }
    .event-stat { min-width: 100px; padding: 10px 14px; }
}

/* ---------- Événements : cartes + places ---------- */
#eventVues .event-timeline { display: none; }
#eventVues.groupe-liste .event-grid { display: none; }
#eventVues.groupe-liste .event-timeline { display: block; }
.event-vue-toggle { margin-left: auto; }
@media (max-width: 700px) {
    .event-vue-toggle { margin-left: 0; }
}

.event-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(345px, 1fr)); gap: 24px;
    max-width: 920px; margin: 0 auto;
}
.event-card {
    display: grid; grid-template-columns: 96px 1fr; overflow: hidden;
    border-top: 3px solid transparent;
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.event-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-top-color: var(--accent); }
.event-card-date {
    background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff; padding: 20px 10px; text-align: center;
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px;
}
.event-passe .event-card-date { background: linear-gradient(160deg, var(--text-muted), #718096); }
.event-passe .event-card-body { opacity: .75; }
.event-card-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.event-card-body h3 { font-size: 17px; line-height: 1.35; }
.event-card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.event-card-actions .btn[disabled], .event-tl-actions .btn[disabled] { opacity: .55; cursor: not-allowed; }

.event-places { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.event-places-lib { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.event-places-lib svg { width: 15px; height: 15px; color: var(--primary); flex: 0 0 auto; }
.event-places-jauge { flex: 1; max-width: 130px; height: 5px; border-radius: 999px; background: var(--border); overflow: hidden; }
.event-places-jauge span { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.event-places.places-completes .event-places-lib, .event-places.places-completes .event-places-lib svg { color: #C0392B; }

/* ---------- Témoignages (page dédiée) ---------- */
.temoignages-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.temoignage-card {
    position: relative; padding: 30px 26px 26px;
    border-top: 3px solid transparent;
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.temoignage-card::before {
    content: '\201C'; position: absolute; top: 6px; right: 22px;
    font-family: Georgia, 'Times New Roman', serif; font-size: 74px; line-height: 1;
    color: var(--primary); opacity: .10; pointer-events: none;
}
.temoignage-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-top-color: var(--accent); }
.temoignage-pick {
    position: absolute; top: 20px; right: 20px; z-index: 1;
    display: inline-flex; align-items: center; gap: 5px;
    background: linear-gradient(135deg, var(--accent), #B8860B); color: #fff;
    font-family: var(--font-head); font-size: 11px; font-weight: 700;
    padding: 4px 11px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.temoignage-stars { color: var(--accent); font-size: 15px; letter-spacing: 3px; }
.temoignage-stars .vides { color: var(--border); }
.temoignage-texte {
    font-size: 15px; font-style: italic; color: var(--text);
    line-height: 1.8; flex: 1; margin-top: 10px;
}
.temoignage-auteur { display: flex; align-items: center; gap: 13px; border-top: 1px solid var(--border); padding-top: 16px; margin-top: 16px; }
.temoignage-photo {
    width: 50px; height: 50px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex; align-items: center; justify-content: center; color: #fff;
    border: 2px solid transparent; transition: border-color .3s;
}
.temoignage-card:hover .temoignage-photo { border-color: var(--accent); }
.temoignage-photo svg { width: 21px; height: 21px; }
.temoignage-auteur strong { display: block; font-size: 15px; font-family: var(--font-head); }
.temoignage-auteur span { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .07em; }

/* Bande CTA témoignages */
.cta-temoignages { text-align: center; }
.cta-temoignages h2 { margin-bottom: 10px; }
.cta-temoignages p { color: var(--text-muted); max-width: 560px; margin: 0 auto 26px; }

/* ---------- Dialogue ---------- */
.dialog { margin: auto; border: none; border-radius: var(--radius-lg); padding: 28px; max-width: 440px; width: 90%; box-shadow: var(--shadow-lg); background: var(--surface); color: var(--text); }
.dialog-lg { max-width: 620px; }
.dialog-close {
    flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border);
    background: var(--bg-soft); color: var(--text-muted); font-size: 20px; line-height: 1; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; transition: .25s;
}
.dialog-close:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.dialog-lg h3 { font-size: 20px; margin-bottom: 6px; }
.dialog-lg .detail-desc { margin-top: 14px; white-space: pre-line; color: var(--text); font-size: 14.5px; line-height: 1.65; max-height: 55vh; overflow-y: auto; padding-right: 6px; }
.dialog-lg .detail-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 8px; }
.dialog-lg .detail-meta span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-muted); }
.dialog-lg .detail-meta svg { width: 15px; height: 15px; color: var(--primary); }
.dialog::backdrop { background: rgba(6, 15, 35, .55); }
.dialog .form-group { margin-top: 12px; }
.dialog .form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }

/* ---------- Bouton WhatsApp ---------- */
.btn-wa { background: #25D366; color: #fff; border-color: #25D366; }
.btn-wa:hover { background: #1EBE58; color: #fff; border-color: #1EBE58; }

/* ---------- Partenaires — défilement infini (swiper) ---------- */
.partner-slider { position: relative; overflow: hidden; padding: 6px 0; }
.partner-slider::before, .partner-slider::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.partner-slider::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.partner-slider::after { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.partner-track { display: flex; gap: 20px; width: max-content; animation: partner-marquee 30s linear infinite; will-change: transform; }
.partner-slider:hover .partner-track { animation-play-state: paused; }
.partner-track.dragging { animation: none; cursor: grabbing; }
.partner-track.dragging .partner-card { cursor: grabbing; }
.partner-slider .partner-card { width: 210px; flex: 0 0 auto; min-height: 118px; }
@keyframes partner-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .partner-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
    .partner-slider::before, .partner-slider::after { display: none; }
}
@media (max-width: 640px) {
    .partner-slider .partner-card { width: 170px; }
}
.partner-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    min-height: 132px; padding: 24px 18px; text-align: center;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s, border-color .3s;
}
.partner-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--accent); }
.partner-logo { height: 52px; display: flex; align-items: center; justify-content: center; }
.partner-logo img { max-height: 52px; max-width: 100%; object-fit: contain; }
.partner-badge {
    width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff;
    box-shadow: var(--shadow-sm); font-size: 24px; font-weight: 800; font-family: var(--font-head);
}
.partner-badge-b { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.partner-badge-c { background: linear-gradient(135deg, #16A34A, #14532D); }
.partner-badge svg { width: 26px; height: 26px; }
.partner-nom { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--text); }
.partner-lien { font-size: 12px; color: var(--text-muted); display: inline-flex; align-items: center; gap: 4px; }
.partner-card:hover .partner-lien { color: var(--primary); }

/* ============================================================
   À propos — design moderne & classique
   ============================================================ */
.apropos-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.apropos-chip {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 999px; padding: 8px 18px;
    font-family: var(--font-head); font-size: 13px; font-weight: 600; color: var(--text);
    box-shadow: var(--shadow-sm);
}
.apropos-chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Bloc « Année de création » */
.story-annee {
    position: relative; text-align: center; color: #fff;
    background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg); padding: 54px 36px; overflow: hidden; box-shadow: var(--shadow-lg);
}
.story-annee::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--accent); }
.story-annee .annee { font-family: var(--font-head); font-size: clamp(72px, 9vw, 96px); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.story-annee .annee-libelle { opacity: .85; font-size: 15px; margin-top: 6px; }
.story-annee .annee-dots { display: flex; gap: 6px; justify-content: center; margin: 22px 0; }
.story-annee .annee-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.55); }
.story-annee .annee-note { font-size: 13.5px; opacity: .8; line-height: 1.6; }

/* Chiffres clés — bande blanche classique */
.stats-band {
    background:
        radial-gradient(900px 260px at 50% -60px, rgba(212, 160, 23, .12), transparent 70%),
        linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
    color: var(--text);
    padding: 72px 0;
}
.stats-inner {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.stats-item { position: relative; text-align: center; padding: 40px 20px 44px; }
.stats-item + .stats-item::before {
    content: ''; position: absolute; left: 0; top: 18%; bottom: 18%;
    width: 1px; background: var(--border);
}
.stats-num { font-family: var(--font-head); font-size: clamp(36px, 4.5vw, 54px); font-weight: 800; line-height: 1; white-space: nowrap; color: var(--primary); }
.stats-suffix { color: var(--accent); }
.stats-diamond { display: block; width: 7px; height: 7px; margin: 14px auto 10px; background: var(--accent); transform: rotate(45deg); }
.stats-label {
    font-family: var(--font-head); font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .14em; color: var(--text-muted);
}
@media (max-width: 700px) {
    .stats-inner { grid-template-columns: repeat(2, 1fr); }
    .stats-item { padding: 32px 12px 36px; }
    .stats-item + .stats-item::before { top: 0; bottom: auto; left: 12%; right: 12%; width: auto; height: 1px; }
    .stats-item:nth-child(3)::before { display: none; }
}

/* Activités */
.activite-card { border-top: 4px solid var(--accent); transition: transform .3s, box-shadow .3s; }
.activite-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

/* Équipe — cartes modernes et classiques */
.team-photo {
    aspect-ratio: 1; overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.92);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.team-photo svg { width: 62px; height: 62px; opacity: .92; }
.team-body { padding: 22px 20px 26px; text-align: center; }
.team-body h3 { font-size: 19px; margin-bottom: 4px; }
.team-poste {
    font-family: var(--font-head); font-size: 11.5px; font-weight: 600;
    color: var(--primary); text-transform: uppercase; letter-spacing: .09em;
}
.team-sep { width: 34px; height: 2px; background: var(--accent); margin: 12px auto; }
.team-body > p { color: var(--text-muted); font-size: 13.5px; }
.team-socials { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.team-social {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--border); background: var(--surface);
    color: var(--text-muted); transition: all .25s ease;
}
.team-social svg { width: 16px; height: 16px; }
.team-social:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); color: #fff; }
.team-social[data-r="whatsapp"]:hover  { background: #25D366; border-color: #25D366; }
.team-social[data-r="facebook"]:hover  { background: #1877F2; border-color: #1877F2; }
.team-social[data-r="instagram"]:hover { background: #E1306C; border-color: #E1306C; }
.team-social[data-r="tiktok"]:hover    { background: #FE2C55; border-color: #FE2C55; }
.team-social[data-r="linkedin"]:hover  { background: #0A66C2; border-color: #0A66C2; }

/* Valeurs — numérotation classique */
.valeur-card {
    position: relative; padding: 26px 24px 30px; border-top: 2px solid var(--border);
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.valeur-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-top-color: var(--accent); }
.valeur-num {
    font-family: var(--font-head); font-size: 40px; font-weight: 800; line-height: 1;
    color: var(--primary); opacity: .16; letter-spacing: .02em;
}
.valeur-card:hover .valeur-num { opacity: .32; }
.valeur-card h3 { font-size: 18px; margin: 10px 0 8px; }
.valeur-card p { color: var(--text-muted); font-size: 14px; }

/* ---------- Témoignages ---------- */
.testimonials-slider { overflow: hidden; position: relative; }
.testimonials-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; }
.testimonials-track::-webkit-scrollbar { display: none; }
.testimonial { min-width: 100%; padding: 8px 4px; scroll-snap-align: start; }
.testimonial-inner {
    max-width: 760px; margin: 0 auto; text-align: center; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px 36px; box-shadow: var(--shadow-sm);
}
.testimonial-stars { color: var(--accent); font-size: 20px; margin-bottom: 14px; letter-spacing: 3px; }
.testimonial-text { font-size: 17px; color: var(--text); margin-bottom: 20px; font-style: italic; }
.testimonial-author { font-family: var(--font-head); font-weight: 600; }
.testimonial-role { color: var(--text-muted); font-size: 14px; }
.testimonial-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; background: var(--primary-light); }

/* ---------- Page hero interne ---------- */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff;
    padding: 64px 0 56px; text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 42px); margin-bottom: 10px; }
.page-hero p { color: #DCE6F8; max-width: 640px; margin: 0 auto; font-size: 16.5px; }

/* ---------- Filtres (projets / formations) ---------- */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-btn {
    padding: 9px 22px; border-radius: 999px; border: 1.5px solid var(--border);
    background: var(--surface); color: var(--text); font-family: var(--font-head);
    font-weight: 500; font-size: 14px; cursor: pointer; transition: .25s;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Barre d'outils filtres + tri + recherche */
.filter-toolbar {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
    gap: 12px; margin-bottom: 28px; padding: 16px 20px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.filter-toolbar .filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-toolbar .filter-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filter-toolbar select, .filter-toolbar input[type="search"] {
    padding: 9px 14px; border: 1.5px solid var(--border); border-radius: 999px;
    background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 14px;
    outline: none; transition: .25s;
}
.filter-toolbar select:focus, .filter-toolbar input[type="search"]:focus { border-color: var(--primary); }
.filter-toolbar input[type="search"] { width: 220px; }
.filter-count { font-size: 13.5px; color: var(--text-muted); margin-bottom: 18px; }

/* ---------- Icônes par défaut (pas d'image) ---------- */
.card-img-ph {
    aspect-ratio: 16/9; width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex; align-items: center; justify-content: center;
}
.card-img-ph svg { width: 54px; height: 54px; color: rgba(255,255,255,.92); opacity: .95; }
.card-img-ph-photo { aspect-ratio: 1; width: 100%; }
.avatar-ph {
    width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
}
.avatar-ph svg { width: 30px; height: 30px; color: #fff; }

/* ---------- Formulaires ---------- */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-weight: 600; font-size: 14px; font-family: var(--font-head); }
.form-group input, .form-group select, .form-group textarea {
    padding: 12px 15px; border: 1.5px solid var(--border); border-radius: 10px;
    font-family: var(--font-body); font-size: 15px; background: var(--bg); color: var(--text); transition: .25s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 13px; color: var(--text-muted); }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 48px; }
.contact-card { text-align: center; padding: 30px 20px; transition: transform .3s, box-shadow .3s; }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-ic {
    width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px;
    background: var(--primary-light); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
}
.contact-ic svg { width: 26px; height: 26px; }
.contact-card h3 { font-size: 16px; margin-bottom: 6px; }
.contact-card { position: relative; overflow: hidden; }
.contact-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0; transition: opacity .3s;
}
.contact-card:hover::before { opacity: 1; }
.contact-val { font-weight: 600; color: var(--text); font-size: 14.5px; line-height: 1.7; margin: 0; overflow-wrap: anywhere; }
.contact-val a { color: inherit; text-decoration: none; }
.contact-val a:hover { color: var(--primary); }
.contact-act { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--primary); text-decoration: none; }
.contact-act:hover { text-decoration: underline; }

/* Cases à cocher des services (devis) */
.service-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.service-pill {
    position: relative; display: inline-flex; align-items: center; gap: 9px;
    padding: 11px 16px 11px 12px; border: 1.5px solid var(--border); border-radius: 12px;
    background: var(--bg); color: var(--text); cursor: pointer;
    font-size: 13.5px; font-weight: 500; font-family: var(--font-body);
    transition: .22s; user-select: none;
}
.service-pill:hover { border-color: var(--primary); transform: translateY(-2px); }
.service-pill input { position: absolute; opacity: 0; pointer-events: none; }
.service-pill .service-ic {
    width: 30px; height: 30px; border-radius: 8px; flex: 0 0 auto;
    background: var(--surface); color: var(--primary); border: 1px solid var(--border);
    display: inline-flex; align-items: center; justify-content: center;
}
.service-pill .service-ic svg { width: 16px; height: 16px; }
.service-pill:has(input:checked) {
    background: var(--primary); border-color: var(--primary); color: #fff;
    box-shadow: 0 4px 14px var(--primary-light);
}
.service-pill:has(input:checked) .service-ic { background: rgba(255,255,255,.2); border-color: transparent; color: #fff; }
.service-pill:has(input:focus-visible) { outline: 3px solid var(--primary-light); }

/* ---------- Flash ---------- */
.flash-stack { position: fixed; top: calc(var(--header-h) + 14px); right: 18px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.flash { padding: 13px 42px 13px 16px; border-radius: 10px; font-size: 14.5px; font-weight: 500; box-shadow: var(--shadow); position: relative; animation: flashIn .3s ease; }
.flash-success { background: var(--success); color: #fff; }
.flash-error { background: #DC2626; color: #fff; }
.flash-info { background: var(--info); color: #fff; }
.flash-close { position: absolute; top: 8px; right: 10px; background: none; border: none; color: inherit; font-size: 18px; cursor: pointer; }
@keyframes flashIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; } }

/* Éléments masqués : l'attribut hidden doit toujours gagner */
[hidden] { display: none !important; }

/* ============================================================
   Aba Assistante — widget chat
   ============================================================ */
.aba { --aba-couleur: #111051; }
.aba-bubble {
    position: fixed; bottom: 24px; right: 24px; z-index: 95;
    width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
    background: var(--aba-couleur); color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(17, 16, 81, .45);
    transition: transform .25s;
}
.aba-bubble:hover { transform: scale(1.08); }
.aba-bubble svg { width: 21px; height: 21px; }
.aba-bubble-avatar {
    width: 46px; height: 46px; border-radius: 50%; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-head); font-weight: 700; font-size: 18px;
}
.aba-bubble-avatar img { width: 100%; height: 100%; object-fit: cover; }
.aba-bubble .aba-icone-fermee { display: none; }
.aba-bubble.aba-ouvert .aba-icone-fermee { display: block; }

.aba-panel {
    position: fixed; bottom: 84px; right: 24px; z-index: 96;
    width: min(360px, calc(100vw - 32px));
    height: min(460px, calc(100vh - 180px));
    min-height: 260px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
    box-shadow: var(--shadow-lg); overflow: hidden;
    display: flex; flex-direction: column;
}
.aba-header {
    background: var(--aba-couleur); color: #fff; padding: 14px 16px;
    display: flex; align-items: center; gap: 12px;
}
.aba-header strong { display: block; font-family: var(--font-head); font-size: 15.5px; }
.aba-statut { font-size: 12px; opacity: .9; display: flex; align-items: center; gap: 5px; }
.aba-point {
    width: 9px; height: 9px; border-radius: 50%; background: #2bd97c;
    display: inline-block; box-shadow: 0 0 0 0 rgba(43, 217, 124, .55);
    animation: aba-point-pulse 2s infinite;
}
@keyframes aba-point-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(43, 217, 124, .55); }
    70%  { box-shadow: 0 0 0 7px rgba(43, 217, 124, 0); }
    100% { box-shadow: 0 0 0 0 rgba(43, 217, 124, 0); }
}
.aba-avatar {
    width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
    background: rgba(255,255,255,.18); border: 2px solid rgba(255,255,255,.5);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-head); font-weight: 700; font-size: 17px;
}
.aba-avatar img { width: 100%; height: 100%; object-fit: cover; }
.aba-close {
    margin-left: auto; background: rgba(255,255,255,.12); border: none; color: #fff;
    width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 14px;
}
.aba-close:hover { background: rgba(255,255,255,.25); }

.aba-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.aba-msg { display: flex; gap: 9px; align-items: flex-start; }
.aba-msg-user { flex-direction: row-reverse; }
.aba-msg-avatar {
    width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
    background: var(--primary-light); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-head); font-weight: 700; font-size: 13px;
}
.aba-msg-avatar img { width: 100%; height: 100%; object-fit: cover; }
.aba-msg.aba-ia .aba-msg-avatar { background: var(--aba-couleur); color: #fff; }
.aba-msg-avatar-user { width: auto; min-width: 28px; padding: 0 10px; border-radius: 999px; font-size: 12px; }
.aba-msg-bulle {
    padding: 10px 14px; border-radius: 14px; max-width: 78%;
    background: var(--bg-soft); color: var(--text); font-size: 14px; line-height: 1.55;
    border: 1px solid var(--border); white-space: pre-wrap; word-break: break-word;
}
.aba-msg-user .aba-msg-bulle { background: var(--aba-couleur); color: #fff; border-color: transparent; }

/* Puces d'action : téléphone / e-mail cliquables et copiables */
.aba-action {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 3px 2px; padding: 6px 12px; border-radius: 999px;
    background: var(--bg-soft); border: 1.5px solid var(--primary);
    font-size: 13.5px; font-weight: 600; vertical-align: middle;
}
.aba-action a { color: var(--primary); text-decoration: none; }
.aba-action a:hover { text-decoration: underline; }
.aba-msg.aba-ia .aba-action { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); }
.aba-msg.aba-ia .aba-action a { color: inherit; }
.aba-copy {
    padding: 3px 10px; border-radius: 999px; border: 1px solid currentColor;
    background: transparent; color: inherit; font-size: 12px; font-weight: 600;
    cursor: pointer; font-family: var(--font-body);
}
.aba-copy:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.aba-copy-reponse {
    display: inline-flex; align-items: center; gap: 4px;
    margin-top: 8px; padding: 3px 10px; border-radius: 999px;
    border: 1px solid var(--border); background: transparent;
    color: var(--text-muted); font-size: 12px; font-weight: 600;
    cursor: pointer; font-family: var(--font-body);
}
.aba-copy-reponse:hover { border-color: var(--primary); color: var(--primary); }
.aba-copy-reponse::before { content: '⧉'; font-size: 12px; }

.aba-input {
    display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: var(--surface);
}
.aba-input input {
    flex: 1; padding: 11px 15px; border: 1.5px solid var(--border); border-radius: 999px;
    font-family: var(--font-body); font-size: 14px; background: var(--bg); color: var(--text); outline: none;
}
.aba-input input:focus { border-color: var(--aba-couleur); }
.aba-input button {
    width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
    background: var(--aba-couleur); color: #fff; display: flex; align-items: center; justify-content: center;
    transition: opacity .2s;
}
.aba-input button:disabled { opacity: .5; cursor: wait; }

@media (max-width: 640px) {
    .aba-bubble { right: 18px; bottom: 18px; }
    .aba-panel {
        right: 10px; left: 10px; width: auto;
        height: min(460px, calc(100vh - 150px));
        bottom: 74px;
    }
}

/* ---------- Footer ---------- */
.footer { background: var(--primary-dark); color: #C9D6EF; margin-top: 0; }
.footer a { color: #C9D6EF; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 40px; padding: 56px 0 40px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; font-weight: 600; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; }
.footer-brand p { margin: 12px 0 6px; font-size: 14.5px; }
.footer-h4-spacing { margin-top: 26px; }
.newsletter-form { display: flex; gap: 8px; margin-top: 4px; }
.newsletter-form input {
    flex: 1; padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.08); color: #fff; font-family: var(--font-body); font-size: 14px;
}
.newsletter-form input::placeholder { color: #9DB1D9; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.social-link {
    padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25);
    font-size: 12.5px; font-weight: 600;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0;
    display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
    font-size: 14px; color: rgba(255,255,255,.7);
}
.footer-bottom p { margin: 0; }
.footer-pres { font-size: 14px; color: #C9D6EF; }
.footer-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.footer-contact a { color: #E8EEFB; text-decoration: underline; text-underline-offset: 3px; }
.footer-contact a:hover { color: var(--accent); }
.footer-sep { color: rgba(255,255,255,.35); }
.footer-legal { font-size: 12.5px; color: rgba(255,255,255,.55); }

/* ---------- Login ---------- */
.login-wrap { max-width: 440px; margin: 0 auto; }

/* ---------- Administration ---------- */
.admin-body { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 250px; background: var(--primary-dark); color: #C9D6EF; flex-shrink: 0;
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar .brand { padding: 22px 20px; border-bottom: 1px solid rgba(255,255,255,.12); }
.admin-sidebar .brand-name { color: #fff; font-size: 17px; }
.admin-nav { padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.admin-nav a {
    color: #C9D6EF; padding: 11px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 500;
    display: flex; gap: 10px; align-items: center; transition: .2s;
}
.admin-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav a svg { width: 18px; height: 18px; flex: 0 0 auto; }
.admin-nav a.active { background: var(--accent); color: #fff; }
.admin-nav a.nav-logout { color: #F87171; font-weight: 600; }
.admin-nav a.nav-logout:hover { background: rgba(220,38,38,.18); color: #FCA5A5; }
.nav-badge { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px; background: #DC2626; color: #fff; font-size: 11.5px; font-weight: 700; flex-shrink: 0; }
.admin-nav a.active .nav-badge { background: #fff; color: var(--primary); }
.admin-nav .nav-group-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: #8FA3C9; padding: 14px 14px 6px; }
.admin-nav .nav-tiroir-btn {
    width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 14px;
    border: none; background: none; color: #C9D6EF; border-radius: 10px;
    font-family: var(--font-body); font-size: 14.5px; font-weight: 500; cursor: pointer; text-align: left;
    transition: .2s;
}
.admin-nav .nav-tiroir-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav .nav-tiroir-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.admin-nav .nav-tiroir-btn .chev { margin-left: auto; width: 15px; height: 15px; transition: transform .3s; }
.admin-nav .nav-tiroir-btn .nav-badge + .chev { margin-left: 4px; }
.admin-nav .nav-tiroir.open .nav-tiroir-btn { color: #fff; }
.admin-nav .nav-tiroir.open .nav-tiroir-btn .chev { transform: rotate(180deg); }
.admin-nav .nav-tiroir-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.admin-nav .nav-tiroir.open .nav-tiroir-body { grid-template-rows: 1fr; }
.admin-nav .nav-tiroir-body > div { overflow: hidden; min-height: 0; display: flex; flex-direction: column; gap: 2px; }
.admin-nav .nav-tiroir-body a { padding: 9px 14px 9px 40px; font-size: 13.5px; border-radius: 8px; }
.admin-nav .nav-tiroir-body a.active { background: var(--accent); color: #fff; }
.admin-nav .disabled { opacity: .45; pointer-events: none; }

/* ---------- Chat Aba (admin) ---------- */
.ia-chat { display: flex; gap: 18px; height: calc(100vh - 175px); min-height: 480px; }
.ia-chat-cote { width: 262px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; }
.ia-chat-discussions { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.ia-chat-item {
    position: relative;
    display: flex; flex-direction: column; gap: 3px; text-align: left;
    padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
    background: var(--surface); cursor: pointer; font-family: var(--font-body); transition: .15s;
}
.ia-chat-item:hover { border-color: var(--primary); }
.ia-chat-item.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.ia-chat-item-titre { font-size: 14px; font-weight: 600; }
.ia-chat-item-date { font-size: 11.5px; color: var(--text-muted); }
.ia-chat-item.active .ia-chat-item-date { color: rgba(255,255,255,.75); }
.ia-chat-item-del {
    position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border: none; cursor: pointer;
    display: none; align-items: center; justify-content: center; border-radius: 6px;
    background: rgba(11,59,140,.08); color: var(--primary); transition: .15s;
}
.ia-chat-item-del svg { width: 12px; height: 12px; }
.ia-chat-item:hover .ia-chat-item-del { display: inline-flex; }
.ia-chat-item-del:hover { background: var(--danger); color: #fff; }

.ia-chat-fenetre { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.ia-chat-entete { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.ia-chat-entete-actions { display: flex; gap: 6px; }
.ia-chat-btnaction {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 8px;
    border: 1px solid var(--border); background: #fff; color: var(--text); cursor: pointer;
    font-family: var(--font-body); font-size: 12.5px; font-weight: 500; transition: .15s;
}
.ia-chat-btnaction svg { width: 13px; height: 13px; }
.ia-chat-btnaction:hover { border-color: var(--primary); color: var(--primary); }
.ia-chat-btnaction.danger:hover { border-color: var(--danger); color: var(--danger); }

.ia-chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.ia-chat-vide { margin: auto; text-align: center; color: var(--text-muted); font-size: 14px; max-width: 430px; line-height: 1.6; }
.ia-bulle { max-width: 78%; padding: 12px 16px 34px; border-radius: 14px; font-size: 14.5px; line-height: 1.65; position: relative; }
.ia-bulle-texte { white-space: pre-wrap; overflow-wrap: anywhere; }
.ia-bulle-texte a { font-weight: 600; text-decoration: underline; }
.ia-bulle-user { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.ia-bulle-user .ia-bulle-texte a { color: #fff; }
.ia-bulle-aba { align-self: flex-start; background: #F1F5FB; border: 1px solid var(--border); border-bottom-left-radius: 4px; padding-right: 44px; }
.ia-btn-copier {
    position: absolute; right: 10px; top: 10px; width: 26px; height: 26px;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
    border: none; background: rgba(11,59,140,.08); color: var(--primary); border-radius: 6px; transition: .15s;
    font-size: 10.5px;
}
.ia-btn-copier svg { width: 13px; height: 13px; }
.ia-btn-copier:hover { background: var(--primary); color: #fff; }
.ia-btn-del {
    position: absolute; right: 10px; bottom: 10px; width: 26px; height: 26px;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
    border: none; background: rgba(220,53,69,.1); color: var(--danger); border-radius: 6px; transition: .15s;
}
.ia-btn-del svg { width: 13px; height: 13px; }
.ia-btn-del:hover { background: var(--danger); color: #fff; }
.ia-typing::after { content: '…'; animation: ia-points 1.2s infinite; }
@keyframes ia-points { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75%, 100% { content: '...'; } }
.ia-choix-liste { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.ia-choix {
    padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--primary);
    background: transparent; color: var(--primary); font-size: 13px; font-weight: 600;
    cursor: pointer; transition: .15s; font-family: var(--font-body);
}
.ia-choix:hover:not(:disabled) { background: var(--primary); color: #fff; }
.ia-choix.choisi { background: var(--primary); color: #fff; }
.ia-choix:disabled { opacity: .55; cursor: default; }
.ia-choix.choisi:disabled { opacity: 1; }
.ia-btn-micro { position: relative; }
.ia-btn-micro.ecoute { background: #DC2626; border-color: #DC2626; color: #fff; animation: ia-pulse 1.2s infinite; }
@keyframes ia-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,.45); } 50% { box-shadow: 0 0 0 7px rgba(220,38,38,0); } }
.ia-btn-lire {
    position: absolute; right: 10px; top: 42px; width: 26px; height: 26px;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
    border: none; background: rgba(11,59,140,.08); color: var(--primary); border-radius: 6px; transition: .15s;
}
.ia-btn-lire svg { width: 13px; height: 13px; }
.ia-btn-lire:hover { background: var(--primary); color: #fff; }
.ia-btn-lire.lecture { background: var(--primary); color: #fff; }

.ia-chat-saisie { display: flex; align-items: flex-end; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--border); background: #fff; flex-wrap: wrap; }
.ia-chat-saisie textarea {
    flex: 1; min-width: 200px; resize: none; border: 1px solid var(--border); border-radius: 10px;
    padding: 11px 14px; font-family: var(--font-body); font-size: 14.5px; line-height: 1.5; max-height: 140px;
}
.ia-chat-saisie textarea:focus { outline: none; border-color: var(--primary); }
.ia-gen-ligne { display: flex; align-items: center; gap: 10px; margin: 2px 0 10px; }
.ia-btn-join, .ia-btn-envoyer {
    width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px; border: 1px solid var(--border);
    background: #fff; color: var(--text-muted); cursor: pointer; display: inline-flex;
    align-items: center; justify-content: center; transition: .15s;
}
.ia-btn-join:hover { color: var(--primary); border-color: var(--primary); }
.ia-btn-envoyer { background: var(--primary); border-color: var(--primary); color: #fff; }
.ia-btn-envoyer:hover { filter: brightness(1.08); }
.ia-btn-envoyer:disabled { opacity: .6; cursor: wait; }
.ia-btn-envoyer svg, .ia-btn-join svg { width: 18px; height: 18px; }
.ia-fichier-nom {
    width: 100%; order: 99; font-size: 12px; color: var(--primary); font-weight: 600;
    background: var(--accent-light); padding: 6px 12px; border-radius: 8px;
}

.admin-main { flex: 1; padding: 30px 34px; min-width: 0; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; gap: 16px; flex-wrap: wrap; }
.admin-title h1 { font-size: 24px; }
.admin-title p { color: var(--text-muted); font-size: 14.5px; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 32px; }
.stat-card { padding: 22px; border-radius: var(--radius); }
.stat-card .stat-value { font-size: 30px; color: var(--primary); }
.stat-card .stat-label { color: var(--text-muted); font-size: 13.5px; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.table th { background: var(--bg-soft); text-align: left; font-family: var(--font-head); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); padding: 13px 16px; }
.table td { padding: 13px 16px; border-top: 1px solid var(--border); font-size: 14.5px; vertical-align: middle; }
.table tr:hover td { background: var(--bg-soft); }
/* Cellules d'actions : boutons décollés, avec retour à la ligne propre */
.table td > .btn-icon, .table td > form > .btn-icon,
.table td > .btn-sm, .table td > form > .btn-sm { margin: 2px; }
.table td > form { margin: 2px; }

.btn-icon { padding: 6px 10px; border-radius: 8px; font-size: 13px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; transition: .2s; display: inline-flex; align-items: center; gap: 5px; }
.btn-icon:hover { border-color: var(--primary); color: var(--primary); }
/* Actions tableaux : Modifier (liens) en primaire, Supprimer en rouge */
a.btn-icon { border-color: var(--primary); background: var(--primary-light); color: var(--primary); font-weight: 600; text-decoration: none; }
a.btn-icon:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-icon.btn-danger { border-color: #FCA5A5; background: #FEF2F2; color: #DC2626; font-weight: 600; }
.btn-icon.btn-danger:hover { background: #DC2626; border-color: #DC2626; color: #fff; }
.btn-icon.btn-reset { border-color: var(--primary); background: var(--primary-light); color: var(--primary); font-weight: 600; }
.btn-icon.btn-reset:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-danger-soft { border: 1.5px solid #FCA5A5; background: #FEF2F2; color: #DC2626; font-weight: 600; border-radius: 8px; cursor: pointer; transition: .2s; }
.btn-danger-soft:hover { background: #DC2626; border-color: #DC2626; color: #fff; }

/* ---------- Bouton retour en haut ---------- */
.to-top {
    position: fixed; bottom: 24px; left: 24px; z-index: 90;
    width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .3s, transform .3s, visibility .3s, background .2s;
}
.to-top:hover { background: var(--primary-dark); }
.to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Quill ---------- */
.ql-toolbar { border-radius: 10px 10px 0 0; }
.ql-container { border-radius: 0 0 10px 10px; min-height: 220px; }
.ql-toolbar, .ql-container { background: var(--bg); border-color: var(--border) !important; }

/* ---------- Divers ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 40px; }
.muted { color: var(--text-muted); }
.small { font-size: 13.5px; }
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-muted); }

.cta-band {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary)); border-radius: var(--radius-lg);
    padding: 56px 40px; color: #fff; text-align: center;
}
.cta-band h2 { color: #fff; font-size: clamp(24px, 3.5vw, 34px); margin-bottom: 12px; }
.cta-band p { color: #DCE6F8; margin-bottom: 24px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .president { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .nav {
        position: fixed; top: var(--header-h); left: 0; right: 0; background: var(--bg);
        flex-direction: column; padding: 18px 24px; border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .3s; z-index: 99;
    }
    .nav.open { transform: translateY(0); }
    .nav-burger { display: flex; }
    .nav .nav-cta {
        display: block; text-align: center; margin-top: 8px;
        background: var(--primary); color: #fff !important; font-weight: 700;
        padding: 12px 18px; border-radius: 10px;
    }
    /* Stats d'accueil en 2 x 2 sur mobile */
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
    .form-grid { grid-template-columns: 1fr; }
    .admin-sidebar { width: 220px; }
}

.admin-burger {
    display: none; width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
    border: 1px solid var(--border); background: var(--surface); color: var(--text);
    cursor: pointer; align-items: center; justify-content: center;
}
.admin-burger svg { width: 20px; height: 20px; }
.admin-overlay { display: none; }

@media (max-width: 640px) {
    .section { padding: 52px 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    /* Sidebar admin en tiroir coulissant */
    .admin-sidebar {
        display: flex; position: fixed; left: 0; top: 0; bottom: 0;
        width: min(300px, 84vw); height: 100dvh; z-index: 200;
        transform: translateX(-105%); transition: transform .28s ease;
        box-shadow: 0 0 40px rgba(0,0,0,.35);
    }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-overlay:not([hidden]) {
        display: block; position: fixed; inset: 0; z-index: 150;
        background: rgba(10,15,30,.5); border: none; padding: 0; cursor: pointer;
    }
    .admin-burger { display: inline-flex; }
    .admin-topbar { gap: 12px; }
    .admin-main { padding: 20px 16px; }
    .header-actions .btn { display: none; }
    .hero { min-height: 460px; }
    /* Chat Aba : empilé, discussions en haut (liste horizontale) */
    .ia-chat { flex-direction: column; height: auto; min-height: 0; gap: 12px; }
    .ia-chat-cote { width: 100%; }
    .ia-chat-discussions { flex-direction: row; overflow-x: auto; overflow-y: hidden; padding-bottom: 4px; }
    .ia-chat-item { min-width: 200px; max-width: 240px; flex-shrink: 0; }
    .ia-chat-fenetre { min-height: 62vh; }
    .ia-chat-messages { padding: 14px; }
    .ia-bulle { max-width: 92%; font-size: 14px; }
    .ia-chat-entete { padding: 12px 14px; flex-wrap: wrap; }
    .ia-chat-saisie { padding: 10px 12px; gap: 6px; }
    /* Blocs contact en 2 x 2, version compacte */
    .contact-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .contact-card { padding: 18px 10px; }
    .contact-ic { width: 44px; height: 44px; margin-bottom: 10px; border-radius: 13px; }
    .contact-ic svg { width: 20px; height: 20px; }
    .contact-card h3 { font-size: 14px; }
    .contact-val { font-size: 12.5px; }
    .contact-act { font-size: 12px; margin-top: 8px; }
}
