/* =====================================================================
   CNDCI — Design System moderne (2025)
   Couleurs issues du logo_cndci.png : bleu (globe/curseur) + violet (CNDCI)
   Mode clair & sombre, responsive, appbar mobile.
   Auteur : refonte facileapp.org/cndci
   ===================================================================== */

/* ---------- Fonts ---------- */
:root {
  --font-sans: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Couleurs de marque (logo) */
  --brand-blue: #1666f0;      /* globe + curseur */
  --brand-blue-600: #0f56d6;
  --brand-blue-700: #0b46b0;
  --brand-purple: #8b1e9c;    /* ellipse "CNDCI" */
  --brand-purple-600: #7a1789;
  --brand-purple-700: #66116f;

  --grad: linear-gradient(115deg, var(--brand-blue) 0%, #4a44c9 48%, var(--brand-purple) 100%);
  --grad-soft: linear-gradient(115deg, rgba(22,102,240,.12), rgba(139,30,156,.12));

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --shadow-sm: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  --shadow: 0 8px 24px rgba(16,24,40,.10);
  --shadow-lg: 0 24px 60px -18px rgba(22,102,240,.35);

  --maxw: 1180px;
  --header-h: 74px;

  --transition: .25s cubic-bezier(.4,0,.2,1);
}

/* ---------- Thème clair (défaut) ---------- */
:root, [data-theme="light"] {
  --bg: #f5f7fc;
  --bg-2: #eef2fb;
  --surface: #ffffff;
  --surface-2: #f7f9fe;
  --text: #131a2b;
  --text-muted: #5a6579;
  --heading: #0d1526;
  --border: #e6eaf3;
  --border-strong: #d3dae8;
  --primary: var(--brand-blue);
  --primary-contrast: #ffffff;
  --accent: var(--brand-purple);
  --ring: rgba(22,102,240,.28);
  --header-bg: rgba(255,255,255,.82);
  --appbar-bg: rgba(255,255,255,.94);
  --footer-bg: #0d1220;
  --footer-text: #c7d0e0;
  --card-hover: #ffffff;
  color-scheme: light;
}

/* ---------- Thème sombre ---------- */
[data-theme="dark"] {
  --bg: #0a0f1e;
  --bg-2: #0d1426;
  --surface: #121a30;
  --surface-2: #172142;
  --text: #e7ecf7;
  --text-muted: #97a3bd;
  --heading: #f2f5fc;
  --border: #223052;
  --border-strong: #2c3c63;
  --primary: #4d8bff;
  --primary-contrast: #06122b;
  --accent: #cb6fe0;
  --ring: rgba(77,139,255,.35);
  --header-bg: rgba(11,17,32,.78);
  --appbar-bg: rgba(13,20,38,.95);
  --footer-bg: #070b16;
  --footer-text: #aab6cf;
  --card-hover: #16203c;
  color-scheme: dark;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
h1,h2,h3,h4,h5 { color: var(--heading); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1rem; }
::selection { background: var(--brand-purple); color:#fff; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 78px 0; }
.section--tight { padding: 54px 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 600; font-size: .98rem; line-height: 1;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -8px rgba(22,102,240,.55); }
.btn-primary:hover { color:#fff; transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(139,30,156,.6); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-ghost { background: var(--surface-2); color: var(--heading); }
.btn-ghost:hover { background: var(--bg-2); color: var(--heading); }
.btn-wa { background: #25d366; color:#06331a; }
.btn-wa:hover { color:#06331a; transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(37,211,102,.6); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 1000;
  display: flex; align-items: center;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--heading); letter-spacing: .3px; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand span b { color: var(--brand-purple); }
[data-theme="dark"] .brand span b { color: var(--accent); }

.nav-desktop { display: flex; align-items: center; gap: 4px; }
.nav-desktop a {
  color: var(--text); font-weight: 500; font-size: .95rem; padding: 9px 13px; border-radius: 10px;
  position: relative;
}
.nav-desktop a:hover { color: var(--primary); background: var(--surface-2); }
.nav-desktop a.active { color: var(--primary); }
.nav-desktop a.active::after {
  content:""; position:absolute; left: 13px; right: 13px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--grad);
}

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

/* Theme toggle */
.theme-toggle {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--heading); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem;
  transition: var(--transition);
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: inline; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.header-cta { display: inline-flex; }
.hamburger {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--heading); font-size: 1.4rem; align-items: center; justify-content: center; cursor: pointer;
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1100; background: var(--bg);
  transform: translateX(100%); transition: transform .32s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; padding: 20px; overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mobile-menu__close { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--heading); font-size: 1.4rem; cursor: pointer; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.mobile-menu nav a {
  display: flex; align-items: center; gap: 12px; padding: 15px 14px; border-radius: 14px;
  color: var(--text); font-weight: 600; font-size: 1.05rem; border: 1px solid transparent;
}
.mobile-menu nav a:hover, .mobile-menu nav a.active { background: var(--surface-2); border-color: var(--border); color: var(--primary); }
.mobile-menu nav a i { color: var(--primary); font-size: 1.2rem; }
.mobile-menu__cta { margin-top: auto; padding-top: 20px; display: grid; gap: 10px; }

/* ---------- Appbar mobile (bas) ---------- */
.appbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
  background: var(--appbar-bg);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--border);
  padding: 6px max(10px, env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(5, 1fr);
}
.appbar a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 2px; color: var(--text-muted); font-size: .68rem; font-weight: 600; border-radius: 12px;
}
.appbar a i { font-size: 1.35rem; line-height: 1; }
.appbar a.active { color: var(--primary); }
.appbar a.appbar-cta i {
  background: var(--grad); color:#fff; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-top: -22px;
  box-shadow: 0 8px 20px -6px rgba(139,30,156,.7); border: 3px solid var(--appbar-bg);
}
.appbar a.appbar-cta { color: var(--primary); }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: calc(var(--header-h) + 64px) 0 84px;
  overflow: hidden;
}
.hero::before {
  content:""; position:absolute; inset:0; z-index:-2;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(139,30,156,.20), transparent 60%),
    radial-gradient(900px 500px at 8% 12%, rgba(22,102,240,.20), transparent 55%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--accent); font-weight: 600; font-size: .82rem; margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.hero .eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.5px; margin-bottom: 16px; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { font-size: 1.12rem; color: var(--text-muted); max-width: 560px; margin-bottom: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-size: 1.7rem; font-weight: 800; color: var(--heading); line-height: 1; }
.hero-stats .stat span { font-size: .84rem; color: var(--text-muted); }
.hero-visual { position: relative; }
.hero-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; }
.hero-visual .badge-float {
  position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 12px 16px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9rem;
}
.hero-visual .badge-float i { color: var(--primary); font-size: 1.5rem; }
.hero-visual .badge-1 { bottom: 22px; left: -14px; }
.hero-visual .badge-2 { top: 22px; right: -10px; }

