/* =========================================================================
   EASY-RH — easy-rh.ma
   Feuille unique, propriétés logiques (inline/block) : la version arabe (dir="rtl")
   se met en miroir d'elle-même. Les seules règles propres au RTL sont regroupées en § 20.
   ========================================================================= */
/* échelle des textes : seconde passe du 2026-11-01 (x0,92 dès 20px, x0,94 de 15 à 20px) */

/* 1. Polices (auto-hébergées) --------------------------------------------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Cairo";
  src: url("../fonts/cairo-arabic.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F;
}

/* 2. Jetons ---------------------------------------------------------------- */
:root {
  color-scheme: light dark;
  --encre: #151843;
  --texte: #3b3f5a;
  --texte-doux: #5d627e;
  --marque: #3d3bd8;
  --marque-fonce: #332fb8;
  --marque-900: #131647;
  --marque-800: #1d2063;
  --marque-clair: #a9b0fd;
  --marque-pale: #eceefe;
  --accent: #f5b12f;
  --fond: #ffffff;
  --fond-doux: #f5f6fc;
  --surface: #ffffff;
  --bord: #e2e5f3;
  --bord-fort: #c9cdea;
  --rouge: #b42318;
  --grad: linear-gradient(120deg, #332fb8 0%, #3d3bd8 50%, #6060e7 100%);
  --grad-texte: linear-gradient(95deg, #a9b0fd 0%, #f5b12f 100%);
  --rayon: 20px;
  --ombre-s: 0 1px 2px rgba(19, 22, 71, .05), 0 2px 8px rgba(19, 22, 71, .05);
  --ombre: 0 14px 34px -14px rgba(19, 22, 71, .25), 0 2px 6px rgba(19, 22, 71, .05);
  --ombre-l: 0 34px 70px -24px rgba(19, 22, 71, .42);
  --police: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --entete-h: 72px;
  --gouttiere: 20px;
}
:root[lang="ar"] { --police: "Cairo", "Plus Jakarta Sans", "Segoe UI", Tahoma, Arial, sans-serif; }

/* 3. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--entete-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--police);
  font-size: 15px;
  line-height: 1.65;
  color: var(--texte);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--encre); font-weight: 800; letter-spacing: -.02em; line-height: 1.18; }
h3 { letter-spacing: -.01em; }
a { color: var(--marque-fonce); text-underline-offset: 3px; }
a:hover { color: var(--marque); }
:focus-visible { outline: 3px solid var(--marque-clair); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.marque { white-space: nowrap; unicode-bidi: isolate; }
.conteneur { width: min(1200px, 100% - 2 * var(--gouttiere)); margin-inline: auto; }
.ico { width: 1.2em; height: 1.2em; flex: none; vertical-align: middle; }
.aller {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--marque-900); color: #fff; padding: .6rem 1rem; border-radius: 10px; text-decoration: none;
}
.aller:focus { top: 12px; color: #fff; }

/* 4. Boutons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.35rem; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 700; font-size: .921rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn .ico { width: 1.15em; height: 1.15em; transition: transform .2s ease; }
.btn:hover .ico--sens { transform: translateX(3px); }
.btn--plein { background: var(--marque); color: #fff; box-shadow: 0 10px 22px -10px rgba(61, 59, 216, .7); }
.btn--plein:hover { background: var(--marque-fonce); color: #fff; transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: var(--marque-900); box-shadow: 0 10px 26px -12px rgba(245, 177, 47, .8); }
.btn--accent:hover { background: #ffc45e; color: var(--marque-900); transform: translateY(-1px); }
.btn--contour { border-color: rgba(255, 255, 255, .32); color: #fff; }
.btn--contour:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--secondaire { background: var(--marque-pale); color: var(--marque-fonce); }
.btn--secondaire:hover { background: #dfe2fd; color: var(--marque-fonce); }
.btn--petit { padding: .6rem 1.05rem; font-size: .92rem; }
.btn--wa .ico { color: #25d366; width: 1.3em; height: 1.3em; }

/* 5. En-tête --------------------------------------------------------------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.5) blur(12px); backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.entete--defile { border-bottom-color: var(--bord); box-shadow: 0 6px 24px -18px rgba(19, 22, 71, .5); }
.entete__barre { display: flex; align-items: center; gap: 1.25rem; height: var(--entete-h); }
.entete__logo { display: block; flex: none; line-height: 0; }
.entete__logo img { height: 40px; width: auto; }
.entete__actions { display: flex; align-items: center; gap: .75rem; margin-inline-start: auto; }
.nav { margin-inline-start: auto; }
.nav__liste { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__lien {
  display: block; padding: .55rem .75rem; border-radius: 10px;
  color: var(--encre); font-weight: 600; font-size: .893rem; text-decoration: none; white-space: nowrap;
}
.nav__lien:hover, .nav__lien[aria-current="page"] { color: var(--marque-fonce); background: var(--fond-doux); }
.nav__ouvrir {
  display: grid; place-items: center; width: 28px; height: 28px; margin-inline-start: -.45rem;
  border: 0; background: none; color: var(--texte-doux); cursor: pointer; border-radius: 8px;
}
.nav__ouvrir .ico { width: 16px; height: 16px; transition: transform .2s ease; }
.nav__ouvrir[aria-expanded="true"] .ico { transform: rotate(180deg); }
.nav__sous {
  list-style: none; margin: 0; padding: 10px;
  position: absolute; top: calc(100% + 12px); inset-inline-start: -16px; width: 580px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: #fff; border: 1px solid var(--bord); border-radius: 18px; box-shadow: var(--ombre-l);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav__sous::before { content: ""; position: absolute; inset-inline: 0; top: -14px; height: 14px; }
.nav__sous a {
  display: flex; gap: .8rem; align-items: flex-start; padding: .7rem .75rem; border-radius: 12px;
  text-decoration: none; color: var(--texte);
}
.nav__sous a:hover, .nav__sous a[aria-current="page"] { background: var(--fond-doux); }
.nav__sous strong { display: block; color: var(--encre); font-size: .912rem; line-height: 1.3; }
.nav__sous small { display: block; color: var(--texte-doux); font-size: .8rem; line-height: 1.4; margin-top: .15rem; }
.nav__ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--marque-pale); color: var(--marque-fonce); flex: none; }
.nav__ico .ico { width: 19px; height: 19px; }
.nav__tout { grid-column: 1 / -1; border-top: 1px solid var(--bord); margin-top: 6px; padding-top: 6px; }
.nav__tout a { justify-content: center; align-items: center; color: var(--marque-fonce); font-weight: 700; font-size: .9rem; }
.nav__pied { display: none; }
.entete__menu {
  display: none; align-items: center; gap: .45rem; padding: .5rem .9rem; border-radius: 999px;
  border: 1px solid var(--bord-fort); background: #fff; color: var(--encre); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer;
}
.entete__menu .ico { width: 20px; height: 20px; }
.entete__menu .ico--fermer, .entete__menu[aria-expanded="true"] .ico--ouvrir { display: none; }
.entete__menu[aria-expanded="true"] .ico--fermer { display: block; }

@media (min-width: 1080px) {
  .nav__item--sous:hover .nav__sous,
  .nav__item--sous:focus-within .nav__sous,
  .nav__item--sous.ouvert .nav__sous { opacity: 1; visibility: visible; transform: none; }
}
@media (min-width: 1080px) and (max-width: 1199.98px) {
  .nav__lien { padding-inline: .55rem; font-size: .92rem; }
  /* bouton de thème + langue + démo : la langue se réduit au drapeau pour que la démo tienne */
  .entete__actions { gap: .5rem; }
  .entete__actions .langue__code { display: none; }
}

/* Sélecteur de langue : drapeau et code de la langue courante, qui ouvrent la liste des trois langues
   (<details> : s'ouvre sans JavaScript ; site.js le ferme au clic ailleurs et avec Échap) */
.langue { position: relative; flex: none; }
.langue__bouton {
  display: inline-flex; align-items: center; gap: .45rem; height: 38px; padding-inline: .65rem .5rem;
  border: 1px solid var(--bord-fort); border-radius: 999px; background: var(--surface); color: var(--encre);
  font-weight: 700; font-size: .84rem; line-height: 1; cursor: pointer; list-style: none; user-select: none;
  transition: border-color .2s ease;
}
.langue__bouton::-webkit-details-marker { display: none; }
.langue__bouton:hover, .langue[open] .langue__bouton { border-color: var(--marque); }
.langue__bouton .ico { width: 15px; height: 15px; color: var(--texte-doux); transition: transform .2s ease; }
.langue[open] .langue__bouton .ico { transform: rotate(180deg); }
.drapeau { display: block; flex: none; width: 22px; height: 15px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(19, 22, 71, .15); }
.langue__menu {
  position: absolute; z-index: 60; top: calc(100% + 8px); inset-inline-end: 0; min-width: 200px;
  list-style: none; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--bord);
  border-radius: 16px; box-shadow: var(--ombre-l);
}
.langue__menu a {
  display: flex; align-items: center; gap: .7rem; padding: .62rem .75rem; border-radius: 10px;
  color: var(--encre); font-weight: 600; font-size: .893rem; text-decoration: none;
}
.langue__menu a:hover { background: var(--fond-doux); color: var(--encre); }
.langue__menu a[aria-current] { background: var(--marque-pale); color: var(--marque-fonce); }
.langue__menu .ico { width: 16px; height: 16px; margin-inline-start: auto; }
@media (max-width: 399.98px) { .langue__code { display: none; } }

