/* ==========================================================================
   MDSSUP — Feuille de style v2 Mobile-First
   Identité : futuriste / tech / immersif — Bleu Nuit profond + néons.
   Palette : fond #0A0A2A, texte #F0F0F0, accents Cyan #00FFFF / Violet #A020F0.
   Typo : Orbitron (display/chiffres), Space Grotesk (titres), Inter (corps).
   Contrastes RGAA : #F0F0F0 sur #0A0A2A > 15:1 ; #00FFFF sur #0A0A2A > 12:1.
   Le violet #A020F0 est réservé aux éléments décoratifs (gradients, lueurs),
   jamais porteur seul d'information textuelle (contraste insuffisant).
   ========================================================================== */

/* ---------- Variables & reset ---------- */
:root {
  --bg: #0a0a2a;
  --bg-soft: #10103a;
  --surface: #14144a;
  --border: #2c2c6e;
  --text: #f0f0f0;
  --text-muted: #ccccdd;
  --neon-cyan: #00ffff;
  --neon-violet: #a020f0;
  --neon-green: #00ff88;
  --accent-dark: #001a2a;          /* texte sur boutons cyan : ratio > 12:1 */
  --error: #ff8fa3;
  --success: #7ef0b2;
  --radius: 14px;
  --gradient: linear-gradient(100deg, var(--neon-cyan), var(--neon-violet));
  --glow-cyan: 0 0 18px rgba(0, 255, 255, .35);
  --glow-violet: 0 0 18px rgba(160, 32, 240, .35);
  --font-display: "Orbitron", system-ui, sans-serif;
  --font-title: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

img, svg { max-width: 100%; height: auto; }

h1 { font-family: var(--font-display); letter-spacing: .02em; }
h2, h3, h4 { font-family: var(--font-title); letter-spacing: .01em; }

/* ---------- Accessibilité ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: -200vw; top: 0;
  background: var(--neon-cyan); color: var(--accent-dark);
  padding: .6rem 1rem; z-index: 100; font-weight: 700;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--neon-cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Scroll-reveal (progressive enhancement) ----------
   Les éléments .reveal ne sont masqués QUE si JS actif (html.js),
   et jamais si l'utilisateur préfère réduire les animations. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Header sticky ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 42, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  background: rgba(10, 10, 42, .94);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .45);
}

.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem;
  max-width: 1200px; margin: 0 auto; padding: .65rem 1rem;
}

.brand {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--text); text-decoration: none; font-weight: 800;
  font-family: var(--font-display);
  font-size: 1.15rem; letter-spacing: .06em;
}
.brand-logo { width: 30px; height: 30px; color: var(--neon-cyan); filter: drop-shadow(0 0 6px rgba(0,255,255,.5)); }
/* Logo image officiel : pastille blanche (texte noir du logo illisible sur fond nuit) */
.brand-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: #ffffff; border-radius: 10px; padding: 3px 5px;
  box-shadow: 0 0 10px rgba(0, 255, 255, .25);
  transition: box-shadow .2s ease;
}
.brand:hover .brand-badge { box-shadow: var(--glow-cyan); }
.brand-logo-img { display: block; height: 42px; width: auto; }
.brand-badge--footer { padding: 6px 8px; }
.footer-logo-img { display: block; height: 64px; width: auto; }
.brand-accent {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Burger (mobile) */
.nav-toggle {
  margin-left: auto;
  display: inline-flex; flex-direction: column; gap: 5px;
  background: none; border: 1px solid var(--border);
  border-radius: 8px; padding: .55rem .6rem; cursor: pointer;
}
.nav-toggle-bar { width: 20px; height: 2px; background: var(--text); border-radius: 2px; }

.main-nav { display: none; width: 100%; }
.main-nav.is-open { display: block; }

.nav-list {
  list-style: none; margin: 0; padding: .5rem 0;
  display: flex; flex-direction: column; gap: .25rem;
}
.nav-link {
  display: block; padding: .6rem .75rem;
  color: var(--text); text-decoration: none;
  font-weight: 600; border-radius: 8px;
  transition: color .15s ease, background .15s ease, box-shadow .15s ease;
}
.nav-link:hover, .nav-link[aria-current="page"] {
  background: var(--surface); color: var(--neon-cyan);
}
.nav-link--espace {
  display: flex; align-items: center; gap: .45rem;
  color: var(--neon-green);
}
.nav-link--espace:hover { color: var(--neon-green); background: var(--surface); box-shadow: inset 0 -2px 0 var(--neon-green); }
.nav-espace-ico { width: 17px; height: 17px; flex-shrink: 0; }
.nav-link--contact {
  border: 1px solid var(--neon-cyan); color: var(--neon-cyan);
  text-align: center; border-radius: 8px;
}
.nav-link--contact:hover, .nav-link--contact[aria-current="page"] {
  background: var(--surface); color: var(--neon-cyan); box-shadow: var(--glow-cyan);
}
.nav-link--cta {
  background: var(--gradient); color: var(--accent-dark); text-align: center;
}
.nav-link--cta:hover {
  color: var(--accent-dark); background: var(--gradient);
  box-shadow: var(--glow-cyan);
}

/* ---------- Header réorganisé : icônes, dropdown, actions ---------- */
.header-actions { display: flex; align-items: center; gap: .45rem; margin-left: auto; order: 2; }
.nav-toggle { margin-left: 0; }
.nav-ico { width: 17px; height: 17px; flex-shrink: 0; }
.nav-link { display: flex; align-items: center; gap: .5rem; }
.nav-caret { width: 14px; height: 14px; transition: transform .2s ease; }

/* Dropdown Outils IA */
.nav-dropdown { position: relative; }
.nav-drop-btn {
  width: 100%; background: none; border: none; cursor: pointer;
  font: inherit; font-weight: 600;
}
.nav-drop-btn.active, .nav-drop-btn:hover { background: var(--surface); color: var(--neon-cyan); }
.nav-dropdown.is-open .nav-caret { transform: rotate(180deg); }
.nav-submenu {
  list-style: none; margin: 0; padding: 0 0 0 1.4rem;
  display: none;
}
.nav-dropdown.is-open .nav-submenu { display: block; }
.nav-sub-link { font-size: .92rem; padding: .5rem .75rem; }

/* Recherche compacte du header */
.search-box--header { position: relative; }
.search-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  background: none; border: 1px solid var(--border); color: var(--text);
  transition: border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.search-toggle svg { width: 18px; height: 18px; }
.search-toggle:hover, .search-toggle[aria-expanded="true"] { border-color: var(--neon-cyan); color: var(--neon-cyan); box-shadow: var(--glow-cyan); }
.search-field { display: none; }
.search-box--header.is-open .search-field {
  display: block; position: absolute; right: 0; top: calc(100% + 10px);
  width: min(320px, 78vw); z-index: 70;
}

/* Avatar Mon espace */
.espace-wrap { position: relative; }
.espace-btn svg { width: 20px; height: 20px; }
.espace-menu { right: 0; top: calc(100% + 10px); }

/* ---------- Recherche prédictive (module page Nos formations) ---------- */
.search-box { position: relative; width: 100%; }
.search-box--page { max-width: 520px; margin: 1.4rem 0 0; }
.hero-split .search-box--page { margin-left: 0; }

.search-input {
  width: 100%; padding: .6rem 2.5rem .6rem .9rem;
  background: var(--bg-soft); color: var(--text);
  border: 1px solid var(--border); border-radius: 999px;
  font-size: 1rem; font-family: var(--font-body);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.search-input:focus { border-color: var(--neon-cyan); box-shadow: var(--glow-cyan); }
.search-input::placeholder { color: var(--text-muted); }

.search-icon {
  position: absolute; right: .85rem; top: .7rem;
  width: 18px; height: 18px; color: var(--text-muted); pointer-events: none;
}

.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  list-style: none; margin: 0; padding: .35rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .55), var(--glow-violet);
  max-height: 290px; overflow-y: auto;
}
.search-results li { border-radius: 8px; }
.search-results a {
  display: block; padding: .55rem .7rem;
  color: var(--text); text-decoration: none; border-radius: 8px;
}
.search-results .result-level { display: block; font-size: .78rem; color: var(--neon-cyan); }
.search-results a:hover,
.search-results li[aria-selected="true"] a { background: var(--bg-soft); outline: 2px solid var(--neon-cyan); }
.search-results .no-result { padding: .55rem .7rem; color: var(--text-muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 4rem 1rem 3.2rem;
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, .06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 30%, transparent 75%);
}
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(70px);
  pointer-events: none; opacity: .35;
}
.hero-orb--cyan { width: 320px; height: 320px; top: -120px; right: -80px; background: var(--neon-cyan); }
.hero-orb--violet { width: 300px; height: 300px; bottom: -140px; left: -100px; background: var(--neon-violet); }

