/* =========================================================
   CJA Consulting — Abdelaaziz El Atrassi, conseiller juridique (Meknès)
   Style « dossier d'entreprise » : bleu pétrole + rouge brique du logo (livre ouvert),
   surligneur jaune repris de la plaquette, cartes numérotées comme des articles.
   ========================================================= */
:root {
  --ink: #0e2630;
  --ink-2: #13313d;
  --ink-3: #1b3f4d;
  --ink-line: rgba(196, 222, 230, .14);
  --steel: #3f7a91;
  --steel-2: #8fbccc;
  --red: #b8412c;
  --red-2: #d4563d;
  --red-3: #8f2f1f;
  --mark: #f5d76e;
  --paper: #fbfaf7;
  --white: #fff;
  --mist: #eef3f4;
  --line: #d9e2e5;
  --text: #1a2a31;
  --muted: #586a71;
  --light: #e6eef0;
  --light-muted: #9fb5bd;
  --wa: #1f9d55;
  --radius: 10px;
  --shadow: 0 30px 60px -30px rgba(14, 38, 48, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
  --f-display: "Archivo", "Noto Kufi Arabic", system-ui, sans-serif;
  --f-body: "Archivo", "IBM Plex Sans Arabic", system-ui, sans-serif;
}
[dir="rtl"] {
  --f-display: "Noto Kufi Arabic", "Archivo", sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Archivo", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); font-size: 16.5px; line-height: 1.65; color: var(--text); background: var(--paper); overflow-x: hidden; }
[dir="rtl"] body { font-size: 17px; line-height: 1.85; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { width: 1em; height: 1em; flex: none; }
:focus-visible { outline: 2px solid var(--red-2); outline-offset: 3px; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; white-space: nowrap; }
.mail { word-break: break-all; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--red); color: #fff; padding: 10px 16px; border-radius: 6px; }
.skip:focus { top: 12px; }
[dir="rtl"] .arrow { transform: scaleX(-1); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; padding: 14px 24px; border: 1.5px solid transparent; border-radius: 999px; font-weight: 600; font-size: .95rem; cursor: pointer; transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .3s; white-space: nowrap; }
.btn svg { font-size: 1.15em; }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(4px); }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 12px 28px -14px rgba(184, 65, 44, .8); }
.btn--red:hover { background: var(--red-3); transform: translateY(-2px); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-3); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #178347; }
.btn--sm { padding: 10px 18px; font-size: .88rem; }

/* ---------- Titres ---------- */
.kicker, .eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin: 0 0 16px; }
.kicker::before, .eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: currentColor; }
[dir="rtl"] .kicker, [dir="rtl"] .eyebrow { letter-spacing: 0; font-size: .95rem; font-weight: 600; }
.eyebrow--light { color: var(--mark); }
.h2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.85rem, 3.6vw, 2.8rem); color: var(--ink); margin-bottom: 20px; letter-spacing: -.02em; }
[dir="rtl"] .h2 { letter-spacing: 0; line-height: 1.45; font-weight: 700; }
.h2 em, .hero__title em { font-style: normal; background: linear-gradient(transparent 62%, var(--mark) 62%, var(--mark) 92%, transparent 92%); padding-inline: .08em; }
.lead { font-size: 1.1rem; color: var(--muted); }