/* ---------- Section titles ---------- */
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head .kicker { text-transform: uppercase; letter-spacing: 2px; font-size: .78rem; font-weight: 700; color: var(--accent); }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: 8px 0 12px; }
.section-head h2 .grad { background: var(--grad); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color: transparent; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: var(--transition); box-shadow: var(--shadow-sm);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Feature card */
.feature .ficon {
  width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: #fff; background: var(--grad); margin-bottom: 16px; box-shadow: 0 10px 22px -10px rgba(22,102,240,.6);
}
.feature h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: .96rem; margin: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-muted); }
.check-list li i { color: var(--primary); font-size: 1.25rem; margin-top: 2px; flex: none; }
.check-list li strong { color: var(--heading); }

/* Formation card */
.course-card { text-align: center; display: flex; flex-direction: column; align-items: center; }
.course-card img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid var(--border); margin-bottom: 14px; background: var(--surface-2); }
.course-card h4 { font-size: 1.12rem; margin-bottom: 6px; }
.course-card h4 a { color: var(--heading); }
.course-card p { color: var(--text-muted); font-size: .92rem; flex: 1; }
.course-card .price { font-weight: 800; color: var(--primary); font-size: 1.2rem; margin: 4px 0 14px; }
.course-card .tag-free {
  display: inline-block; font-size: .78rem; font-weight: 700; color: var(--accent);
  border: 1.5px dashed var(--accent); border-radius: 999px; padding: 7px 14px; margin-bottom: 14px;
}