.hero-content { position: relative; max-width: 880px; margin: 0 auto; text-align: center; }

.hero-kicker {
  display: inline-block; margin: 0 0 1.1rem;
  padding: .3rem .9rem; border: 1px solid var(--border); border-radius: 999px;
  color: var(--neon-cyan); font-size: .85rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}

h1 { font-size: clamp(1.55rem, 5vw, 2.7rem); line-height: 1.22; margin: 0 0 1.1rem; font-weight: 800; }

.txt-gradient {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero-sub { color: var(--text-muted); font-size: 1.08rem; max-width: 680px; margin: 0 auto 1.8rem; }
.hero-stat-inline { color: var(--neon-green); font-weight: 600; }

.hero-actions { display: flex; flex-direction: column; gap: .75rem; align-items: stretch; }

.hero-stats {
  list-style: none; margin: 2.4rem 0 0; padding: 0;
  display: flex; justify-content: center; gap: 1.8rem; flex-wrap: wrap;
}
.hero-stats li { display: flex; flex-direction: column; min-width: 96px; }
.hero-stats strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--neon-cyan); text-shadow: 0 0 14px rgba(0,255,255,.4); }
.hero-stats span { color: var(--text-muted); font-size: .85rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; padding: .85rem 1.6rem;
  border-radius: 999px; font-weight: 700; font-size: 1rem;
  font-family: var(--font-title);
  text-decoration: none; text-align: center;
  border: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--gradient); color: var(--accent-dark);
  box-shadow: 0 8px 26px rgba(0, 255, 255, .25);
}
.btn-primary:hover { box-shadow: 0 10px 32px rgba(0, 255, 255, .45), var(--glow-violet); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); box-shadow: var(--glow-cyan); }
.btn-block { width: 100%; }
.btn-card {
  align-self: flex-start;
  padding: .55rem 1.3rem; font-size: .92rem;
  background: transparent; color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
}
.btn-card:hover { background: var(--neon-cyan); color: var(--accent-dark); box-shadow: var(--glow-cyan); }

/* ---------- Fil d'Ariane ---------- */
.breadcrumb { max-width: 1200px; margin: 0 auto; padding: 1.1rem 1rem 0; }
.breadcrumb ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .35rem; font-size: .9rem;
}
.breadcrumb li:not(:first-child)::before {
  content: "›"; margin-right: .35rem; color: var(--text-muted);
}
.breadcrumb a { color: var(--neon-cyan); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--text-muted); }

/* ---------- Sections ---------- */
.formations, .about, .contact { max-width: 1200px; margin: 0 auto; padding: 3.2rem 1rem; }

.section-title { font-size: clamp(1.5rem, 4vw, 2.2rem); margin: 0 0 .4rem; font-weight: 700; }
.page-title { font-family: var(--font-display); }
.section-intro { color: var(--text-muted); margin: 0 0 2.2rem; max-width: 640px; }

.level { margin-bottom: 3rem; scroll-margin-top: 90px; }

.level-header { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.2rem; }
.level-header h3 { margin: 0; font-size: 1.3rem; }
.level-badge {
  padding: .25rem .75rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan); font-size: .8rem; font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: .05em; white-space: nowrap;
}

/* Cartes formations */
.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 1.1rem;
}
.card {
  display: flex; flex-direction: column; gap: .65rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.35rem;
  transition: border-color .2s ease, transform .2s ease, box-shadow .25s ease;
}
.card:hover {
  border-color: var(--neon-cyan); transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .45), var(--glow-cyan);
}
.card--featured { border-image: var(--gradient) 1; border-width: 1px; border-style: solid; }
.card-title { margin: 0; font-size: 1.05rem; line-height: 1.4; }
.card-text { margin: 0; color: var(--text-muted); font-size: .94rem; flex-grow: 1; }

.formations-cta {
  text-align: center; padding: 2rem 1rem;
  border: 1px dashed var(--border); border-radius: var(--radius);
}
.formations-cta p { margin: 0 0 1rem; color: var(--text-muted); }

/* ---------- À propos ---------- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
.about-item {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.35rem;
  transition: border-color .2s ease, transform .2s ease, box-shadow .25s ease;
}
.about-item:hover { border-color: var(--neon-violet); transform: translateY(-3px); box-shadow: var(--glow-violet); }
.about-item h3 { margin: 0 0 .45rem; font-size: 1.05rem; color: var(--neon-cyan); }
.about-item p { margin: 0; color: var(--text-muted); font-size: .94rem; }

/* Honeypot anti-spam : hors écran (jamais display:none) */
.hp-field { position: absolute; left: -200vw; top: 0; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Formulaire contact ---------- */
.contact-form {
  max-width: 520px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem;
}

.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-weight: 600; margin-bottom: .35rem; font-family: var(--font-title); }