/* ---------- Barre d'infos ---------- */
.topbar { background: var(--ink); color: var(--light-muted); font-size: .82rem; }
.topbar__in { display: flex; align-items: center; gap: 24px; min-height: 40px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.topbar__item svg { color: var(--mark); }
.topbar__end { display: flex; align-items: center; gap: 22px; margin-inline-start: auto; }
.topbar__end a { color: #fff; transition: color .2s; }
.topbar__end a:hover { color: var(--mark); }
.topbar__tel { font-weight: 700; }
.topbar__social { display: flex; gap: 4px; padding-inline-start: 16px; border-inline-start: 1px solid var(--ink-line); }
.topbar__social:not(:has(a:not([hidden]))) { display: none; }
.topbar__soc { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; font-size: 1rem; transition: background .2s, color .2s; }
.topbar__soc:hover { background: rgba(255, 255, 255, .1); color: var(--mark) !important; }

/* ---------- En-tête ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line); transition: box-shadow .3s, background .3s; }
@supports (backdrop-filter: blur(1px)) { .header { background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); } }
.header.scrolled { box-shadow: 0 12px 32px -22px rgba(14, 38, 48, .45); }
.header__in { display: flex; align-items: center; gap: 28px; height: var(--header-h); transition: height .3s var(--ease); }
.header.scrolled .header__in { height: 66px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; min-width: 0; }
.brand__mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--red-2); flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.brand__mark svg { width: 30px; height: 22px; }
.brand__txt { display: grid; line-height: 1.15; min-width: 0; }
.brand__txt strong { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 1.16rem; color: var(--ink); letter-spacing: -.01em; white-space: nowrap; }
.brand__txt small { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav a { position: relative; padding: 10px 12px; font-size: .92rem; font-weight: 500; color: var(--text); white-space: nowrap; transition: color .2s; }
.nav a::after { content: ""; position: absolute; inset-inline: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--red); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(.4); }
.nav a.active { color: var(--red); }
.nav a.active::after { transform: scaleX(1); }
.header__end { display: flex; align-items: center; gap: 12px; flex: none; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--paper); }
.lang button { border: 0; background: none; min-width: 34px; padding: 5px 9px; font-size: .78rem; font-weight: 700; border-radius: 999px; cursor: pointer; color: var(--muted); transition: background .2s, color .2s; }
.lang button:hover { color: var(--ink); }
.lang button.on { background: var(--ink); color: #fff; }
.header__cta svg { font-size: 1.05em; }
.burger { display: none; position: relative; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; padding: 0; flex-direction: column; justify-content: center; align-items: center; gap: 5px; transition: border-color .2s; }
.burger:hover { border-color: var(--ink); }
.burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); }
.burger span:nth-child(2) { width: 12px; align-self: center; transform: translateX(-3px); }
[dir="rtl"] .burger span:nth-child(2) { transform: translateX(3px); }

/* ---------- Menu tiroir (tablette / mobile) ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; pointer-events: none; }
.drawer.open { visibility: visible; pointer-events: auto; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(8, 22, 28, .55); opacity: 0; transition: opacity .35s; }
.drawer.open .drawer__backdrop { opacity: 1; }
.drawer__panel { position: absolute; inset-block: 0; inset-inline-end: 0; display: flex; flex-direction: column; width: min(400px, 100%); background: var(--paper); box-shadow: -20px 0 60px -20px rgba(0, 0, 0, .4); transform: translateX(100%); transition: transform .4s var(--ease); overflow-y: auto; overscroll-behavior: contain; padding-bottom: env(safe-area-inset-bottom); }
[dir="rtl"] .drawer__panel { transform: translateX(-100%); }
.drawer.open .drawer__panel { transform: none; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer__top .brand__txt small { max-width: 220px; }
.drawer__close { position: relative; flex: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.drawer__close span { position: absolute; inset: 21px 12px auto; height: 2px; border-radius: 2px; background: var(--ink); transform: rotate(45deg); }
.drawer__close span + span { transform: rotate(-45deg); }
.drawer__nav { display: grid; padding: 10px 20px; }
.drawer__nav a { display: flex; align-items: center; gap: 16px; padding: 15px 4px; border-bottom: 1px solid var(--line); font-family: var(--f-display); font-size: 1.12rem; font-weight: 600; color: var(--ink); transition: color .2s, padding .3s var(--ease); }
.drawer__nav a i { font-style: normal; font-family: "Archivo", sans-serif; font-size: .78rem; font-weight: 700; color: var(--red); min-width: 20px; }
.drawer__nav a:hover, .drawer__nav a.active { color: var(--red); padding-inline-start: 10px; }
.drawer__foot { display: grid; gap: 14px; margin-top: auto; padding: 20px; background: var(--mist); }
.lang--drawer { background: #fff; }
.lang--drawer button { flex: 1; padding: 9px 6px; font-size: .86rem; }
.drawer__contact { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.drawer__contact a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .92rem; color: var(--ink); }
.drawer__contact svg { color: var(--red); font-size: 1.1rem; }
.drawer__contact .js-wa svg { color: var(--wa); }
.drawer__social { display: flex; gap: 10px; }
.drawer__social:not(:has(a:not([hidden]))) { display: none; }
.drawer .social--light { border-color: var(--line); background: #fff; color: var(--ink); }
.drawer .social--light:hover { border-color: var(--red); color: var(--red); }
.drawer__addr { display: flex; gap: 8px; margin: 0; font-size: .85rem; color: var(--muted); }
.drawer__addr svg { color: var(--red); margin-top: .3em; }

/* ---------- Accueil ---------- */
.hero { position: relative; padding: 64px 0 90px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset-block: 0; inset-inline-end: 0; width: 38%; background: var(--ink); }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.hero__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.08; letter-spacing: -.03em; color: var(--ink); margin-bottom: 22px; }
[dir="rtl"] .hero__title { font-weight: 700; letter-spacing: 0; line-height: 1.4; font-size: clamp(2rem, 4.4vw, 3.3rem); }
.hero__text { font-size: 1.12rem; color: var(--muted); max-width: 590px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 32px; }
.chips li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .88rem; font-weight: 500; }
.chips svg { color: var(--red); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.portrait { position: relative; margin: 0; }
.portrait__media { position: relative; }
.portrait__frame { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); }
.portrait__frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.portrait__plate { position: absolute; inset-inline-start: -28px; bottom: 34px; display: grid; gap: 2px; padding: 14px 20px; background: var(--red); color: #fff; border-radius: 10px; box-shadow: var(--shadow); }
.portrait__plate b { font-family: "Noto Kufi Arabic", sans-serif; font-size: 1.12rem; font-weight: 700; }
.portrait__plate span { font-size: .82rem; opacity: .9; }
.checkcard { margin-top: 16px; padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -28px rgba(14, 38, 48, .45); }
.checkcard__h { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-weight: 700; font-size: .88rem; color: var(--ink); }
.checkcard__h svg { width: 22px; height: 16px; color: var(--red); }
.checkcard ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.checkcard li { display: flex; align-items: center; gap: 9px; padding: 7px 0; font-size: .86rem; border-top: 1px dashed var(--line); min-width: 0; }
.tick { flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: var(--mark); color: var(--ink); font-size: .72rem; }

/* ---------- Chiffres ---------- */
.stats { background: var(--ink); color: var(--light); }
.stats__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats li { display: grid; gap: 4px; padding: 30px 26px; border-inline-start: 1px solid var(--ink-line); }
.stats li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stats b { font-family: "Archivo", "Noto Kufi Arabic", sans-serif; font-size: 2rem; font-weight: 800; color: var(--mark); line-height: 1.2; }
.stats span { font-size: .92rem; color: var(--light-muted); }

/* ---------- Sections ---------- */
.sec { padding: 104px 0; }
.sec--mist { background: var(--mist); }
.sec--ink { background: var(--ink); color: var(--light); }
.sec--ink .h2 { color: #fff; }
.sec--ink .h2 em { background: none; color: var(--mark); }
.sec--ink .lead { color: var(--light-muted); }
.sec--flush { padding: 0; }
.sec__head { max-width: 720px; margin-bottom: 52px; }
.sec__head--center { margin-inline: auto; text-align: center; }

/* ---------- Le centre ---------- */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.about__photo { position: sticky; top: calc(var(--header-h) + 24px); margin: 0; }
.about__photo img { border-radius: 16px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 20% center; width: 100%; height: auto; }
.about__photo figcaption { position: relative; margin: -46px 18px 0; padding: 18px 20px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); border-top: 4px solid var(--red); }
.about__photo b { display: block; font-family: var(--f-display); font-size: 1.15rem; color: var(--ink); }
.about__photo span { font-size: .86rem; color: var(--muted); line-height: 1.5; display: block; margin-top: 4px; }
.about__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 30px 0; }
.note { padding: 22px 24px; background: var(--mist); border-radius: var(--radius); border-inline-start: 4px solid var(--steel); }
.note--red { border-color: var(--red); }
.note h3 { font-family: var(--f-display); font-size: 1.05rem; color: var(--ink); margin-bottom: 8px; }
.note p { margin: 0; font-size: .95rem; color: var(--muted); }
.creds { display: grid; gap: 0; border-top: 1px solid var(--line); }
.creds li { display: grid; grid-template-columns: 54px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.creds__n { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--red); }
.creds h3 { font-size: 1.02rem; color: var(--ink); margin-bottom: 4px; font-family: var(--f-display); }
.creds p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Prestations ---------- */
.svc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: start; }
.card { position: relative; padding: 26px 24px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.card__ic { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; background: var(--ink); color: var(--mark); }
.card__ic svg { width: 26px; height: 26px; }
.card__n { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--line); }
.card h3 { font-family: var(--f-display); font-size: 1.12rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.card > p { color: var(--muted); font-size: .94rem; margin-bottom: 14px; }
.card details { border-top: 1px solid var(--line); }
.card summary { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; cursor: pointer; list-style: none; font-weight: 600; font-size: .9rem; color: var(--red); }
.card summary::-webkit-details-marker { display: none; }
.card summary i { position: relative; width: 12px; height: 12px; }
.card summary i::before, .card summary i::after { content: ""; position: absolute; inset: 5px 0 auto; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s; }
.card summary i::after { transform: rotate(90deg); }
.card details[open] summary i::after { transform: rotate(0); }
.card details ul { display: grid; gap: 8px; padding: 14px 0 4px; }
.card details li { display: flex; gap: 8px; font-size: .9rem; line-height: 1.5; }
.card details li svg { color: var(--steel); margin-top: .25em; }
.card__ask { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 600; font-size: .88rem; color: var(--ink); border-bottom: 2px solid var(--mark); }
.extra { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; margin-top: 36px; padding: 26px 30px; border-radius: 14px; background: var(--ink); color: var(--light); }
.extra__h { font-family: var(--f-display); font-size: 1.15rem; color: var(--mark); }
.extra__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.extra__list b { display: block; color: #fff; margin-bottom: 2px; }
.extra__list span { font-size: .9rem; color: var(--light-muted); }

/* ---------- Représentation ---------- */
.bodies { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bodies li { padding: 28px 24px; border: 1px solid var(--ink-line); border-radius: 14px; background: var(--ink-2); transition: background .3s, border-color .3s; }
.bodies li:hover { background: var(--ink-3); border-color: rgba(245, 215, 110, .35); }
.bodies__k { display: inline-grid; place-items: center; min-width: 58px; height: 38px; padding: 0 12px; margin-bottom: 18px; border-radius: 8px; background: var(--mark); color: var(--ink); font-family: "Archivo", sans-serif; font-weight: 800; letter-spacing: .04em; }
.bodies h3 { font-family: var(--f-display); font-size: 1.08rem; color: #fff; margin-bottom: 8px; }
.bodies p { margin: 0; color: var(--light-muted); font-size: .93rem; }
.steps__h { font-family: var(--f-display); font-size: 1.2rem; color: #fff; margin: 64px 0 24px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 21px; inset-inline: 22px; height: 2px; background: repeating-linear-gradient(90deg, var(--steel) 0 8px, transparent 8px 14px); }
.steps li { position: relative; padding-inline-end: 24px; }
.steps__n { position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; font-family: "Archivo", sans-serif; box-shadow: 0 0 0 6px var(--ink); }
.steps h4 { font-family: var(--f-display); font-size: 1.02rem; color: #fff; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--light-muted); font-size: .92rem; }

/* ---------- Formation ---------- */
.train { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 120px; gap: 12px; }
.gallery figure { position: relative; margin: 0; border-radius: 12px; overflow: hidden; background: var(--mist); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; inset: auto 0 0; padding: 30px 14px 12px; font-size: .82rem; font-weight: 500; color: #fff; background: linear-gradient(transparent, rgba(14, 38, 48, .85)); }
.g1 { grid-column: span 3; grid-row: span 3; }
.g2 { grid-column: span 3; grid-row: span 3; }
.g3 { grid-column: span 3; grid-row: span 2; }
.g4 { grid-column: span 3; grid-row: span 2; }
.g1 img { object-position: center 30%; }
.g3 img { object-position: center 25%; }
.train__info { display: grid; gap: 26px; }
.train__block h3 { font-family: var(--f-display); font-size: 1.05rem; color: var(--ink); margin-bottom: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 7px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .88rem; }
.ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.ticks li { display: flex; gap: 8px; font-size: .93rem; line-height: 1.5; }
.ticks svg { color: var(--red); margin-top: .3em; }
.past { display: grid; gap: 10px; }
.past li { padding: 12px 16px; background: var(--mist); border-inline-start: 3px solid var(--mark); border-radius: 6px; font-weight: 500; font-size: .95rem; color: var(--ink); }
.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.formats li { padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.formats b { display: block; color: var(--ink); font-size: .95rem; margin-bottom: 4px; }
.formats span { font-size: .85rem; color: var(--muted); line-height: 1.45; display: block; }
.train__info .btn { justify-self: start; }

/* ---------- Clientèle ---------- */
.clients { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.clients__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.clients__list li { padding: 22px; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
.clients__n { display: block; font-family: "Archivo", sans-serif; font-weight: 800; color: var(--red); margin-bottom: 10px; }
.clients__list h3 { font-family: var(--f-display); font-size: 1rem; color: var(--ink); margin-bottom: 6px; line-height: 1.35; }
.clients__list p { margin: 0; font-size: .9rem; color: var(--muted); }
.goals { padding: 30px; background: var(--ink); color: var(--light); border-radius: 16px; }
.goals h3 { font-family: var(--f-display); font-size: 1.2rem; color: var(--mark); margin-bottom: 18px; }
.goals li { display: flex; gap: 10px; padding: 11px 0; border-top: 1px solid var(--ink-line); font-size: .95rem; }
.goals svg { color: var(--mark); margin-top: .3em; }

/* ---------- Formules ---------- */
.offers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.offer { position: relative; display: flex; flex-direction: column; padding: 30px 26px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.offer--star { background: var(--ink); color: var(--light); border-color: var(--ink); transform: translateY(-10px); box-shadow: var(--shadow); }
.offer__badge { position: absolute; top: -13px; inset-inline-start: 24px; padding: 4px 12px; border-radius: 999px; background: var(--mark); color: var(--ink); font-size: .76rem; font-weight: 700; }
.offer__tag { font-size: .8rem; font-weight: 600; color: var(--red); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
[dir="rtl"] .offer__tag { letter-spacing: 0; font-size: .9rem; }
.offer--star .offer__tag { color: var(--mark); }
.offer h3 { font-family: var(--f-display); font-size: 1.4rem; color: var(--ink); margin-bottom: 12px; }
.offer--star h3 { color: #fff; }
.offer p { color: var(--muted); font-size: .94rem; flex: 1; }
.offer--star p { color: var(--light-muted); }
.offer__cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--ink); margin-top: 8px; }
.offer--star .offer__cta { color: var(--mark); }

/* ---------- Consultation ---------- */
.booking { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: start; }
.lines { display: grid; gap: 10px; margin: 26px 0; }
.lines a { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: border-color .3s, transform .3s var(--ease); }
.lines a:hover { border-color: var(--red); transform: translateX(4px); }
[dir="rtl"] .lines a:hover { transform: translateX(-4px); }
.lines svg { width: 40px; height: 40px; padding: 10px; border-radius: 10px; background: var(--ink); color: var(--mark); }
.lines span { display: grid; }
.lines small { font-size: .78rem; color: var(--muted); }
.lines b { color: var(--ink); justify-self: start; }
.hours { display: flex; gap: 12px; font-size: .93rem; color: var(--muted); }
.hours svg { color: var(--red); margin-top: .3em; }
.hours b { display: block; color: var(--ink); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 34px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); border-top: 5px solid var(--red); }
.form__h { grid-column: 1 / -1; font-family: var(--f-display); font-size: 1.3rem; color: var(--ink); }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: .86rem; font-weight: 600; color: var(--ink); padding: 0; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); transition: border-color .2s, background .2s; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--steel); background: #fff; }
.field .invalid { border-color: var(--red-2); background: #fdf3f1; }
[dir="rtl"] #b-phone { text-align: right; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-size: .86rem; cursor: pointer; transition: all .2s; }
.pill:hover { border-color: var(--steel); }
.pill.sel { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: var(--mist); }
.seg button { padding: 10px; border: 0; border-radius: 9px; background: none; font-size: .9rem; font-weight: 500; cursor: pointer; color: var(--muted); }
.seg button.sel { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 4px 12px -6px rgba(14, 38, 48, .4); }
.consent { display: flex; gap: 10px; font-size: .88rem; color: var(--muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; accent-color: var(--red); flex: none; margin-top: .25em; }
.form__err { margin: 0; color: var(--red); font-size: .9rem; font-weight: 600; min-height: 0; }
.form__err:empty, .form__ok:empty { display: none; }
.form__ok { margin: 0; color: var(--wa); font-weight: 600; font-size: .9rem; }
.form__note { margin: 0; font-size: .82rem; color: var(--muted); text-align: center; }
.form .btn--wa { padding-block: 16px; }
.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .7fr 1.3fr; gap: 60px; align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-h) + 24px); }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa h3 { font-family: var(--f-display); font-size: 1.06rem; font-weight: 600; color: var(--ink); }
.qa__x { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--mist); transition: background .3s; }
.qa__x::before, .qa__x::after { content: ""; position: absolute; inset: 14px 9px auto; height: 2px; background: var(--ink); transition: transform .3s; }
.qa__x::after { transform: rotate(90deg); }
.qa[open] .qa__x { background: var(--mark); }
.qa[open] .qa__x::after { transform: rotate(0); }
.qa p { margin: 0 0 22px; color: var(--muted); max-width: 680px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; min-height: 520px; }
.contact__card { padding: 80px max(20px, calc((100vw - 1200px) / 2)); padding-inline-end: 56px; }
.contact__list { display: grid; gap: 20px; margin: 28px 0 34px; }
.contact__list dt { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--mark); margin-bottom: 4px; }
[dir="rtl"] .contact__list dt { letter-spacing: 0; font-size: .9rem; }
.contact__list dd { margin: 0; color: var(--light); font-style: normal; }
.contact__list a:hover { color: var(--mark); }
address { font-style: normal; }
.contact__btns { display: flex; gap: 10px; align-items: center; }
.social { display: grid; place-items: center; width: 46px; height: 46px; font-size: 1.15rem; transition: border-color .2s, color .2s, background .2s; border-radius: 50%; border: 1px solid var(--ink-line); color: var(--light); }
.social:hover { border-color: var(--mark); color: var(--mark); }
.contact__map { position: relative; background: var(--ink-2); }
.contact__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }

/* ---------- Pied de page ---------- */
.footer { background: #0a1d25; color: var(--light-muted); padding: 64px 0 28px; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 36px; border-bottom: 1px solid var(--ink-line); }
.footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-family: "Archivo", sans-serif; font-weight: 800; font-size: 1.3rem; color: #fff; }
.footer__brand svg { width: 34px; height: 24px; color: var(--red-2); }
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social:not(:has(a:not([hidden]))) { display: none; }
.footer__motto { color: var(--mark); font-weight: 600; }
.footer h3 { font-family: var(--f-display); font-size: .98rem; color: #fff; margin-bottom: 14px; }
.footer ul { display: grid; gap: 8px; }
.footer a:hover { color: var(--mark); }
.footer__disc { margin: 24px 0 14px; font-size: .82rem; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; }

/* ---------- Barre mobile ---------- */
.mbar { display: none; }

/* ---------- Apparition ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-d="1"] { transition-delay: .08s; }
.js .reveal[data-d="2"] { transition-delay: .16s; }
.js .reveal[data-d="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1340px) {
  .brand__txt small { display: none; }
  .header__in { gap: 18px; }
  .nav a { padding: 10px 9px; font-size: .9rem; }
  .nav a::after { inset-inline: 9px; }
}
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: flex; }
  .header__end { margin-inline-start: auto; }
  .brand__txt small { display: block; }
  .topbar__hours { display: none; }
  .svc { grid-template-columns: repeat(2, 1fr); }
  .offers { grid-template-columns: repeat(2, 1fr); gap: 26px 18px; }
  .offer--star { transform: none; }
  .hero { padding: 56px 0 80px; }
  .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 40px; }
  .hero::before { width: 34%; }
  .portrait__plate { inset-inline-start: -16px; }
  .about, .booking, .faq, .train, .clients { grid-template-columns: 1fr; gap: 44px; }
  .about__photo, .faq__head { position: static; }
  .about__photo { max-width: 440px; }
  .bodies { grid-template-columns: repeat(2, 1fr); }
  .stats__list { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .stats li { border-top: 1px solid var(--ink-line); }
  .stats li:nth-child(-n+2) { border-top: 0; }
  .extra { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .contact__card { padding: 64px 20px; }
  .contact__map { min-height: 360px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .topbar__mail { display: none; }
  .hero::before { display: none; }
  .hero { padding: 40px 0 70px; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .portrait { max-width: 480px; margin-inline: auto; width: 100%; }
  .portrait__plate { inset-inline-start: 16px; bottom: 18px; }
}
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  body { padding-bottom: 68px; }
  .topbar { display: none; }
  .header.scrolled .header__in { height: 60px; }
  .header__cta { display: none; }
  .header__in { gap: 10px; }
  .header__end { gap: 8px; }
  .brand { gap: 10px; }
  .brand__mark { width: 40px; height: 40px; border-radius: 11px; }
  .brand__mark svg { width: 27px; height: 20px; }
  .brand__txt strong { font-size: 1.04rem; }
  .brand__txt small { font-size: .7rem; max-width: 150px; }
  .header .lang { display: none; }
  .burger { width: 42px; height: 42px; }
  .sec { padding: 72px 0; }
  .svc, .bodies, .offers, .clients__list, .about__cards, .extra__list, .formats { grid-template-columns: 1fr; }
  .ticks { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .steps::before { top: 22px; bottom: 22px; inset-inline: 21px auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--steel) 0 8px, transparent 8px 14px); }
  .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 0; }
  .steps__n { grid-row: span 2; margin: 0; }
  .portrait__plate { inset-inline-start: 12px; bottom: 14px; padding: 12px 16px; }
  .gallery { grid-auto-rows: 90px; gap: 8px; }
  .gallery figcaption { display: none; }
  .form { grid-template-columns: 1fr; padding: 24px 20px; }
  .seg { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .mbar { position: fixed; inset: auto 0 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr 1.2fr; background: var(--ink); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, .4); }
  .mbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 6px; color: var(--light); font-size: .78rem; font-weight: 600; }
  .mbar svg { font-size: 1.25rem; }
  .mbar__main { background: var(--red); color: #fff !important; }
}
@media (max-width: 420px) {
  .stats li { padding: 22px 14px; min-width: 0; }
  .stats li:nth-child(odd) { padding-inline-start: 0; }
  .stats b { font-size: 1.55rem; }
  .stats span { font-size: .85rem; }
}
@media (max-width: 360px) {
  .checkcard ul { grid-template-columns: 1fr; }
  .brand__txt small { display: none; }
}
