/* ==========================================================================
   Dominex — Feuille de style principale
   Palette : indigo / violet / cyan, fond clair, design moderne
   ========================================================================== */

:root {
  --primary: #4f46e5;
  --primary-2: #7c3aed;
  --accent: #06b6d4;
  --success: #10b981;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #eef2ff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 60%, #06b6d4 120%);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow: 0 12px 30px rgba(79, 70, 229, 0.12);
  --shadow-lg: 0 24px 60px rgba(79, 70, 229, 0.18);
  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; overflow-x: clip; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; overflow-x: clip;
}

img { max-width: 100%; display: block; }

a { color: var(--primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary-2); }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; letter-spacing: -0.02em; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--primary);
  color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 999;
}
.skip-link:focus { left: 0; }

.container { width: min(1140px, 100% - 40px); margin-inline: auto; }

.section { padding: 80px 0; }
.section--alt { background: var(--surface-2); }

.eyebrow {
  display: inline-block; font-size: 0.82rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--primary); background: #eef2ff;
  padding: 6px 14px; border-radius: 100px; margin-bottom: 14px;
}

.section__head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section__head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 12px; }
.section__head p { color: var(--muted); }

.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 0.95rem; padding: 12px 22px; border-radius: 12px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn--lg { padding: 15px 28px; font-size: 1rem; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--primary-2); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--light { background: #fff; color: var(--primary); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--primary-2); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

/* ---------- En-tête / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }

.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__logo {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: var(--grad); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.1rem;
}
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: var(--text); text-transform: uppercase; letter-spacing: 0.02em; }
.brand__img { height: 56px; width: auto; object-fit: contain; display: block; }
.brand--footer .brand__img { background: #fff; border-radius: 10px; padding: 6px 10px; }
a.brand:hover .brand__name { color: var(--primary); }

.nav__links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav__links a { color: var(--text); font-weight: 500; font-size: 0.95rem; }
.nav__links a:hover { color: var(--primary); }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; }
.nav__toggle span { width: 26px; height: 2.5px; background: var(--text); border-radius: 3px; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 80px 0 70px;
  background: radial-gradient(1000px 500px at 85% -10%, #e0e7ff 0%, transparent 60%), var(--bg);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero__content h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 16px 0 20px; }
.hero__content .lead { font-size: 1.12rem; color: var(--muted); max-width: 460px; margin-bottom: 28px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }

.hero__checks { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; }
.hero__checks li { font-size: 0.9rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.hero__checks li::before { content: "✓"; color: var(--success); font-weight: 800; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--primary); background: #eef2ff; padding: 8px 14px; border-radius: 100px; }

/* ---------- Maquette hero ---------- */
.hero__media { position: relative; }
.mockup { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.mockup__bar { display: flex; gap: 6px; padding: 14px 16px; background: #f8fafc; border-bottom: 1px solid var(--border); }
.mockup__bar i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.mockup__bar i:first-child { background: #f87171; }
.mockup__bar i:nth-child(2) { background: #fbbf24; }
.mockup__bar i:nth-child(3) { background: #34d399; }
.mockup__body { padding: 22px; }
.mockup__row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.mockup__row div { display: flex; flex-direction: column; }
.mockup__label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.mockup__row strong { font-family: var(--font-head); font-size: 1.1rem; margin-top: 2px; }
.mockup__chart { height: 90px; border-radius: 12px; background: linear-gradient(180deg, var(--surface-2), #fff); border: 1px dashed var(--border); }

.float-chip { position: absolute; font-size: 0.82rem; font-weight: 600; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); padding: 8px 12px; border-radius: 100px; }
.chip--1 { top: -18px; left: -12px; }
.chip--2 { bottom: 28px; left: -30px; }
.chip--3 { top: 40%; right: -16px; }

/* ---------- Cartes de services ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #c7d2fe; }
.card__icon { font-size: 2.2rem; display: block; margin-bottom: 16px; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.step__num {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: var(--grad); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.9rem; }

/* ---------- Témoignages ---------- */
.card--testi p { font-style: italic; }
.card__author { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); display: flex; flex-direction: column; }
.card__author strong { font-family: var(--font-head); }
.card__author span { color: var(--muted); font-size: 0.85rem; }

/* ---------- Appel à l'action ---------- */
.cta { padding: 80px 0; }
.cta__inner { background: var(--grad); color: #fff; text-align: center; padding: 56px 32px; border-radius: var(--radius-lg); }
.cta__inner h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 14px; }
.cta__inner p { opacity: .95; margin-bottom: 26px; }

/* ---------- Transparence ---------- */
.disclaimer { padding: 24px 0 60px; }
.disclaimer__inner { background: #fff7ed; border: 1px solid #fed7aa; border-radius: var(--radius); padding: 20px 24px; }
.disclaimer__inner p { color: #9a3412; font-size: 0.95rem; }
.disclaimer__inner a { font-weight: 600; }

/* ---------- Pied de page ---------- */
.site-footer { background: #0f172a; color: #cbd5e1; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding: 60px 0 44px; }
.footer__brand p { margin: 16px 0; font-size: 0.92rem; color: #94a3b8; max-width: 300px; }
.brand--footer .brand__name { color: #fff; }
.footer__social { display: flex; gap: 10px; margin-top: 16px; }
.footer__social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #1e293b; color: #cbd5e1; font-size: 0.8rem; font-weight: 700; transition: .2s; }
.footer__social a:hover { background: var(--primary); color: #fff; }
.footer__col h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 10px; }
.footer__col a { color: #94a3b8; font-size: 0.92rem; }
.footer__col a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid #1e293b; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 22px 0; font-size: 0.85rem; color: #64748b; }
.footer__legal a { color: #94a3b8; }

/* ---------- Bouton retour en haut ---------- */
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: var(--primary); color: #fff; font-size: 1.2rem; cursor: pointer;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: .25s; z-index: 90;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--primary-2); }

/* ---------- Page politique (CGU) ---------- */
.page-hero { background: var(--grad); color: #fff; padding: 48px 0; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; margin-bottom: 18px; }
.breadcrumb a { color: #e0e7ff; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span[aria-hidden] { color: #c7d2fe; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 10px; }
.page-hero__meta { opacity: .95; font-size: 0.95rem; }

.politique { padding-top: 56px; }
.politique__layout { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }

.toc { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; max-height: calc(100vh - 120px); overflow-y: auto; }
.toc__title { font-family: var(--font-head); font-weight: 700; margin-bottom: 12px; }
.toc ul { list-style: none; }
.toc li { margin-bottom: 2px; }
.toc__link { display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 8px; color: var(--muted); font-size: 0.9rem; }
.toc__link:hover { background: var(--surface-2); color: var(--primary); }
.toc__link.is-active { background: var(--surface-2); color: var(--primary); font-weight: 600; }
.toc__num { font-family: var(--font-head); font-weight: 700; color: var(--primary); min-width: 18px; }

.notice { background: #eef2ff; border: 1px solid #c7d2fe; border-radius: var(--radius); padding: 20px 22px; margin-bottom: 32px; }
.notice p { color: #3730a3; font-size: 0.95rem; }

.article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 30px; margin-bottom: 24px; scroll-margin-top: 96px; }
.article__head { margin-bottom: 16px; }
.article__num { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); background: #eef2ff; padding: 4px 12px; border-radius: 100px; margin-bottom: 10px; }
.article__head h2 { font-size: 1.35rem; }
.article__body { color: #334155; font-size: 0.98rem; }
.article__body p { margin-bottom: 14px; }
.article__body ul { margin: 0 0 16px 22px; }
.article__body li { margin-bottom: 8px; }

.politique__end { margin-top: 8px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { max-width: 480px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .politique__layout { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .float-chip { display: none; }
}

@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__cta { display: none; }
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 12px 20px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links li a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .nav__links li:last-child a { border-bottom: 0; }

  .cards { grid-template-columns: 1fr; }
  .cta__inner { padding: 40px 22px; }

  .footer__grid { grid-template-columns: 1fr; gap: 28px; padding: 44px 0 28px; }
  .footer__legal { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
}
/* ==========================================================================
   Composants enrichis (page d'accueil v2)
   ========================================================================== */

/* --- Preuve sociale (hero) --- */
.hero__proof { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.avatars { display: flex; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 0.95rem;
  border: 2px solid #fff; margin-left: -10px; box-shadow: var(--shadow-sm);
}
.avatar:first-child { margin-left: 0; }
.stars { color: #f59e0b; font-size: 1rem; letter-spacing: 1.5px; }
.stars span { color: var(--muted); font-size: 0.85rem; margin-left: 6px; letter-spacing: 0; }
.hero__proof-text p { font-size: 0.9rem; color: var(--muted); margin-top: 4px; }

/* --- Chips flottantes animées --- */
.float-chip { animation: floaty 3.6s ease-in-out infinite; }
.chip--2 { animation-delay: .8s; }
.chip--3 { animation-delay: 1.6s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* --- Barre de confiance --- */
.trustbar { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trustbar__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 30px 0; }
.trustbar__item { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-size: 0.95rem; }

/* --- Fonctionnalités --- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #c7d2fe; }
.feature__icon { font-size: 2rem; display: block; margin-bottom: 14px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.93rem; }

/* --- FAQ --- */
.faq { max-width: 760px; margin: 0 auto; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.faq__question {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 20px 22px; font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  color: var(--text); display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq__icon { color: var(--primary); font-weight: 700; font-size: 1.4rem; transition: transform .25s ease; }
.faq__answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__item.is-open .faq__answer { max-height: 320px; }
.faq__item.is-open .faq__icon { transform: rotate(45deg); }
.faq__answer p { padding: 0 22px 20px; color: var(--muted); font-size: 0.95rem; }

/* --- Système d'animations (slide in / fade / stagger) --- */
html.js .anim {
  opacity: 0;
  transition: opacity 700ms cubic-bezier(.22, .61, .36, 1), transform 700ms cubic-bezier(.22, .61, .36, 1);
}
html.js .anim-left { transform: translateX(-42px); }
html.js .anim-right { transform: translateX(42px); }
html.js .anim-up { transform: translateY(30px); }
html.js .anim-zoom { transform: scale(.94); }
html.js .anim-fade { transform: none; }
html.js .anim.is-visible { opacity: 1; transform: none; }

/* Entrée du logo (chargement) */
.brand { animation: brandIn 700ms ease-out both; }
@keyframes brandIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 760px) {
  .trustbar__grid { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr; }
  .hero__proof { flex-direction: column; align-items: flex-start; }
}

/* ---------- Bannière de notification (Web Push) ---------- */
.push-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
  max-width: 560px; margin: 0 auto;
  animation: bannerIn .3s ease;
}
.push-banner[hidden] { display: none; }
@keyframes bannerIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.push-banner__icon { font-size: 1.8rem; }
.push-banner__text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.push-banner__text strong { font-family: var(--font-head); }
.push-banner__text span { font-size: 0.85rem; color: var(--muted); }
.push-banner__actions { display: flex; gap: 8px; }
.push-banner__allow, .push-banner__later { border: 0; cursor: pointer; font-weight: 600; font-size: 0.85rem; padding: 9px 14px; border-radius: 10px; }
.push-banner__allow { background: var(--primary); color: #fff; }
.push-banner__allow:hover { background: var(--primary-2); }
.push-banner__later { background: var(--surface-2); color: var(--text); }

@media (max-width: 480px) {
  .push-banner { flex-wrap: wrap; }
  .push-banner__text { flex: 1 1 100%; }
  .push-banner__actions { width: 100%; justify-content: flex-end; }
}

/* ---------- Messages flash (notifications d'état) ---------- */
.flashes { padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.flash { padding: 12px 16px; border-radius: 12px; font-size: 0.95rem; border: 1px solid; }
.flash--danger { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.flash--success { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.flash--warning { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.flash--info { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }

/* ---------- Audiences (pour tous) ---------- */
.audiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.audience {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 34px 30px; text-align: center; transition: transform .2s ease, box-shadow .2s ease;
}
.audience:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.audience__icon { font-size: 2.6rem; display: block; margin-bottom: 16px; }
.audience h3 { font-size: 1.2rem; margin-bottom: 10px; }
.audience p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Formations ---------- */
.formations { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.formation {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.formation:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #c7d2fe; }
.formation__icon { font-size: 2rem; display: block; margin-bottom: 14px; }
.formation h3 { font-size: 1.1rem; margin-bottom: 8px; }
.formation p { color: var(--muted); font-size: 0.92rem; }

/* ---------- CTA actions + badges d'app ---------- */
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 22px; }
.app-badges { text-align: center; }
.app-badges__label { display: block; font-size: 0.85rem; opacity: 0.85; margin-bottom: 10px; }
.app-badges__row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.app-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; border: 1px solid rgba(255,255,255,0.16);
  padding: 8px 16px; border-radius: 12px; text-align: left;
  transition: transform .2s ease, box-shadow .2s ease;
}
.app-badge:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.4); }
.app-badge__text { display: flex; flex-direction: column; line-height: 1.1; }
.app-badge__text small { font-size: 0.6rem; font-weight: 500; opacity: .85; letter-spacing: .02em; }
.app-badge__text strong { font-size: 1rem; font-weight: 700; }

@media (max-width: 960px) {
  .formations { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .audiences, .formations { grid-template-columns: 1fr; }
}

/* ---------- Bouton d'installation PWA ---------- */
.install-app {
  position: fixed; left: 16px; bottom: 16px; z-index: 150;
  background: var(--text); color: #fff; border: 0; border-radius: 100px;
  padding: 12px 18px; font-weight: 600; font-size: 0.9rem; cursor: pointer;
  box-shadow: var(--shadow-lg); transition: transform .2s ease, background .2s ease;
}
.install-app:hover { transform: translateY(-2px); background: #1e293b; }
.install-app[hidden] { display: none; }

/* ==========================================================================
   Animations fluides (visualisation soignée)
   ========================================================================== */

/* Texte en dégradé animé (shimmer) */
.grad {
  background: linear-gradient(90deg, #4f46e5, #8b5cf6, #06b6d4, #4f46e5);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: gradPan 5s linear infinite;
}
@keyframes gradPan { to { background-position: -200% center; } }

/* CTA : dégradé animé */
.cta__inner {
  background: linear-gradient(120deg, #4f46e5, #7c3aed, #4338ca, #4f46e5);
  background-size: 250% 250%;
  animation: ctaShift 9s ease-in-out infinite;
}
@keyframes ctaShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Cercles dégradés flottants (hero) */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
}
.hero::before {
  width: 340px; height: 340px;
  background: radial-gradient(circle, #c7d2fe, transparent 70%);
  top: -90px; left: -90px;
  animation: blobFloat 15s ease-in-out infinite;
}
.hero::after {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #a5f3fc, transparent 70%);
  bottom: -130px; right: -110px;
  animation: blobFloat 19s ease-in-out infinite reverse;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(35px, -35px) scale(1.12); }
}
.hero__inner { position: relative; z-index: 1; }

/* Icônes des cartes : zoom rebondi au survol */
.card__icon, .feature__icon, .formation__icon, .audience__icon {
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.card:hover .card__icon,
.feature:hover .feature__icon,
.formation:hover .formation__icon,
.audience:hover .audience__icon {
  transform: scale(1.18) rotate(-4deg);
}

/* Accessibilité : désactive les animations si demandé */
@media (prefers-reduced-motion: reduce) {
  .grad, .cta__inner, .hero::before, .hero::after, .float-chip, .brand {
    animation: none !important;
  }
  html.js .anim { transition: none; opacity: 1; transform: none; }
}

/* ---------- Optimisations mobiles (iOS / Android) ---------- */
@media (max-width: 760px) {
  /* Effets coûteux désactivés sur mobile */
  .hero::before, .hero::after { display: none; }
  .cta__inner { animation: none; }
  .grad { animation: none; }

  /* Glissement plus léger pour éviter les à-coups */
  html.js .anim-left { transform: translateX(-16px); }
  html.js .anim-right { transform: translateX(16px); }
  html.js .anim-up { transform: translateY(18px); }
}