.form-field input,
.form-field select {
  width: 100%; padding: .7rem .85rem;
  background: var(--bg-soft); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 1rem; font-family: var(--font-body);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field input:focus, .form-field select:focus { border-color: var(--neon-cyan); box-shadow: var(--glow-cyan); }
.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"] { border-color: var(--error); }

.field-error { margin: .35rem 0 0; color: var(--error); font-size: .88rem; font-weight: 600; }

.form-status {
  margin: 0 0 1rem; padding: .75rem 1rem;
  border-radius: 10px; font-weight: 600;
}
.form-status.is-success { background: rgba(126, 240, 178, .12); color: var(--success); border: 1px solid var(--success); }
.form-status.is-error { background: rgba(255, 143, 163, .12); color: var(--error); border: 1px solid var(--error); }

.form-note { color: var(--text-muted); font-size: .82rem; margin: .9rem 0 0; }

/* ---------- Footer universel ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 2.2rem 1rem;
  display: flex; flex-direction: column; gap: 1rem; text-align: center;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 1.8rem; text-align: left; }
.footer-col { display: flex; flex-direction: column; gap: .5rem; }
.footer-title {
  margin: 0 0 .3rem; font-size: .85rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--neon-cyan); font-family: var(--font-display);
}
.footer-brand { margin: 0; font-weight: 800; letter-spacing: .04em; font-family: var(--font-display); font-size: 1.2rem; }
.footer-tagline { margin: 0; color: var(--text-muted); font-size: .9rem; }
.footer-links {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 1.2rem;
}
.footer-links--col { flex-direction: column; gap: .45rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: color .15s ease; }
.footer-links a:hover { color: var(--neon-cyan); }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; color: var(--text-muted); font-size: .92rem; }
.footer-contact li { display: flex; align-items: center; gap: .55rem; }
.footer-contact svg { width: 17px; height: 17px; color: var(--neon-cyan); flex-shrink: 0; }
.footer-contact a { color: var(--text-muted); text-decoration: none; }
.footer-contact a:hover { color: var(--neon-cyan); }
.footer-social { list-style: none; margin: 0; padding: 0; display: flex; gap: .7rem; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); color: var(--text-muted);
  transition: color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.footer-social a:hover { color: var(--neon-cyan); border-color: var(--neon-cyan); box-shadow: var(--glow-cyan); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid var(--border); padding: 1rem; text-align: center; }
.footer-copy { margin: 0; color: var(--text-muted); font-size: .85rem; }

/* ---------- Hero vidéo (accueil) ---------- */
.hero--video { min-height: 480px; display: flex; align-items: center; }
.hero-video { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-video video {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .28; /* la vidéo reste un fond : le texte prime */
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 42, .55), rgba(10, 10, 42, .85));
}

/* ---------- Cartes média (Innovation en Action, Voies de Carrière) ---------- */
.innov { max-width: 1200px; margin: 0 auto; padding: 3rem 1rem 1rem; }
.card--media { padding: 0; overflow: hidden; }
.card--media .card-img {
  width: 100%; aspect-ratio: 8 / 5; object-fit: cover; display: block;
  border-bottom: 1px solid var(--border);
  transition: transform .3s ease;
}
.card--media:hover .card-img { transform: scale(1.04); }
.card--media .card-title { margin: 1rem 1.25rem .35rem; }
.card--media .card-text { margin: 0 1.25rem 1.25rem; }

/* ---------- Formations : icônes de niveau + double CTA + carrières ---------- */
.level-icon { width: 26px; height: 26px; color: var(--neon-cyan); filter: drop-shadow(0 0 6px rgba(0, 255, 255, .45)); flex-shrink: 0; }
.card-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.btn-card--ghost { border-color: var(--border); color: var(--text-muted); }
.btn-card--ghost:hover { border-color: var(--neon-violet); color: var(--neon-violet); background: transparent; box-shadow: var(--glow-violet); }
.hero--formations .hero-illustration { max-width: 300px; filter: drop-shadow(0 0 24px rgba(0, 255, 255, .2)); }
.carrieres { margin-bottom: 3rem; }
.carrieres .section-title { font-size: clamp(1.3rem, 3vw, 1.7rem); margin-bottom: 1.4rem; }

/* ---------- Badge d'accréditation (réassurance) ---------- */
.accred {
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
  margin-top: 2.2rem; text-align: center;
}
.accred img {
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, .18));
  transition: transform .2s ease, filter .2s ease;
}
.accred img:hover { transform: scale(1.05); filter: drop-shadow(0 0 20px rgba(0, 255, 255, .35)); }
.accred p { margin: 0; color: var(--text-muted); font-size: .92rem; max-width: 520px; }
.accred strong { color: var(--text); }
.accred--band {
  flex-direction: column; margin-top: 2rem; padding: 1.6rem 1.2rem;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.accred--inline { margin: 0 0 2rem; }
@media (min-width: 640px) {
  .accred--band, .accred--inline { flex-direction: row; text-align: left; justify-content: center; }
}

/* ==========================================================================
   Dashboards (Étudiant & Administrateur) — templates
   ========================================================================== */
.dash-body { display: flex; flex-direction: column; min-height: 100vh; }
.dash-demo-banner {
  margin: 0; padding: .45rem 1rem; text-align: center; font-size: .82rem;
  background: rgba(0, 255, 136, .12); color: var(--neon-green);
  border-bottom: 1px solid var(--neon-green);
}
.dash-demo-banner a { color: var(--neon-green); }
.dash-demo-banner--admin { background: rgba(160, 32, 240, .14); color: #c89cf5; border-color: var(--neon-violet); }
.dash-demo-banner--admin a { color: #c89cf5; }

.dash-topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: .8rem;
  padding: .55rem 1rem;
  background: rgba(10, 10, 42, .94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.dash-burger { margin-left: 0; }
.dash-brand { font-size: 1rem; }
.dash-brand-suffix { color: var(--neon-cyan); font-size: .7em; letter-spacing: .12em; }
.dash-brand-suffix--admin { color: var(--neon-violet); }
.dash-titre {
  margin: 0 auto 0 .4rem; font-size: 1rem; font-weight: 700;
  font-family: var(--font-title); letter-spacing: .02em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dash-topbar-actions { position: relative; display: flex; gap: .4rem; }
.dash-iconbtn {
  position: relative; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--border); border-radius: 50%;
  color: var(--text); cursor: pointer;
  transition: border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.dash-iconbtn:hover, .dash-iconbtn[aria-expanded="true"] { border-color: var(--neon-cyan); color: var(--neon-cyan); box-shadow: var(--glow-cyan); }
.dash-iconbtn svg { width: 20px; height: 20px; }
.dash-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  background: var(--neon-violet); color: #fff;
  border-radius: 999px; font-size: .68rem; font-weight: 800;
}
.dash-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 70;
  width: min(320px, 86vw); padding: .8rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .55);
}
.dash-menu-titre { margin: 0 0 .5rem; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--neon-cyan); font-family: var(--font-display); }
.dash-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .9rem; color: var(--text-muted); }
.dash-menu a { display: block; padding: .45rem .6rem; border-radius: 8px; color: var(--text); text-decoration: none; }
.dash-menu a:hover { background: var(--bg-soft); color: var(--neon-cyan); }

.dash-layout { display: flex; flex: 1; min-height: 0; position: relative; }
.dash-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(5, 5, 20, .7); }