/* Steps */
.steps { counter-reset: step; }
.step-card { position: relative; padding-left: 66px; }
.step-card .num {
  position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 14px; background: var(--grad-soft);
  color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.25rem;
  border: 1px solid var(--border);
}

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 54px 40px; text-align: center; color: #fff; background: var(--grad); box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { color: rgba(255,255,255,.9); max-width: 620px; margin: 0 auto 24px; }
.cta-band .btn-primary { background: #fff; color: var(--brand-purple); }
.cta-band .btn-primary:hover { background: #fff; color: var(--brand-blue); }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 22px; cursor: pointer; font-weight: 600; color: var(--heading); font-size: 1.02rem; }
.faq-q i { flex: none; color: var(--primary); transition: transform var(--transition); }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding: 0 22px 20px; color: var(--text-muted); }
.faq-a-inner table { width: 100%; border-collapse: collapse; }
.faq-a-inner table td { padding: 8px 10px; border-bottom: 1px solid var(--border); font-size: .92rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--border); }
.info-item:last-child { border-bottom: 0; }
.info-item .i-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--grad-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex: none; border: 1px solid var(--border); }
.info-item h4 { margin: 0 0 3px; font-size: 1rem; }
.info-item p { margin: 0; color: var(--text-muted); font-size: .95rem; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); min-height: 320px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; filter: grayscale(.15); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding: calc(var(--header-h) + 34px) 0 6px; }
.breadcrumbs .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: .9rem; color: var(--text-muted); }
.breadcrumbs ol li + li::before { content: "/"; margin-right: 8px; color: var(--border-strong); }
.breadcrumbs h1, .breadcrumbs h2 { font-size: 1.5rem; margin: 6px 0 0; }

/* ---------- Blog ---------- */
.blog-layout { display: grid; grid-template-columns: 1fr 340px; gap: 34px; }
.entry {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; margin-bottom: 24px; transition: var(--transition);
}
.entry:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }
.entry-title { font-size: 1.5rem; margin-bottom: 10px; }
.entry-title a { color: var(--heading); }
.entry-title a:hover { color: var(--primary); }
.entry-meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--text-muted); font-size: .85rem; margin-bottom: 14px; }
.entry-meta a { color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; }
.entry-meta i { color: var(--primary); }
.entry-content { color: var(--text-muted); }
.entry-single .entry-content { color: var(--text); }
.entry-single .entry-content img { border-radius: var(--radius-sm); margin: 12px 0; }
.entry-single .entry-content h1,.entry-single .entry-content h2,.entry-single .entry-content h3 { margin-top: 1.2em; }
.read-more a {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 600;
  background: var(--grad); color:#fff; padding: 11px 22px; border-radius: 999px; box-shadow: 0 8px 20px -8px rgba(22,102,240,.5);
}
.read-more a:hover { color:#fff; transform: translateY(-2px); }
.entry-img img { border-radius: var(--radius-sm); width: 100%; margin-bottom: 16px; }

.sidebar { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 22px; }
.sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.sidebar-title { font-size: 1.1rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.search-form { display: flex; gap: 8px; }
.search-form input { flex: 1; }
.categories ul, .tags ul, .recent-posts { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.categories a, .tags a { display: flex; justify-content: space-between; gap: 8px; color: var(--text); padding: 8px 10px; border-radius: 10px; font-size: .92rem; }
.categories a:hover, .tags a:hover { background: var(--surface-2); color: var(--primary); }
.categories span { color: var(--text-muted); font-size: .82rem; }
.post-item { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.post-item:last-child { border-bottom: 0; }
.post-item img { width: 52px; height: 52px; border-radius: 12px; object-fit: contain; background: var(--surface-2); padding: 6px; flex: none; }
.post-item h4 { font-size: .92rem; margin: 0 0 2px; }
.post-item h4 a { color: var(--heading); }
.post-item time { font-size: .78rem; color: var(--text-muted); }
.blog-author { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.blog-author img { width: 64px; height: 64px; border-radius: 50%; object-fit: contain; background: var(--surface-2); padding: 6px; }
.social-links a { display: inline-flex; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); color: var(--primary); align-items: center; justify-content: center; margin-right: 8px; font-size: 1.1rem; transition: var(--transition); }
.social-links a:hover { background: var(--grad); color: #fff; }

/* ---------- Form controls ---------- */
.input, input[type="text"].input, .search-form input, .field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text); font-family: inherit; font-size: .98rem; transition: var(--transition);
}
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--heading); }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus, .search-form input:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring);
}
.field input::placeholder, .search-form input::placeholder { color: var(--text-muted); opacity: .85; }
.search-form button { border: none; background: var(--grad); color: #fff; border-radius: 12px; padding: 0 16px; cursor: pointer; }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 28px 16px; position: relative; }
.auth-wrap::before {
  content:""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(800px 460px at 82% 4%, rgba(139,30,156,.18), transparent 60%),
    radial-gradient(760px 440px at 6% 96%, rgba(22,102,240,.18), transparent 60%);
}
.auth-card {
  width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 34px 30px; box-shadow: var(--shadow);
}
.auth-card.wide { max-width: 540px; }
.auth-logo { text-align: center; margin-bottom: 8px; }
.auth-logo img { width: 78px; height: 78px; object-fit: contain; }
.auth-card h1 { text-align: center; font-size: 1.5rem; margin: 6px 0 4px; }
.auth-card .subtitle { text-align: center; color: var(--text-muted); font-size: .92rem; margin-bottom: 20px; }
.auth-links { text-align: center; margin-top: 18px; font-size: .92rem; color: var(--text-muted); display: grid; gap: 8px; }
.auth-foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); text-align: center; font-size: .82rem; color: var(--text-muted); }
.pw-toggle { background: none; border: none; color: var(--primary); font-size: .84rem; cursor: pointer; padding: 6px 2px; font-weight: 600; }
.top-mini-bar { position: fixed; top: 14px; right: 14px; z-index: 10; }

