/* ==========================================================================
   SALAMA RDC — Feuille de style principale
   --------------------------------------------------------------------------
   1. Tokens          6. Hero & slider        11. Formations
   2. Base            7. À propos             12. Processus
   3. Utilitaires     8. Expertises           13. Contact
   4. Boutons         9. Plateformes          14. Pied de page
   5. En-tête        10. Pourquoi nous        15. Formulaires, modales, notifications
                                              16. Pages internes
                                              17. Animations & préférences
   ========================================================================== */

/* Police Archivo (variable : graisse 100–900, largeur 62–125 %), auto-hébergée — licence OFL */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2-variations"), url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --night: #061430;
  --ink: #0A1F44;
  --ink-2: #13305F;
  --ink-3: #1D3E73;
  --blue: #197DDB;
  --blue-600: #1268BD;
  --electric: #4DA3FF;
  --sky: #EAF3FE;
  --mist: #F3F6FA;
  --mist-2: #E9EEF5;
  --line: #DDE5EF;
  --line-dark: rgba(150, 185, 235, .16);
  --text: #14243D;
  --muted: #56677F;
  --muted-dark: #9DB0CC;
  --signal: #FFB547;
  --ok: #16A34A;
  --danger: #D92D20;
  --wa: #1DAA61;

  --font: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wide: 116%;
  --wider: 122%;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.2rem + .8vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.1rem, 1.5rem + 2.8vw, 3.4rem);
  --step-5: clamp(2.5rem, 1.6rem + 4vw, 4.4rem);

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 30px;
  --shadow-1: 0 1px 2px rgba(10, 31, 68, .06), 0 4px 14px rgba(10, 31, 68, .06);
  --shadow-2: 0 2px 4px rgba(10, 31, 68, .05), 0 18px 44px -12px rgba(10, 31, 68, .2);
  --shadow-3: 0 30px 80px -24px rgba(6, 20, 48, .45);

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(84px, 10vw, 140px);
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.62;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
svg { overflow: visible; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul, ol.steps { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-stretch: var(--wide); font-weight: 680; line-height: 1.1; letter-spacing: -.018em; color: var(--ink); text-wrap: balance; }
h3 { font-size: var(--step-1); letter-spacing: -.01em; line-height: 1.25; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--electric); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--blue); color: #fff; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: #fff; color: var(--ink); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; box-shadow: var(--shadow-2);
}
.skip-link:focus { top: 12px; }

/* 3. Utilitaires ----------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--mist { background: var(--mist); }
.section--dark { background: var(--ink); color: #DCE6F5; }
.section--dark h2, .section--dark h3 { color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); color: var(--muted); max-width: 58ch; }
.section--dark .lead { color: var(--muted-dark); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px 64px; align-items: start; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: var(--step-4); max-width: 16ch; }
.section-head .lead { margin: 0; }
.section-head--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.section-head--center h2 { max-width: 20ch; }

/* Motif « trois lignes » issu du monogramme */
.tracks { display: inline-flex; flex-direction: column; gap: 3px; width: 28px; }
.tracks i { display: block; height: 2px; border-radius: 2px; background: currentColor; }
.tracks i:nth-child(2) { width: 70%; opacity: .7; }
.tracks i:nth-child(3) { width: 40%; opacity: .45; }