/* Bouton mode clair / sombre : lune en mode clair, soleil en mode sombre (sombre.css inverse). Sous 480 px
   la barre du haut est pleine : le bouton passe dans le menu, avec son texte. */
.theme {
  display: grid; place-items: center; flex: none; width: 38px; height: 38px; padding: 0;
  border: 1px solid var(--bord-fort); border-radius: 50%; background: var(--surface); color: var(--encre);
  font: inherit; cursor: pointer; transition: border-color .2s ease, color .2s ease;
}
.theme:hover { border-color: var(--marque); color: var(--marque-fonce); }
.theme .ico { width: 18px; height: 18px; }
.theme__soleil, .theme__texte-clair { display: none; }
.theme--menu { display: none; }
@media (max-width: 479.98px) {
  .entete__actions .theme { display: none; }
  .nav__pied .theme--menu {
    display: inline-flex; align-items: center; gap: .6rem; width: auto; height: auto; padding: .7rem 1.15rem;
    border-radius: 999px; font-weight: 700; font-size: .893rem;
  }
}
/* logo : version claire en mode sombre (sombre.css) */
.entete__logo .logo-sombre { display: none; }

/* Menu mobile */
@media (max-width: 1079.98px) {
  /* backdrop-filter ferait de l'en-tête le bloc conteneur du menu fixe (hauteur nulle) */
  .entete { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
  .entete__menu { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--entete-h) 0 0 0; z-index: 49;
    display: flex; flex-direction: column; gap: 1.5rem;
    padding: 12px var(--gouttiere) 32px; background: #fff; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.ouvert { opacity: 1; visibility: visible; transform: none; }
  .nav__liste { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--bord); }
  .nav__lien { flex: 1; padding: 1rem .25rem; font-size: .987rem; border-radius: 0; }
  .nav__lien:hover, .nav__lien[aria-current="page"] { background: none; }
  .nav__ouvrir { width: 44px; height: 44px; margin: 0; }
  .nav__sous {
    position: static; width: 100%; grid-template-columns: 1fr; padding: 0 0 .75rem; border: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; display: none;
  }
  .nav__sous::before { display: none; }
  .nav__item--sous.ouvert .nav__sous { display: grid; }
  .nav__pied { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
  .nav__pied .btn { width: 100%; }
  body.menu-ouvert { overflow: hidden; }
}
/* la démo de la barre du haut revient à 720px (elle est aussi dans le menu) : en dessous, logo, thème,
   langue et menu tiennent seuls */
@media (max-width: 719.98px) {
  .entete__demo { display: none; }
  .entete__logo img { height: 36px; }
}
/* très petits téléphones : « Menu » ne garde que son icône (le texte reste lu par les lecteurs d'écran) */
@media (max-width: 380px) {
  .entete__logo img { height: 32px; }
  .entete__actions { gap: .5rem; }
  .entete__menu { padding: .5rem .65rem; }
  .entete__menu span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* 6. Héros ----------------------------------------------------------------- */
.hero {
  position: relative; overflow: clip; isolation: isolate;
  background:
    radial-gradient(900px 520px at 88% -12%, rgba(131, 135, 237, .26), transparent 62%),
    radial-gradient(720px 420px at -6% 112%, rgba(245, 177, 47, .14), transparent 62%),
    var(--marque-900);
  color: #e1e4fa;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 25%, #000 15%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 70% at 70% 25%, #000 15%, transparent 70%);
}
.hero h1 { color: #fff; font-size: clamp(1.748rem, .94rem + 2.02vw, 2.76rem); line-height: 1.1; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
.degrade { background: var(--grad-texte); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.surtitre {
  display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1rem;
  font-size: .84rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--marque-fonce);
}
.surtitre::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--marque); box-shadow: 0 0 0 4px rgba(61, 59, 216, .16); }
.surtitre--clair { color: var(--accent); }
.surtitre--clair::before { background: var(--accent); box-shadow: 0 0 0 4px rgba(245, 177, 47, .16); }
.hero__chapeau { font-size: .987rem; color: rgba(225, 228, 250, .86); max-width: 620px; margin: 1rem 0 1.5rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* Téléphone en clair et WhatsApp (héros) */
.hero__contact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 1.1rem; }
.hero__tel {
  display: inline-flex; align-items: center; gap: .6rem; padding: .4rem 1rem .4rem .45rem; border-radius: 14px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: #fff; text-decoration: none;
}
.hero__tel:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.hero__tel > .ico { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--accent); color: var(--marque-900); }
.hero__tel small { display: block; font-size: .74rem; color: rgba(225, 228, 250, .75); line-height: 1.2; }
.hero__tel strong { display: block; font-size: 1.034rem; letter-spacing: .02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.hero__wa { display: grid; place-items: center; width: 47px; height: 47px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 10px 22px -12px rgba(37, 211, 102, .8); }
.hero__wa:hover { background: #1fb457; color: #fff; }
.hero__wa .ico { width: 25px; height: 25px; }
.hero__points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .5rem; font-size: .893rem; color: rgba(225, 228, 250, .92); }
.hero__points li { display: flex; gap: .6rem; align-items: center; }
.hero__points .ico { color: var(--marque-clair); width: 20px; height: 20px; }

/* Héros de l'accueil */
.hero--accueil { padding-block: clamp(28px, 3vw, 44px) clamp(48px, 5vw, 76px); }
.hero__grille { display: grid; gap: 56px; align-items: center; }
.hero__visuel { position: relative; padding-block: 28px; padding-inline-start: 20px; }
.fenetre { border-radius: 14px; background: #fff; border: 1px solid var(--bord); box-shadow: var(--ombre-l); overflow: hidden; }
.fenetre__barre { display: flex; align-items: center; gap: 6px; height: 28px; padding-inline: 12px; background: #eef0f8; border-bottom: 1px solid var(--bord); }
.fenetre__barre span { width: 9px; height: 9px; border-radius: 50%; background: #cdd1e6; }
.fenetre__barre span:first-child { background: #f4a6a0; }
.fenetre__barre span:nth-child(2) { background: #f6d38a; }
.fenetre__barre span:nth-child(3) { background: #9fdcb7; }
.fenetre img { display: block; width: 100%; height: auto; }
.flottant {
  position: absolute; z-index: 2; display: flex; gap: 10px; align-items: center;
  background: rgba(255, 255, 255, .97); color: var(--encre); padding-block: 10px; padding-inline: 10px 14px; border-radius: 14px;
  box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .55); font-size: .8rem; line-height: 1.35;
  animation: flotte 7s ease-in-out infinite;
}
.flottant strong { display: block; font-size: .86rem; }
.flottant small { color: var(--texte-doux); font-size: .78rem; }
.flottant__ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--marque-pale); color: var(--marque-fonce); flex: none; }
.flottant__ico .ico { width: 20px; height: 20px; }
.flottant--1 { top: 0; inset-inline-end: 8%; }
.flottant--2 { top: 46%; inset-inline-end: -14px; animation-delay: -2.4s; }
.flottant--3 { bottom: 4px; inset-inline-start: 26%; animation-delay: -4.6s; }
@keyframes flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (min-width: 992px) {
  .hero__grille { grid-template-columns: 1.02fr 1fr; }
}

/* 6 ter. Maquette de l'accueil (HTML, interface en français, données fictives) : le tableau de bord
   d'un responsable dans une fenêtre, l'espace employé sur un téléphone qui la chevauche. Sous 576 px,
   le téléphone seul, centré. */
.maquette { padding: 46px 0; padding-inline-start: 92px; }
.ecran {
  position: relative; z-index: 1; overflow: hidden; border-radius: 16px; background: #f5f6fd; color: var(--encre);
  font-size: 11px; line-height: 1.35; text-align: start;
  box-shadow: 0 50px 90px -34px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08);
}
.ecran p, .tel p { margin: 0; }
.ecran__barre { display: flex; align-items: center; gap: 6px; height: 26px; padding-inline: 12px; background: #fff; border-bottom: 1px solid var(--bord); }
.ecran__barre span { width: 8px; height: 8px; border-radius: 50%; background: #9fdcb7; }
.ecran__barre span:first-child { background: #f4a6a0; }
.ecran__barre span:nth-child(2) { background: #f6d38a; }
.ecran__barre b { margin-inline-start: auto; font-size: 9.5px; letter-spacing: .1em; color: var(--texte-doux); }
.ecran__corps { display: grid; grid-template-columns: 46px minmax(0, 1fr); }
.ecran__menu { list-style: none; margin: 0; padding: 10px 0; display: grid; align-content: start; justify-items: center; gap: 8px; background: var(--marque-900); }
.ecran__menu li { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: rgba(225, 228, 250, .5); }
.ecran__menu li.actif { background: rgba(245, 177, 47, .16); color: var(--accent); }
.ecran__menu .ico { width: 16px; height: 16px; }
.ecran__menu .ecran__logo { margin-bottom: 4px; }
.ecran__logo img { width: 26px; height: 26px; }
.ecran__contenu { min-width: 0; padding: 14px; display: grid; gap: 11px; }
.ecran__tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ecran__tete strong { display: block; font-size: 14px; }
.ecran__tete small { color: var(--texte-doux); font-size: 10px; }
.ecran__etat { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: #fff; border: 1px solid var(--bord); font-size: 9.5px; font-weight: 600; white-space: nowrap; }
.ecran__etat i { width: 7px; height: 7px; border-radius: 50%; background: var(--marque); box-shadow: 0 0 0 3px rgba(61, 59, 216, .18); }
.ecran__kpi { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ecran__kpi li { padding: 8px 10px 9px; border-radius: 10px; background: #fff; border: 1px solid var(--bord); border-top: 3px solid var(--c); }
.ecran__kpi small { display: block; color: var(--texte-doux); font-size: 9.5px; white-space: nowrap; }
.ecran__kpi strong { display: block; font-size: 18px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.ecran__kpi--marque { --c: var(--marque); }
.ecran__kpi--ambre { --c: #f59e0b; }
.ecran__kpi--bleu { --c: #0e7490; }
.ecran__kpi--rouge { --c: #e5484d; }
.ecran__bas { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 8px; align-items: start; }
.ecran__bloc { min-width: 0; padding: 10px; border-radius: 10px; background: #fff; border: 1px solid var(--bord); }
.ecran .ecran__titre { margin-bottom: 7px; font-size: 10.5px; font-weight: 700; }
.ecran__liste, .ecran__conges { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ecran__liste li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 14px; align-items: center; gap: 6px; }
.ecran__avatar { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-style: normal; font-size: 8.5px; font-weight: 700; color: #fff; background: var(--marque); }
.ecran__avatar--2 { background: #0e7490; }
.ecran__avatar--3 { background: #b45309; }
.ecran__avatar--4 { background: var(--marque-800); }
.ecran__liste span, .ecran__conges span { min-width: 0; }
.ecran__liste b, .ecran__conges b { display: block; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ecran__liste em, .ecran__conges em { display: block; font-style: normal; font-size: 9.5px; color: var(--texte-doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ecran__liste time { font-weight: 700; font-variant-numeric: tabular-nums; }
.ecran__liste time.retard { color: #b45309; }
.ecran__liste .ico { width: 14px; height: 14px; color: var(--marque); }
.ecran__conges li { display: grid; grid-template-columns: minmax(0, 1fr) 20px 20px; align-items: center; gap: 5px; padding-bottom: 6px; border-bottom: 1px dashed var(--bord); }
.ecran__conges i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--marque-pale); color: var(--marque-fonce); }
.ecran__conges i + i { background: #fdecea; color: var(--rouge); }
.ecran__conges .ico { width: 12px; height: 12px; stroke-width: 2.4; }
.ecran .ecran__alerte { display: flex; gap: 6px; align-items: flex-start; margin-top: 8px; padding: 7px 8px; border-radius: 8px; background: #fff7e6; font-size: 9.5px; font-weight: 600; }
.ecran__alerte .ico { flex: none; width: 13px; height: 13px; margin-top: 1px; color: #b45309; }
.ecran__alerte small { display: block; font-weight: 500; color: var(--texte-doux); }
/* téléphone : tailles en em, la taille de police de .tel règle l'ensemble */
.tel {
  position: absolute; z-index: 3; inset-inline-start: -34px; bottom: 0; width: 150px; padding: .7em; border-radius: 2.8em;
  background: #0e1033; color: var(--encre); font-size: 9.4px; line-height: 1.35; text-align: start;
  box-shadow: 0 34px 60px -22px rgba(0, 0, 0, .75), inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.tel::before { content: ""; position: absolute; z-index: 1; top: 1.3em; left: 50%; width: 4.6em; height: .55em; margin-left: -2.3em; border-radius: 99px; background: #0e1033; }
.tel__ecran { display: grid; gap: .9em; padding: 2.5em 1.1em 1.2em; border-radius: 2.2em; background: #f5f6fd; }
.tel__tete { display: flex; align-items: center; gap: .7em; }
.tel__tete img { width: 2.5em; height: 2.5em; }
.tel__tete small { display: block; color: var(--texte-doux); font-size: .9em; }
.tel__tete strong { display: block; font-size: 1.2em; }
.tel__pointer { display: grid; justify-items: center; gap: .5em; padding: 1em .8em; border-radius: 1.4em; background: var(--marque-900); }
.tel__bouton { display: inline-flex; align-items: center; gap: .45em; padding: .7em 1em; border-radius: 999px; background: var(--accent); color: var(--marque-900); font-weight: 800; font-size: .98em; white-space: nowrap; }
.tel__bouton .ico { width: 1.3em; height: 1.3em; }
.tel__pointer small { font-size: .85em; color: rgba(225, 228, 250, .82); }
.tel__infos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6em; }
.tel__infos li { padding: .7em .8em; border-radius: 1em; background: #fff; border: 1px solid var(--bord); }
.tel__infos small { display: block; color: var(--texte-doux); font-size: .85em; }
.tel__infos b { font-size: 1.3em; font-variant-numeric: tabular-nums; }
.tel__titre { font-size: .95em; font-weight: 700; }
.tel__docs { list-style: none; margin: 0; padding: 0; display: grid; gap: .5em; }
.tel__docs li { display: flex; align-items: center; gap: .65em; padding: .65em .75em; border-radius: 1em; background: #fff; border: 1px solid var(--bord); }
.tel__docs .ico { flex: none; width: 2.2em; height: 2.2em; padding: .5em; border-radius: .75em; background: var(--marque-pale); color: var(--marque-fonce); }
.tel__docs li + li .ico { background: #fdf1d8; color: #8a5a00; }
.tel__docs span { display: grid; min-width: 0; line-height: 1.3; }
.tel__docs b { font-size: 1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tel__docs small { color: var(--texte-doux); font-size: .85em; }
/* badges : au-dessus et au-dessous de la fenêtre, jamais sur ses chiffres */
.maquette .flottant { z-index: 4; }
.maquette .flottant--1 { top: 0; inset-inline-end: 4%; }
.maquette .flottant--2 { top: 0; inset-inline-start: 0; inset-inline-end: auto; }
.maquette .flottant--3 { bottom: 0; inset-inline-start: auto; inset-inline-end: 0; }
@media (max-width: 991.98px) {
  .maquette { width: 100%; max-width: 640px; margin-inline: auto; }
}
@media (max-width: 575.98px) {
  .maquette { display: grid; justify-items: center; padding: 34px 0 40px; }
  .ecran { display: none; }
  .tel { position: relative; inset: auto; width: min(250px, 72%); font-size: 12.4px; }
  .maquette .flottant { font-size: .74rem; padding-block: 8px; padding-inline: 8px 11px; }
  .maquette .flottant__ico { width: 30px; height: 30px; }
  .maquette .flottant--1 { top: 0; inset-inline-end: 0; }
  .maquette .flottant--2 { top: auto; bottom: 0; inset-inline-start: 0; }
  .maquette .flottant--3 { display: none; }
}

/* Héros des pages */
.page-hero { padding-block: clamp(24px, 3vw, 40px) clamp(40px, 4.5vw, 56px); }
.page-hero h1 { font-size: clamp(1.61rem, .94rem + 1.56vw, 2.3rem); }
.page-hero__grille { display: grid; gap: 48px; align-items: center; }
.page-hero__visuel { display: none; }
@media (min-width: 992px) {
  .page-hero--visuel .page-hero__grille { grid-template-columns: 1.25fr .9fr; }
  .page-hero__visuel { display: block; }
}
.fil ol { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; list-style: none; padding: 0; margin: 0 0 1.4rem; font-size: .86rem; color: rgba(225, 228, 250, .62); }
.fil li { display: inline-flex; align-items: center; gap: .35rem; }
.fil a { color: rgba(225, 228, 250, .82); text-decoration: none; }
.fil a:hover { color: #fff; text-decoration: underline; }
.fil .ico { width: 14px; height: 14px; opacity: .55; }
.page-hero__visuel .fenetre { border-color: rgba(255, 255, 255, .14); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); }
.page-hero__visuel--icone { display: none; justify-items: center; }
@media (min-width: 992px) { .page-hero__visuel--icone { display: grid; } }
.halo { position: relative; display: grid; place-items: center; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(131, 135, 237, .22), transparent 68%); }
.halo::before, .halo::after { content: ""; position: absolute; border-radius: 50%; }
.halo::before { inset: 0; border: 1px solid rgba(255, 255, 255, .12); background: radial-gradient(circle at 50% 0, var(--accent) 0 5px, transparent 6px); animation: tourne 22s linear infinite; }
.halo::after { inset: 34px; border: 1px dashed rgba(245, 177, 47, .28); }
.halo .ico {
  position: relative; z-index: 1; width: 84px; height: 84px; padding: 28px; box-sizing: content-box; stroke-width: 1.5;
  color: var(--accent); border-radius: 34px; border: 1px solid rgba(255, 255, 255, .18);
  background: linear-gradient(150deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03));
  box-shadow: 0 34px 60px -24px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .12);
}
@keyframes tourne { to { transform: rotate(360deg); } }
.page-hero__visuel--appareils { position: relative; height: 320px; }
@media (min-width: 992px) { .page-hero__visuel--appareils { display: flex; align-items: flex-end; justify-content: center; } }
.page-hero__visuel--appareils::before { content: ""; position: absolute; inset: 10% 8% 0; border-radius: 50%; background: radial-gradient(circle, rgba(131, 135, 237, .3), transparent 65%); }
.page-hero__visuel--appareils { min-width: 0; }
/* trois photos dans la colonne : elles rétrécissent plutôt que de déborder sur le texte */
.page-hero__visuel--appareils img { position: relative; width: auto; height: auto; min-width: 0; max-width: 38%; max-height: 230px; margin-inline: -18px; filter: drop-shadow(0 24px 28px rgba(0, 0, 0, .5)); }
.page-hero__visuel--appareils img:nth-child(2) { max-height: 280px; z-index: 1; }

/* 7. Sections -------------------------------------------------------------- */
/* Pastille « Bientôt » : module de paie et application Android en cours de développement */
.bientot {
  display: inline-block; margin-inline-start: .4em; padding: .12em .6em; border-radius: 999px;
  background: #fdf1d8; color: #7a4f00; font-size: .78em; font-weight: 700; line-height: 1.5;
  vertical-align: .1em; white-space: nowrap;
}
.hero .bientot, .cta .bientot { background: rgba(245, 177, 47, .18); color: var(--accent); }

.section { padding-block: clamp(32px, 3.5vw, 48px) clamp(40px, 4.5vw, 60px); }
.section--blanc { background: var(--fond); }
.section--doux { background: var(--fond-doux); }
.section__tete { max-width: 780px; margin-bottom: clamp(24px, 3vw, 36px); }
.section__tete .surtitre { margin-bottom: .75rem; }
.section__tete--centre { margin-inline: auto; text-align: center; }
.section__tete--centre .surtitre { justify-content: center; }
.section__tete h2 { font-size: clamp(1.38rem, .94rem + 1.06vw, 1.84rem); margin: 0; text-wrap: balance; }
.section__intro { font-size: .959rem; color: var(--texte-doux); margin: .8rem 0 0; }
/* ni marge après le titre (elle est déjà dans .section__tete) ni marge sous le dernier bloc */
.section__tete + * { margin-top: 0; }
.section > .conteneur > :last-child, .duo__texte > :last-child { margin-bottom: 0; }
.texte { font-size: .94rem; margin: 0 0 1rem; }
.sous-titre { font-size: 1.109rem; margin: 1.75rem 0 .6rem; }
.conteneur > .texte, .conteneur > .liste-check, .conteneur > .encadre, .conteneur > .tableau-defile, .conteneur > .sous-titre {
  max-width: 860px; margin-inline: auto;
}
#partenaires { padding-block: 40px 44px; border-bottom: 1px solid var(--bord); }
#partenaires .section__tete { margin-bottom: 24px; }
#partenaires h2 { font-size: clamp(1.15rem, .94rem + 0.55vw, 1.38rem); }

/* Grilles de cartes : rangées centrées (une dernière rangée incomplète reste centrée) */
.grille { --gap: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.grille > * { flex: 0 1 calc((100% - (var(--cols, 3) - 1) * var(--gap)) / var(--cols, 3)); min-width: 0; }
@media (max-width: 991.98px) { .grille > * { flex-basis: calc((100% - var(--gap)) / 2); } }
@media (max-width: 575.98px) { .grille > * { flex-basis: 100%; } }
/* deux cartes : même largeur que le texte qui les accompagne */
.grille--etroite { max-width: 860px; margin-inline: auto; }
.grille + .texte, .etapes + .texte, .grille--appareils + .texte { margin-top: 1.5rem; }

.carte {
  position: relative; display: flex; flex-direction: column; gap: .55rem;
  background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 26px 24px;
  box-shadow: var(--ombre-s); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.carte__icone { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--marque-pale); color: var(--marque-fonce); margin-bottom: .35rem; }
.carte__icone .ico { width: 25px; height: 25px; }
.carte h3 { font-size: 1.034rem; margin: 0; }
.carte p { margin: 0; color: var(--texte-doux); font-size: .912rem; }
.carte__lien { color: inherit; text-decoration: none; }
.carte__lien::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.carte__lien:focus-visible { outline: none; }
.carte:has(.carte__lien:focus-visible) { outline: 3px solid var(--marque-clair); outline-offset: 2px; }
.carte__suite { display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; padding-top: .6rem; color: var(--marque); font-weight: 700; font-size: .92rem; }
.carte__suite .ico { width: 1em; height: 1em; transition: transform .2s ease; }
.carte--lien:hover { transform: translateY(-4px); box-shadow: var(--ombre); border-color: var(--bord-fort); }
.carte--lien:hover .carte__icone { background: var(--grad); color: #fff; }
.carte--lien:hover .carte__suite .ico--sens { transform: translateX(3px); }
.carte--lien { align-items: center; text-align: center; }
.section--doux .carte { box-shadow: var(--ombre-s); }

/* Liste à coches, encadrés */
.liste-check { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: .7rem; }
.liste-check li { display: flex; gap: .7rem; align-items: flex-start; }
.liste-check .ico { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--marque-pale); color: var(--marque-fonce); margin-top: 2px; stroke-width: 2.4; }
.encadre { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 14px; background: var(--marque-pale); border-inline-start: 4px solid var(--marque); margin-block: 1.5rem; }
.encadre .ico { width: 22px; height: 22px; color: var(--marque-fonce); margin-top: 2px; }
.encadre p { margin: 0; font-size: .893rem; }
.encadre--legal { background: #fff7e6; border-inline-start-color: #f59e0b; }
.encadre--legal .ico { color: #b45309; }
.encadre--attention { background: #fdecea; border-inline-start-color: #e5484d; }

/* Étapes */
.etapes { --gap: 20px; list-style: none; counter-reset: etape; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); padding: 0; margin: 0; }
.etape { counter-increment: etape; position: relative; flex: 0 1 calc((100% - (var(--cols, 3) - 1) * var(--gap)) / var(--cols, 3)); min-width: 0; background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 66px 24px 24px; box-shadow: var(--ombre-s); }
.etape::before { content: counter(etape, decimal-leading-zero); position: absolute; top: 22px; inset-inline-start: 24px; padding: 5px 11px; border-radius: 10px; background: var(--grad); color: #fff; font-weight: 800; font-size: .85rem; letter-spacing: .02em; }
.etape h3 { font-size: 1.015rem; margin: 0 0 .45rem; }
.etape p { margin: 0; color: var(--texte-doux); font-size: .902rem; }
@media (max-width: 991.98px) { .etape { flex-basis: calc((100% - var(--gap)) / 2); } }
@media (max-width: 575.98px) { .etape { flex-basis: 100%; } }

/* Duo texte + visuel */
.duo { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 992px) {
  .duo { grid-template-columns: 1fr 1.05fr; }
  .duo--inverse .duo__media { order: -1; }
}
.duo__texte .section__tete { margin-bottom: 1.4rem; }
.duo__texte .boutons { justify-content: flex-start; }
.figure { margin: 0; }
.figure figcaption, .scene figcaption { margin-top: .85rem; font-size: .86rem; color: var(--texte-doux); text-align: center; }

/* Tableaux */
.tableau-defile { overflow-x: auto; border: 1px solid var(--bord); border-radius: 16px; background: #fff; margin-block: 1.5rem; box-shadow: var(--ombre-s); }
.tableau { width: 100%; border-collapse: collapse; font-size: .902rem; }
.tableau caption { caption-side: bottom; padding: .8rem 1rem; font-size: .85rem; color: var(--texte-doux); text-align: start; border-top: 1px solid var(--bord); }
.tableau th, .tableau td { padding: 13px 18px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--bord); }
.tableau thead th { background: var(--marque-900); color: #fff; font-weight: 700; font-size: .884rem; border-bottom: 0; }
.tableau tbody tr:last-child th, .tableau tbody tr:last-child td { border-bottom: 0; }
.tableau tbody tr:nth-child(even) { background: #f8f9fe; }
.tableau th[scope="row"] { color: var(--encre); font-weight: 600; }

/* Scènes animées */
.scene { margin: 0 auto; max-width: 880px; }
.scene img { display: block; width: 100%; height: auto; border-radius: 24px; box-shadow: var(--ombre); }
.scene--portrait { max-width: 400px; }
@media (max-width: 767.98px) { .scene { max-width: 456px; } }
.scene + .grille, .scene + .liste-check { margin-top: 40px; }

/* Avant / après : deux cartes en largeur, l'une sous l'autre ; texte d'un côté, scène paysage de
   l'autre (scène portrait sous 768 px, et toujours en arabe : compare__carte--portrait) */
.compare { display: grid; justify-items: center; max-width: 1080px; margin-inline: auto; }
.compare__carte {
  width: 100%; display: grid; gap: 20px 40px; align-items: center;
  background: #fff; border: 1px solid var(--bord); border-radius: 26px; padding: clamp(20px, 3vw, 34px); box-shadow: var(--ombre-s);
}
@media (min-width: 768px) {
  .compare__carte { grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); }
  .compare__carte--portrait { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); }
}
.compare__carte--apres { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: 0 36px 70px -34px rgba(61, 59, 216, .6); }
/* le badge garde de l'air avant le titre */
.compare__etiquette {
  display: inline-flex; align-items: center; gap: .4rem; margin: 0 0 1.15rem; padding: .42rem .85rem; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1; background: #fdecea; color: var(--rouge);
}
.compare__etiquette .ico { width: 15px; height: 15px; stroke-width: 2.4; }
.compare__carte--apres .compare__etiquette { background: var(--marque-pale); color: var(--marque-fonce); }
.compare__carte h3 { font-size: clamp(1.128rem, .987rem + 0.37vw, 1.288rem); margin: 0 0 .6rem; line-height: 1.25; }
.compare__carte p { margin: 0; color: var(--texte-doux); }
.compare__texte > p:last-child { font-size: .959rem; }
.compare__scene img { display: block; width: 100%; height: auto; border-radius: 18px; }
.compare__carte--portrait .compare__scene img { max-width: 320px; margin-inline: auto; }
@media (max-width: 767.98px) { .compare__scene img { max-width: 360px; margin-inline: auto; } }
.compare__fleche {
  position: relative; z-index: 1; display: grid; place-items: center; width: 50px; height: 50px; margin-block: -14px;
  border-radius: 50%; background: var(--grad); color: #fff; transform: rotate(90deg);
  box-shadow: 0 14px 28px -12px rgba(61, 59, 216, .8), 0 0 0 7px var(--fond-doux);
}
.compare__fleche .ico { width: 22px; height: 22px; }
.section--blanc .compare__fleche { box-shadow: 0 14px 28px -12px rgba(61, 59, 216, .8), 0 0 0 7px var(--fond); }

/* Pointeuses */
.grille--appareils .appareil { height: 100%; }
.appareil { display: flex; flex-direction: column; align-items: center; gap: .45rem; text-align: center; background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 20px 20px 24px; box-shadow: var(--ombre-s); transition: transform .25s ease, box-shadow .25s ease; }
.appareil:hover { transform: translateY(-4px); box-shadow: var(--ombre); }
.appareil__photo { display: grid; place-items: center; width: 100%; height: 180px; margin-bottom: .4rem; border-radius: 16px; background: radial-gradient(circle at 50% 62%, var(--marque-pale) 0, rgba(236, 238, 254, 0) 68%), #f8f9fe; }
.appareil__photo img { max-height: 156px; max-width: 78%; width: auto; object-fit: contain; filter: drop-shadow(0 14px 16px rgba(19, 22, 71, .2)); }
.appareil__marque { margin: 0; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--marque); }
.appareil h3 { margin: 0; font-size: 1.053rem; }
.appareil__modes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; padding: 0; margin: .3rem 0 .4rem; }
.appareil__modes li { padding: .2rem .6rem; border-radius: 999px; background: var(--marque-pale); color: var(--marque-fonce); font-size: .76rem; font-weight: 700; }
.appareil__faits { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; font-size: .86rem; color: var(--texte-doux); text-align: start; }
.appareil__faits li { display: flex; gap: .45rem; align-items: flex-start; }
.appareil__faits .ico { width: 15px; height: 15px; color: var(--marque); margin-top: 4px; stroke-width: 2.4; }

/* Puces (secteurs) */
.puces { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; list-style: none; padding: 0; margin: 0 auto; max-width: 980px; }
.puces a, .puces li > span { display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1.1rem; border-radius: 999px; background: #fff; border: 1px solid var(--bord); color: var(--encre); font-weight: 600; font-size: .893rem; text-decoration: none; box-shadow: var(--ombre-s); transition: border-color .2s ease, transform .2s ease, color .2s ease; }
.puces .ico { width: 20px; height: 20px; color: var(--marque); }
.puces a:hover { border-color: var(--marque); color: var(--marque-fonce); transform: translateY(-2px); }
.puces + .texte { margin-top: 1.5rem; text-align: center; }

/* Boutons de section */
.boutons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 1.75rem; }

/* Partenaires (logos fournis par l'API) */
.defile { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.defile__piste { display: flex; align-items: center; gap: 56px; width: max-content; animation: defile 46s linear infinite; }
.defile:hover .defile__piste { animation-play-state: paused; }
.defile img { display: block; height: 46px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .25s ease, opacity .25s ease; }
.defile img:hover { filter: none; opacity: 1; }
@keyframes defile { to { transform: translateX(-50%); } }

/* 8. FAQ ------------------------------------------------------------------- */
.faq { display: grid; gap: 14px; align-items: start; max-width: 1100px; margin-inline: auto; }
@media (min-width: 992px) { .faq { grid-template-columns: 1fr 1fr; } }
.faq__item { background: #fff; border: 1px solid var(--bord); border-radius: 16px; box-shadow: var(--ombre-s); transition: border-color .2s ease; }
.faq__item[open] { border-color: var(--bord-fort); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 18px 20px; cursor: pointer; list-style: none; border-radius: 16px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { margin: 0; font-size: .959rem; font-weight: 700; line-height: 1.4; letter-spacing: 0; }
.faq__item summary .ico { width: 20px; height: 20px; color: var(--marque); transition: transform .2s ease; }
.faq__item[open] summary .ico { transform: rotate(180deg); }
.faq__reponse { padding: 0 20px 18px; color: var(--texte-doux); }
.faq__reponse p { margin: 0; }

/* 9. Appel à l'action ------------------------------------------------------ */
.cta-zone { padding-block: 8px 0; background: linear-gradient(var(--zone, #fff) 0 50%, var(--marque-900) 50% 100%); }
.cta-zone--doux { --zone: var(--fond-doux); }
.cta {
  position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
  padding: clamp(28px, 5vw, 56px); border-radius: 28px; color: #fff;
  background: radial-gradient(620px 300px at 92% -10%, rgba(245, 177, 47, .3), transparent 60%), var(--grad);
  box-shadow: 0 40px 80px -36px rgba(19, 22, 71, .7);
}
.cta::after { content: ""; position: absolute; inset-inline-end: -60px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, .07); pointer-events: none; }
.cta__texte { position: relative; z-index: 1; flex: 1 1 420px; }
.cta h2 { color: #fff; font-size: clamp(1.288rem, .94rem + 0.92vw, 1.656rem); margin: 0 0 .55rem; }
.cta p { margin: 0; color: rgba(255, 255, 255, .9); max-width: 600px; }
.cta__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; }

/* 10. Pied de page --------------------------------------------------------- */
.pied { background: var(--marque-900); color: rgba(225, 228, 250, .74); padding: 72px 0 28px; font-size: .893rem; }
.pied__grille { display: grid; gap: 40px; }
@media (min-width: 640px) { .pied__grille { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .pied__grille { grid-template-columns: 1.3fr .85fr .85fr .85fr 1.15fr; } }
.pied__marque img { height: 48px; width: auto; }
.pied__marque p { max-width: 380px; }
.pied__maison a, .pied__bas a { color: #fff; }
.pied__titre { color: #fff; font-size: .86rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 1.1rem; }
.pied__liens { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.pied__villes { display: flex; flex-wrap: wrap; align-items: baseline; gap: .7rem 1.5rem; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); }
.pied__villes .pied__titre { margin: 0; }
.pied__villes ul { display: flex; flex-wrap: wrap; gap: .45rem 1.2rem; list-style: none; margin: 0; padding: 0; }
/* sites officiels des trois marques + rappel (numéro unique, sites qui usurpent nos noms) */
.pied__officiels { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); }
.pied__officiels .pied__titre { margin-bottom: .8rem; }
/* une marque par ligne (demande de l'utilisateur, 2026-10-31) */
.pied__officiels ul { display: grid; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.pied__officiels li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .9rem; }
.pied__officiels li .marque { color: #fff; font-weight: 700; font-size: .84rem; letter-spacing: .03em; }
/* numéros de téléphone jamais coupés en fin de ligne */
.pied__rappel a[href^="tel:"], .coordonnees a[href^="tel:"] { white-space: nowrap; }
.pied__rappel { display: flex; gap: .6rem; align-items: flex-start; max-width: 900px; margin: 1rem 0 0; font-size: .88rem; }
.pied__rappel .ico { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.pied .pied__rappel a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.pied__liens a, .pied a { color: rgba(225, 228, 250, .82); text-decoration: none; }
.pied__liens a:hover, .pied a:hover { color: var(--accent); }
.pied .coordonnees { margin-top: 0; }
.pied .coordonnees__ico { background: rgba(255, 255, 255, .07); color: var(--marque-clair); }
.pied .coordonnees strong { color: rgba(225, 228, 250, .6); }
.pied .coordonnees a, .pied .coordonnees span { color: #fff; }
.langues-pied { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; list-style: none; margin: 1rem 0 0; padding: 0; }
.langues-pied a { display: inline-flex; align-items: center; gap: .5rem; }
.pied .langues-pied a[aria-current] { color: #fff; font-weight: 700; }
.langues-pied .ico { display: none; }
.langues-pied .drapeau { box-shadow: 0 0 0 1px rgba(255, 255, 255, .22); }
.pied__bas { margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.pied__bas p { margin: 0; }

/* Coordonnées (pied, page contact) */
.coordonnees { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 14px; }
.coordonnees li { display: flex; align-items: center; gap: 12px; }
.coordonnees__ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--marque-pale); color: var(--marque-fonce); flex: none; }
.coordonnees__ico .ico { width: 21px; height: 21px; }
.coordonnees strong { display: block; font-size: .82rem; font-weight: 600; color: var(--texte-doux); line-height: 1.3; }
.coordonnees a, .coordonnees span span { color: var(--encre); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }

/* WhatsApp flottant */
.wa-flottant { position: fixed; z-index: 40; inset-inline-end: 20px; bottom: 20px; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 14px 28px -10px rgba(37, 211, 102, .75); transition: transform .2s ease; }
.wa-flottant:hover { transform: scale(1.06); color: #fff; }
.wa-flottant .ico { width: 30px; height: 30px; }
body.menu-ouvert .wa-flottant { display: none; }

/* Haut de page : mobile et tablette, au-dessus du bouton WhatsApp ; site.js l'affiche après un écran */
.haut { display: none; }
@media (max-width: 991.98px) {
  .haut {
    position: fixed; z-index: 40; inset-inline-end: 26px; bottom: 88px; display: grid; place-items: center;
    width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--marque-900);
    border: 1px solid var(--bord-fort); box-shadow: var(--ombre); text-decoration: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .haut:hover { color: var(--marque); }
  .haut .ico { width: 22px; height: 22px; }
  .js .haut:not(.visible) { opacity: 0; visibility: hidden; transform: translateY(8px); }
  body.menu-ouvert .haut { display: none; }
}

/* 10 bis. Sites officiels (page « sites officiels ») ------------------------ */
.officiels { display: grid; gap: 20px; }
@media (min-width: 768px) { .officiels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.officiel { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--bord); border-radius: 18px; background: #fff; box-shadow: var(--ombre-s); }
.officiel--ici { border: 2px solid var(--marque); box-shadow: var(--ombre); }
.officiel h3 { margin: 0 0 .35rem; font-size: 1.015rem; color: var(--encre); }
.officiel > p { margin: 0 0 1rem; color: var(--texte-doux); font-size: .893rem; }
.officiel ul { display: grid; gap: .55rem; list-style: none; margin: 0 0 1.1rem; padding: 0; }
.officiel li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.officiel li a { font-weight: 700; color: var(--marque-fonce); text-decoration: none; }
.officiel li a:hover { text-decoration: underline; }
.officiel__tag { padding: 2px 9px; border-radius: 99px; background: var(--marque-pale); color: var(--marque-fonce); font-size: .72rem; font-weight: 700; }
.officiel__mail { display: flex; align-items: center; gap: .5rem; margin: auto 0 0; padding-top: .9rem; border-top: 1px dashed var(--bord); font-size: .9rem; }
.officiel__mail .ico { flex: none; width: 18px; height: 18px; color: var(--marque); }
.officiel__mail a { color: var(--texte); }

/* 11. Formulaire ----------------------------------------------------------- */
.formulaire { display: grid; gap: 16px; background: #fff; border: 1px solid var(--bord); border-radius: 24px; padding: clamp(20px, 4vw, 36px); box-shadow: var(--ombre); }
.formulaire__ligne { display: grid; gap: 16px; }
@media (min-width: 576px) { .formulaire__ligne { grid-template-columns: 1fr 1fr; } }
.champ label { display: block; margin-bottom: .4rem; font-weight: 600; font-size: .9rem; color: var(--encre); }
.obl { color: #d92d20; }
.champ input, .champ select, .champ textarea {
  width: 100%; padding: .8rem .95rem; border: 1.5px solid var(--bord-fort); border-radius: 12px;
  background: #fff; color: var(--encre); font: inherit; font-size: .94rem; transition: border-color .2s ease, box-shadow .2s ease;
}
.champ textarea { resize: vertical; min-height: 130px; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--marque); box-shadow: 0 0 0 4px rgba(61, 59, 216, .15); }
.champ [aria-invalid="true"] { border-color: #d92d20; }
.formulaire__note { margin: 0; font-size: .85rem; color: var(--texte-doux); }
.formulaire .btn { justify-self: start; }
.formulaire__etat { margin: 0; font-weight: 600; }
.formulaire__etat:empty { display: none; }
.formulaire__etat.ok { color: var(--marque-fonce); }
.formulaire__etat.erreur { color: var(--rouge); }

/* 12. Page 404 -------------------------------------------------------------- */
.introuvable { text-align: center; padding-block: 96px 120px; }
.introuvable .surtitre { justify-content: center; }
.introuvable .hero__chapeau { margin-inline: auto; }
.introuvable p[lang] { color: rgba(225, 228, 250, .7); margin: .35rem 0; }
.introuvable__liens { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; list-style: none; padding: 0; margin: 2rem 0 0; }

/* 13. Apparitions au défilement --------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].vu { opacity: 1; transform: none; }

/* 14. Petits écrans --------------------------------------------------------- */
@media (max-width: 575.98px) {
  :root { --gouttiere: 16px; }
  body { font-size: 15px; }
  .hero__actions .btn, .cta__actions .btn { flex: 1 1 100%; }
  .section__tete h2, .hero h1 { line-height: 1.22; }
  .wa-flottant { width: 52px; height: 52px; inset-inline-end: 14px; bottom: 14px; }
  .haut { inset-inline-end: 18px; bottom: 78px; }
  .carte { padding: 22px 20px; }
  .tableau { font-size: .9rem; }
  .tableau th, .tableau td { padding: 11px 12px; }
  .formulaire .btn { justify-self: stretch; }
}

/* 14 bis. Mobile : contenus centrés ---------------------------------------- */
@media (max-width: 767.98px) {
  /* héros : texte, fil d'Ariane, boutons, téléphone et WhatsApp centrés */
  .hero__texte, .page-hero__texte { text-align: center; }
  .hero__chapeau { margin-inline: auto; }
  .fil ol, .hero__actions, .hero__contact { justify-content: center; }
  .hero__points li { display: block; }
  .hero__points .ico { display: inline-block; vertical-align: -4px; margin-inline-end: .45rem; }
  /* cartes et étapes : icône ou numéro au-dessus, centrés avec le texte */
  .carte { align-items: center; text-align: center; }
  .etape { text-align: center; }
  .etape::before { inset-inline: 0; width: fit-content; margin-inline: auto; }
  /* texte à côté du formulaire (contact) */
  .duo__texte .section__tete, .duo__texte > .texte { text-align: center; margin-inline: auto; }
  .duo__texte .boutons { justify-content: center; }
  .duo__texte .coordonnees { width: fit-content; margin-inline: auto; }
  /* appel à l'action */
  .cta, .cta__actions { justify-content: center; }
  .cta { text-align: center; }
  .cta p { margin-inline: auto; }
  /* pied de page */
  .pied__grille, .pied__bas { text-align: center; }
  .pied__marque p { margin-inline: auto; }
  .pied .coordonnees { width: fit-content; margin-inline: auto; text-align: start; }
  .pied__villes, .pied__villes ul { justify-content: center; }
  .pied__officiels { text-align: center; }
  .pied__officiels ul, .pied__officiels li { justify-content: center; }
  .pied__rappel { justify-content: center; text-align: start; margin-inline: auto; }
  .langues-pied { justify-content: center; }
}

/* 14 ter. Téléphone (< 576 px) : des blocs compacts plutôt qu'une longue pile de grandes cartes.
   Titres et héros restent centrés ; les textes de plusieurs lignes s'alignent au début. */
@media (max-width: 575.98px) {
  /* héros */
  .hero--accueil { padding-block: 26px 34px; }
  .page-hero { padding-block: 22px 34px; }
  .hero h1 { font-size: clamp(1.518rem, .987rem + 2.76vw, 1.794rem); }
  .page-hero h1 { font-size: clamp(1.426rem, .94rem + 2.58vw, 1.656rem); }
  .hero__chapeau { font-size: .94rem; margin: .9rem auto 1.3rem; }
  .surtitre { font-size: .76rem; margin-bottom: .7rem; }
  .fil ol { margin-bottom: 1rem; font-size: .8rem; }
  .hero__actions { gap: 10px; }
  .hero__points { width: fit-content; max-width: 100%; margin: 1.4rem auto 0; text-align: start; gap: .45rem; font-size: .93rem; }
  .hero__points li { display: flex; }
  .hero__points .ico { display: block; margin: 0; flex: none; }
  /* écran de l'application : la version téléphone du SVG, dans un cadre de téléphone */
  .figure .fenetre { max-width: 360px; margin-inline: auto; border: 6px solid var(--marque-900); border-radius: 26px; }
  .figure .fenetre__barre { display: none; }
  /* sections */
  .section { padding-block: 30px 36px; }
  .section__tete { margin-bottom: 20px; }
  .section__intro { font-size: .94rem; }
  .texte { font-size: .94rem; }
  .duo__texte > .texte { text-align: start; }
  /* cartes de contenu : icône et titre sur une ligne, texte dessous */
  .grille, .etapes { --gap: 10px; }
  .carte { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; column-gap: 12px; row-gap: .35rem; padding: 16px; text-align: start; }
  .carte__icone { width: 40px; height: 40px; margin: 0; border-radius: 12px; }
  .carte__icone .ico { width: 21px; height: 21px; }
  .carte h3 { font-size: .987rem; }
  .carte p { grid-column: 1 / -1; font-size: .93rem; }
  .carte__suite { grid-column: 1 / -1; padding-top: .15rem; }
  /* cartes-liens vers une page (modules, secteurs, villes, « à lire aussi ») : tuiles sur deux colonnes */
  .grille--pages > *, .grille--liens > * { flex-basis: calc((100% - var(--gap)) / 2); }
  .grille--pages .carte, .grille--liens .carte { display: flex; flex-direction: column; align-items: center; gap: .45rem; padding: 16px 10px 14px; text-align: center; }
  .grille--pages .carte h3, .grille--liens .carte h3 { font-size: .893rem; line-height: 1.3; }
  .grille--pages .carte p, .grille--liens .carte p { font-size: .82rem; line-height: 1.45; }
  .grille--pages .carte__suite, .grille--liens .carte__suite { display: none; }
  /* étapes : numéro au début de la ligne */
  .etape { padding-block: 16px; padding-inline: 62px 16px; text-align: start; }
  .etape::before { top: 15px; inset-inline: 16px auto; width: auto; margin: 0; padding: 4px 9px; font-size: .8rem; }
  .etape h3 { font-size: .978rem; margin-bottom: .3rem; }
  .etape p { font-size: .92rem; }
  /* pointeuses : deux par rangée */
  .grille--appareils > * { flex-basis: calc((100% - var(--gap)) / 2); }
  .appareil { gap: .3rem; padding: 10px 10px 14px; }
  .appareil__photo { height: 112px; margin-bottom: .2rem; border-radius: 12px; }
  .appareil__photo img { max-height: 96px; }
  .appareil__marque { font-size: .66rem; }
  .appareil h3 { font-size: .893rem; }
  .appareil__modes { gap: 4px; margin: .15rem 0 .25rem; }
  .appareil__modes li { padding: .15rem .45rem; font-size: .66rem; }
  .appareil__faits { font-size: .77rem; gap: .2rem; }
  .appareil__faits .ico { width: 12px; height: 12px; margin-top: 3px; }
  /* puces (secteurs, villes) : deux colonnes */
  .puces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .puces a, .puces li > span { width: 100%; height: 100%; padding: .6rem .75rem; border-radius: 14px; font-size: .86rem; line-height: 1.3; }
  .puces .ico { flex: none; width: 18px; height: 18px; }
  /* avant / après */
  .compare__carte { padding: 18px 16px; text-align: center; }
  .compare__etiquette { margin-bottom: 1rem; }
  .compare__fleche { width: 44px; height: 44px; }
  /* FAQ, appel à l'action */
  .faq__item summary { padding: 15px 16px; }
  .faq__item summary h3 { font-size: .94rem; }
  .faq__reponse { padding: 0 16px 16px; font-size: .893rem; }
  .cta { padding: 24px 18px; border-radius: 22px; gap: 18px; }
  .cta h2 { font-size: 1.242rem; }
  /* pied : listes de liens sur deux colonnes, alignées au début */
  .pied { padding-top: 44px; }
  .pied__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 16px; text-align: start; }
  .pied__grille > :first-child, .pied__grille > :nth-child(3), .pied__grille > :last-child { grid-column: 1 / -1; }
  .pied__grille > :first-child, .pied__grille > :last-child { text-align: center; }
  .pied__grille > :nth-child(3) { order: 1; }
  .pied__grille > :last-child { order: 2; }
  .pied__grille > :nth-child(3) .pied__liens { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .pied__liens { gap: .5rem; font-size: .9rem; }
  .pied__titre { margin-bottom: .8rem; }
  .pied__villes { margin-top: 32px; }
  .pied__villes ul { gap: .4rem 1rem; font-size: .9rem; }
}

/* 20. Arabe (RTL) ------------------------------------------------------------ */
[dir="rtl"] body { font-size: 15.5px; line-height: 1.85; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .surtitre, [dir="rtl"] .pied__titre,
[dir="rtl"] .appareil__marque, [dir="rtl"] .compare__etiquette { letter-spacing: 0; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { line-height: 1.45; }
[dir="rtl"] .hero h1 { line-height: 1.4; }
[dir="rtl"] .surtitre { text-transform: none; font-size: .9rem; }
[dir="rtl"] .marque { direction: ltr; }
[dir="rtl"] .ico--sens { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .ico--sens, [dir="rtl"] .carte--lien:hover .carte__suite .ico--sens { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .champ input[dir="ltr"] { text-align: right; }
[dir="rtl"] .defile__piste { animation-name: defile-rtl; }
@keyframes defile-rtl { to { transform: translateX(50%); } }
/* la flèche (← en arabe) pointe vers la carte du dessous : -90° au lieu de +90° */
[dir="rtl"] .compare__fleche { transform: rotate(-90deg); }

/* 20 bis. Mode sombre : public/assets/css/sombre.css (chargée après cette feuille, voir son en-tête) */

/* 21. Mouvement réduit ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .defile__piste { flex-wrap: wrap; justify-content: center; width: auto; }
}