.dash-sidebar {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 60;
  width: 250px; padding: 1rem .8rem; overflow-y: auto;
  background: var(--bg-soft); border-right: 1px solid var(--border);
  transform: translateX(-100%); transition: transform .25s ease;
  display: flex; flex-direction: column; gap: 1rem;
}
.dash-sidebar.is-open { transform: none; }
.dash-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; flex: 1; }
.dash-nav a {
  display: flex; align-items: center; gap: .7rem;
  padding: .6rem .7rem; border-radius: 10px;
  color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: .92rem;
  border-left: 3px solid transparent;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.dash-nav a svg { width: 20px; height: 20px; flex-shrink: 0; }
.dash-nav a:hover { color: var(--text); background: var(--surface); }
.dash-nav a.is-active {
  color: var(--neon-cyan); background: var(--surface);
  border-left-color: var(--neon-cyan);
  text-shadow: 0 0 12px rgba(0, 255, 255, .4);
}
.dash-retour { font-size: .85rem; }

.dash-main { flex: 1; padding: 1.2rem 1rem 4rem; max-width: 1200px; margin: 0 auto; width: 100%; }
.dash-section:focus { outline: none; }

.dash-welcome { margin-bottom: 1.4rem; }
.dash-welcome h2 { margin: 0 0 .3rem; font-family: var(--font-display); font-size: clamp(1.2rem, 3vw, 1.7rem); }
.dash-welcome p { margin: 0; color: var(--text-muted); }

.dash-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin-bottom: 1.4rem; }
.dash-stat {
  display: flex; flex-direction: column; gap: .15rem;
  padding: 1rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.dash-stat-num { font-family: var(--font-display); font-size: 1.5rem; color: var(--neon-cyan); text-shadow: 0 0 14px rgba(0,255,255,.35); }
.dash-stat-num--sm { font-size: 1.05rem; }
.dash-stat span:last-child { color: var(--text-muted); font-size: .82rem; }

.dash-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.dash-widget {
  display: flex; flex-direction: column; gap: .8rem; align-items: flex-start;
  padding: 1.25rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.dash-widget h3 { margin: 0; font-size: 1.02rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.dash-widget-sub { margin: 0; color: var(--text-muted); font-size: .92rem; }
.dash-widget .skill-bar { width: 100%; }
.dash-note { font-size: .75rem; color: var(--text-muted); font-weight: 400; }

.dash-tools { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; width: 100%; }
.dash-tool {
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  padding: .9rem .5rem; text-align: center;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); text-decoration: none; font-size: .82rem; font-weight: 600;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.dash-tool svg { width: 24px; height: 24px; color: var(--neon-cyan); }
.dash-tool:hover { border-color: var(--neon-cyan); transform: translateY(-2px); box-shadow: var(--glow-cyan); }

.dash-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; color: var(--text-muted); font-size: .9rem; width: 100%; }
.dash-date {
  display: inline-block; min-width: 3.6rem; margin-right: .4rem;
  color: var(--neon-cyan); font-family: var(--font-display); font-size: .78rem;
}

.dash-table-wrap { width: 100%; overflow-x: auto; }
.dash-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.dash-table th, .dash-table td { padding: .6rem .7rem; text-align: left; border-bottom: 1px solid var(--border); }
.dash-table th { color: var(--neon-cyan); font-family: var(--font-title); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.dash-table td { color: var(--text-muted); }
.dash-table .skill-bar { min-width: 110px; }
.dash-tag { padding: .15rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.dash-tag--new { background: rgba(0, 255, 255, .14); color: var(--neon-cyan); }
.dash-tag--progress { background: rgba(160, 32, 240, .18); color: #c89cf5; }
.dash-tag--done { background: rgba(0, 255, 136, .14); color: var(--neon-green); }

.dash-widget--form .contact-form { width: 100%; max-width: 520px; border: none; padding: 0; background: none; }

@media (min-width: 640px) {
  .dash-stats { grid-template-columns: repeat(4, 1fr); }
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .dash-sidebar { position: sticky; top: 57px; height: calc(100vh - 57px); transform: none; flex-shrink: 0; }
  .dash-scrim { display: none; }
  .dash-burger { display: none; }
  .dash-titre { font-size: 1.15rem; }
}

.dash-notif-clear { margin-top: .7rem; width: 100%; font-size: .82rem; padding: .45rem .8rem; }
.dash-tag-btn { border: none; cursor: pointer; font-family: var(--font-body); transition: transform .12s ease, box-shadow .15s ease; }
.dash-refresh { font-size: .78rem; padding: .3rem .8rem; margin-left: .5rem; }
.dash-tag-btn:hover { transform: scale(1.06); box-shadow: 0 0 10px rgba(0, 255, 255, .3); }
.dash-actu-del {
  margin-left: .4rem; width: 22px; height: 22px; border-radius: 50%;
  background: none; border: 1px solid var(--border); color: var(--text-muted);
  cursor: pointer; font-size: .7rem;
}
.dash-actu-del:hover { color: var(--error); border-color: var(--error); }

/* ---------- Page de connexion ---------- */
.login-body { min-height: 100vh; display: flex; }
.login-wrap { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; padding: 1.5rem; overflow: hidden; }
.login-card {
  position: relative; width: 100%; max-width: 420px;
  display: flex; flex-direction: column; gap: .9rem;
  padding: 2rem 1.6rem;
  background: var(--surface); border: 1px solid var(--neon-cyan);
  border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.55), var(--glow-cyan);
}
.login-brand { align-self: center; }
.login-titre { margin: 0; font-size: 1.35rem; text-align: center; font-family: var(--font-display); }
.login-sub { margin: 0 0 .4rem; text-align: center; color: var(--text-muted); font-size: .92rem; }
.login-card .form-field { margin-bottom: 0; }
.login-tabs { display: flex; gap: .4rem; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; padding: .25rem; }
.login-tab {
  flex: 1; padding: .5rem .6rem; border: none; border-radius: 999px; cursor: pointer;
  background: none; color: var(--text-muted); font-family: var(--font-title); font-weight: 600; font-size: .9rem;
  transition: background .15s ease, color .15s ease;
}
.login-tab.is-active { background: var(--gradient); color: var(--accent-dark); }
.login-tab:not(.is-active):hover { color: var(--neon-cyan); }
.login-retour { text-align: center; color: var(--text-muted); font-size: .85rem; text-decoration: none; }
.login-retour:hover { color: var(--neon-cyan); }

/* ---------- Fiche programme modale (page Nos formations) ---------- */
.prog-open, .prog-open body { overflow: hidden; }
.prog-modal {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; background: rgba(5, 5, 20, .8); backdrop-filter: blur(4px);
}
/* L'attribut hidden doit l'emporter sur display:flex (sinon overlay vide permanent) */
.prog-modal[hidden] { display: none !important; }
.prog-dialog {
  position: relative; width: 100%; max-width: 680px; max-height: 88vh;
  overflow-y: auto; padding: 1.8rem 1.5rem;
  background: var(--surface); border: 1px solid var(--neon-cyan);
  border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0, 0, 0, .6), var(--glow-cyan);
}
.prog-close {
  position: absolute; top: .8rem; right: .8rem;
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  background: none; border: 1px solid var(--border); color: var(--text-muted);
  transition: color .15s ease, border-color .15s ease;
}
.prog-close:hover, .prog-close:focus-visible { color: var(--neon-cyan); border-color: var(--neon-cyan); }
.prog-head { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1rem; padding-right: 2.2rem; }
.prog-head .level-badge { align-self: flex-start; }
.prog-head h3 { margin: 0; font-size: 1.25rem; line-height: 1.35; }
.prog-meta { display: grid; gap: .6rem; margin: 0 0 1.2rem; padding: 1rem;
  background: var(--bg-soft); border-radius: 10px; border: 1px solid var(--border); }
.prog-meta dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--neon-cyan); font-family: var(--font-display); }
.prog-meta dd { margin: .15rem 0 0; color: var(--text); }
.prog-body h4 { margin: 1.2rem 0 .5rem; font-size: 1rem; color: var(--neon-cyan); }
.prog-body ul { margin: 0; padding-left: 1.2rem; color: var(--text-muted); }
.prog-body li { margin-bottom: .3rem; }
@media (min-width: 640px) { .prog-meta { grid-template-columns: 1fr 1fr; } }

/* ---------- Cartes-boutons d'étapes (page Orientation) ---------- */
a.hiw-card--action { color: inherit; text-decoration: none; cursor: pointer; height: 100%; }
.hiw-card--action:hover { border-color: var(--neon-cyan); }
.hiw-card--action:focus-visible { outline: 3px solid var(--neon-cyan); outline-offset: 3px; }
.hiw-go {
  margin-top: .3rem; align-self: flex-start;
  color: var(--neon-cyan); font-weight: 700;
  font-family: var(--font-title); font-size: .9rem;
  opacity: .75; transition: opacity .2s ease, transform .2s ease;
}
.hiw-card--action:hover .hiw-go, .hiw-card--action:focus-visible .hiw-go {
  opacity: 1; transform: translateX(5px);
  text-shadow: 0 0 12px rgba(0, 255, 255, .6);
}

/* ---------- Questionnaire d'orientation ---------- */
.quiz-options { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.2rem; }
.chip--quiz { font-size: .92rem; padding: .5rem 1.05rem; }
.quiz-hint { font-weight: 400; font-size: .82rem; color: var(--text-muted); }
.skill-list--guide { margin-bottom: 1.6rem; }
.skill-list--guide li { grid-template-columns: 14rem 1fr 3rem; }
#guide h3 { margin: 1.6rem 0 .8rem; font-size: 1.05rem; }

/* ---------- Carte & WhatsApp (page Contact) ---------- */
.map-embed { margin-top: 2rem; }
.map-embed iframe {
  display: block; width: 100%; height: 340px; border: 1px solid var(--border);
  border-radius: var(--radius); filter: grayscale(.2) contrast(1.05);
}
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1.2rem; font-size: .95rem;
  background: #25d366; color: #06281a; border-radius: 999px;
}
.btn-whatsapp:hover { box-shadow: 0 0 18px rgba(37, 211, 102, .55); color: #06281a; }
.btn-whatsapp svg { width: 19px; height: 19px; }
.social-actions { margin-top: 2.2rem; }
.social-btns { display: flex; flex-wrap: wrap; gap: .7rem; }
.btn-social {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1.15rem; font-size: .92rem;
  border: 1px solid var(--border); color: var(--text); background: var(--surface);
}
.btn-social:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); box-shadow: var(--glow-cyan); }
.btn-social svg { width: 18px; height: 18px; }

