/* Polices hébergées avec le site */
@font-face { font-family: "Lexend"; font-weight: 100 900; font-display: swap; src: url("../fonts/lexend-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lexend"; font-weight: 100 900; font-display: swap; src: url("../fonts/lexend-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-weight: 200 900; font-display: swap; src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-weight: 200 900; font-display: swap; src: url("../fonts/source-sans-3-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex Arabic"; font-weight: 300 500; font-display: swap; src: url("../fonts/plex-arabic-400.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Plex Arabic"; font-weight: 600 900; font-display: swap; src: url("../fonts/plex-arabic-700.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }

/* =====================================================================
   ORBITE : STYLE DU SITE
   Couleurs en haut (clair puis sombre). Le reste suit l'ordre de la page.
   ===================================================================== */

/* ---------- Couleurs ---------- */
:root {
  color-scheme: light;
  --fond: #F2F7F7; --fond-2: #E6F0F1; --surface: #FFFFFF; --surface-2: #F7FBFB;
  --encre: #0B2429; --doux: #4A6168; --filet: #D3E1E3; --filet-fort: #B6CCD0;
  --canard: #0E7490; --canard-fonce: #0A5568; --canard-vif: #14A3C2; --canard-pale: #DDF0F3; --sur-canard: #FFFFFF;
  --vert: #0F8F69; --vert-pale: #DCF3E9;
  --ambre: #A65A0B; --ambre-pale: #FCEBD4;
  --rouge: #B42318; --rouge-pale: #FBE3DF;
  --nuit: #082128; --nuit-2: #0D2D35; --sur-nuit: #E6F2F3; --sur-nuit-doux: #9DBAC0;
  --ill: #D3ECF0; --ill-acc: #8ED2DF; --ill-chaud: #F7C47E; --ill-acc-trait: #0E7490; --ill-chaud-trait: #C2410C;
  --ombre: 0 1px 2px rgba(8, 33, 40, .06), 0 8px 24px -12px rgba(8, 33, 40, .18);
  --r: 14px; --r-grand: 22px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --fond: #071A20; --fond-2: #0A232A; --surface: #0D2930; --surface-2: #0B242B;
  --encre: #E4F1F2; --doux: #97B2B8; --filet: #1D3E47; --filet-fort: #2A5560;
  --canard: #3DBAD3; --canard-fonce: #8FD9E8; --canard-vif: #3DBAD3; --canard-pale: #12363F; --sur-canard: #04161B;
  --vert: #3CCB98; --vert-pale: #0F3329;
  --ambre: #F2A94E; --ambre-pale: #3A2810;
  --rouge: #F37A6E; --rouge-pale: #3E1B18;
  --nuit: #04131A; --nuit-2: #0A2229; --sur-nuit: #E4F1F2; --sur-nuit-doux: #97B2B8;
  --ill: #133D46; --ill-acc: #1F6B7A; --ill-chaud: #8E5C1C; --ill-acc-trait: #5FCCE0; --ill-chaud-trait: #F2A94E;
  --ombre: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -14px rgba(0, 0, 0, .6);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fond); color: var(--encre);
  font: 400 18px/1.6 "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: clip; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
:lang(ar) body, html[lang="ar"] body { font-family: "Plex Arabic", "Source Sans 3", system-ui, sans-serif; font-size: 17px; line-height: 1.75; }
h1, h2, h3, h4 { font-family: "Lexend", "Plex Arabic", system-ui, sans-serif; margin: 0; text-wrap: balance; color: var(--encre); }
html[lang="ar"] :is(h1, h2, h3, h4) { font-family: "Plex Arabic", "Lexend", sans-serif; letter-spacing: 0 !important; line-height: 1.35; }
h1 { font-size: clamp(42px, 6vw, 80px); font-weight: 600; line-height: 1.02; letter-spacing: -.035em; }
h2 { font-size: clamp(32px, 4.2vw, 54px); font-weight: 600; line-height: 1.06; letter-spacing: -.03em; }
.h-moyen { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.h-petit { font-size: 19px; font-weight: 600; line-height: 1.3; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
h4 { font-size: 17px; font-weight: 600; line-height: 1.35; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--canard); text-underline-offset: 3px; }
a:hover { color: var(--canard-fonce); }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
bdi { unicode-bidi: isolate; }
.wrap { width: min(1200px, 100% - 2 * clamp(18px, 4vw, 40px)); margin-inline: auto; }
.invisible { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--canard); color: var(--sur-canard); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--canard-vif); outline-offset: 3px; border-radius: 6px; }
[dir="rtl"] .miroir { transform: scaleX(-1); }
.aide { color: var(--doux); font-size: 15px; line-height: 1.5; }
.note { color: var(--doux); font-size: 14.5px; margin-top: 12px; }
.centre { text-align: center; }
svg.ill { width: 56px; height: 56px; color: var(--encre); flex: none; }

/* Badges « estimation », « à valider », « objectif » */
.tag { display: inline-flex; align-items: center; gap: 4px; font: 600 12.5px/1 "Source Sans 3", sans-serif; padding: 4px 8px; border-radius: 6px; vertical-align: 2px; white-space: nowrap; }
html[lang="ar"] .tag { font-family: "Plex Arabic", sans-serif; }
.tag-est { background: var(--ambre-pale); color: var(--ambre); }
.tag-obj { background: var(--canard-pale); color: var(--canard-fonce); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 16px/1.1 "Lexend", "Plex Arabic", sans-serif; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
html[lang="ar"] .btn { font-family: "Plex Arabic", sans-serif; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-plein { background: var(--canard); color: var(--sur-canard); }
.btn-plein:hover { background: var(--canard-fonce); color: var(--sur-canard); }
:root[data-theme="dark"] .btn-plein:hover { background: #7ED3E4; }
.btn-contour { border-color: var(--filet-fort); background: transparent; color: var(--encre); }
.btn-contour:hover { border-color: var(--canard); color: var(--canard); }
.btn-vert { background: var(--vert); color: #fff; width: 100%; }
:root[data-theme="dark"] .btn-vert { color: #04161B; }
.btn-vert:hover:not(:disabled) { filter: brightness(1.08); }
.btn-petit { min-height: 38px; padding: 0 14px; font-size: 14px; gap: 6px; }
.btn-petit svg { width: 16px; height: 16px; }
.btn:disabled { opacity: 1; cursor: not-allowed; background: var(--fond-2); color: var(--doux); border-color: var(--filet); }
.btn-icone { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--filet); background: var(--surface); cursor: pointer; color: var(--encre); }
.btn-icone:hover { border-color: var(--canard); color: var(--canard); }
.btn-icone svg { width: 20px; height: 20px; }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--fond) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolle { border-bottom-color: var(--filet); }
.nav-in { display: flex; align-items: center; gap: 20px; min-height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--encre); text-decoration: none; font: 600 23px/1 "Lexend", sans-serif; letter-spacing: -.02em; }
.logo svg { width: 32px; height: 32px; color: var(--canard); }
.logo:hover { color: var(--encre); }
.nav-liens { margin-inline-start: auto; }
.nav-liens ul { display: flex; gap: 2px; }
.nav-liens a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--doux); font-weight: 600; font-size: 15.5px; text-decoration: none; white-space: nowrap; }
.nav-liens a:hover { color: var(--encre); background: var(--fond-2); }
.nav-outils { display: flex; align-items: center; gap: 8px; }
.langue { display: inline-flex; padding: 3px; border-radius: 999px; border: 1.5px solid var(--filet); background: var(--surface); }
.langue button { min-width: 36px; height: 32px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--doux); }
.langue button[aria-pressed="true"] { background: var(--encre); color: var(--fond); }
.btn-menu { display: none; }
.menu-mobile { border-top: 1px solid var(--filet); background: var(--fond); }
.menu-mobile ul { padding-block: 10px 18px; display: grid; }
.menu-mobile a { display: block; padding: 12px 4px; font: 600 18px "Lexend", "Plex Arabic", sans-serif; color: var(--encre); text-decoration: none; border-bottom: 1px solid var(--filet); }