/* 4. Boutons --------------------------------------------------------------- */
.btn {
  --btn-bg: var(--blue); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: 0 22px; border-radius: 12px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  font-weight: 640; font-size: 1rem; letter-spacing: .005em; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:hover .icon--move { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn--primary:hover { --btn-bg: var(--blue-600); box-shadow: 0 10px 24px -10px rgba(25, 125, 219, .7); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--light:hover { --btn-bg: #EAF3FE; }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: #C5D3E4; }
.btn--outline:hover { --btn-bd: var(--ink); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .32); }
.btn--outline-light:hover { --btn-bd: #fff; --btn-bg: rgba(255, 255, 255, .06); }
.btn--wa { --btn-bg: var(--wa); }
.btn--wa:hover { --btn-bg: #168F51; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .92rem; border-radius: 10px; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 640; color: var(--blue); }
.link-arrow .icon { width: 1em; height: 1em; transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* 5. En-tête --------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 90; height: var(--header-h);
  color: #fff; transition: background-color .3s, box-shadow .3s, color .3s, height .3s;
}
.site-header.is-solid {
  background: rgba(255, 255, 255, .92); color: var(--ink);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 1px 0 rgba(10, 31, 68, .08), 0 10px 30px -18px rgba(10, 31, 68, .35);
  --header-h: 68px;
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 12px; line-height: 1; }
.logo__tile { width: 40px; height: 40px; flex: none; border-radius: 11px; box-shadow: 0 6px 16px -6px rgba(14, 90, 190, .7); }
.logo__text { display: flex; flex-direction: column; gap: 5px; }
.logo__word { font-stretch: 112%; font-weight: 780; font-size: 1.16rem; letter-spacing: .06em; display: inline-flex; align-items: baseline; gap: .38em; }
.logo__rdc { font-weight: 380; letter-spacing: .08em; opacity: .78; }
.logo__sign { display: none; font-size: .6rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .62; }
.nav { display: none; margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 13px; border-radius: 10px; font-size: .96rem; font-weight: 560; background: none; border: 0;
  opacity: .88; transition: opacity .2s, background-color .2s;
}
.nav__link:hover, .nav__link[aria-expanded="true"] { opacity: 1; background: rgba(255, 255, 255, .08); }
.site-header.is-solid .nav__link:hover, .site-header.is-solid .nav__link[aria-expanded="true"] { background: var(--mist); }
.nav__link.is-active { opacity: 1; }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--electric);
}
.nav__link .icon { width: .9em; height: .9em; transition: transform .25s; }
.nav__link[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav__item--drop { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; width: 380px; padding: 10px;
  background: #fff; color: var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow-3);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.dropdown::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav__item--drop.is-open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown__link { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; transition: background-color .2s; }
.dropdown__link:hover { background: var(--mist); }
.dropdown__link .app-icon { width: 42px; height: 42px; }
.dropdown__link strong { display: block; font-stretch: var(--wide); font-weight: 680; font-size: .98rem; }
.dropdown__link span { display: block; font-size: .84rem; color: var(--muted); line-height: 1.35; }
.header-cta { display: none; margin-left: 8px; }
.site-header:not(.is-solid) .header-cta { --btn-bg: #fff; --btn-fg: var(--ink); }
.site-header:not(.is-solid) .header-cta:hover { --btn-bg: #EAF3FE; }

.menu-toggle {
  display: inline-flex; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid currentColor;
  background: transparent; color: inherit; align-items: center; justify-content: center; opacity: .9;
}
.menu-toggle .icon { width: 22px; height: 22px; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 120; background: var(--night); color: #fff;
  display: flex; flex-direction: column; padding: 18px var(--gutter) 28px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .3s, transform .35s var(--ease), visibility .3s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; height: 48px; margin-bottom: 26px; }
.mobile-menu__close { width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.3); background: none; color: #fff; display: grid; place-items: center; }
.mobile-menu__close .icon { width: 22px; height: 22px; }
.mobile-menu__list a { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--line-dark); font-stretch: var(--wide); font-size: 1.45rem; font-weight: 640; }
.mobile-menu__list a .icon { opacity: .5; }
.mobile-menu__apps { display: grid; gap: 8px; margin: 22px 0; }
.mobile-menu__apps a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.05); }
.mobile-menu__apps .app-icon { width: 38px; height: 38px; }
.mobile-menu__apps strong { font-weight: 640; }
.mobile-menu__foot { margin-top: auto; display: grid; gap: 10px; }

/* 6. Hero & slider --------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(1000px 560px at 82% 18%, rgba(37, 112, 222, .32), transparent 62%),
    linear-gradient(180deg, #071839 0%, var(--night) 100%);
  color: #fff; padding-top: calc(var(--header-h) + 28px);
  min-height: auto; display: flex; flex-direction: column;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image: linear-gradient(rgba(120, 165, 235, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 165, 235, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 72% 35%, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 72% 35%, #000 25%, transparent 75%);
}
.hero__inner { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-bottom: clamp(40px, 7vh, 80px); }
.hero__slides { display: grid; }
.slide {
  grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px clamp(32px, 5vw, 80px); align-items: center;
  visibility: hidden; pointer-events: none;
}
.slide.is-active { visibility: visible; pointer-events: auto; }
.slide__kicker { display: inline-flex; align-items: center; gap: 10px; color: #A9C6EE; font-weight: 560; font-size: .95rem; margin-bottom: 22px; padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(77, 163, 255, .1); border: 1px solid rgba(77, 163, 255, .22); }
.slide__app { width: 22px; height: 22px; border-radius: 6px; }
.slide__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--electric); box-shadow: 0 0 0 4px rgba(77, 163, 255, .2); }
.slide__title { font-size: clamp(2.1rem, 1.2rem + 2.2vw, 3.1rem); color: #fff; font-stretch: 106%; font-weight: 690; line-height: 1.06; letter-spacing: -.026em; max-width: 20ch; }
.slide__text { margin: 24px 0 0; font-size: clamp(1.04rem, 1rem + .25vw, 1.18rem); color: #B3C4DD; max-width: 50ch; }
.slide__visual { position: relative; }
.slide__visual .illus { width: 100%; height: auto; }

/* transitions de slide */
.slide__kicker, .slide__title, .slide__text, .slide .hero__actions { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .7s var(--ease-out); }
.slide__visual { opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .7s var(--ease), transform 1s var(--ease-out); }
.slide.is-active .slide__kicker { opacity: 1; transform: none; transition-delay: .05s; }
.slide.is-active .slide__title { opacity: 1; transform: none; transition-delay: .12s; }
.slide.is-active .slide__text { opacity: 1; transform: none; transition-delay: .2s; }
.slide.is-active .hero__actions { opacity: 1; transform: none; transition-delay: .28s; }
.slide.is-active .slide__visual { opacity: 1; transform: none; transition-delay: .12s; }
.slide.is-leaving .slide__kicker, .slide.is-leaving .slide__title, .slide.is-leaving .slide__text, .slide.is-leaving .hero__actions { opacity: 0; transform: translateY(-10px); transition-duration: .35s; transition-delay: 0s; }
.slide.is-leaving .slide__visual { opacity: 0; transform: translateY(-8px); transition-duration: .4s; transition-delay: 0s; }

/* Composition produit */
.stack { position: relative; padding: 28px 6px 50px; }
.stack__main { position: relative; border-radius: 16px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .06); }
.stack__main .illus { display: block; }
.stack__card {
  position: absolute; display: flex; align-items: center; gap: 9px; padding: 9px 12px 9px 9px; max-width: 78%; border-radius: 16px;
  background: rgba(255, 255, 255, .97); color: var(--ink); box-shadow: 0 24px 48px -18px rgba(0, 0, 0, .55);
  opacity: 0; transform: translateY(14px);
}
.stack__card .app-icon { width: 30px; height: 30px; flex: none; }
.stack__card strong { display: block; font-size: .8rem; font-weight: 680; line-height: 1.25; }
.stack__card span { display: flex; align-items: center; gap: 5px; font-size: .72rem; color: var(--muted); }
.stack__card .is-ok { color: var(--ok); font-weight: 640; }
.stack__card .is-ok .icon { width: 15px; height: 15px; }
.stack__bar { display: block; width: 100%; height: 5px; border-radius: 3px; background: #E5EAF1; margin-top: 7px; overflow: hidden; }
.stack__bar b { display: block; height: 100%; width: 66%; background: var(--ok); border-radius: 3px; }
.stack__card--a { top: 0; right: 0; }
.stack__card--b { bottom: 6px; right: 8px; }
.stack__card--c { display: none; bottom: 54px; left: 0; }
.slide.is-active .stack__card { animation: cardIn .8s var(--ease-out) forwards, floatY 7s ease-in-out 1.6s infinite; }
.slide.is-active .stack__card--a { animation-delay: .7s, 1.5s; }
.slide.is-active .stack__card--b { animation-delay: .9s, 2.2s; }
.slide.is-active .stack__card--c { animation-delay: 1.1s, 2.9s; }

/* Boutons des zones d'accueil : empilés sur téléphone, sur une même ligne et de largeur égale ensuite */
.hero__actions, .phero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; max-width: 600px; }
.hero__actions .btn, .phero__actions .btn { flex: 1 1 100%; min-height: 54px; padding: 0 16px; font-size: .97rem; white-space: nowrap; }

/* Barre de navigation du slider */
.hero__band { position: relative; border-top: 1px solid rgba(150, 185, 235, .14); background: rgba(4, 14, 36, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero__band-inner { display: flex; align-items: center; gap: 20px; }
.hero__tabs { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hero__tab {
  position: relative; display: flex; align-items: flex-start; gap: 0; padding: 14px 8px 16px 0; text-align: left;
  background: none; border: 0; color: #8196B6; transition: color .25s;
}
.hero__tab::before, .hero__tab::after { content: ""; position: absolute; top: -1px; left: 0; height: 2px; }
.hero__tab::before { right: 8px; background: transparent; }
.hero__tab::after { width: 0; max-width: calc(100% - 8px); background: var(--electric); }
.hero__tab[aria-selected="true"]::after { width: calc(var(--progress, 0%) * 1); }
.hero__tab.is-done::after { width: calc(100% - 8px); background: rgba(77, 163, 255, .35); }
.hero__tab-ic { display: none; width: 38px; height: 38px; flex: none; border-radius: 10px; place-items: center; border: 1px solid rgba(150, 185, 235, .18); transition: background-color .25s, color .25s, border-color .25s; }
.hero__tab-ic .icon { width: 19px; height: 19px; }
.hero__tab-tx strong { display: block; font-size: .76rem; font-weight: 620; color: inherit; line-height: 1.3; }
.hero__tab-full { display: none; }
.hero__tab-short { display: inline; }
.hero__tab-tx small { display: none; font-size: .82rem; color: #657B9E; margin-top: 2px; }
.hero__tab:hover, .hero__tab[aria-selected="true"] { color: #fff; }
.hero__tab[aria-selected="true"] .hero__tab-ic { background: rgba(77, 163, 255, .16); border-color: var(--electric); color: #fff; }
.hero__tab-ic .app-icon { width: 26px; height: 26px; }
.hero__nav { display: flex; align-items: center; gap: 4px; flex: none; }
.hero__nav .hero__arrow, .hero__nav .hero__pause { width: 34px; height: 34px; }
.hero__arrow { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .04); color: #fff; display: grid; place-items: center; transition: background-color .2s, border-color .2s; }
.hero__arrow:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.hero__arrow .icon { width: 18px; height: 18px; }
.icon--flip { transform: scaleX(-1); }
.hero__pause { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .24); background: none; color: #fff; display: grid; place-items: center; flex: none; }
.hero__pause .icon { width: 17px; height: 17px; }
.hero__pause:hover { border-color: #fff; }

/* 7. À propos -------------------------------------------------------------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.about h2 { font-size: var(--step-4); max-width: 15ch; margin-bottom: 26px; }
.about__visual { position: relative; background: var(--mist); border-radius: var(--r-xl); padding: clamp(20px, 3vw, 40px); }
.about__visual::after {
  content: ""; position: absolute; inset: auto 24px -14px 24px; height: 28px; border-radius: 0 0 var(--r-xl) var(--r-xl);
  background: var(--mist-2); z-index: -1;
}
.about__visual { padding: clamp(12px, 2.5vw, 32px); }
.about-grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 2vw, 18px); }
.about-card { --ac: var(--blue); --ac-bg: var(--sky); display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg); padding: clamp(8px, 1.4vw, 14px) clamp(8px, 1.4vw, 14px) clamp(14px, 2vw, 20px); box-shadow: var(--shadow-1); }
.about-card--logiciels { --ac: #4547D0; --ac-bg: #EEF0FF; }
.about-card--formation { --ac: #C2410C; --ac-bg: #FFF1E2; }
.about-card--conseil { --ac: #15803D; --ac-bg: #E3F5EC; }
.about-card__scene { border-radius: 12px; overflow: hidden; margin-bottom: 14px; aspect-ratio: 226 / 172; }
.about-card__art { width: 100%; height: 100%; display: block; }
.about-card h3 { font-size: clamp(.92rem, .85rem + .35vw, 1.08rem); margin: 0 4px 6px; line-height: 1.25; }
.about-card p { margin: 0 4px 12px; font-size: clamp(.8rem, .76rem + .2vw, .9rem); color: var(--muted); line-height: 1.45; }
.about-card__tag { margin: auto 4px 0; align-self: flex-start; font-size: .74rem; font-weight: 640; padding: 4px 10px; border-radius: 999px; color: var(--ac); background: var(--ac-bg); line-height: 1.3; }
.about-grid__hub { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); border: 5px solid #fff; box-shadow: var(--shadow-2); }
.about-grid__hub .brand-mark { width: 20px; color: var(--electric); }
@media (max-width: 479px) {
  .hero__tab { padding: 20px 6px 18px 0; }
  .hero__tab::before { background: rgba(255, 255, 255, .14); right: 6px; }
  .hero__tab::after { max-width: calc(100% - 6px); }
  .hero__tab.is-done::after { width: calc(100% - 6px); }
  .hero__tab-tx { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .about-card__tag { display: none; }
  .about-grid__hub { width: 46px; height: 46px; border-width: 4px; }
  .about-grid__hub .brand-mark { width: 15px; }
}
.pillars { margin-top: 38px; position: relative; padding-left: 34px; }
.pillars::before { content: ""; position: absolute; left: 8px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--blue), #B9D3F2); border-radius: 2px; }
.pillar { position: relative; padding-bottom: 22px; }
.pillar:last-child { padding-bottom: 0; }
.pillar::before {
  content: ""; position: absolute; left: -32px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--blue);
}
.pillar h3 { font-size: 1.08rem; margin-bottom: 4px; }
.pillar p { margin: 0; color: var(--muted); font-size: .98rem; max-width: 52ch; }

/* 8. Expertises ------------------------------------------------------------ */
.xp { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.xp__tabs { display: grid; gap: 6px; grid-template-columns: minmax(0, 1fr); }
.xp__tab {
  display: grid; grid-template-columns: 44px 1fr 18px; gap: 14px; align-items: center; text-align: left;
  padding: 14px; border-radius: var(--r-lg); border: 1.5px solid transparent; background: none;
  transition: background-color .25s, border-color .25s;
}
.xp__tab:hover { background: var(--mist); }
.xp__tab[aria-selected="true"] { background: #fff; border-color: var(--line); box-shadow: var(--shadow-2); }
.xp__icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--blue); transition: background-color .25s, color .25s; }
.xp__icon .icon { width: 25px; height: 25px; }
.xp__tab[aria-selected="true"] .xp__icon { background: var(--blue); color: #fff; box-shadow: none; }
.xp__text strong { display: block; font-stretch: var(--wide); font-weight: 680; font-size: 1.12rem; color: var(--ink); line-height: 1.25; }
.xp__text > span { display: block; color: var(--muted); font-size: .92rem; line-height: 1.45; margin-top: 4px; }
.xp__icon .icon { display: block; }
.xp__tab .icon--chev { color: #9AABC2; transition: transform .25s, color .25s; }
.xp__tab[aria-selected="true"] .icon--chev { color: var(--blue); transform: translateX(3px); }
.xp__panel { background: var(--mist); border-radius: var(--r-xl); padding: clamp(22px, 3vw, 40px); }
.xp__panel[hidden] { display: none; }
.xp__panel.is-entering { animation: panelIn .55s var(--ease-out); }
.xp__illus { background: #fff; border-radius: var(--r-lg); padding: clamp(10px, 2vw, 22px); margin-bottom: 30px; box-shadow: var(--shadow-1); }
.xp__panel h3 { font-size: var(--step-2); margin-bottom: 12px; }
.xp__panel > p { color: var(--muted); max-width: 62ch; }
.checklist { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px 26px; margin: 22px 0 30px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; line-height: 1.45; }
.checklist .icon { color: var(--blue); width: 20px; height: 20px; margin-top: 1px; }
.xp__actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* Groupes de boutons : pleine largeur sur téléphone, largeur naturelle à partir de 640 px */
.xp__actions .btn, .cta-band__actions .btn, .footer-cta__actions .btn { flex: 1 1 100%; }
.footer-cta__actions { width: 100%; }
.why__intro .btn { width: 100%; }

/* 9. Plateformes ----------------------------------------------------------- */
.platforms { position: relative; overflow: hidden; }
.platforms__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px); }
.pcard {
  --pc: var(--blue); --pc2: var(--ink);
  position: relative; display: flex; flex-direction: column; border-radius: var(--r-xl); background: #fff; overflow: hidden;
  box-shadow: var(--shadow-1); border: 1px solid rgba(10, 31, 68, .06); transition: box-shadow .35s, transform .35s var(--ease);
}
.pcard:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); }
.pcard--attendance, .pcard--patrol, .pcard--compta { grid-column: span 12; }
.pcard__media {
  position: relative; padding: clamp(18px, 3vw, 34px) clamp(14px, 3vw, 34px) 0; overflow: hidden; perspective: 1400px;
  background:
    radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, var(--pc) 24%, transparent), transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--pc) 9%, #fff), #fff 92%);
}
.pcard__media::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(color-mix(in srgb, var(--pc) 10%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--pc) 10%, transparent) 1px, transparent 1px);
  background-size: 32px 32px; -webkit-mask-image: linear-gradient(#000, transparent 85%); mask-image: linear-gradient(#000, transparent 85%);
}
.pcard__media .illus { position: relative; width: 100%; height: auto; transform: rotateX(7deg) rotateY(-9deg) rotateZ(.6deg); transform-origin: 50% 100%; transition: transform .8s var(--ease-out); }
.pcard:hover .pcard__media .illus { transform: rotateX(2deg) rotateY(-3deg); }

.pcard__body { padding: clamp(22px, 2.6vw, 34px); display: flex; flex-direction: column; flex: 1; }
.pcard__id { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.pcard__id .app-icon { width: 50px; height: 50px; flex: none; filter: drop-shadow(0 6px 12px color-mix(in srgb, var(--pc) 35%, transparent)); }
.pcard__id h3 { font-size: 1.4rem; }
.pcard__id p { margin: 2px 0 0; font-size: .9rem; color: var(--muted); line-height: 1.35; }
.pcard__text { color: var(--muted); margin-bottom: 18px; }
.pcard__features { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 18px; margin-bottom: 26px; }
.pcard__features li { display: flex; gap: 9px; font-size: .93rem; line-height: 1.4; color: var(--text); }
.pcard__features li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: .5em; border-radius: 2px; background: var(--pc); transform: rotate(45deg); }
.pcard__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.pcard__actions .btn { flex: 1 1 0; padding: 0 18px; }
.pcard__actions .btn--primary { --btn-bg: var(--pc); }
.pcard__actions .btn--primary:hover { --btn-bg: var(--pc2); }


/* 10. Pourquoi nous -------------------------------------------------------- */
.why { position: relative; overflow: hidden; }
.why__mark { position: absolute; right: -60px; top: -40px; width: 380px; color: rgba(77, 163, 255, .07); pointer-events: none; }
.why__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); position: relative; }
.why__intro h2 { font-size: var(--step-4); max-width: 13ch; margin-bottom: 24px; }
.why__intro .btn { margin-top: 18px; }
.reasons { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line-dark); }
.reason { padding: 24px 0; border-bottom: 1px solid var(--line-dark); }
.reason .icon { width: 30px; height: 30px; color: var(--electric); margin-bottom: 18px; }
.reason h3 { font-size: 1.15rem; margin-bottom: 8px; }
.reason p { margin: 0; color: var(--muted-dark); font-size: .97rem; }

/* 11. Formations ----------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.filter { padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: .93rem; font-weight: 560; color: var(--muted); transition: all .2s; }
.filter:hover { border-color: #AFC2DA; color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.trainings { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.tcard {
  --tc: var(--blue);
  display: flex; flex-direction: column; padding: 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line);
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease), opacity .3s;
}
.tcard:hover { border-color: color-mix(in srgb, var(--tc) 45%, var(--line)); box-shadow: var(--shadow-2); }
.tcard.is-hidden { display: none; }
.tcard--dark { background: var(--ink); border-color: var(--ink); color: #C7D5EA; }
.tcard.tcard--dark h3 { color: #fff; }
.tcard.tcard--dark > p { color: #B3C4DD; }
.tcard--dark .tcard__glyph { background: rgba(255, 255, 255, .08); color: #FDBA74; }
.tcard--dark .tcard__cat { color: #FDBA74; }
.tcard--dark .tcard__meta span { background: rgba(255, 255, 255, .08); color: #DCE6F5; }
.tcard--dark .tcard__actions .btn { --btn-bg: #fff; --btn-fg: var(--ink); }
.tcard--dark .tcard__actions .btn:hover { --btn-bg: #FDBA74; }
.tcard--dark .tcard__actions button.link-arrow { color: #fff; }
.tcard--dark .tcard__actions button.link-arrow:hover { color: #FDBA74; }
.tcard.is-showing { animation: panelIn .45s var(--ease-out); }
.tcard[data-cat="ia"] { --tc: #7C3AED; }
.tcard[data-cat="dev"] { --tc: #197DDB; }
.tcard[data-cat="bureau"] { --tc: #16803C; }
.tcard[data-cat="design"] { --tc: #DB2777; }
.tcard[data-cat="digital"] { --tc: #0891B2; }
.tcard[data-cat="entreprise"] { --tc: #C2410C; }
.tcard__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.tcard__glyph { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--tc); background: color-mix(in srgb, var(--tc) 11%, #fff); }
.tcard__glyph .icon { width: 24px; height: 24px; }
.tcard__cat { font-size: .82rem; font-weight: 620; color: var(--tc); }
.tcard h3 { font-size: 1.22rem; margin-bottom: 10px; }
.tcard > p { color: var(--muted); font-size: .97rem; margin-bottom: 20px; }
.tcard__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.tcard__meta span { font-size: .8rem; font-weight: 560; padding: 5px 10px; border-radius: 999px; background: var(--mist); color: #3E5170; }
.tcard__actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.tcard__actions .btn { --btn-bg: var(--ink); }
.tcard__actions .btn:hover { --btn-bg: var(--tc); }
.tcard__actions button.link-arrow { background: none; border: 0; padding: 0; font-size: .93rem; color: var(--ink); }
.tcard__actions button.link-arrow:hover { color: var(--tc); }

/* 12. Processus ------------------------------------------------------------ */
.process { position: relative; }
.process__track { display: none; position: relative; height: 24px; margin: 0 0 34px; }
.process__track span { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: #C9DAEE; }
.process__track span:nth-child(1) { top: 3px; opacity: .6; }
.process__track span:nth-child(2) { top: 11px; }
.process__track span.process__fill { top: 11px; background: var(--blue); transform-origin: left; transform: scaleX(0); }
.process.is-in .process__fill { transition: transform 5.2s var(--ease) .3s; transform: scaleX(1); }
.process__track span:nth-child(3) { top: 19px; opacity: .6; }
.process__runner { position: absolute; top: 5px; left: 0; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 6px rgba(255, 181, 71, .25); opacity: 0; }
.process.is-in .process__runner { animation: run 5.5s var(--ease) .3s forwards; }
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.step { position: relative; display: grid; grid-template-columns: 46px 1fr; column-gap: 18px; padding-bottom: 26px; }
.step::before { content: ""; position: absolute; left: 22px; top: 50px; bottom: 4px; width: 2px; background: #C9DAEE; }
.step:last-child::before { display: none; }
.step__num { grid-row: span 2; }
.step__num {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; margin: 0;
  background: #fff; border: 2px solid #C9DAEE; color: var(--ink); font-weight: 760; font-stretch: var(--wide); position: relative; z-index: 1;
  transition: border-color .4s, background-color .4s, color .4s;
}
.process.is-in .step__num { border-color: var(--blue); background: var(--blue); color: #fff; }
.process.is-in .step:nth-child(1) .step__num { transition-delay: .4s; }
.process.is-in .step:nth-child(2) .step__num { transition-delay: 1.2s; }
.process.is-in .step:nth-child(3) .step__num { transition-delay: 2.1s; }
.process.is-in .step:nth-child(4) .step__num { transition-delay: 3s; }
.process.is-in .step:nth-child(5) .step__num { transition-delay: 3.9s; }
.process.is-in .step:nth-child(6) .step__num { transition-delay: 4.8s; }
.step h3 { font-size: 1.06rem; margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.5; }

/* 13. Contact -------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: stretch; }
.contact__info {
  position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--ink); color: #C7D5EA; padding: clamp(28px, 4vw, 52px);
  display: flex; flex-direction: column;
}
.contact__info h2 { color: #fff; font-size: var(--step-3); margin-bottom: 16px; max-width: 14ch; }
.contact__info > p { color: var(--muted-dark); max-width: 42ch; }
.contact__mark { position: absolute; right: -50px; bottom: -70px; width: 260px; color: rgba(77, 163, 255, .09); pointer-events: none; }
.clist { display: grid; gap: 4px; margin: 26px 0; position: relative; }
.clist a, .clist div { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-dark); }
.clist .icon { width: 22px; height: 22px; color: var(--electric); }
.clist small { display: block; color: var(--muted-dark); font-size: .8rem; }
.clist strong { display: block; color: #fff; font-weight: 600; font-size: 1rem; }
.clist a:hover strong { color: var(--electric); }
.contact__legal { margin-top: auto; font-size: .82rem; color: #8399BA; display: flex; flex-wrap: wrap; gap: 4px 16px; position: relative; }
.socials { display: flex; gap: 8px; margin: 4px 0 22px; position: relative; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-dark); color: #fff; transition: background-color .2s, border-color .2s; }
.socials a:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); }
.socials .icon { width: 19px; height: 19px; }
.contact__form { border-radius: var(--r-xl); border: 1px solid var(--line); background: #fff; padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow-1); }
.contact__form h3 { font-size: var(--step-2); margin-bottom: 6px; }
.contact__form > p { color: var(--muted); }

/* 14. Pied de page --------------------------------------------------------- */
.site-footer { background: var(--night); color: #9DB0CC; padding-top: clamp(64px, 8vw, 100px); position: relative; overflow: hidden; }
.footer-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 54px; margin-bottom: 54px; border-bottom: 1px solid var(--line-dark); }
.footer-cta h2 { color: #fff; font-size: var(--step-3); max-width: 20ch; }
.footer-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-bottom: 54px; }
.footer-brand .logo { color: #fff; margin-bottom: 18px; }
.footer-brand p { font-size: .95rem; max-width: 34ch; }
.footer-brand .socials a { border-color: rgba(150, 185, 235, .2); }
.footer-col h3 { color: #fff; font-size: .98rem; margin-bottom: 16px; font-stretch: var(--wide); }
.footer-col li { margin-bottom: 9px; }
.footer-col a, .footer-col button { color: #9DB0CC; font-size: .94rem; background: none; border: 0; padding: 0; text-align: left; transition: color .2s; }
.footer-col a:hover, .footer-col button:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; }
.footer-contact .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--electric); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 22px 0 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: .84rem; color: #7E93B3; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom__legal { display: flex; flex-wrap: wrap; gap: 4px 16px; }

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 80; display: inline-flex; align-items: center; gap: 10px;
  height: 56px; width: 56px; padding: 0; justify-content: center; border-radius: 999px; background: var(--wa); color: #fff; font-weight: 640;
  box-shadow: 0 14px 30px -10px rgba(29, 170, 97, .65); transition: transform .25s var(--ease), box-shadow .25s;
}
.wa-float .icon { width: 26px; height: 26px; }
.wa-float span { display: none; }
.page-home .wa-float { opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .3s, transform .3s var(--ease), visibility .3s, box-shadow .25s; }
.page-home .wa-float.is-visible { opacity: 1; visibility: visible; transform: none; }
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -10px rgba(29, 170, 97, .75); }

/* 15. Formulaires, modales, notifications ---------------------------------- */
.form { display: grid; gap: 18px; }
.form__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 18px; }
.form__full { grid-column: 1 / -1; }
.field { display: grid; gap: 7px; align-content: start; }
.field label { font-size: .9rem; font-weight: 600; color: var(--ink); }
.field label .opt { font-weight: 450; color: var(--muted); }
.field label .req { color: var(--blue); margin-left: 2px; }
.input {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #FBFCFE;
  font-size: 1rem; color: var(--text); transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.input::placeholder { color: #98A6B9; }
.input:hover { border-color: #BFCDDF; }
.input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(25, 125, 219, .14); }
textarea.input { min-height: 128px; resize: vertical; line-height: 1.5; }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2356677F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
.input[readonly] { background-color: var(--mist); }
.field.has-error .input { border-color: var(--danger); background: #FFF8F7; }
.field.has-error .input:focus { box-shadow: 0 0 0 4px rgba(217, 45, 32, .12); }
.field__error { display: none; font-size: .84rem; color: var(--danger); font-weight: 540; }
.field.has-error .field__error { display: flex; gap: 6px; align-items: flex-start; }
.field__error .icon { width: 15px; height: 15px; margin-top: 2px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.form__note { font-size: .82rem; color: var(--muted); margin: 0; max-width: 46ch; }
.form__note a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { display: none; gap: 12px; padding: 14px 16px; border-radius: 12px; font-size: .94rem; line-height: 1.5; }
.form-alert.is-visible { display: flex; }
.form-alert .icon { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.form-alert--error { background: #FEF2F1; color: #9A1C13; border: 1px solid #F8D0CC; }

.form-success { display: none; text-align: center; padding: 28px 8px 12px; }
.form-wrap.is-success .form { display: none; }
.form-wrap.is-success .form-success { display: block; animation: panelIn .5s var(--ease-out); }
.form-success__icon { width: 74px; height: 74px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: #E7F7EE; color: var(--ok); }
.form-success__icon .icon { width: 38px; height: 38px; }
.form-success__icon .icon path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: drawCheck .6s .2s var(--ease) forwards; }
.form-success h3 { font-size: var(--step-2); margin-bottom: 10px; }
.form-success p { color: var(--muted); max-width: 44ch; margin-inline: auto; }
.form-success__ref { display: inline-flex; flex-direction: column; gap: 2px; padding: 12px 22px; margin: 6px 0 24px; border-radius: 12px; background: var(--sky); }
.form-success__ref small { color: var(--muted); font-size: .8rem; }
.form-success__ref strong { font-stretch: var(--wide); letter-spacing: .05em; color: var(--ink); font-size: 1.1rem; }
.form-success__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }

.modal {
  width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: #fff; color: var(--text); box-shadow: var(--shadow-3); overflow: hidden;
}
.modal::backdrop { background: rgba(4, 14, 34, .62); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.modal[open] { display: flex; flex-direction: column; animation: modalIn .45s var(--ease-out); }
.modal[open]::backdrop { animation: fadeIn .3s ease; }
.modal.is-closing { animation: modalOut .22s ease forwards; }
.modal__head { position: relative; display: flex; gap: 16px; align-items: center; padding: 26px clamp(22px, 4vw, 40px) 22px; background: var(--ink); color: #fff; overflow: hidden; }
.modal__head .app-icon { width: 48px; height: 48px; flex: none; }
.modal__head .brand-mark { width: 28px; color: var(--electric); flex: none; }
.modal__head h2 { color: #fff; font-size: var(--step-2); line-height: 1.15; }
.modal__head p { margin: 4px 0 0; color: var(--muted-dark); font-size: .95rem; }
.modal__close { margin-left: auto; align-self: flex-start; width: 42px; height: 42px; flex: none; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .04); color: #fff; display: grid; place-items: center; }
.modal__close:hover { background: rgba(255, 255, 255, .12); }
.modal__close .icon { width: 20px; height: 20px; }
.modal__body { padding: 26px clamp(22px, 4vw, 40px) 30px; overflow-y: auto; flex: 1 1 auto; min-height: 0; }

.toasts { position: fixed; top: 18px; right: 18px; z-index: 300; display: grid; gap: 10px; width: min(400px, calc(100vw - 36px)); pointer-events: none; }
.toast {
  pointer-events: auto; display: grid; grid-template-columns: 36px 1fr 28px; gap: 12px; align-items: start;
  padding: 16px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-3); border: 1px solid var(--line);
  animation: toastIn .45s var(--ease-out); position: relative; overflow: hidden;
}
.toast.is-leaving { animation: toastOut .3s ease forwards; }
.toast__icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.toast__icon .icon { width: 20px; height: 20px; }
.toast--success .toast__icon { background: #E7F7EE; color: var(--ok); }
.toast--error .toast__icon { background: #FEECEB; color: var(--danger); }
.toast--warning .toast__icon { background: #FFF4E0; color: #B45309; }
.toast strong { display: block; color: var(--ink); font-size: .98rem; margin-bottom: 2px; }
.toast p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.45; }
.toast__close { width: 28px; height: 28px; border-radius: 8px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; }
.toast__close:hover { background: var(--mist); }
.toast__close .icon { width: 16px; height: 16px; }
.toast__timer { position: absolute; left: 0; bottom: 0; height: 3px; background: currentColor; opacity: .35; animation: timer linear forwards; }
.toast--success .toast__timer { color: var(--ok); }
.toast--error .toast__timer { color: var(--danger); }
.toast--warning .toast__timer { color: #B45309; }

/* 16. Pages internes ------------------------------------------------------- */
.page-hero { position: relative; overflow: hidden; background: radial-gradient(800px 420px at 80% 0%, rgba(41, 120, 230, .3), transparent 65%), var(--night); color: #fff; padding: calc(var(--header-h) + clamp(40px, 7vw, 90px)) 0 clamp(56px, 7vw, 96px); }
.page-hero::before { content: ""; position: absolute; inset: 0; opacity: .4; background-image: radial-gradient(rgba(140, 180, 240, .22) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
.page-hero h1 { color: #fff; font-size: var(--step-5); line-height: 1.02; letter-spacing: -.028em; max-width: 15ch; }
.page-hero .lead { color: #B8C8E0; margin-top: 22px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .9rem; color: #8FA5C6; margin-bottom: 26px; position: relative; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .icon { width: 14px; height: 14px; opacity: .6; }

.phero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.phero__id { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.phero__id .app-icon { width: 64px; height: 64px; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35)); }
.phero__id span { display: block; color: #8FA5C6; font-size: .95rem; }
.phero__id strong { display: block; font-stretch: var(--wider); font-size: 1.15rem; letter-spacing: .03em; }
.phero h1 { font-size: var(--step-4); max-width: 16ch; }
.phero__actions { margin-top: 34px; }
.phero__visual { perspective: 1600px; }
.phero__visual .illus { width: 100%; }

.problems { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.problem { padding: 26px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); position: relative; }
.problem::before { content: ""; position: absolute; left: 26px; top: 0; width: 34px; height: 3px; border-radius: 0 0 3px 3px; background: var(--signal); }
.problem h3 { font-size: 1.08rem; margin: 8px 0 10px; }
.problem p { margin: 0; color: var(--muted); font-size: .96rem; }

.features { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.feature { padding: 28px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; transition: background-color .25s; }
.feature:hover { background: #FAFCFF; }
.feature__icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px; color: var(--pc, var(--blue)); background: color-mix(in srgb, var(--pc, var(--blue)) 11%, #fff); }
.feature__icon .icon { width: 23px; height: 23px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.5; }

.views__tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 16px; background: #fff; border: 1px solid var(--line); margin-bottom: 26px; }
.views__tab { padding: 10px 18px; border-radius: 11px; border: 0; background: none; font-weight: 600; font-size: .95rem; color: var(--muted); transition: background-color .2s, color .2s; }
.views__tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.views__stage { position: relative; }
.views__arrow { position: absolute; top: 50%; z-index: 2; width: 46px; height: 46px; margin-top: -40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow-2); transition: background-color .2s, color .2s, transform .2s var(--ease); }
.views__arrow:hover { background: var(--ink); color: #fff; }
.views__arrow .icon { width: 20px; height: 20px; }
.views__arrow--prev { left: -14px; }
.views__arrow--next { right: -14px; }
.views__stage { background: linear-gradient(180deg, #fff, var(--mist)); border-radius: var(--r-xl); border: 1px solid var(--line); padding: clamp(14px, 4vw, 52px); }
.views__panel[hidden] { display: none; }
.views__panel.is-entering { animation: panelIn .55s var(--ease-out); }
.views__panel .illus { width: 100%; max-width: 980px; margin-inline: auto; }
.views__caption { text-align: center; color: var(--muted); margin: 22px auto 0; max-width: 60ch; font-size: .97rem; }

.benefits { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.benefits h2 { font-size: var(--step-4); max-width: 14ch; }
.benefits__list { display: grid; gap: 12px; }
.benefits__list li { display: flex; gap: 16px; align-items: center; padding: 18px 22px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-dark); color: #fff; font-weight: 540; }
.benefits__list .icon { width: 24px; height: 24px; color: var(--electric); }

.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(32px, 5vw, 64px); background: linear-gradient(120deg, var(--ink) 0%, var(--ink-3) 100%); color: #fff; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; }
.cta-band h2 { color: #fff; font-size: var(--step-3); max-width: 20ch; }
.cta-band p { margin: 12px 0 0; color: var(--muted-dark); max-width: 52ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; }
.cta-band__mark { position: absolute; right: 18%; top: -40px; width: 180px; color: rgba(77, 163, 255, .1); }

.other-apps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.other-app { display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; transition: box-shadow .25s, border-color .25s; }
.other-app:hover { box-shadow: var(--shadow-2); border-color: transparent; }
.other-app .app-icon { width: 54px; height: 54px; flex: none; }
.other-app strong { display: block; font-stretch: var(--wide); font-size: 1.1rem; color: var(--ink); }
.other-app span { color: var(--muted); font-size: .92rem; }
.other-app .icon--go { margin-left: auto; color: var(--blue); }

.sticky-demo { display: flex; position: fixed; left: 14px; right: 84px; bottom: 14px; z-index: 79; }
.sticky-demo .btn { width: 100%; box-shadow: var(--shadow-3); }

/* Page services */
.svc-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; position: relative; }
.svc-nav a { padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); color: #DCE6F5; font-size: .93rem; font-weight: 560; transition: all .2s; }
.svc-nav a:hover { background: #fff; color: var(--ink); }
.svc { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.svc:last-of-type { border-bottom: 0; }
.svc__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--sky); color: var(--blue); margin-bottom: 22px; }
.svc__icon .icon { width: 28px; height: 28px; }
.svc h2 { font-size: var(--step-3); max-width: 18ch; margin-bottom: 16px; }
.svc__intro { color: var(--muted); font-size: 1.06rem; }
.svc__visual { background: var(--mist); border-radius: var(--r-xl); padding: clamp(14px, 3vw, 34px); }

.prose { max-width: 760px; }
.prose h2 { font-size: var(--step-2); margin: 40px 0 14px; }
.prose p, .prose li { color: #33445C; }
.prose ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.prose a { color: var(--blue); text-decoration: underline; }

.error-page { min-height: 100svh; display: grid; place-items: center; text-align: center; background: var(--night); color: #fff; padding: 120px 20px 60px; }
.error-page .brand-mark { width: 70px; margin: 0 auto 28px; color: var(--electric); }
.error-page h1 { color: #fff; font-size: var(--step-4); margin-bottom: 14px; }
.error-page p { color: var(--muted-dark); max-width: 44ch; margin: 0 auto 30px; }

/* Apparitions au défilement */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform 1s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* Éléments animés des illustrations */
.float-a { animation: floatY 6s ease-in-out infinite; }
.float-b { animation: floatY 7s ease-in-out -2s infinite; }
.pulse-dot { animation: pulse 1.8s ease-in-out infinite; }
.pulse-ring { transform-box: fill-box; transform-origin: center; animation: ring 2s ease-out infinite; }
.rec-dot { animation: blink 1.4s steps(2, start) infinite; }
.caret { animation: blink 1s steps(2, start) infinite; }
.tap-ring { transform-box: fill-box; transform-origin: center; animation: ring 2.4s ease-out infinite; }
.cctv-walker { animation: walk 8s ease-in-out infinite alternate; }
.route-done { stroke-dasharray: 900; stroke-dashoffset: 900; animation: dash 3s var(--ease) .3s forwards; }

/* 17. Animations & préférences -------------------------------------------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes dash { to { stroke-dashoffset: 0; } }
@keyframes cardIn { to { opacity: 1; transform: none; } }
@keyframes floatY { 50% { transform: translateY(-8px); } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes ring { from { transform: scale(.85); opacity: .5; } to { transform: scale(1.5); opacity: 0; } }
@keyframes blink { to { visibility: hidden; } }
@keyframes walk { to { transform: translateX(24px); } }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes modalOut { to { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }
@keyframes timer { from { width: 100%; } to { width: 0; } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
@keyframes tiltIn { from { opacity: 0; transform: rotateY(-24deg) rotateX(10deg) translateX(40px); } }
@keyframes run { 0% { left: 0; opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .stack__card { opacity: 1; transform: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .route-done { stroke-dashoffset: 0; }
}

/* Responsive — mobile first --------------------------------------------------
   Base : téléphone. Les paliers ci-dessous enrichissent la mise en page.
   480 px (grands téléphones) · 640 px (petites tablettes) · 720 px (tablettes)
   1025 px (ordinateurs) · 1200 px (grands écrans) · 1600 px (très grands écrans)
   ---------------------------------------------------------------------------- */
@media (min-width: 420px) {
  .logo__sign { display: block; }
}
@media (min-width: 480px) {
  .views__arrow--prev { left: -18px; }
  .views__arrow--next { right: -18px; }
  .hero__actions, .phero__actions { flex-wrap: nowrap; }
  .hero__actions .btn, .phero__actions .btn { flex: 1 1 auto; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand, .footer-contact { grid-column: 1 / -1; }
  .stack { padding: 30px 14px 52px; }
}
@media (min-width: 640px) {
  .xp__actions .btn, .cta-band__actions .btn, .footer-cta__actions .btn { flex: 0 1 auto; }
  .footer-cta__actions { width: auto; }
  .why__intro .btn { width: auto; }
  .xp__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checklist, .pcard__features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reason { padding: 30px 28px 30px 0; }
  .reason:nth-child(odd) { border-right: 1px solid var(--line-dark); }
  .reason:nth-child(even) { padding-left: 28px; padding-right: 0; }
  .trainings { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
  .step { display: block; padding-bottom: 0; }
  .step::before { display: none; }
  .step__num { margin: 0 0 18px; }
  .form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features, .problems, .other-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack__card--c { display: flex; }
}
@media (min-width: 720px) {
  :root { --header-h: 76px; }
  body { font-size: var(--step-0); }
  .hero__tab { gap: 12px; padding: 20px 18px 22px 0; }
  .hero__tab::before { right: 18px; }
  .hero__tab::after, .hero__tab::before { max-width: calc(100% - 18px); }
  .hero__tab.is-done::after { width: calc(100% - 18px); }
  .hero__tab-ic { display: grid; }
  .hero__nav { gap: 6px; }
  .hero__nav .hero__arrow, .hero__nav .hero__pause { width: 42px; height: 42px; }
  .hero__tab-full { display: inline; }
  .hero__tab-short { display: none; }
  .hero__tab-tx strong { font-size: .9rem; }
  .stack { padding: 34px 26px 46px 34px; }
  .stack__card { gap: 12px; padding: 12px 16px 12px 12px; max-width: none; }
  .stack__card .app-icon { width: 38px; height: 38px; }
  .stack__card strong { font-size: .9rem; }
  .stack__card span { font-size: .78rem; }
  .stack__card--b { right: 34px; bottom: 8px; }
  .wa-float { width: auto; padding: 0 20px 0 16px; right: 20px; bottom: 20px; }
  .wa-float span { display: inline; }
  .modal { width: min(780px, calc(100vw - 48px)); height: fit-content; max-height: calc(100dvh - 48px); margin: auto; border-radius: var(--r-xl); }
  .sticky-demo { display: none; }
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; gap: 24px 64px; }
  .section-head--center { grid-template-columns: 1fr; }
}
@media (min-width: 1025px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .hero { min-height: min(100svh, 960px); padding-top: calc(var(--header-h) + clamp(36px, 7vh, 80px)); }
  .hero__tab-tx small { display: block; }
  .slide { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  .about { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  .xp { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
  .xp__tabs { grid-template-columns: minmax(0, 1fr); position: sticky; top: calc(var(--header-h) + 24px); }
  .xp__tab { grid-template-columns: 52px 1fr 20px; gap: 16px; padding: 18px 18px 18px 16px; }
  .xp__icon { width: 52px; height: 52px; }
  .pcard--attendance { grid-column: span 7; }
  .pcard--patrol { grid-column: span 5; }
  .pcard--patrol .pcard__features { grid-template-columns: minmax(0, 1fr); }
  .pcard--compta { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .pcard--compta .pcard__media { order: 2; padding: clamp(20px, 3vw, 40px); display: flex; align-items: center; }
  .pcard--compta .pcard__body { justify-content: center; padding: clamp(26px, 4vw, 56px); }
  .why__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .contact { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr) 1.2fr; gap: 36px; }
  .footer-brand, .footer-contact { grid-column: auto; }
  .phero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  .benefits, .svc { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .svc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .svc:nth-of-type(even) .svc__visual { order: -1; }
  .phero__visual .illus { transform: rotateY(-10deg) rotateX(5deg); transform-origin: 30% 50%; animation: tiltIn 1.2s var(--ease-out); }
  .cta-band { grid-template-columns: 1fr auto; gap: 28px; }
}
@media (min-width: 1025px) and (max-width: 1180px) {
  .nav__link { padding: 10px 9px; font-size: .92rem; }
  .header-cta { padding: 0 12px; }
  .hero__actions .btn, .phero__actions .btn { font-size: .9rem; padding: 0 13px; }
}
@media (min-width: 1100px) {
  .trainings { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .process__track { display: block; }
  .steps { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
  .step__num { margin: -71px 0 26px; }
  .features, .problems { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .problems { gap: 18px; }
}
@media (min-width: 1600px) {
  :root { --container: 1360px; }
}
@media print {
  .site-header, .wa-float, .hero__band, .modal, .toasts, .sticky-demo { display: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