/* ---------- Bouton WhatsApp flottant (toutes les pages) ---------- */
.wa-fab {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 80;
  display: flex; align-items: center; gap: 0;
  height: 56px; min-width: 56px; padding: 0 16px;
  background: #25d366; color: #06281a;
  border-radius: 999px; text-decoration: none; font-weight: 700;
  font-family: var(--font-title); font-size: .92rem;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .45), 0 0 16px rgba(37, 211, 102, .35);
  transition: box-shadow .2s ease, transform .2s ease;
}
.wa-fab:hover, .wa-fab:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .5), 0 0 26px rgba(37, 211, 102, .65);
}
.wa-fab svg { width: 26px; height: 26px; flex-shrink: 0; }
.wa-fab-label {
  max-width: 0; overflow: hidden; white-space: nowrap;
  transition: max-width .35s ease, margin-left .35s ease;
}
.wa-fab:hover .wa-fab-label, .wa-fab:focus-visible .wa-fab-label {
  max-width: 220px; margin-left: .55rem;
}
.wa-fab-pulse {
  position: absolute; inset: 0; border-radius: 999px;
  border: 2px solid #25d366; pointer-events: none;
  animation: wapulse 2.2s ease-out infinite;
}
@keyframes wapulse {
  0% { transform: scale(1); opacity: .8; }
  70%, 100% { transform: scale(1.45); opacity: 0; }
}
@media (min-width: 960px) {
  /* Desktop : libellé visible en permanence */
  .wa-fab .wa-fab-label { max-width: 220px; margin-left: .55rem; }
}
.about-item a:not(.btn) { color: var(--neon-cyan); text-decoration: none; }
.about-item a:not(.btn):hover { text-decoration: underline; }

/* ---------- Navigation active (coordination JS) ---------- */
.nav-link.active {
  background: var(--surface); color: var(--neon-cyan);
  box-shadow: inset 0 -2px 0 var(--neon-cyan);
}

/* ---------- Bannière contextuelle personnalisée ---------- */
.ctx-banner {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .8rem;
  padding: .8rem 3rem .8rem 1rem;
  background: linear-gradient(100deg, rgba(0, 255, 255, .1), rgba(160, 32, 240, .12));
  border-bottom: 1px solid var(--neon-cyan);
}
.ctx-banner-msg { margin: 0; font-weight: 600; font-family: var(--font-title); }
.ctx-banner-cta { padding: .5rem 1.2rem; font-size: .9rem; }
.ctx-banner-close {
  position: absolute; right: .7rem; top: 50%; transform: translateY(-50%);
  background: none; border: 1px solid var(--border); border-radius: 50%;
  width: 30px; height: 30px; color: var(--text-muted); cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.ctx-banner-close:hover { color: var(--neon-cyan); border-color: var(--neon-cyan); }

/* Pont inter-services (rapport scoring → diagnostic) */
.ctx-bridge { margin-bottom: 1.8rem; }
.ctx-prefill-note { color: var(--neon-green); }

/* ==========================================================================
   Page Créateur de CV IA (cv-ia.html)
   ========================================================================== */

/* --- Hero CV --- */
.hero--cv { padding-bottom: 3.6rem; }
.h1-sub {
  display: block; margin-top: .4rem;
  font-family: var(--font-title); font-weight: 500;
  font-size: .55em; color: var(--text-muted); letter-spacing: 0;
}
.hero-hook {
  display: inline-flex; align-items: center; gap: .45rem;
  margin: 0 0 1.8rem; padding: .45rem 1.1rem;
  border: 1px solid var(--neon-green); border-radius: 999px;
  color: var(--neon-green); font-weight: 700; font-family: var(--font-title);
  box-shadow: 0 0 14px rgba(0, 255, 136, .2);
}
.hook-icon { width: 16px; height: 16px; }
.btn-xl { padding: 1rem 2.2rem; font-size: 1.08rem; }

/* --- Comment ça marche ? --- */
.hiw { max-width: 1200px; margin: 0 auto; padding: 3.2rem 1rem; }

.hiw-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 1.2rem;
  counter-reset: hiw;
}
.hiw-card {
  display: flex; flex-direction: column; gap: .8rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.35rem;
  transition: border-color .2s ease, transform .2s ease, box-shadow .25s ease;
}
.hiw-card:hover {
  border-color: var(--neon-cyan); transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .45), var(--glow-cyan);
}

/* Emplacement visuel réservé (remplaçable par de vraies captures) */
.hiw-image {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  height: 130px; border-radius: 10px;
  background:
    radial-gradient(ellipse 80% 90% at 70% 20%, rgba(160, 32, 240, .22), transparent),
    radial-gradient(ellipse 80% 90% at 20% 90%, rgba(0, 255, 255, .18), transparent),
    var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--neon-cyan);
}
.hiw-image svg { width: 56px; height: 56px; filter: drop-shadow(0 0 8px rgba(0, 255, 255, .4)); }
.hiw-step {
  position: absolute; top: .6rem; left: .6rem;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient); color: var(--accent-dark);
  font-family: var(--font-display); font-weight: 800; font-size: .95rem;
}
.hiw-title { margin: 0; font-size: 1.02rem; line-height: 1.45; }
.hiw-text { margin: 0; color: var(--text-muted); font-size: .94rem; flex-grow: 1; }

