/* ==========================================================
   LOGIQUE.MA — Direction « Feuille de calcul de nuit »
   Le site parle de Power BI, d'Excel et de données : son langage
   visuel est celui du tableur (grille, cellules, cellule sélectionnée).
   Palette : bleu foncé, noir, blanc. Un seul accent : la sélection.
   Typo : Familjen Grotesk (titres) · Instrument Sans (texte) · DM Mono (repères de grille)
   ========================================================== */

:root {
  --black: #05070F;
  --navy: #0B1F4D;
  --navy-deep: #081539;
  --sel: #3B6CFF;            /* la « cellule sélectionnée » : seul accent vif */
  --sel-soft: #86A4FF;
  --white: #FFFFFF;
  --text: #EEF1F9;
  --muted: rgba(238, 241, 249, .66);
  --line: rgba(255, 255, 255, .13);
  --cell: 96px;              /* taille d'une cellule de la grille du hero */
  --wrap: 1160px;
  --pad: 20px;
  --display: "Familjen Grotesk", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; color-scheme: dark; }
body { margin: 0; background: var(--black); color: var(--text); font: 400 16.5px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; color: var(--white); letter-spacing: -.025em; line-height: 1.06; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--sel); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--navy); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 6px; font: 600 15px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s;
}
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--sel); color: var(--white); }
.btn-line { color: var(--white); border-color: rgba(255, 255, 255, .35); background: transparent; }
.btn-line:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Barre du haut ---------- */
.bar { position: sticky; top: 0; z-index: 60; background: rgba(5, 7, 15, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.brand { font: 700 20px/1 var(--display); letter-spacing: -.01em; color: var(--white); text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand span { color: var(--sel-soft); margin-left: -8px; }
.brand-logo { display: block; width: auto; height: 32px; }
.footer .brand-logo { height: 40px; }
.menu { display: flex; gap: 28px; }
.menu a { position: relative; padding: 6px 0; font-size: 14.5px; font-weight: 500; text-decoration: none; color: var(--muted); transition: color .15s; }
.menu a:hover, .menu a.active { color: var(--white); }
.menu a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: var(--sel); }
.bar-end { display: flex; align-items: center; gap: 12px; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 6px; background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; }
.burger span { width: 18px; height: 2px; background: var(--white); transition: transform .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* ---------- Hero : la feuille de calcul ---------- */
.hero { position: relative; overflow: hidden; min-height: 780px; display: flex; flex-direction: column; justify-content: center; padding: 170px 0 110px; background: var(--black); }

.fx { position: absolute; top: 0; left: 0; right: 0; height: 38px; display: flex; align-items: center; background: #0A0F1F; border-bottom: 1px solid var(--line); font: 400 13px/1 var(--mono); color: var(--text); overflow: hidden; }
.fx-name { flex: none; width: 44px; text-align: center; color: var(--muted); border-right: 1px solid var(--line); height: 100%; display: grid; place-items: center; }
.fx-sym { flex: none; padding: 0 14px; font-style: italic; color: var(--sel-soft); border-right: 1px solid var(--line); height: 100%; display: grid; place-items: center; }
.fx-text { padding-left: 14px; min-width: 0; }
.fx-text b { display: inline-block; white-space: nowrap; font-weight: 400; padding-right: 2px; border-right: 2px solid var(--sel-soft); animation: caret .9s steps(1) infinite; }
.fx-name { transition: color .3s; }
@keyframes caret { 50% { border-right-color: transparent; } }

.sheet { position: absolute; inset: 38px 0 0 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: var(--cell) var(--cell); background-position: 44px 28px;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.sheet-cols { position: absolute; top: 0; left: 44px; right: 0; height: 28px; display: flex; background: rgba(255, 255, 255, .035); border-bottom: 1px solid var(--line); }
.sheet-cols span { flex: none; width: var(--cell); display: grid; place-items: center; border-right: 1px solid var(--line); font: 400 11px/1 var(--mono); color: var(--muted); }
.sheet-rows { position: absolute; top: 28px; left: 0; width: 44px; bottom: 0; background: rgba(255, 255, 255, .035); border-right: 1px solid var(--line); }
.sheet-rows span { display: grid; place-items: center; height: var(--cell); border-bottom: 1px solid var(--line); font: 400 11px/1 var(--mono); color: var(--muted); }

/* La cellule sélectionnée : elle encadre tour à tour Logique Academy puis Adradar,
   pendant que la barre de formule tape la formule correspondante (main.js).
   C'est le seul mouvement automatique de la page. */
.select { position: absolute; z-index: 3; left: 0; top: 0; width: 0; height: 0; opacity: 0; pointer-events: none;
  border: 2px solid var(--sel); box-shadow: 0 0 0 4px rgba(59, 108, 255, .18);
  transition: left .75s cubic-bezier(.65, 0, .35, 1), top .75s cubic-bezier(.65, 0, .35, 1), width .75s cubic-bezier(.65, 0, .35, 1), height .75s cubic-bezier(.65, 0, .35, 1), opacity .4s; }
.select.on { opacity: 1; }
.select i { position: absolute; right: -6px; bottom: -6px; width: 10px; height: 10px; background: var(--sel); border: 2px solid var(--black); }

.hero-in { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: .98; letter-spacing: -.04em; }
.hero h1 span { display: inline-block; animation: reveal .9s cubic-bezier(.2, .8, .2, 1) both; }
.hero h1 span:nth-child(1) { animation-delay: .15s; }
.hero h1 span:nth-child(2) { animation-delay: .3s; color: rgba(255, 255, 255, .72); }
.hero h1 span:nth-child(3) { animation-delay: .45s; color: rgba(255, 255, 255, .45); }
@keyframes reveal { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.lead { margin: 28px 0 40px; max-width: 36em; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); }

/* Les deux produits, posés sur la grille comme deux plages de cellules */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1040px; animation: reveal .9s .6s cubic-bezier(.2, .8, .2, 1) both; }
.product { position: relative; display: flex; flex-direction: column; min-height: 250px; padding: 30px 32px 28px; text-decoration: none; border: 1px solid transparent; transition: background .2s, border-color .2s; }
.p-kind { font-size: 13.5px; font-weight: 500; }
.p-name { margin: 14px 0 12px; font: 700 clamp(2rem, 3.4vw, 2.9rem)/1 var(--display); letter-spacing: -.035em; }
.p-desc { max-width: 28em; font-size: 15.5px; line-height: 1.55; }
.p-go { margin-top: auto; padding-top: 26px; font-size: 15px; font-weight: 600; }
.p-go span { display: inline-block; transition: transform .2s; }
.product:hover .p-go span { transform: translate(2px, -2px); }
.p-academy { background: var(--white); color: var(--navy); }
.p-academy .p-kind, .p-academy .p-desc { color: #3A4A78; }
.p-academy .p-name { color: var(--navy); }
.p-academy:hover { background: #E8EEFF; }
.p-adradar { background: var(--navy); color: var(--white); border-color: rgba(134, 164, 255, .4); }
.p-adradar .p-kind, .p-adradar .p-desc { color: rgba(238, 241, 249, .75); }
.p-adradar:hover { background: #10296A; border-color: var(--sel-soft); }
.product:focus-visible { outline-offset: 4px; }

.proof { margin: 30px 0 0; font-size: 14.5px; color: var(--muted); }
.proof b { color: var(--white); font-family: var(--display); font-size: 1.1rem; }
.proof a { color: var(--white); font-weight: 600; text-underline-offset: 4px; }
.proof a:hover { color: var(--sel-soft); }

/* Onglets de feuille = navigation */
.tabs { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 42px; display: flex; padding-left: 44px; background: #0A0F1F; border-top: 1px solid var(--line); overflow-x: auto; }
.tab { flex: none; display: grid; place-items: center; padding: 0 24px; font-size: 13.5px; font-weight: 500; text-decoration: none; color: var(--muted); border-right: 1px solid var(--line); border-top: 2px solid transparent; margin-top: -1px; transition: background .15s, color .15s; }
.tab:hover { color: var(--white); background: rgba(255, 255, 255, .05); }
.tab.on { color: var(--white); background: var(--black); border-top-color: var(--sel); }

/* ---------- Sections ---------- */
.section { padding: 112px 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--navy-deep); }
.head { max-width: 760px; margin-bottom: 56px; }
.head h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); max-width: 20em; }
.sub { margin: 20px 0 0; max-width: 38em; font-size: 1.08rem; color: var(--muted); }
.head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.head-row > div { max-width: 680px; }
.aside { margin: 28px 0 0; color: var(--muted); font-size: .95rem; }
.aside a { color: var(--white); font-weight: 600; text-underline-offset: 4px; }
.aside a:hover { color: var(--sel-soft); }

/* ---------- Academy ---------- */
.courses { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid rgba(134, 164, 255, .3); }
.course { display: flex; flex-direction: column; align-items: flex-start; min-height: 380px; padding: 48px; background: var(--navy); }
.course + .course { border-left: 1px solid rgba(134, 164, 255, .3); }
.course-kind { margin: 0 0 28px; padding: 5px 12px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; font-size: 13px; color: var(--text); }
.course h3 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.04; max-width: 11em; margin-bottom: 18px; }
.course p:not(.course-kind) { max-width: 30em; margin-bottom: 36px; color: rgba(238, 241, 249, .78); }
.course .btn { margin-top: auto; }
.saas { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 30px 48px; border: 1px solid rgba(134, 164, 255, .3); border-top: 0; background: var(--black); }
.saas h3 { font-size: 1.6rem; margin-bottom: 4px; }
.saas p { margin: 0; color: var(--muted); }

/* ---------- Méthode : l'approche systémique (boucle de retour) ---------- */
.systems .head { max-width: 820px; }
.systems .head h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); max-width: 16em; }
.sys-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.loop { margin: 0; }
.loop svg { display: block; width: 100%; max-width: 540px; height: auto; margin: 0 auto; overflow: visible; }
.lp-track { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 1; stroke-dasharray: 3 6; }
.lp-arc { fill: none; stroke: rgba(134, 164, 255, .55); stroke-width: 2; transition: stroke .3s, stroke-width .3s; }
.lp-core circle { fill: rgba(255, 255, 255, .05); stroke: rgba(255, 255, 255, .2); transition: fill .3s; }
.lp-core-big { font: 700 34px var(--display); fill: var(--white); }
.lp-core-small { font: 500 12px var(--body); fill: rgba(238, 241, 249, .7); }
.lp-node rect { fill: var(--navy); stroke: rgba(134, 164, 255, .6); stroke-width: 1.5; transition: fill .3s, stroke .3s; }
.lp-node text { font: 700 17px var(--display); fill: var(--white); transition: fill .3s; }
.lp-lev rect { fill: var(--black); stroke: rgba(255, 255, 255, .35); transition: fill .3s, stroke .3s; }
.lp-lev text { font: 600 13px var(--body); fill: var(--white); }
.loop figcaption { max-width: 34em; margin: 22px auto 0; font-size: 14px; color: var(--muted); text-align: center; }

/* Survoler une étape éclaire la partie du système qu'elle concerne */
.loop[data-focus="1"] .lp-node rect { fill: var(--white); stroke: var(--white); }
.loop[data-focus="1"] .lp-node text { fill: var(--navy); }
.loop[data-focus="2"] .lp-arc { stroke: var(--white); stroke-width: 3.5; }
.loop[data-focus="2"] .lp-core circle { fill: var(--sel); }
.loop[data-focus="3"] .lp-lev rect { fill: var(--sel); stroke: var(--sel); }
.loop[data-focus="4"] .lp-arc.a4 { stroke: var(--white); stroke-width: 3.5; }
.loop[data-focus="4"] .n-res rect, .loop[data-focus="4"] .n-data rect { fill: var(--white); stroke: var(--white); }
.loop[data-focus="4"] .n-res text, .loop[data-focus="4"] .n-data text { fill: var(--navy); }

.sys-steps { border-top: 1px solid rgba(255, 255, 255, .3); }
.sys-steps li { display: grid; grid-template-columns: 56px 1fr; gap: 6px; padding: 22px 16px 22px 0; border-bottom: 1px solid var(--line); cursor: default; outline: none; transition: background .2s, padding .25s; }
.sys-steps li:hover, .sys-steps li:focus-visible, .sys-steps li.on { background: rgba(255, 255, 255, .05); padding-left: 12px; box-shadow: inset 3px 0 0 var(--sel); }
.sys-steps .step-n { margin: 0; font-size: 2.2rem; line-height: 1; color: var(--sel-soft); }
.sys-steps h3 { font-size: 1.25rem; margin-bottom: 6px; }
.sys-steps p { margin: 0; color: var(--muted); }

/* ---------- Vue d'ensemble des six expertises : une grille de cellules ---------- */
.xp { display: grid; grid-template-columns: repeat(4, 1fr); margin: -8px 0 72px; border-top: 1px solid rgba(255, 255, 255, .3); border-left: 1px solid var(--line); }
.xp-cell { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); transition: background .18s, box-shadow .18s; }
.xp-cell b { font: 700 1.25rem/1.2 var(--display); letter-spacing: -.015em; color: var(--white); }
.xp-cell span { font-size: 14.5px; color: var(--muted); }
.xp-cell em { margin-top: 8px; font-style: normal; font-size: 12.5px; color: var(--sel-soft); }
.xp-cell:hover, .xp-cell:focus-visible { background: rgba(59, 108, 255, .1); box-shadow: inset 0 0 0 2px var(--sel); outline: none; }

/* ---------- IA et prompt engineering : anatomie d'un prompt ---------- */
.ia-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; margin-bottom: 72px; }
.ia-grid > * { min-width: 0; }
.ia-copy h2 { font-size: clamp(2rem, 4vw, 3.2rem); max-width: 12em; }
.models { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.models li { padding: 10px 18px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 6px; font: 600 15px/1 var(--display); color: var(--white); }
.prompt { margin: 0; padding: 22px; border-radius: 10px; background: #0A1330; border: 1px solid rgba(134, 164, 255, .3); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.prompt-head { margin: 0 0 14px; font-size: 13.5px; font-weight: 500; color: var(--sel-soft); }
.prompt-parts { margin: 0; border-top: 1px solid var(--line); }
.prompt-parts div { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.prompt-parts dt { font: 600 .98rem/1.45 var(--display); color: var(--white); }
.prompt-parts dd { margin: 0; font-size: 14.5px; color: var(--text); }
.prompt .mini-ai { margin-top: 16px; }
.prompt figcaption { margin-top: 12px; font-size: 12.5px; color: rgba(238, 241, 249, .55); }

/* ---------- Excel + IA : une feuille de calcul et sa formule ---------- */
.xl-grid-wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; margin-bottom: 72px; }
.xl-grid-wrap > * { min-width: 0; }
.xl-copy h2 { font-size: clamp(2rem, 4vw, 3.2rem); max-width: 12em; }
.xl { margin: 0; padding: 16px; border-radius: 10px; background: #0A1330; border: 1px solid rgba(134, 164, 255, .3); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.xl-fx { display: flex; align-items: stretch; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 4px; background: rgba(255, 255, 255, .04); font: 400 13px/1 var(--mono); overflow: hidden; }
.xl-fx span, .xl-fx i { display: grid; place-items: center; padding: 9px 12px; border-right: 1px solid var(--line); color: var(--muted); }
.xl-fx i { color: var(--sel-soft); }
.xl-fx code { display: block; padding: 9px 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.xl-sheet { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.xl-sheet th, .xl-sheet td { padding: 8px 12px; border: 1px solid var(--line); text-align: left; }
.xl-sheet thead th, .xl-sheet tbody th { background: rgba(255, 255, 255, .05); color: var(--muted); font: 400 11.5px/1 var(--mono); text-align: center; }
.xl-sheet thead th:first-child, .xl-sheet tbody th { width: 34px; padding: 8px 0; }
.xl-sheet td { color: var(--text); }
.xl-sheet .h { font-weight: 600; color: var(--white); background: rgba(255, 255, 255, .03); }
.xl-sheet .r { text-align: right; }
.xl-sheet .sel { color: var(--white); font-weight: 700; background: rgba(59, 108, 255, .16); outline: 2px solid var(--sel); outline-offset: -2px; }
.xl .code-ask { margin-top: 16px; }
.xl .mini-ai { margin-top: 8px; }
.xl figcaption { margin-top: 12px; font-size: 12.5px; color: rgba(238, 241, 249, .55); }

/* Contrôle de gestion et Python : une partie entreprise, une partie formation */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; width: 100%; margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); }
.duo > div { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.duo p:not(.offer-kind) { margin: 0 0 18px; font-size: 14.5px; color: var(--muted); }
.duo .learn { margin-bottom: 18px; }
.duo .learn li { font-size: 14.5px; padding: 5px 0 5px 20px; }
.duo .learn li::before { top: 12px; width: 8px; height: 8px; }
.duo .btn { margin-top: auto; min-height: 44px; padding: 0 18px; font-size: 14.5px; }

/* ---------- Sites web : vitrine et boutique ---------- */
.web-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; margin-bottom: 72px; }
.web-copy h2 { color: var(--navy); }
.sites-mock { position: relative; margin: 0; min-height: 400px; }
.browser { position: absolute; width: 74%; border-radius: 10px; overflow: hidden; background: var(--white); border: 1px solid #D9DFEE; box-shadow: 0 26px 50px rgba(11, 31, 77, .2); }
.b-vitrine { left: 0; top: 0; }
.b-shop { right: 0; top: 120px; }
.b-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #EEF2F9; border-bottom: 1px solid #D9DFEE; }
.b-bar i { width: 9px; height: 9px; border-radius: 50%; background: #C7D0E4; }
.b-bar span { margin-left: 10px; padding: 3px 12px; border-radius: 999px; background: var(--white); font-size: 11.5px; color: #5A6788; }
.b-page { padding: 14px; }
.vt-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.vt-nav b { width: 54px; height: 10px; border-radius: 3px; background: var(--navy); margin-right: auto; }
.vt-nav span { width: 30px; height: 6px; border-radius: 3px; background: #D3DAEA; }
.vt-hero { padding: 22px 18px; border-radius: 8px; background: var(--navy); }
.vt-hero span { display: block; border-radius: 3px; background: rgba(255, 255, 255, .9); }
.vt-hero .l1 { width: 72%; height: 14px; margin-bottom: 8px; }
.vt-hero .l2 { width: 48%; height: 14px; margin-bottom: 16px; }
.vt-hero .vt-btn { width: 84px; height: 22px; border-radius: 4px; background: var(--sel); }
.vt-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.vt-row span { height: 46px; border-radius: 6px; background: #EEF2F9; }
.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.prod span { display: block; border-radius: 4px; }
.prod .ph { aspect-ratio: 1; margin-bottom: 6px; }
.p1 { background: linear-gradient(150deg, #C9D6FF, #6C8DFF); }
.p2 { background: linear-gradient(150deg, #0B1F4D, #3B6CFF); }
.p3 { background: linear-gradient(150deg, #E8EDF9, #9DAFD8); }
.p4 { background: linear-gradient(150deg, #86A4FF, #0B1F4D); }
.prod .pl { height: 6px; width: 80%; margin-bottom: 4px; background: #D3DAEA; }
.prod .pp { height: 6px; width: 40%; background: var(--navy); }
.cart { margin-top: 12px; padding: 9px; border-radius: 6px; background: var(--navy); color: var(--white); font-size: 12.5px; font-weight: 600; text-align: center; }
.sites-mock figcaption { position: absolute; left: 0; bottom: 0; font-size: 13.5px; color: #3A4A78; }

/* ---------- Formations : contrôle de gestion + IA, Python + IA ---------- */
.trainings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.training { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 40px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.training h3 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); margin-bottom: 14px; }
.training-alt { display: inline-block; margin-left: 6px; padding: 4px 10px; border-radius: 999px; background: var(--white); color: var(--navy); font: 600 13px/1.2 var(--body); letter-spacing: 0; vertical-align: middle; }
.training-lead { color: var(--muted); max-width: 34em; margin-bottom: 0; }
.mini { width: 100%; margin: 26px 0; padding: 16px; border-radius: 8px; background: #0A1330; border: 1px solid rgba(134, 164, 255, .25); }
.mini figcaption { margin-top: 10px; font-size: 12.5px; color: rgba(238, 241, 249, .55); }
.mini-cdg table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.mini-cdg th, .mini-cdg td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; }
.mini-cdg th:first-child { text-align: left; }
.mini-cdg thead th { font: 400 12px/1 var(--mono); color: var(--muted); border-bottom-color: rgba(255, 255, 255, .3); }
.mini-cdg tbody th { font-weight: 600; color: var(--white); }
.mini-cdg td { color: var(--text); }
.mini-cdg .up { color: var(--sel-soft); font-weight: 600; }
.mini-cdg .down { color: #FFB4A8; font-weight: 600; }
.mini-ai { margin: 14px 0 0; padding: 11px 14px; border-radius: 12px 12px 12px 2px; background: var(--white); color: var(--navy); font-size: 14px; line-height: 1.45; }
.mini-ai b { display: inline-block; margin-right: 8px; padding: 1px 7px; border-radius: 4px; background: var(--navy); color: var(--white); font-size: 12px; }
.code-ask { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px 12px 2px 12px; background: rgba(255, 255, 255, .1); font-size: 14px; color: var(--white); }
.code-ask span { margin-right: 8px; font-weight: 600; color: var(--sel-soft); }
.mini-code pre { margin: 0; padding: 14px; border-radius: 6px; background: var(--black); overflow-x: auto; }
.mini-code code { font: 400 13px/1.65 var(--mono); color: #DDE4FF; white-space: pre; }
.mini-code .k { color: var(--sel-soft); }
.mini-code .s { color: #A8DCBC; }
.learn { margin: 0 0 30px; }
.learn li { position: relative; padding: 7px 0 7px 22px; color: var(--text); font-size: 15.5px; }
.learn li::before { content: ""; position: absolute; left: 0; top: 15px; width: 9px; height: 9px; background: var(--sel); }
.training .btn { margin-top: auto; }

/* ---------- Articles (logique.ma/news) ---------- */
/* Défilement infini, de gauche à droite : deux moitiés identiques, décalées de 50 % en boucle */
.posts { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.posts-track { display: flex; width: max-content; animation: posts-ltr var(--dur, 60s) linear infinite; }
.posts-half { display: flex; gap: 22px; padding-right: 22px; }
.posts:hover .posts-track, .posts:focus-within .posts-track { animation-play-state: paused; }
@keyframes posts-ltr { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.posts:not(:has(.posts-track)):not(.is-static) { display: flex; gap: 22px; }
.posts.is-static { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; -webkit-mask-image: none; mask-image: none; }
.post { flex: none; width: 340px; display: flex; flex-direction: column; text-decoration: none; color: var(--text); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: rgba(255, 255, 255, .02); transition: border-color .2s, background .2s; }
.posts.is-static .post { width: auto; }
.post:hover, .post:focus-visible { border-color: rgba(134, 164, 255, .55); background: rgba(255, 255, 255, .05); }
.post-img { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--navy), var(--navy-deep)); overflow: hidden; }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.post:hover .post-img img { transform: scale(1.04); }
.post-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.post-meta { font-size: 13px; color: var(--sel-soft); }
.post-title { margin: 0; font: 700 1.1rem/1.28 var(--display); letter-spacing: -.01em; color: var(--white); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-excerpt { margin: 0; color: var(--muted); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-read { margin-top: auto; padding-top: 6px; font-size: 14.5px; font-weight: 600; color: var(--white); }
.post-skel { width: 340px; min-height: 300px; padding: 24px; gap: 12px; }
.post-skel span { display: block; height: 14px; border-radius: 4px; background: rgba(255, 255, 255, .08); animation: shimmer 1.4s ease-in-out infinite; }
.post-skel span:nth-child(1) { width: 30%; } .post-skel span:nth-child(2) { width: 85%; height: 22px; } .post-skel span:nth-child(3) { width: 60%; }
@keyframes shimmer { 50% { opacity: .45; } }
.posts-empty { flex: 1; grid-column: 1 / -1; padding: 40px; border: 1px dashed rgba(255, 255, 255, .25); border-radius: 10px; text-align: center; color: var(--muted); }
.posts-empty a { color: var(--white); font-weight: 600; }

/* ---------- Bouton WhatsApp flottant ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px 13px 16px; border-radius: 999px; background: #25D366; color: #0A2E19; font: 700 15px/1 var(--body); text-decoration: none; box-shadow: 0 12px 30px rgba(0, 0, 0, .45); transition: transform .2s, box-shadow .2s; }
.wa-float svg { width: 24px; height: 24px; fill: currentColor; }
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0, 0, 0, .55); }
.wa-float:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }

/* ---------- Automatisation n8n + IA : un workflow dessiné en nœuds ---------- */
.lead a { color: var(--white); text-underline-offset: 4px; }
.lead a:hover { color: var(--sel-soft); }

.flow { margin: 0 0 56px; }
.flow ol { display: flex; gap: 34px; }
.node { position: relative; flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border-radius: 12px; background: var(--navy); border: 1px solid rgba(134, 164, 255, .35); }
.node + .node::before { content: ""; position: absolute; left: -35px; top: 50%; width: 34px; height: 2px; background: var(--sel-soft); }
.node:not(:last-child)::after { content: ""; position: absolute; right: -7px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--navy-deep); border: 2px solid var(--sel-soft); }
.node-k { font-size: 12.5px; font-weight: 500; color: rgba(238, 241, 249, .62); }
.node b { font: 600 1.05rem/1.3 var(--display); color: var(--white); }
.node-ai { background: var(--white); border-color: var(--white); }
.node-ai .node-k { color: #3A4A78; }
.node-ai b { color: var(--navy); }
.flow figcaption { margin-top: 18px; font-size: 14px; color: var(--muted); }

.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.offer { display: flex; flex-direction: column; align-items: flex-start; padding: 36px; border-radius: 8px; background: var(--black); border: 1px solid var(--line); }
.offer-kind { margin: 0 0 10px; font-size: 13.5px; font-weight: 500; color: var(--sel-soft); }
.offer h4 { margin: 0 0 14px; font: 700 clamp(1.5rem, 2.4vw, 2rem)/1.08 var(--display); letter-spacing: -.025em; color: var(--white); }
.offer p:not(.offer-kind) { color: var(--muted); max-width: 32em; margin-bottom: 30px; }
.offer .btn { margin-top: auto; }

/* Raccourcis vers les deux expertises */
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin: -16px 0 56px; }
.jump a { padding: 11px 18px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 6px; font-size: 14.5px; font-weight: 600; text-decoration: none; color: var(--white); transition: background .18s, color .18s; }
.jump a:hover { background: var(--white); color: var(--navy); }

.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--sel); }
.btn-navy-line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-navy-line:hover { background: var(--navy); color: var(--white); }

/* ---------- Power BI + IA : la seule section claire de la page ---------- */
.section-light { background: var(--white); color: #1E2B52; border-top: 0; }
.section-light h2 { color: var(--navy); font-size: clamp(2rem, 4vw, 3.2rem); max-width: 14em; }
.section-light .sub { color: #3A4A78; }
.section-light :focus-visible { outline-color: var(--navy); }
.pbi-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; margin-bottom: 72px; }
.pbi-steps { margin-top: 36px; border-top: 1px solid #D9DFEE; counter-reset: pbi; }
.pbi-steps li { counter-increment: pbi; display: grid; grid-template-columns: 40px 1fr; align-items: baseline; padding: 14px 0; border-bottom: 1px solid #D9DFEE; color: #3A4A78; font-size: 15.5px; }
.pbi-steps li::before { content: counter(pbi); grid-row: span 2; font: 700 1.2rem/1 var(--display); color: var(--navy); }
.pbi-steps b { display: block; font: 700 1.08rem/1.3 var(--display); color: var(--navy); }

.dash { margin: 0; }
.dash-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; background: var(--navy); border-radius: 12px 12px 0 0; font-size: 13.5px; font-weight: 500; color: var(--white); }
.dash-tag { padding: 3px 10px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; font-size: 12px; }
.dash-body { padding: 14px; background: var(--navy-deep); border-radius: 0 0 12px 12px; box-shadow: 0 30px 60px rgba(11, 31, 77, .28); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { padding: 12px 14px; border-radius: 8px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.kpi span { display: block; margin-bottom: 8px; font-size: 12.5px; color: var(--muted); }
.kpi svg { display: block; width: 100%; height: 34px; overflow: visible; }
.kpi polyline { fill: none; stroke: var(--white); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.charts { display: grid; grid-template-columns: 1.7fr 1fr; gap: 12px; margin-top: 12px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 160px; padding: 16px; border-radius: 8px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.bars i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: var(--white); }
.bars i:nth-child(even) { background: var(--sel-soft); }
.donut { display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.donut span { position: relative; width: 112px; height: 112px; border-radius: 50%; background: conic-gradient(var(--white) 0 46%, var(--sel-soft) 0 74%, rgba(255, 255, 255, .18) 0); }
.donut span::after { content: ""; position: absolute; inset: 24px; border-radius: 50%; background: #13234D; }
.ask { display: grid; gap: 8px; margin-top: 12px; }
.ask p { margin: 0; padding: 11px 14px; font-size: 14px; line-height: 1.45; max-width: 86%; }
.ask-q { justify-self: end; background: rgba(255, 255, 255, .12); color: var(--white); border-radius: 12px 12px 2px 12px; }
.ask-a { justify-self: start; background: var(--white); color: var(--navy); border-radius: 12px 12px 12px 2px; }
.ask-a b { display: inline-block; margin-right: 8px; padding: 1px 7px; border-radius: 4px; background: var(--navy); color: var(--white); font-size: 12px; }
.dash figcaption { margin-top: 14px; font-size: 13.5px; color: #3A4A78; }

/* ---------- Meta Ads + IA : trois versions d'une publicité, une gagnante ---------- */
.section-navy { background: var(--navy); border-top: 0; }
.section-navy .sub { color: rgba(238, 241, 249, .78); }
.meta-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; margin-bottom: 72px; }
.meta-copy h2 { font-size: clamp(2rem, 4vw, 3.2rem); max-width: 14em; }
.meta-steps { border-top-color: rgba(255, 255, 255, .25); }
.meta-steps li { color: rgba(238, 241, 249, .72); border-bottom-color: rgba(255, 255, 255, .16); }
.meta-steps li::before, .meta-steps b { color: var(--white); }
.meta-steps a { color: var(--white); text-underline-offset: 3px; }
.meta-steps a:hover { color: var(--sel-soft); }

.variants { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end; }
.variant { position: relative; padding: 12px; border-radius: 10px; background: var(--white); color: #1E2B52; box-shadow: 0 18px 40px rgba(0, 0, 0, .3); opacity: .82; }
.variant.is-win { opacity: 1; transform: translateY(-18px); outline: 3px solid var(--sel); outline-offset: 4px; }
.v-win { position: absolute; left: 50%; top: -38px; transform: translateX(-50%); white-space: nowrap; padding: 5px 11px; border-radius: 999px; background: var(--sel); color: var(--white); font-size: 12px; font-weight: 600; }
.v-head { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; font-size: 11.5px; font-weight: 600; color: var(--navy); }
.v-head i { width: 18px; height: 18px; border-radius: 50%; background: var(--navy); }
.v-head { white-space: nowrap; overflow: hidden; }
.v-head i { flex: none; }
.v-head span { margin-left: auto; font-size: 10.5px; font-weight: 400; color: #6A7699; }
.v-hook { margin: 0 0 10px; font: 600 13.5px/1.3 var(--display); color: #10204A; min-height: 3.9em; }
.v-img { aspect-ratio: 1; border-radius: 6px; }
.v-img-1 { background: linear-gradient(150deg, #C9D6FF, #6C8DFF); }
.v-img-2 { background: linear-gradient(150deg, #0B1F4D, #3B6CFF); }
.v-img-3 { background: linear-gradient(150deg, #E8EDF9, #9DAFD8); }
.v-perf { height: 6px; margin-top: 12px; border-radius: 6px; background: #E3E8F4; overflow: hidden; }
.v-perf span { display: block; height: 100%; width: var(--w); border-radius: 6px; background: var(--navy); }
.is-win .v-perf span { background: var(--sel); }
.variants figcaption { grid-column: 1 / -1; margin-top: 18px; font-size: 13.5px; color: rgba(238, 241, 249, .7); }

.offers-light .offer { background: #F2F5FC; border-color: #D9DFEE; }
.offers-light .offer-kind { color: #2A4DB8; }
.offers-light .offer h4 { color: var(--navy); }
.offers-light .offer p:not(.offer-kind) { color: #3A4A78; }

.panel-title { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 16px; max-width: 22em; }
.panel-sub { max-width: 40em; margin-bottom: 40px; color: var(--muted); font-size: 1.05rem; }

/* ---------- YouTube ---------- */
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.video { display: block; text-decoration: none; }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--navy-deep)); border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.watch { position: absolute; left: 12px; bottom: 12px; padding: 8px 14px; border-radius: 4px; background: var(--white); color: var(--navy); font-size: 13px; font-weight: 600; transition: background .18s, color .18s; }
.video:hover .watch { background: var(--sel); color: var(--white); }
.video:hover .thumb img { opacity: .82; }
.vtitle { display: block; margin-top: 14px; font: 700 1.15rem/1.25 var(--display); letter-spacing: -.01em; color: var(--white); }

/* ---------- Méthode : une vraie séquence ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255, 255, 255, .35); }
.steps li { padding: 32px 32px 0 0; }
.steps li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.step-n { display: block; margin-bottom: 22px; font: 700 clamp(3.4rem, 6vw, 5rem)/.9 var(--display); letter-spacing: -.05em; color: var(--white); }
.steps h3 { font-size: 1.25rem; margin-bottom: 10px; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- Témoignages ---------- */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.quotes figure { margin: 0; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .35); }
.quotes blockquote { margin: 0; font: 500 clamp(1.3rem, 2.2vw, 1.75rem)/1.3 var(--display); letter-spacing: -.015em; color: var(--white); max-width: 22em; }
.quotes figcaption { margin-top: 22px; color: var(--muted); font-size: .95rem; }
.quotes figcaption strong { color: var(--white); margin-right: 8px; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 880px; }
.faq { border-top: 1px solid rgba(255, 255, 255, .35); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 24px 44px 24px 0; cursor: pointer; list-style: none; font: 600 1.2rem/1.35 var(--display); letter-spacing: -.01em; color: var(--white); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 2px solid var(--white); border-bottom: 2px solid var(--white); transform: rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq details p { margin: 0; padding: 0 44px 26px 0; color: var(--muted); max-width: 40em; }

/* ---------- Contact ---------- */
.contact { background: var(--navy); }
.contact-in { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact h2 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); max-width: 10em; }
.contact .sub { color: rgba(238, 241, 249, .78); }
.contact-list { margin-top: 40px; border-top: 1px solid rgba(255, 255, 255, .3); }
.contact-list li { border-bottom: 1px solid rgba(255, 255, 255, .18); }
.contact-list a, .contact-list span { display: block; padding: 18px 0; text-decoration: none; font: 500 1.3rem/1.3 var(--display); color: var(--white); transition: color .15s; }
.contact-list a:hover { color: var(--sel-soft); }
.contact-list small { display: block; margin-bottom: 4px; font: 400 13px/1 var(--body); color: rgba(238, 241, 249, .65); }
.form { display: grid; gap: 16px; padding: 32px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 8px; background: var(--black); }
.field label { display: block; margin-bottom: 7px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border-radius: 6px; border: 1px solid #2B3A6B; background: #0A1330; font: 400 16px/1.4 var(--body); color: var(--white); appearance: none; transition: border-color .15s; }
.field input::placeholder, .field textarea::placeholder { color: rgba(238, 241, 249, .35); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--sel); outline-offset: 0; border-color: var(--sel); }
.field textarea { resize: vertical; min-height: 96px; }
.field select option { color: #05070F; background: #fff; }
.form-note { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--black); }
.foot { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 40px; }
.foot p { margin: 14px 0 0; max-width: 300px; color: var(--muted); font-size: .95rem; }
.foot nav .foot-title { margin: 0 0 4px; max-width: none; color: var(--white); font: 700 1rem/1.3 var(--display); letter-spacing: -.01em; }
.foot nav { display: grid; gap: 10px; align-content: start; }
.foot nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.foot nav a:hover { color: var(--white); }
.copy { padding-top: 22px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: .85rem; color: rgba(238, 241, 249, .45); }
.mobile-cta { display: none; }

/* ---------- Responsive ---------- */
/* Le menu passe en menu repliable sous 1000 px */
@media (max-width: 1000px) {
  .menu { position: fixed; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 4px var(--pad) 12px; background: var(--black); border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px); }
  .menu.anim { transition: opacity .2s, transform .2s, visibility .2s; }
  .menu.open { opacity: 1; visibility: visible; transform: none; }
  .menu a { padding: 16px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .menu a.active::after { display: none; }
  .burger { display: flex; }
}

@media (max-width: 960px) {
  .courses { grid-template-columns: 1fr; }
  .course + .course { border-left: 0; border-top: 1px solid rgba(134, 164, 255, .3); }
  .offers { grid-template-columns: 1fr; }
  .pbi-grid { grid-template-columns: 1fr; gap: 44px; margin-bottom: 48px; }
  .sys-grid { grid-template-columns: 1fr; gap: 48px; }
  .trainings { grid-template-columns: minmax(0, 1fr); }
  .xp { grid-template-columns: repeat(2, 1fr); }
  .xl-grid-wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; margin-bottom: 48px; }
  .ia-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; margin-bottom: 48px; }
  .web-grid { grid-template-columns: 1fr; gap: 44px; margin-bottom: 48px; }
  .meta-grid { grid-template-columns: 1fr; gap: 56px; margin-bottom: 48px; }
  .meta-copy { order: -1; }
  .variants { max-width: 560px; padding-top: 30px; }
  .flow ol { flex-direction: column; gap: 26px; max-width: 460px; }
  .node + .node::before { left: 32px; top: -27px; width: 2px; height: 26px; }
  .node:not(:last-child)::after { right: auto; left: 27px; top: auto; bottom: -7px; margin-top: 0; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); }
  .steps li:first-child { border-top: 0; }
  .quotes { grid-template-columns: 1fr; gap: 36px; }
  .contact-in { grid-template-columns: 1fr; gap: 44px; }
  .foot { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --cell: 72px; --pad: 16px; }
  .section { padding: 72px 0; }
  .hero { min-height: 0; padding: 130px 0 96px; }
  .sheet-rows { display: none; }
  .sheet-cols { left: 0; }
  .sheet { background-position: 0 28px; }
  .select { display: none; }
  .products { grid-template-columns: 1fr; gap: 14px; }
  .product { min-height: 0; padding: 24px 22px; }
  .p-go { padding-top: 18px; }
  .fx-name { width: 40px; }
  .cta-row .btn { width: 100%; }
  .bar-end .btn { display: none; }
  .tabs { padding-left: 0; }
  .course { padding: 32px 24px; min-height: 0; }
  .saas { padding: 26px 24px; }
  .saas .btn, .head-row .btn { width: 100%; }

  .offer { padding: 28px 22px; }
  .jump a { flex: 1; text-align: center; }
  .kpis { gap: 8px; }
  .kpi { padding: 10px; }
  .kpi span { font-size: 11px; }
  .charts { grid-template-columns: 1fr; }
  .donut { padding: 14px 0; }
  .ask p { max-width: 100%; }
  .post, .post-skel { width: 290px; }
  .posts-half { gap: 16px; padding-right: 16px; }
  .sys-steps li { grid-template-columns: 44px 1fr; }
  .training { padding: 28px 20px; }
  .xp { grid-template-columns: 1fr; }
  .xp-cell, .xp-cell:last-child { padding: 20px; grid-column: auto; }
  .xl { padding: 12px; }
  .prompt { padding: 16px; }
  .prompt-parts div { grid-template-columns: 1fr; gap: 2px; }
  .xl-sheet { font-size: 13px; }
  .xl-sheet th, .xl-sheet td { padding: 7px 8px; }
  .duo { grid-template-columns: 1fr; }
  .duo .btn { width: 100%; }
  .sites-mock { min-height: 330px; }
  .browser { width: 84%; }
  .b-shop { top: 110px; }
  .training .btn { width: 100%; }
  .mini { padding: 12px; }
  .mini-cdg table { font-size: 13px; }
  .mini-cdg th, .mini-cdg td { padding: 7px 6px; }
  .mini-code code { font-size: 12px; }
  .wa-float { right: 14px; bottom: 14px; padding: 14px; }
  .wa-float span { display: none; }
  .wa-float svg { width: 28px; height: 28px; }
  .variants { gap: 8px; }
  .variant { padding: 8px; }
  .v-head span { display: none; }
  .v-hook { font-size: 11.5px; }
  .v-win { font-size: 11px; top: -34px; }
  .offer .btn { width: 100%; }

  .foot { grid-template-columns: 1fr; gap: 32px; }
  .contact .form { padding: 24px 20px; }
  .mobile-cta { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70; padding: 16px; text-align: center; text-decoration: none; border-radius: 6px; background: var(--white); color: var(--navy); font: 600 15px/1 var(--body); box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }
  .footer { padding-bottom: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fx-text b { width: auto; border-right: 0; }
  .hero h1 { clip-path: none; }
  /* Sans animation, les articles se parcourent à la main (défilement horizontal) */
  .posts { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .posts-track { width: auto; }
  .posts-half + .posts-half { display: none; }
}