/* ---------- Promo (section Anglais présentiel, retirable) ---------- */
.promo {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  background: linear-gradient(125deg, #0b1b4d 0%, #4a1d8a 55%, #8b1e9c 100%);
  color: #fff; padding: 42px; box-shadow: var(--shadow-lg);
}
.promo::after { content:""; position:absolute; top:-40%; right:-10%; width:340px; height:340px; border-radius:50%; background: rgba(255,255,255,.08); }
.promo-badge { display:inline-flex; align-items:center; gap:8px; background: rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.25); padding:7px 15px; border-radius:999px; font-weight:700; font-size:.8rem; letter-spacing:.5px; margin-bottom:16px; }
.promo h2 { color:#fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 10px; }
.promo .promo-sub { color: rgba(255,255,255,.9); font-size: 1.05rem; max-width: 680px; }
.promo-grid { display:grid; grid-template-columns: repeat(2,1fr); gap:16px; margin: 24px 0; position: relative; z-index:1; }
.promo-slot { background: rgba(255,255,255,.10); border:1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 18px 20px; }
.promo-slot .tag { font-size:.72rem; font-weight:700; text-transform:uppercase; letter-spacing:1px; color:#ffd25e; }
.promo-slot h4 { color:#fff; margin:6px 0 4px; font-size:1.15rem; }
.promo-slot p { color: rgba(255,255,255,.85); margin:0; font-size:.92rem; }
.promo-meta { display:flex; flex-wrap:wrap; gap:22px; margin: 20px 0; position:relative; z-index:1; }
.promo-meta .pm { display:flex; gap:10px; align-items:flex-start; }
.promo-meta .pm i { font-size:1.3rem; color:#ffd25e; margin-top:2px; }
.promo-meta .pm b { display:block; font-size:.95rem; }
.promo-meta .pm span { color: rgba(255,255,255,.8); font-size:.85rem; }
.promo .btn-primary { background:#fff; color: var(--brand-purple); position: relative; z-index:1; }
.promo .btn-primary:hover { background:#fff; color: var(--brand-blue); }
.promo-deadline { display:inline-flex; align-items:center; gap:8px; background: #ffd25e; color:#4a1d02; font-weight:800; padding:9px 16px; border-radius:999px; font-size:.9rem; margin-left:10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 60px 0 26px; margin-top: 60px; }
.site-footer a { color: var(--footer-text); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; }
.footer-grid h3 { color: #fff; font-size: 1.3rem; }
.footer-grid h4 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-grid ul a { display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; }
.footer-grid ul a::before { content: "›"; color: var(--brand-blue); font-weight: 700; }
.footer-newsletter form { display: flex; gap: 8px; margin: 8px 0 14px; }
.footer-newsletter input[type="tel"] { flex: 1; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #fff; }
.footer-newsletter input[type="submit"] { border: none; background: var(--grad); color: #fff; padding: 0 18px; border-radius: 10px; cursor: pointer; font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; font-size: .86rem; }
.footer-social a { display: inline-flex; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; align-items: center; justify-content: center; margin-left: 8px; font-size: 1.15rem; transition: var(--transition); }
.footer-social a:hover { background: var(--grad); transform: translateY(-2px); }

/* ---------- Section téléchargement de l'application ---------- */
.app-band {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center;
  background: var(--grad-soft); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 40px;
}
.app-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px; border-radius: 14px;
  background: #0d1220; color: #fff; border: 1px solid #0d1220; transition: var(--transition);
}
.store-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.store-btn i { font-size: 1.9rem; line-height: 1; }
.store-btn small { display: block; font-size: .7rem; opacity: .82; font-weight: 500; letter-spacing: .3px; }
.store-btn b { font-size: 1.05rem; font-weight: 700; line-height: 1.15; }
[data-theme="dark"] .store-btn { background: #f2f5fc; color: #0d1220; border-color: #f2f5fc; }
[data-theme="dark"] .store-btn:hover { color: #0d1220; }
.app-visual { display: flex; align-items: center; justify-content: center; }
.app-phone {
  width: 220px; aspect-ratio: 9/17; border-radius: 34px; background: var(--grad);
  box-shadow: var(--shadow-lg); display: flex; align-items: center; justify-content: center; color: #fff;
  border: 6px solid var(--surface); position: relative;
}
.app-phone i { font-size: 3.2rem; }
.app-phone::before { content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 60px; height: 6px; border-radius: 6px; background: rgba(255,255,255,.5); }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 940; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
  box-shadow: 0 12px 28px -8px rgba(37,211,102,.7); transition: var(--transition);
}
.wa-float:hover { color:#fff; transform: scale(1.08); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mb-2{margin-bottom:1rem}
.hide-mobile { }
.audio-box { width: 100%; margin: 10px 0; }
.table-clean { width: 100%; border-collapse: collapse; }
.table-clean td, .table-clean th { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; font-size: .92rem; }
.table-clean tr:first-child td { font-weight: 700; color: var(--heading); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { gap: 30px; }
}
@media (max-width: 900px) {
  .nav-desktop, .header-cta.desktop-only { display: none; }
  .hamburger { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 480px; margin: 0 auto; }
  .about-grid, .contact-grid, .blog-layout { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .sidebar { position: static; }
  .promo-grid { grid-template-columns: 1fr; }
  .app-band { grid-template-columns: 1fr; text-align: center; }
  .app-visual { order: -1; }
  .app-cta { justify-content: center; }
}
@media (max-width: 640px) {
  body { padding-bottom: 68px; } /* place pour l'appbar */
  .appbar { display: grid; }
  .wa-float { bottom: 78px; }
  .section { padding: 54px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding-top: calc(var(--header-h) + 34px); }
  .promo { padding: 28px 22px; }
  .cta-band { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .breadcrumbs .container { flex-direction: column; align-items: flex-start; }

  /* Hero : boutons côte à côte + stats en grille pleine largeur */
  .hero-cta { display: flex; flex-wrap: nowrap; gap: 10px; }
  .hero-cta .btn { flex: 1 1 0; padding: 14px 10px; font-size: .95rem; white-space: nowrap; }
  .hero-cta .btn.btn-lg { padding: 14px 10px; font-size: .95rem; }
  .hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; width: 100%; }
  .hero-stats .stat {
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
    padding: 14px 12px; text-align: center; box-shadow: var(--shadow-sm);
  }
  .hero-stats .stat b { font-size: 1.45rem; }
  .app-band { padding: 26px 20px; }
  .store-btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 400px) {
  .appbar a span { font-size: .62rem; }
}

/* Réduction des animations si préférence */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