.hiw-cta { text-align: center; margin-top: 2.2rem; }

/* --- CV Check™ --- */
.cvcheck { max-width: 1200px; margin: 0 auto; padding: 1rem 1rem 3.6rem; }

.cvcheck-panel {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 1.4rem;
  background: var(--bg-soft);
  border: 1px solid var(--neon-violet);
  border-radius: var(--radius); padding: 1.8rem 1.4rem;
  box-shadow: var(--glow-violet);
}
.cvcheck-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  animation: cvscan 4.5s linear infinite;
  pointer-events: none;
}
@keyframes cvscan {
  0% { top: 0; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
.cvcheck-kicker {
  margin: 0 0 .5rem;
  color: var(--neon-violet); font-size: .82rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  text-shadow: 0 0 10px rgba(160, 32, 240, .6);
}
.cvcheck-body .section-title { margin-bottom: .8rem; }
.cvcheck-text { color: var(--text-muted); margin: 0 0 1.4rem; max-width: 560px; }
.cvcheck-visual { display: none; color: var(--neon-cyan); }

/* ==========================================================================
   Page Scoring IA de CV (cv-scoring.html)
   ========================================================================== */

/* Hero scoring : particules + split copy/illustration */
.hero--scoring { padding-bottom: 3.4rem; }
.hero-particles { position: absolute; inset: 0; pointer-events: none; }
.hero-split { display: flex; flex-direction: column; gap: 2rem; align-items: center; text-align: center; }
.hero-illustration { max-width: 250px; filter: drop-shadow(0 0 24px rgba(0, 255, 255, .25)); }
.ill-scanline { animation: illscan 3.4s ease-in-out infinite alternate; }
@keyframes illscan { from { transform: translateY(-60px); } to { transform: translateY(86px); } }
.ill-bar { animation: illpulse 2.6s ease-in-out infinite alternate; }
@keyframes illpulse { from { opacity: .55; } to { opacity: 1; } }

.btn-flash { animation: btnflash 2.4s ease-in-out infinite; }
@keyframes btnflash {
  0%, 100% { box-shadow: 0 8px 26px rgba(0, 255, 255, .25); }
  50% { box-shadow: 0 8px 34px rgba(0, 255, 255, .55), 0 0 24px rgba(160, 32, 240, .4); }
}

/* Cartes critères : listes de tags */
.cards--criteres { margin-top: .6rem; }
.tag-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .4rem;
}
.tag-list li {
  padding: .22rem .7rem; border-radius: 999px; font-size: .82rem;
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--text-muted);
  transition: border-color .15s ease, color .15s ease;
}
.card:hover .tag-list li { border-color: var(--neon-cyan); color: var(--text); }

/* Zone d'analyse */
.scoring-zone { max-width: 920px; margin: 0 auto; padding: 3rem 1rem; scroll-margin-top: 80px; }
.scoring-zone:focus { outline: none; }

.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
  padding: 2.4rem 1.2rem; text-align: center; cursor: pointer;
  border: 2px dashed var(--border); border-radius: var(--radius);
  background: var(--bg-soft); color: var(--text);
  transition: border-color .2s ease, box-shadow .25s ease, transform .15s ease;
}
.dropzone svg { width: 46px; height: 46px; color: var(--neon-cyan); }
.dropzone:hover, .dropzone:focus-visible, .dropzone.dz-over {
  border-color: var(--neon-cyan); box-shadow: var(--glow-cyan);
}
.dropzone.dz-over { transform: scale(1.015); }
.dz-main { margin: 0; font-family: var(--font-title); font-weight: 600; }
.dz-or { color: var(--text-muted); font-weight: 400; font-size: .9rem; }
.dz-hint { margin: 0; color: var(--text-muted); font-size: .85rem; }
.dz-shake { animation: dzshake .4s ease; }
@keyframes dzshake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); } 75% { transform: translateX(7px); }
}

/* Progression d'analyse */
.scan-progress { margin-top: 1.4rem; }
.scan-label { margin: 0 0 .5rem; font-family: var(--font-title); color: var(--neon-cyan); }
.scan-bar {
  height: 10px; border-radius: 999px; overflow: hidden;
  background: var(--bg-soft); border: 1px solid var(--border);
}
.scan-bar-fill {
  height: 100%; width: 0; border-radius: 999px;
  background: var(--gradient);
  box-shadow: 0 0 14px rgba(0, 255, 255, .5);
  transition: width .45s ease;
}

/* Rapport : section recommandations */
.reco { max-width: 920px; margin: 0 auto; padding: 1rem 1rem 3.6rem; }
.reco-empty {
  display: flex; flex-direction: column; align-items: center; gap: .9rem;
  padding: 2.4rem 1.2rem; text-align: center;
  border: 1px dashed var(--border); border-radius: var(--radius);
  color: var(--text-muted);
}
.reco-empty svg { width: 52px; height: 52px; color: var(--border); }
.reco-empty p { margin: 0; max-width: 420px; }

.reco-resultats { outline: none; }
.reco-file { color: var(--text-muted); margin: 0 0 1.2rem; }

.score-board {
  display: flex; flex-direction: column; gap: 1.4rem; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem; margin-bottom: 1.8rem;
}
.score-gauge {
  --pct: 0;
  width: 130px; height: 130px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background:
    radial-gradient(closest-side, var(--surface) 78%, transparent 79%),
    conic-gradient(var(--neon-cyan) calc(var(--pct) * 1%), var(--bg-soft) 0);
  flex-shrink: 0;
}
.score-gauge strong {
  font-family: var(--font-display); font-size: 2.1rem; color: var(--neon-cyan);
  text-shadow: 0 0 16px rgba(0, 255, 255, .5);
}
.score-gauge span { color: var(--text-muted); font-size: .85rem; }

.subscores { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: .7rem; }
.subscores li { display: grid; grid-template-columns: 9.5rem 1fr 3rem; gap: .6rem; align-items: center; font-size: .92rem; }

.skill-bar {
  display: block; height: 9px; border-radius: 999px; overflow: hidden;
  background: var(--bg-soft); border: 1px solid var(--border);
}
.skill-fill { display: block; height: 100%; background: var(--gradient); border-radius: 999px; }
.skill-pct { text-align: right; color: var(--neon-cyan); font-family: var(--font-display); font-size: .82rem; }

.skills-cols { display: grid; grid-template-columns: 1fr; gap: 1.4rem; margin-bottom: 1.8rem; }
.skills-cols h3 { font-size: 1.02rem; margin: 0 0 .7rem; }
.skill-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.skill-list li { display: grid; grid-template-columns: 11rem 1fr 3rem; gap: .6rem; align-items: center; font-size: .9rem; }
.skill-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.reco-list { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: 1rem; }
.reco-card {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--neon-violet);
  border-radius: var(--radius); padding: 1.2rem;
  transition: border-color .2s ease, box-shadow .25s ease;
}
.reco-card:hover { border-color: var(--neon-violet); box-shadow: var(--glow-violet); }
.reco-card h4 { margin: 0 0 .4rem; font-size: 1rem; color: var(--neon-cyan); }
.reco-card p { margin: 0 0 .8rem; color: var(--text-muted); font-size: .92rem; }