/* ---------- Sections ---------- */
.bloc { padding-block: clamp(72px, 9vw, 128px); }
.bloc-teinte { background: var(--fond-2); }
.tete { max-width: 760px; margin-bottom: clamp(36px, 4vw, 56px); }
.tete p { margin-top: 18px; font-size: clamp(18px, 1.5vw, 20px); color: var(--doux); max-width: 62ch; }
.tete-large { max-width: 900px; }

/* ---------- 1. Accueil ---------- */
.accueil { padding-block: clamp(40px, 6vw, 84px) clamp(64px, 7vw, 100px); position: relative; overflow: clip; }
.accueil::before {
  content: ""; position: absolute; inset-inline-end: -14vw; top: -8vw; width: 62vw; aspect-ratio: 1; border-radius: 50%;
  border: 1.5px solid var(--filet); box-shadow: 0 0 0 7vw color-mix(in srgb, var(--canard-pale) 45%, transparent), 0 0 0 7.1vw var(--filet);
  opacity: .7; pointer-events: none;
}
.accueil-grille { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.surtitre { display: inline-flex; align-items: center; gap: 10px; color: var(--canard-fonce); font-weight: 600; font-size: 16px; margin-bottom: 22px; }
.surtitre::before { content: ""; width: 26px; height: 2px; background: var(--canard); border-radius: 2px; }
.h1-suite { color: var(--canard); display: block; }
.chapo { margin-top: 26px; font-size: clamp(18.5px, 1.6vw, 21px); line-height: 1.6; color: var(--doux); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Le trajet d'un lot */
.trajet { margin: 0; position: relative; background: var(--surface); border: 1px solid var(--filet); border-radius: var(--r-grand); padding: 22px 22px 16px; box-shadow: var(--ombre); }
.ticket { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 12px; background: var(--fond-2); margin-bottom: 18px; width: fit-content; max-width: 100%; }
.ticket svg { width: 30px; height: 30px; color: var(--encre); flex: none; }
.ticket b { display: block; font: 600 14.5px/1.2 "Lexend", sans-serif; }
.ticket span { display: block; color: var(--doux); font-size: 13.5px; line-height: 1.3; }
.poste { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 14px; padding: 12px; border-radius: 16px; border: 1.5px solid var(--filet); background: var(--surface-2); opacity: .5; transition: opacity .5s, border-color .5s, background-color .5s; }
.poste-ill { width: 52px; height: 52px; color: var(--encre); flex: none; }
.poste-txt { flex: 1 1 140px; }
.poste-txt strong { display: block; font: 600 16.5px/1.25 "Lexend", "Plex Arabic", sans-serif; }
.poste-txt small { display: block; color: var(--doux); font-size: 14px; line-height: 1.35; margin-top: 2px; }
.poste-etat { display: grid; justify-items: end; }
.poste-etat > * { grid-area: 1 / 1; }
.etiquette { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; font-weight: 700; font-size: 13.5px; line-height: 1.2; opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s; white-space: nowrap; }
.etiquette svg { width: 15px; height: 15px; }
.etiquette-alerte { background: var(--ambre-pale); color: var(--ambre); }
.etiquette-vente { background: var(--canard-pale); color: var(--canard-fonce); }
.etiquette-ok { background: var(--vert-pale); color: var(--vert); }
.sceau { width: 64px; height: 64px; color: var(--canard); flex: none; transition: color .4s; }
.sceau svg { width: 100%; height: 100%; }
.controles { flex-basis: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 10px 4px 2px; border-top: 1px dashed var(--filet); }
.controles li { display: flex; align-items: center; gap: 7px; font-size: 14.5px; color: var(--doux); opacity: .55; transition: opacity .3s, color .3s; transition-delay: calc(var(--i) * 300ms); }
.controles svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--fond-2); color: transparent; transition: background-color .3s, color .3s; transition-delay: calc(var(--i) * 300ms); flex: none; }
.rail { position: relative; height: 40px; width: 2px; margin-inline-start: 37px; background: var(--filet); }
.rail-plein { position: absolute; inset: 0; background: var(--canard); transform: scaleY(0); transform-origin: top; transition: transform .9s cubic-bezier(.6, 0, .3, 1); }
.voyageur { position: absolute; width: 26px; height: 26px; inset-inline-start: -12px; top: -13px; color: var(--encre); opacity: 0; transition: top .9s cubic-bezier(.6, 0, .3, 1), opacity .3s; }
.rejouer { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; margin-inline-start: auto; border: 0; background: none; color: var(--doux); font-size: 14px; font-weight: 600; cursor: pointer; padding: 6px 4px; float: inline-end; }
.rejouer svg { width: 16px; height: 16px; }
.rejouer:hover { color: var(--canard); }
.trajet::after { content: ""; display: block; clear: both; }
/* États successifs (classes e1 à e6 posées par app.js) */
.trajet.e1 .poste-vendeur { opacity: 1; border-color: var(--filet-fort); background: var(--surface); }
.trajet.e1 .etiquette-alerte { opacity: 1; transform: none; }
.trajet.e2 .etiquette-alerte { opacity: 0; }
.trajet.e2 .etiquette-vente { opacity: 1; transform: none; }
.trajet.e3 .rail-1 .rail-plein { transform: scaleY(1); }
.trajet.e3 .rail-1 .voyageur { opacity: 1; top: calc(100% - 13px); }
.trajet.e3 .poste-orbite { opacity: 1; border-color: var(--canard); background: var(--surface); }
.trajet.e3 .poste-vendeur { opacity: .75; }
.trajet.e4 .rail-1 .voyageur { opacity: 0; }
.trajet.e4 .controles li { opacity: 1; color: var(--encre); }
.trajet.e4 .controles svg { background: var(--vert); color: #fff; }
.trajet.e4 .sceau { color: var(--vert); }
.trajet.e4 .sceau svg { animation: tourne 1.6s cubic-bezier(.5, 0, .2, 1); }
.trajet.e5 .rail-2 .rail-plein { transform: scaleY(1); }
.trajet.e5 .rail-2 .voyageur { opacity: 1; top: calc(100% - 13px); }
.trajet.e5 .poste-acheteur { opacity: 1; border-color: var(--filet-fort); background: var(--surface); }
.trajet.e6 .rail-2 .voyageur { opacity: 0; }
.trajet.e6 .poste-acheteur { border-color: var(--vert); }
.trajet.e6 .etiquette-ok { opacity: 1; transform: none; }
.trajet.e6 .poste { opacity: 1; }
@keyframes tourne { to { transform: rotate(360deg); } }

.chiffres { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(20px, 3vw, 40px); border-top: 1px solid var(--filet); }
.chiffres li { padding: 22px 24px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
[dir="rtl"] .chiffres li { padding: 22px 0 0 24px; }
.chiffres li + li { border-inline-start: 1px solid var(--filet); padding-inline-start: 24px; }
.chiffres b { flex-basis: 100%; font: 600 clamp(28px, 3vw, 38px)/1.1 "Lexend", "Plex Arabic", sans-serif; letter-spacing: -.02em; color: var(--encre); }
.chiffres span { color: var(--doux); font-size: 16px; }

/* ---------- 2. Problème (bande sombre) ---------- */
.bloc-nuit { background: var(--nuit); color: var(--sur-nuit); --encre: var(--sur-nuit); --doux: var(--sur-nuit-doux); --filet: #1E4049; --surface: var(--nuit-2); --fond-2: #0F333C;
  --ill: #15434D; --ill-acc: #23798A; --ill-chaud: #A8651A; --ill-acc-trait: #6FD3E5; --ill-chaud-trait: #F5A64A; }
.bloc-nuit h2 { color: #fff; max-width: 14em; }
:root[data-theme="dark"] .bloc-nuit { border-block: 1px solid #12303A; }
.vie { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin: 24px 0 clamp(48px, 6vw, 72px); position: relative; }
.vie::before { content: ""; position: absolute; top: 34px; inset-inline: 8% 8%; border-top: 2px dashed #2D5761; }
.vie li { position: relative; }
.vie .ill { width: 68px; height: 68px; padding: 6px; border-radius: 20px; background: var(--nuit); color: var(--sur-nuit); position: relative; }
.vie h4 { margin-top: 14px; color: #fff; font-size: 18px; }
.vie p { color: var(--sur-nuit-doux); font-size: 15.5px; margin-top: 4px; line-height: 1.45; }
.vie .tag { margin-top: 6px; }
.vie-fin .ill { box-shadow: 0 0 0 2px #F5A64A; }
.vie-fin h4 { color: #FFC883; }
.pb-bas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.delais { margin: 0; padding: 26px; border-radius: var(--r-grand); background: var(--nuit-2); border: 1px solid var(--filet); }
.delais figcaption { font: 600 18px "Lexend", "Plex Arabic", sans-serif; color: #fff; margin-bottom: 18px; }
.delai { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 18px; }
.delai-l { font-size: 15.5px; color: var(--sur-nuit-doux); }
.delai-barre { display: block; height: 18px; border-radius: 6px; background: #0F333C; overflow: hidden; }
.delai-barre i { display: block; height: 100%; border-radius: 6px; }
.barre-import { width: 100%; background: repeating-linear-gradient(-45deg, #F2876F 0 7px, #E06A52 7px 14px); }
.barre-orbite { width: max(1.1%, 6px); background: #3CCB98; }
.delai b { font: 600 20px "Lexend", "Plex Arabic", sans-serif; color: #fff; }
.consequences { display: grid; gap: 14px; }
.consequences li { display: flex; gap: 18px; padding: 20px; border-radius: var(--r); border: 1px solid var(--filet); }
.consequences .ill { width: 54px; height: 54px; }
.consequences h3 { color: #fff; font-size: 19px; }
.consequences p { color: var(--sur-nuit-doux); margin-top: 4px; font-size: 16.5px; line-height: 1.5; }

/* ---------- 3. Solution ---------- */
.etapes { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0; align-items: stretch; }
.etape { position: relative; padding: clamp(24px, 3vw, 34px); border-radius: var(--r-grand); background: var(--surface); border: 1px solid var(--filet); box-shadow: var(--ombre); display: flex; flex-direction: column; }
.etape-2 { border-color: var(--canard); }
.etape-ill { position: absolute; inset-inline-end: 22px; top: 22px; width: 72px; height: 72px; }
.etape .k { font-weight: 700; color: var(--canard-fonce); font-size: 15px; }
.etape h3 { font-size: clamp(24px, 2.4vw, 30px); margin-top: 8px; padding-inline-end: 80px; letter-spacing: -.02em; }
.etape > p { color: var(--doux); margin-top: 8px; padding-inline-end: 60px; }
.etape ul { display: grid; gap: 10px; margin: 22px 0 24px; }
.etape li { display: flex; gap: 10px; align-items: flex-start; }
.etape li svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--vert-pale); color: var(--vert); margin-top: 3px; flex: none; }
.mini { margin-top: auto; padding: 14px; border-radius: 12px; background: var(--fond-2); display: grid; gap: 10px; }
.mini-ligne { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 15px; font-weight: 600; flex-wrap: wrap; }
.lien-etapes { display: grid; place-items: center; align-content: center; gap: 8px; padding: 0 clamp(10px, 1.6vw, 20px); position: relative; }
.lien-etapes::before { content: ""; position: absolute; inset-inline: 0; top: 50%; border-top: 2px dashed var(--filet-fort); z-index: 0; }
.bouton-factice { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: var(--canard); color: var(--sur-canard); font-weight: 700; font-size: 13.5px; white-space: nowrap; box-shadow: 0 0 0 6px var(--fond); }
.bouton-factice svg { width: 15px; height: 15px; }
.lien-etapes small { position: relative; z-index: 1; color: var(--doux); font-size: 13.5px; background: var(--fond); padding: 2px 6px; border-radius: 6px; text-align: center; max-width: 13ch; line-height: 1.3; }
.avantages { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); margin-top: clamp(32px, 4vw, 48px); }
.avantage { display: flex; gap: 16px; align-items: flex-start; }
.avantage h3 { font-size: 19px; }
.avantage p { color: var(--doux); margin-top: 4px; }

/* ---------- 4. Démo ---------- */
.demo-tete { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: end; margin-bottom: 28px; }
.demo-tete .tete { margin-bottom: 0; }
.guide { padding: 20px 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--filet); }
.guide h3 { font-size: 17px; margin-bottom: 10px; }
.guide ol { counter-reset: g; display: grid; gap: 8px; }
.guide li { counter-increment: g; display: flex; gap: 10px; font-size: 15.5px; line-height: 1.45; }
.guide li::before { content: counter(g); flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--canard-pale); color: var(--canard-fonce); font: 700 13px/1 "Lexend", sans-serif; margin-top: 1px; }
.bandeau { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; border: 1.5px dashed var(--filet-fort); color: var(--doux); font-size: 15px; margin-bottom: 18px; }
.bandeau svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--canard); }

.app { border-radius: var(--r-grand); border: 1px solid var(--filet-fort); background: var(--surface); box-shadow: 0 30px 60px -30px rgba(8, 33, 40, .35); overflow: hidden; }
.app-barre { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 18px; background: var(--nuit); color: #E6F2F3; }
.app-logo { display: inline-flex; align-items: center; gap: 7px; font: 600 16px "Lexend", sans-serif; }
.app-logo svg { width: 22px; height: 22px; color: #3DBAD3; }
.app-labo { display: flex; gap: 8px; align-items: baseline; padding-inline-start: 16px; border-inline-start: 1px solid #23464F; font-size: 14.5px; }
.app-labo span { color: #97B2B8; }
.app-session { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: #97B2B8; }
.app-session i { width: 8px; height: 8px; border-radius: 50%; background: #3CCB98; box-shadow: 0 0 0 3px rgba(60, 203, 152, .2); }
.app-corps { display: grid; grid-template-columns: 190px minmax(0, 1fr); }
.onglets { display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; background: var(--surface-2); border-inline-end: 1px solid var(--filet); }
.onglet { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--doux); font-weight: 600; font-size: 16px; cursor: pointer; text-align: start; transition: background-color .2s, color .2s; }
.onglet svg { width: 19px; height: 19px; flex: none; }
.onglet:hover { background: var(--fond-2); color: var(--encre); }
.onglet[aria-selected="true"] { background: var(--canard-pale); color: var(--canard-fonce); }
.compteur { margin-inline-start: auto; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--fond-2); color: var(--encre); font-size: 13px; font-weight: 700; display: inline-grid; place-items: center; }
.onglet[aria-selected="true"] .compteur { background: var(--canard); color: var(--sur-canard); }
.rebond { animation: rebond .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes rebond { 40% { transform: scale(1.35); } }
.app-contenu { padding: clamp(16px, 2.4vw, 26px); min-height: 520px; }
.panneau:focus-visible { outline-offset: 6px; }
.panneau:not([hidden]) { animation: apparait .3s ease-out; }
@keyframes apparait { from { opacity: 0; transform: translateY(6px); } }

.resume { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 18px; }
.resume > div { padding: 14px 16px; border-radius: 12px; background: var(--fond-2); }
.resume dt { color: var(--doux); font-size: 14px; font-weight: 600; }
.resume dd { margin: 4px 0 0; font: 600 clamp(20px, 2vw, 26px)/1.15 "Lexend", "Plex Arabic", sans-serif; letter-spacing: -.01em; }
.resume-alerte { background: var(--rouge-pale) !important; }
.resume-alerte dd { color: var(--rouge); }
.outils { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.outils .aide { flex: 1 1 260px; font-size: 14px; }
.outils-btn { display: flex; gap: 8px; flex-wrap: wrap; }
.outils-haut { margin-bottom: 8px; }
.defile { overflow-x: auto; border: 1px solid var(--filet); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; }
.stock { font-size: 15px; min-width: 760px; }
.stock th:nth-child(2), .stock td.mk, .stock th:nth-child(8), .stock th:nth-child(9), .stock td.cons, .stock td.dang { display: none; }
.prod-puces { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.prod-puces .puce { font-size: 12px; padding: 2px 7px; }
.stock td.st, .stock .actions-ligne .btn { white-space: nowrap; }
.prod .sous { font-weight: 400; }
.stock th { text-align: start; font-size: 13px; font-weight: 700; color: var(--doux); padding: 11px 10px; background: var(--surface-2); border-bottom: 1px solid var(--filet); white-space: nowrap; }
.stock td { padding: 12px 10px; border-bottom: 1px solid var(--filet); vertical-align: middle; }
.stock tr:last-child td { border-bottom: 0; }
.stock td.prod { font-weight: 700; min-width: 170px; }
.stock .nw { white-space: nowrap; }
.sous { display: block; color: var(--doux); font-size: 13px; }
.ligne-vente td { background: color-mix(in srgb, var(--vert-pale) 55%, transparent); }
.flash td { animation: flash 1.4s ease-out; }
@keyframes flash { 0% { background: color-mix(in srgb, var(--vert) 30%, transparent); } }
.pastille-alerte { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.pastille-alerte::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.al-perime { background: var(--rouge); color: #fff; }
:root[data-theme="dark"] .al-perime { color: #2A0905; }
.al-1 { background: var(--rouge-pale); color: var(--rouge); }
.al-2 { background: var(--ambre-pale); color: var(--ambre); }
.al-3 { background: color-mix(in srgb, var(--ambre-pale) 55%, var(--surface)); color: var(--ambre); }
.al-ok { background: var(--vert-pale); color: var(--vert); }
.puce { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 7px; background: var(--fond-2); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.puce svg { width: 14px; height: 14px; }
.puce-froid { background: var(--canard-pale); color: var(--canard-fonce); }
.puce-danger { background: var(--ambre-pale); color: var(--ambre); }
.en-vente { color: var(--vert); font-weight: 700; }
.actions-ligne { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.actions-ligne > span { display: grid; gap: 4px; }
.pourquoi { font-size: 12.5px; color: var(--doux); line-height: 1.3; max-width: 22ch; }
.suppr { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--doux); cursor: pointer; flex: none; }
.suppr:hover { background: var(--rouge-pale); color: var(--rouge); }
.suppr svg { width: 17px; height: 17px; }
.vide { padding: 28px; text-align: center; color: var(--doux); }
.ajout { margin-top: 14px; border: 1px solid var(--filet); border-radius: 14px; }
.ajout summary { display: flex; align-items: center; gap: 8px; padding: 14px 16px; cursor: pointer; font-weight: 700; list-style: none; color: var(--canard); }
.ajout summary::-webkit-details-marker { display: none; }
.ajout summary svg { width: 20px; height: 20px; transition: transform .2s; }
.ajout[open] summary svg { transform: rotate(45deg); }
.grille-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 4px 16px 18px; align-items: start; }
.champ { display: grid; gap: 6px; }
.champ label { font-weight: 600; font-size: 15px; }
.champ input:not([type="checkbox"]):not([type="range"]), .champ select, .recherche input {
  width: 100%; min-height: 46px; padding: 0 13px; border-radius: 10px; border: 1.5px solid var(--filet-fort); background: var(--surface); color: var(--encre); font-size: 16px;
}
.champ input:focus, .champ select:focus, .recherche input:focus { border-color: var(--canard); outline: 3px solid color-mix(in srgb, var(--canard-vif) 35%, transparent); outline-offset: 0; }
.champ input[aria-invalid="true"] { border-color: var(--rouge); }
.erreur { color: var(--rouge); font-size: 13.5px; font-weight: 600; min-height: 0; }
.erreur:empty { display: none; }
.champ-bas { align-self: end; }
.case { display: flex !important; align-items: center; gap: 8px; cursor: pointer; }
.case input { width: 20px; height: 20px; accent-color: var(--canard); }
.aide-csv { margin-top: 12px; font-size: 13.5px; }
.recherche { position: relative; flex: 1 1 300px; }
.recherche svg { position: absolute; inset-inline-start: 13px; top: 50%; translate: 0 -50%; width: 19px; height: 19px; color: var(--doux); }
.recherche input { padding-inline-start: 42px; }

/* Catalogue : chaque lot comme une étiquette de flacon */
.lots { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-top: 16px; }
.lot { display: flex; flex-direction: column; gap: 12px; padding: 0 0 14px; border-radius: 14px; border: 1.5px solid var(--filet-fort); background: var(--surface); overflow: hidden; transition: border-color .2s, transform .2s; }
.lot:hover { border-color: var(--canard); transform: translateY(-2px); }
.lot > * { padding-inline: 14px; }
.lot-tete { padding-block: 12px; background: var(--fond-2); border-bottom: 1.5px dashed var(--filet-fort); }
.lot-tete h4 { font-size: 16.5px; }
.lot-tete small { color: var(--doux); font-size: 13.5px; }
.lot-prix { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.lot-prix b { display: block; font: 600 22px/1.15 "Lexend", "Plex Arabic", sans-serif; }
.lot-prix s { display: block; color: var(--doux); font-size: 13.5px; }
.remise { display: inline-flex; padding: 4px 8px; border-radius: 8px; background: var(--vert-pale); color: var(--vert); font-weight: 700; font-size: 14px; white-space: nowrap; }
.lot-infos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 14px; }
.lot-infos span { display: block; color: var(--doux); font-size: 12.5px; }
.lot-infos b { font-weight: 600; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 7px; font-size: 12.5px; font-weight: 700; }
.badge svg { width: 14px; height: 14px; }
.badge-ok { background: var(--vert-pale); color: var(--vert); }
.badge-agree { background: var(--ambre-pale); color: var(--ambre); }
.badge-moi { background: var(--canard-pale); color: var(--canard-fonce); }
.lot-pied { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.lot-pied small { color: var(--doux); font-size: 13.5px; line-height: 1.35; }

/* Commande */
.commande { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.panier { display: grid; gap: 10px; margin-top: 12px; }
.article { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; padding: 14px; border-radius: 12px; border: 1px solid var(--filet); background: var(--surface); animation: apparait .3s ease-out; }
.article strong { font-weight: 700; }
.meta { color: var(--doux); font-size: 13.5px; }
.article-bas { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.article-bas .btn { margin-inline-start: auto; }
.qte { display: inline-flex; align-items: center; border: 1.5px solid var(--filet-fort); border-radius: 999px; }
.qte button { width: 36px; height: 34px; border: 0; background: none; cursor: pointer; font-size: 18px; font-weight: 700; color: var(--encre); border-radius: 999px; }
.qte button:disabled { color: var(--filet-fort); cursor: not-allowed; }
.qte output { min-width: 26px; text-align: center; font-weight: 700; }
.recu { padding: 20px; border-radius: 16px; background: var(--fond-2); position: sticky; top: 90px; }
.recu h3 { font-size: 18px; margin-bottom: 10px; }
.recu dl { margin: 0; }
.recu .ligne { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--filet-fort); }
.recu dt small { display: block; color: var(--doux); font-size: 13px; }
.recu dd { margin: 0; font-weight: 600; text-align: end; }
.recu .total { border-bottom: 0; padding-top: 12px; }
.recu .total dt, .recu .total dd { font: 600 19px "Lexend", "Plex Arabic", sans-serif; }
.recu-bas { display: grid; gap: 12px; margin-top: 10px; }
.encart { display: flex; gap: 9px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; color: var(--doux); }
.encart svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.encart-alerte { padding: 10px 12px; border-radius: 10px; background: var(--ambre-pale); color: var(--ambre); font-weight: 600; }
.encart-ok { padding: 12px; border-radius: 10px; background: var(--vert-pale); color: var(--vert); font-weight: 600; }

/* ---------- 5. Parcours ---------- */
.piste { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: p; position: relative; }
.piste::before { content: ""; position: absolute; top: 19px; inset-inline: 20px 20px; height: 2px; background: linear-gradient(to right, var(--canard), var(--vert)); }
[dir="rtl"] .piste::before { background: linear-gradient(to left, var(--canard), var(--vert)); }
.piste li { position: relative; }
.piste-n { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--fond); border: 2px solid var(--canard); color: var(--canard-fonce); font: 700 16px "Lexend", sans-serif; }
.piste li:last-child .piste-n { background: var(--vert); border-color: var(--vert); color: #fff; }
.piste-ill { width: 48px; height: 48px; margin: 18px 0 10px; }
.piste h3 { font-size: 18px; }
.piste p { color: var(--doux); font-size: 15.5px; margin-top: 6px; line-height: 1.5; }
.regles-bloc { margin-top: clamp(56px, 7vw, 88px); display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 56px); }
.regles-tete p { color: var(--doux); margin-top: 10px; }
.regles { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.regles li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--filet); }
.regles .ill { width: 46px; height: 46px; }
.regles p { color: var(--doux); font-size: 15.5px; margin-top: 4px; line-height: 1.5; }

/* ---------- 6. Modèle ---------- */
.cascade { display: grid; gap: 8px; margin-top: 16px; }
.cascade li { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--filet); }
.cascade li:nth-child(2) { margin-inline-start: 7%; background: var(--canard-pale); border-color: transparent; }
.cascade li:nth-child(3) { margin-inline-start: 14%; background: var(--canard); border-color: transparent; color: var(--sur-canard); }
.cascade li:nth-child(3) .k { color: var(--sur-canard); }
.cascade .k { font-weight: 600; }
.cascade b { font: 600 clamp(22px, 2.6vw, 32px)/1 "Lexend", "Plex Arabic", sans-serif; letter-spacing: -.02em; margin-inline-end: 8px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 36px; }
.carte-graph { position: relative; margin: 0; padding: 24px; border-radius: var(--r-grand); background: var(--surface); border: 1px solid var(--filet); }
.carte-graph .aide { margin-top: 4px; }
.graph { height: 260px; margin-top: 14px; }
.graph svg { width: 100%; height: 100%; overflow: visible; }
.graph text { fill: var(--doux); font: 500 12.5px "Source Sans 3", "Plex Arabic", sans-serif; }
.graph text.val { fill: var(--encre); font-weight: 700; font-size: 14px; }
.graph .barre { fill: var(--canard); transition: opacity .2s; }
.graph .barre.estompe { opacity: .35; }
.graph .zone { fill: transparent; cursor: pointer; }
.infobulle { position: absolute; z-index: 5; padding: 8px 12px; border-radius: 10px; background: var(--encre); color: var(--fond); font-size: 13.5px; white-space: nowrap; pointer-events: none; }
.defile-tab { overflow-x: auto; }
.finances { margin: 16px 0 14px; font-size: 15.5px; }
.finances th, .finances td { padding: 11px 8px; border-bottom: 1px solid var(--filet); text-align: end; }
.finances th[scope="row"] { text-align: start; font-weight: 600; }
.finances thead th { font-size: 13.5px; color: var(--doux); font-weight: 700; }
.finances tr:last-child th, .finances tr:last-child td { border-bottom: 0; font-weight: 700; }
.finances td.neg { color: var(--rouge); }
.financement { padding: 10px 12px; border-radius: 10px; background: var(--fond-2); color: var(--encre); }
.calc { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(20px, 3vw, 40px); padding: clamp(24px, 3vw, 36px); border-radius: var(--r-grand); background: var(--nuit); color: var(--sur-nuit);
  --encre: var(--sur-nuit); --doux: var(--sur-nuit-doux); --filet: #1E4049; --filet-fort: #2B5560; --surface: #0D2D35; --fond-2: #0F333C; }
.calc .champ { margin-top: 18px; }
.calc input[type="range"] { width: 100%; accent-color: #3DBAD3; height: 28px; }
.calc output { font-weight: 700; color: #fff; }
.calc-sorties { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.sortie { padding: 16px; border-radius: 14px; background: #0F333C; display: grid; gap: 2px; }
.sortie span { color: var(--sur-nuit-doux); font-size: 14.5px; font-weight: 600; }
.sortie b { font: 600 clamp(22px, 2.4vw, 28px)/1.2 "Lexend", "Plex Arabic", sans-serif; color: #fff; }
.sortie small { color: var(--sur-nuit-doux); font-size: 13.5px; }
.sortie-une { grid-column: 1 / -1; background: #F2F7F7; }
.sortie-une span, .sortie-une small { color: #4A6168; }
.sortie-une b { color: #0E7490; font-size: clamp(30px, 3.4vw, 42px); }
.s-vendeur { box-shadow: inset 4px 0 0 #3DBAD3; }
.s-orbite { box-shadow: inset 4px 0 0 #3CCB98; }
[dir="rtl"] .s-vendeur { box-shadow: inset -4px 0 0 #3DBAD3; }
[dir="rtl"] .s-orbite { box-shadow: inset -4px 0 0 #3CCB98; }
.s-eco { grid-column: 1 / -1; }
.partage { grid-column: 1 / -1; display: grid; gap: 6px; padding: 2px 2px 4px; }
.partage[hidden] { display: none; }
.partage-t { font-size: 13.5px; color: var(--sur-nuit-doux); font-weight: 600; }
.partage-barre { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; }
.partage-barre i { display: block; flex-basis: 0; transition: flex-grow .35s ease; }
.p-vendeur { background: #3DBAD3; }
.p-orbite { background: #3CCB98; }
.sortie-alerte:empty { display: none; }
.sortie-alerte { grid-column: 1 / -1; padding: 12px 14px; border-radius: 12px; background: #3A2810; color: #F7C47E; font-weight: 600; font-size: 15px; }
.calc select, .calc input[type="number"] { background: #0D2D35 !important; color: #fff !important; border-color: #2B5560 !important; }

/* ---------- 7. Feuille de route ---------- */
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.phases::before { content: ""; position: absolute; top: 11px; inset-inline: 0; height: 2px; background: var(--filet-fort); }
.phase { position: relative; padding-top: 42px; padding-inline-end: clamp(16px, 3vw, 40px); }
.phase::before { content: ""; position: absolute; top: 2px; inset-inline-start: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--fond); border: 3px solid var(--filet-fort); }
.phase:first-child::before { border-color: var(--canard); background: var(--canard); box-shadow: 0 0 0 6px var(--canard-pale); }
.quand { display: inline-block; font-weight: 700; color: var(--canard-fonce); font-size: 15px; }
.phase h3 { font-size: clamp(21px, 2vw, 25px); margin-top: 6px; letter-spacing: -.015em; }
.phase ul { display: grid; gap: 8px; margin-top: 14px; }
.phase li { display: flex; gap: 9px; color: var(--doux); font-size: 16.5px; line-height: 1.45; }
.phase li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--canard); }

/* ---------- 8. Équipe ---------- */
.bloc-equipe { background: var(--surface); border-block: 1px solid var(--filet); }
.equipe-grille { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.pourquoi-bloc h3 { margin-top: 26px; color: var(--canard-fonce); }
.pourquoi-txt { display: grid; gap: 14px; margin-top: 12px; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.65; max-width: 36em; }
.a-completer { padding: 14px 16px; border-radius: 12px; border: 1.5px dashed var(--ambre); background: var(--ambre-pale); color: var(--ambre); font-size: 15.5px; font-weight: 600; line-height: 1.5; }
.equipe { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.equipe li { text-align: center; padding: 28px 18px 24px; border-radius: var(--r-grand); background: var(--fond); border: 1px solid var(--filet); }
.photo { display: grid; place-items: center; width: clamp(104px, 11vw, 140px); aspect-ratio: 1; margin: 0 auto 16px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 30% 25%, var(--canard-pale), var(--ill-acc)); border: 4px solid var(--surface); box-shadow: 0 0 0 1.5px var(--filet-fort); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.monogramme { font: 600 clamp(30px, 3vw, 38px)/1 "Lexend", sans-serif; color: var(--canard-fonce); letter-spacing: -.02em; }
.equipe h3 { font-size: 20px; }
.equipe p { color: var(--doux); margin-top: 2px; }

/* ---------- 9. FAQ et Rejoindre ---------- */
.faq-grille { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq details { border-bottom: 1px solid var(--filet-fort); }
.faq details:first-child { border-top: 1px solid var(--filet-fort); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 2px; cursor: pointer; list-style: none; font: 600 clamp(17px, 1.5vw, 19px)/1.35 "Lexend", "Plex Arabic", sans-serif; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex: none; color: var(--canard); transition: transform .25s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .rep { padding: 0 2px 22px; color: var(--doux); max-width: 60ch; }
.faq details[open] .rep { animation: apparait .3s ease-out; }
.rejoindre { position: relative; padding: clamp(24px, 3vw, 34px); border-radius: var(--r-grand); background: var(--surface); border: 1.5px solid var(--canard); box-shadow: var(--ombre); }
.rejoindre-ill { position: absolute; inset-inline-end: 22px; top: -30px; width: 64px; height: 64px; color: var(--encre); background: var(--surface); border-radius: 50%; padding: 6px; border: 1.5px solid var(--canard); }
.rejoindre .h-moyen { padding-inline-end: 70px; }
.rejoindre > .aide { margin-top: 8px; }
.rejoindre form { display: grid; gap: 14px; margin-top: 20px; }
.rejoindre .btn { width: 100%; margin-top: 4px; }

/* ---------- Pied de page ---------- */
.pied { padding-block: 40px; background: var(--nuit); color: var(--sur-nuit); }
.pied-in { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.pied .logo { color: #fff; }
.pied .logo svg { color: #3DBAD3; }
.avertissement { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; font-size: 15px; }
.avertissement svg { width: 18px; height: 18px; flex: none; color: #F2A94E; margin-top: 3px; }
.pied .aide { color: var(--sur-nuit-doux); margin-top: 4px; }
.pied-haut { color: #8FD9E8; font-weight: 600; }
.pied-haut:hover { color: #fff; }

/* ---------- Message temporaire ---------- */
.toast { position: fixed; z-index: 80; bottom: 22px; left: 50%; translate: -50% 20px; opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 12px; background: var(--encre); color: var(--fond); font-weight: 600; font-size: 15px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .4); transition: opacity .25s, translate .25s; max-width: calc(100vw - 32px); }
.toast.visible { opacity: 1; translate: -50% 0; }

/* =====================================================================
   ÉCRANS MOYENS ET TÉLÉPHONES
   ===================================================================== */
@media (max-width: 1180px) {
  .nav-liens { display: none; }
  .btn-menu { display: inline-grid; }
  .nav-outils { margin-inline-start: auto; }
}
@media (max-width: 980px) {
  .accueil-grille, .pb-bas, .demo-tete, .equipe-grille, .faq-grille, .regles-bloc, .calc, .duo { grid-template-columns: 1fr; }
  .accueil::before { width: 110vw; top: auto; bottom: -40vw; inset-inline-end: -50vw; }
  .vie { grid-template-columns: 1fr; gap: 0; }
  .vie::before { top: 20px; bottom: 20px; inset-inline: 33px auto; border-top: 0; border-inline-start: 2px dashed #2D5761; }
  .vie li { display: grid; grid-template-columns: 68px 1fr; column-gap: 16px; padding-bottom: 18px; }
  .vie .ill { grid-row: span 3; }
  .vie h4 { margin-top: 8px; }
  .etapes { grid-template-columns: 1fr; }
  .lien-etapes { padding: 18px 0; }
  .lien-etapes::before { inset-inline: auto; left: 50%; top: 0; bottom: 0; border-top: 0; border-left: 2px dashed var(--filet-fort); }
  .piste { grid-template-columns: 1fr; gap: 0; }
  .piste::before { top: 20px; bottom: 20px; inset-inline: 19px auto; width: 2px; height: auto; background: linear-gradient(to bottom, var(--canard), var(--vert)); }
  .piste li { display: grid; grid-template-columns: 40px 48px 1fr; column-gap: 14px; padding-bottom: 26px; align-items: start; }
  .piste-ill { margin: 0; grid-row: span 2; }
  .piste h3, .piste p { grid-column: 3; }
  .piste h3 { margin-top: 8px; }
  .piste-n { grid-row: span 2; }
  .phases { grid-template-columns: 1fr; }
  .phases::before { top: 0; bottom: 0; inset-inline: 9px auto; width: 2px; height: auto; }
  .phase { padding: 0 0 32px; padding-inline-start: 44px; }
  .phase::before { top: 4px; }
  .app-corps { grid-template-columns: 1fr; }
  .onglets { flex-direction: row; overflow-x: auto; border-inline-end: 0; border-bottom: 1px solid var(--filet); padding: 10px; }
  .onglet { width: auto; flex: none; }
  .commande { grid-template-columns: 1fr; }
  .recu { position: static; }
  .grille-form { grid-template-columns: 1fr 1fr; }
  .resume { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .chiffres { grid-template-columns: 1fr; }
  .chiffres li, [dir="rtl"] .chiffres li { padding: 16px 0; }
  .chiffres li + li { border-inline-start: 0; border-top: 1px solid var(--filet); padding-inline-start: 0; }
  .nav-cta { display: none; }
  .avantages, .regles, .equipe, .calc-sorties { grid-template-columns: 1fr; }
  .app-barre { padding: 12px 14px; gap: 10px; }
  .app-labo { padding-inline-start: 10px; }
  .app-session { display: none; }
  .app-contenu { padding: 14px; min-height: 0; }
  .grille-form { grid-template-columns: 1fr; }
  .cascade li:nth-child(2) { margin-inline-start: 4%; }
  .cascade li:nth-child(3) { margin-inline-start: 8%; }
  .pied-in { grid-template-columns: 1fr; }
  .equipe li { display: grid; grid-template-columns: 88px 1fr; text-align: start; align-items: center; column-gap: 16px; padding: 16px; }
  .equipe .photo { width: 88px; margin: 0; grid-row: span 2; }
  .equipe h3 { align-self: end; }
  .equipe p { align-self: start; }
  .etape-ill { width: 56px; height: 56px; top: 18px; inset-inline-end: 18px; }
  .etape h3 { padding-inline-end: 62px; }
  .etape > p { padding-inline-end: 0; }

  /* Le tableau du stock devient une liste de cartes */
  .defile { border: 0; overflow: visible; }
  .stock { min-width: 0; }
  .stock thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stock, .stock tbody, .stock tr, .stock td { display: block; }
  .stock tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 16px; margin-bottom: 12px; border: 1px solid var(--filet); border-radius: 14px; background: var(--surface); }
  .stock tr.ligne-vente { border-color: var(--vert); }
  .stock td { padding: 0; border: 0; background: none !important; }
  .stock td[data-l]::before { content: attr(data-l); display: block; font-size: 12px; font-weight: 700; color: var(--doux); margin-bottom: 2px; }
  .stock td.prod { grid-column: 1 / -1; font-size: 17px; min-width: 0; padding-bottom: 6px; border-bottom: 1px dashed var(--filet); }
  .stock td.prod::before { display: none; }
  .stock td.mk { display: none; }
  .stock td.cons, .stock td.dang { display: block; }
  .prod-puces { display: none; }
  .stock td.acts { grid-column: 1 / -1; padding-top: 10px; border-top: 1px dashed var(--filet); }
  .actions-ligne { justify-content: space-between; }
  .actions-ligne > span { flex: 1; }
  .pourquoi { max-width: none; }
  .stock td.vide-l { grid-column: 1 / -1; }
  .stock .nw { white-space: normal; }
}
@media (max-width: 420px) {
  .actions .btn { width: 100%; }
  .resume { grid-template-columns: 1fr 1fr; gap: 8px; }
  .resume > div { padding: 12px; }
  .lots { grid-template-columns: 1fr; }
  .controles { grid-template-columns: 1fr; }
}

/* Animations coupées si l'utilisateur les a désactivées */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}

/* Impression : on garde l'essentiel */
@media print {
  .nav, .toast, .rejouer, .skip { display: none !important; }
  .bloc-nuit, .calc, .pied { background: #fff !important; color: #000 !important; }
}