/* ==========================================================================
   Page E-learning : Votre Parcours IA (elearning.html)
   ========================================================================== */

.hero--elearning { padding-bottom: 2.4rem; }

/* Encart diagnostic */
.diagnostic { max-width: 920px; margin: 0 auto; padding: 1rem 1rem 3rem; }
.diag-panel {
  background: var(--surface); border: 1px solid var(--neon-cyan);
  border-radius: var(--radius); padding: 1.8rem 1.4rem;
  box-shadow: var(--glow-cyan);
}
.diag-panel .section-title { margin-bottom: .5rem; }

/* Spinner du bouton d'analyse */
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid rgba(0, 26, 42, .35); border-top-color: var(--accent-dark);
  animation: btnspin .7s linear infinite;
}
@keyframes btnspin { to { transform: rotate(360deg); } }

/* Résultat du diagnostic */
.diag-resultat { max-width: 1100px; margin: 0 auto; padding: 2.6rem 1rem; scroll-margin-top: 80px; }
.diag-resultat:focus { outline: none; }
.diag-synthese {
  background: var(--bg-soft); border: 1px solid var(--border); border-left: 4px solid var(--neon-cyan);
  border-radius: var(--radius); padding: 1.3rem 1.4rem; margin-bottom: 1.8rem;
  font-size: 1.04rem;
}
.diag-synthese p { margin: 0; }
.diag-hl { color: var(--neon-cyan); }
.diag-hl--warn { color: var(--neon-green); }
.reco-sous-titre { font-size: 1.1rem; margin: 0 0 1rem; }

.diag-ctas { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; }
.diag-cta-bloc {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem;
  display: flex; flex-direction: column; gap: 1rem; align-items: flex-start;
}
.diag-cta-bloc p { margin: 0; color: var(--text-muted); }
.diag-cta-bloc--main { border-color: var(--neon-violet); box-shadow: var(--glow-violet); }

/* Catalogue interactif */
.catalogue { max-width: 1200px; margin: 0 auto; padding: 2.6rem 1rem; scroll-margin-top: 80px; }
.catalogue:focus { outline: none; }

.filtres { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.2rem; }
.filtre-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  padding: .38rem .95rem; border-radius: 999px; cursor: pointer;
  background: var(--bg-soft); color: var(--text-muted);
  border: 1px solid var(--border); font-size: .88rem; font-weight: 600;
  font-family: var(--font-title);
  transition: border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.chip:hover { border-color: var(--neon-cyan); color: var(--text); }
.chip.is-active { border-color: var(--neon-cyan); color: var(--neon-cyan); box-shadow: var(--glow-cyan); }

.filtre-niveau { display: flex; align-items: center; gap: .6rem; }
.filtre-niveau label { font-weight: 600; font-family: var(--font-title); }
.filtre-niveau select {
  padding: .5rem .8rem; background: var(--bg-soft); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px; font-size: .95rem;
}
.catalogue-count { color: var(--text-muted); font-size: .88rem; margin: 0 0 1rem; }
.catalogue-vide { margin-top: 1rem; }

.card-meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.card-domaines { color: var(--text-muted); font-size: .78rem; letter-spacing: .03em; }

/* Certification */
.certif { max-width: 1100px; margin: 0 auto; padding: 1rem 1rem 3.6rem; }
.certif-list { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .7rem; color: var(--text-muted); }
.certif-list li { padding-left: 1.5rem; position: relative; }
.certif-list li::before {
  content: "✓"; position: absolute; left: 0; color: var(--neon-green); font-weight: 800;
}
.certif-list strong { color: var(--text); }

/* ==========================================================================
   Outils interactifs CV (builder + CV Check™)
   ========================================================================== */

/* Panneaux : masqués si JS actif tant que non ouverts (no-JS : visibles) */
.tool-panel { max-width: 920px; margin: 0 auto; padding: 3rem 1rem; scroll-margin-top: 80px; }
.js .tool-panel { display: none; }
.js .tool-panel.is-open { display: block; }
.tool-panel:focus { outline: none; }

/* Stepper */
.stepper {
  list-style: none; margin: 0 0 1.6rem; padding: 0;
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.stepper li {
  padding: .4rem .9rem; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-muted);
  font-size: .85rem; font-weight: 600; font-family: var(--font-title);
}
.stepper li.is-active {
  border-color: var(--neon-cyan); color: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
}

.builder-step { border: none; margin: 0; padding: 0; }
.builder-legend { font-family: var(--font-title); font-weight: 700; font-size: 1.05rem; padding: 0; margin-bottom: 1.1rem; }

/* Choix de modèle (vignettes) */
.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-bottom: 1.2rem; }
.tpl-choice { cursor: pointer; text-align: center; }
.tpl-choice input { position: absolute; opacity: 0; }
.tpl-card {
  display: block; height: 110px; border-radius: 10px; position: relative; overflow: hidden;
  background: #fff; border: 2px solid var(--border);
  transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.tpl-choice:hover .tpl-card { transform: translateY(-3px); }
.tpl-choice input:checked + .tpl-card { border-color: var(--neon-cyan); box-shadow: var(--glow-cyan); }
.tpl-choice input:focus-visible + .tpl-card { outline: 3px solid var(--neon-cyan); outline-offset: 2px; }
.tpl-band { position: absolute; background: #557; opacity: .85; }
.tpl-thumb-neo .tpl-band { left: 0; top: 0; bottom: 0; width: 30%; }
.tpl-thumb-classique .tpl-band { left: 0; right: 0; top: 0; height: 22%; }
.tpl-thumb-tech .tpl-band { left: 0; right: 0; top: 0; height: 10%; background: repeating-linear-gradient(90deg, #557 0 8px, transparent 8px 12px); }
.tpl-lines {
  position: absolute; right: 10%; left: 40%; top: 35%; height: 45%;
  background: repeating-linear-gradient(#bbb 0 3px, transparent 3px 12px);
}
.tpl-thumb-classique .tpl-lines, .tpl-thumb-tech .tpl-lines { left: 12%; }
.tpl-name { display: block; margin-top: .4rem; font-weight: 600; font-family: var(--font-title); font-size: .9rem; }

/* Couleurs d'accent */
.color-row { display: flex; gap: .7rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.color-choice { cursor: pointer; }
.color-choice input { position: absolute; opacity: 0; }
.swatch {
  display: block; width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--border); transition: transform .15s ease, box-shadow .2s ease;
}
.color-choice:hover .swatch { transform: scale(1.12); }
.color-choice input:checked + .swatch { border-color: var(--neon-cyan); box-shadow: var(--glow-cyan); }
.color-choice input:focus-visible + .swatch { outline: 3px solid var(--neon-cyan); outline-offset: 2px; }

.builder-grid { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
.builder-nav { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; }

/* Suggestions pré-rédigées */
.sugg-row { display: flex; gap: .45rem; flex-wrap: wrap; align-items: center; margin-top: .45rem; }
.sugg-hint { font-size: .8rem; color: var(--text-muted); }
.sugg {
  padding: .3rem .8rem; border-radius: 999px; cursor: pointer;
  background: var(--bg-soft); color: var(--neon-cyan);
  border: 1px solid var(--border); font-size: .82rem; font-family: var(--font-body);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.sugg:hover { border-color: var(--neon-cyan); box-shadow: var(--glow-cyan); }

.tool-panel textarea {
  width: 100%; padding: .7rem .85rem;
  background: var(--bg-soft); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 1rem; font-family: var(--font-body); resize: vertical;
}
.tool-panel textarea:focus { border-color: var(--neon-cyan); box-shadow: var(--glow-cyan); }

/* --- Sélecteur de langue du CV --- */
.lang-row { border: none; margin: 0 0 1.2rem; padding: 0; }
.builder-legend--sm { font-size: .95rem; margin-bottom: .6rem; }
.lang-choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.lang-choice { cursor: pointer; }
.lang-choice input { position: absolute; opacity: 0; }
.lang-pill {
  display: inline-block; padding: .45rem 1.1rem; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--text-muted);
  font-family: var(--font-title); font-weight: 600; font-size: .9rem;
  transition: border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.lang-choice:hover .lang-pill { border-color: var(--neon-cyan); color: var(--text); }
.lang-choice input:checked + .lang-pill { border-color: var(--neon-cyan); color: var(--neon-cyan); box-shadow: var(--glow-cyan); }
.lang-choice input:focus-visible + .lang-pill { outline: 3px solid var(--neon-cyan); outline-offset: 2px; }

/* Aperçu CV en arabe : sens d'écriture droite-à-gauche */
.cv-preview .cv-doc[dir="rtl"] { text-align: right; }
.cv-preview .cv-doc[dir="rtl"] ul { padding-right: 1.1rem; padding-left: 0; }
.cv-preview .cv-doc[dir="rtl"] .cv-contacts,
.cv-preview .cv-doc[dir="rtl"] .cv-skills { justify-content: flex-end; }

/* --- Aperçu CV (papier clair, accent personnalisable) --- */
.cv-preview {
  --cv-accent: #0077b6;
  background: #ffffff; color: #1f2430;
  border-radius: 10px; padding: 1.6rem;
  font-family: var(--font-body); font-size: .92rem; line-height: 1.5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  min-height: 280px;
}
.cv-preview .cv-head h3 { margin: 0 0 .15rem; font-size: 1.4rem; color: var(--cv-accent); }
.cv-preview .cv-job { margin: 0 0 .4rem; font-weight: 600; }
.cv-preview .cv-contacts { margin: 0; font-size: .85rem; color: #555; display: flex; flex-wrap: wrap; gap: .45rem; }
.cv-preview .cv-dot { color: var(--cv-accent); }
.cv-preview .cv-bloc { margin-top: 1.1rem; }
.cv-preview .cv-bloc h4 {
  margin: 0 0 .45rem; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--cv-accent); border-bottom: 2px solid var(--cv-accent); padding-bottom: .25rem;
}
.cv-preview ul { margin: 0; padding-left: 1.1rem; }
.cv-preview li { margin-bottom: .3rem; }
.cv-preview .cv-skills { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.cv-preview .cv-skills li {
  background: color-mix(in srgb, var(--cv-accent) 12%, #fff);
  border: 1px solid var(--cv-accent); border-radius: 999px;
  padding: .15rem .7rem; font-size: .82rem; margin: 0;
}
/* Variantes de mise en page */
.cv-preview.tpl-neo { border-left: 10px solid var(--cv-accent); }
.cv-preview.tpl-classique { font-family: Georgia, "Times New Roman", serif; }
.cv-preview.tpl-classique .cv-head { text-align: center; border-bottom: 3px double var(--cv-accent); padding-bottom: .8rem; }
.cv-preview.tpl-classique .cv-contacts { justify-content: center; }
.cv-preview.tpl-tech .cv-bloc h4 { font-family: "Orbitron", monospace; border-bottom-style: dashed; }
.cv-preview.tpl-tech .cv-head h3 { font-family: "Space Grotesk", sans-serif; }

/* --- Résultats CV Check™ --- */
.cvc-resultats { margin-top: 2rem; outline: none; }
.cvc-score {
  display: flex; align-items: center; gap: 1rem; margin-bottom: .8rem;
}
.cvc-score strong {
  font-family: var(--font-display); font-size: 2.2rem;
  color: var(--neon-cyan); text-shadow: 0 0 16px rgba(0, 255, 255, .5);
}
.cvc-score span { color: var(--text-muted); }
.cvc-verdict { font-weight: 600; font-family: var(--font-title); margin: 0 0 1.2rem; }
.cvc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.cvc-item {
  display: flex; gap: .7rem; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: .7rem .9rem;
}
.cvc-item.is-ok { border-left: 4px solid var(--success); }
.cvc-item.is-ko { border-left: 4px solid var(--error); }
.cvc-mark { font-weight: 800; }
.cvc-item.is-ok .cvc-mark { color: var(--success); }
.cvc-item.is-ko .cvc-mark { color: var(--error); }
.cvc-advice { display: block; color: var(--text-muted); font-size: .87rem; margin-top: .2rem; }

/* --- Impression : seul l'aperçu CV est imprimé (export PDF) --- */
@media print {
  .print-cv body * { visibility: hidden; }
  .print-cv .cv-preview, .print-cv .cv-preview * { visibility: visible; }
  .print-cv .cv-preview {
    position: absolute; left: 0; top: 0; width: 100%;
    box-shadow: none; border-radius: 0; min-height: auto;
  }
  .print-cv .cv-preview * { transition: none !important; }
}

/* ==========================================================================
   Tablette ≥ 640px
   ========================================================================== */
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; justify-content: center; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: repeat(3, 1fr); }
  .hiw-grid { grid-template-columns: repeat(3, 1fr); }
  .builder-grid { grid-template-columns: 1fr 1fr; }
  .hero-split { flex-direction: row; text-align: left; }
  .hero-split .hero-actions { justify-content: flex-start; }
  .hero-copy { flex: 1 1 60%; }
  .hero-illustration { flex: 0 0 220px; }
  .score-board { flex-direction: row; }
  .skills-cols { grid-template-columns: 1fr 1fr; }
  .diag-ctas { grid-template-columns: 1fr 1fr; }
  .filtres { flex-direction: row; justify-content: space-between; align-items: center; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr .8fr; }
  .cvcheck-panel { flex-direction: row; align-items: center; padding: 2.4rem 2.2rem; }
  .cvcheck-body { flex: 1 1 60%; }
  .cvcheck-visual { display: block; flex: 0 0 150px; }
}

/* ==========================================================================
   Desktop ≥ 960px
   ========================================================================== */
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .main-nav { display: block; width: auto; order: 1; margin-left: 1rem; flex: 1; }
  .nav-list { flex-direction: row; align-items: center; gap: .2rem; padding: 0; justify-content: flex-end; }
  .nav-link { padding: .55rem .65rem; font-size: .92rem; }
  .header-actions { order: 2; margin-left: .4rem; }
  /* Sous-menu flottant + ouverture au survol */
  .nav-submenu {
    position: absolute; left: 0; top: calc(100% + 8px); z-index: 70;
    min-width: 230px; padding: .45rem;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .55), var(--glow-violet);
  }
  .nav-dropdown:hover .nav-submenu, .nav-dropdown:focus-within .nav-submenu { display: block; }
  .nav-sub-link { border-left: none; border-radius: 8px; }
  /* Recherche toujours déployée en desktop */
  .search-toggle { display: none; }
  .search-field { display: block !important; position: static !important; width: 200px !important; }
  .cards { grid-template-columns: repeat(3, 1fr); }
}
