/* Accueil v2 (scripts/home-v2.mjs, assets/js/v2-home.js). Rythme : nuit (ouverture) · sable (aiguilleur + métiers) · clair (preuve)
   · nuit (méthode) · sable (ressources) · nuit (cabinet et contact). */

/* ── 1. Ouverture : plan de Fès + tracé de géomètre ─────────────────────────── */
.v2-hero { --s: 1.45; --ox: 67%; --oy: 52%;
  position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; grid-template-columns: minmax(0, 1fr); color: #f3f1ff;
  background: #0b0d22; }
.v2-sky { position: absolute; inset: 0; z-index: -3; pointer-events: none; background: radial-gradient(110% 80% at 75% 35%, #171a4e 0%, #0b0d22 62%); }
[dir="rtl"] .v2-hero { --ox: 23%; }
[dir="rtl"] .v2-sky { background: radial-gradient(110% 80% at 25% 35%, #171a4e 0%, #0b0d22 62%); }
@media (min-width: 1700px) { .v2-hero { --s: 1.75; } }
@media (max-width: 1280px) and (min-width: 1100px) { .v2-hero { --s: 1.15; --ox: 75%; } [dir="rtl"] .v2-hero { --ox: 19%; } .v2-hero-txt, [dir="rtl"] .v2-hero-txt { max-width: 36rem; } }
.v2-stage, .v2-stage * { pointer-events: none; }
.v2-stage { position: absolute; left: var(--ox); top: var(--oy); width: 0; height: 0; z-index: -2; }
.v2-plan svg, .v2-plan img { position: absolute; left: calc(var(--s) * -1500px); top: calc(var(--s) * -1000px); width: calc(var(--s) * 3000px); height: calc(var(--s) * 2300px); max-width: none; opacity: 0; transition: opacity 1.6s var(--ease); }
.v2-plan.on svg, .v2-plan img { opacity: 1; }
/* Voiles (sous le texte, jamais par-dessus) : côté du texte, haut (en-tête) et bas (cartouche) */
.v2-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(11, 13, 34, .75), transparent 18%, transparent 62%, rgba(11, 13, 34, .92) 100%),
    linear-gradient(to right, rgba(11, 13, 34, .97) 0%, rgba(11, 13, 34, .88) 34%, rgba(11, 13, 34, .25) 58%, rgba(11, 13, 34, 0) 72%); }
[dir="rtl"] .v2-hero::before { background: linear-gradient(to bottom, rgba(11, 13, 34, .75), transparent 18%, transparent 62%, rgba(11, 13, 34, .92) 100%),
    linear-gradient(to left, rgba(11, 13, 34, .97) 0%, rgba(11, 13, 34, .88) 34%, rgba(11, 13, 34, .25) 58%, rgba(11, 13, 34, 0) 72%); }
.v2-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(38% 46% at var(--ox) var(--oy), transparent 40%, rgba(11, 13, 34, .55) 100%); }

/* Tracé (unités = mètres ; textes ramenés à une taille fixe à l'écran) */
.sv { direction: ltr; unicode-bidi: isolate; position: absolute; max-width: none; left: calc(var(--s) * -240px); top: calc(var(--s) * -280px); width: calc(var(--s) * 600px); height: calc(var(--s) * 380px); overflow: visible; }
.sv-t { font-family: var(--mono); font-size: calc(12px / var(--s)); fill: rgba(236, 234, 255, .78); letter-spacing: .04em; }
.sv-n { font-weight: 700; fill: #fff; }
.sv-c { fill: rgba(236, 234, 255, .7); font-size: calc(11px / var(--s)); }
.sv-grid path { stroke: rgba(201, 198, 244, .35); stroke-width: calc(1px / var(--s)); fill: none; }
.sv-grid { opacity: .7; -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent); mask-image: radial-gradient(closest-side, #000 40%, transparent); }
.sv-p { fill: none; stroke: #e0995c; stroke-width: calc(2.2px / var(--s)); stroke-linejoin: round; stroke-dasharray: 1; filter: drop-shadow(0 0 6px rgba(224, 153, 92, .55)); }
.sv-fill { opacity: .9; } .sv-fill + .sv-p { } #sv-hatch path { stroke: rgba(224, 153, 92, .32); stroke-width: 1.4; }
.sv-b rect { fill: #0b0d22; stroke: #f2c79d; stroke-width: calc(1.6px / var(--s)); }
.sv-b { transform-box: fill-box; }
.sv-s { stroke: rgba(201, 198, 244, .5); stroke-width: calc(1px / var(--s)); stroke-dasharray: 1; }
.sv-st circle { fill: none; stroke: #6fd27a; stroke-width: calc(1.6px / var(--s)); } .sv-st path { stroke: #6fd27a; stroke-width: calc(1.2px / var(--s)); }
.sv-st .sv-n { fill: #8fe196; }
.sv-dim path { stroke: rgba(242, 199, 157, .8); stroke-width: calc(1px / var(--s)); fill: none; }
.sv-dl { stroke-dasharray: 1; }
.sv-v { fill: #f2c79d; font-weight: 600; }
.sv-area { fill: #fff; font-weight: 700; font-size: calc(13px / var(--s)); }
.sv-o { color: #6fd27a; }
.sv-o circle { fill: none; stroke: currentColor; stroke-width: calc(1.5px / var(--s)); }
.sv-o circle:nth-of-type(3) { fill: currentColor; stroke: none; }
.sv-o path { stroke: currentColor; stroke-width: calc(1.4px / var(--s)); }
.sv-ring2 { transform-origin: 0 0; transform-box: view-box; }
.sv-ol .sv-n { fill: #8fe196; }
.sv-nord path { fill: rgba(236, 234, 255, .85); } .sv-nord .sv-t { font-weight: 700; fill: #fff; }
.sv-scale path { stroke: rgba(236, 234, 255, .75); stroke-width: calc(1.4px / var(--s)); fill: none; }

/* Animation d'ouverture : quadrillage, réticule sur le bureau, station, visées, bornes, contour, cote. État final = état sans animation. */
.sv-grid { animation: sv-fade 1.2s .1s both; }
.sv-o { animation: sv-pop .7s .25s var(--ease) both; transform-box: fill-box; transform-origin: center; }
.sv-ring2 { animation: sv-ping 2.8s 1.2s ease-out infinite; opacity: 0; }
.sv-ol { animation: sv-fade .8s .6s both; }
.sv-st { animation: sv-fade .6s .7s both; }
.sv-s { animation: sv-draw .45s calc(1s + var(--i) * .42s) var(--ease) both, sv-dim 1s calc(3.4s + var(--i) * .1s) both; }
.sv-b { animation: sv-pop .5s calc(1.35s + var(--i) * .42s) var(--ease) both; transform-origin: center; }
.sv-p { animation: sv-draw 1.7s 2.6s cubic-bezier(.6, .1, .3, 1) both; }
.sv-fill { animation: sv-fade 1s 4s both; }
.sv-dl { animation: sv-draw .7s 4.1s var(--ease) both; }
.sv-dim path:first-child, .sv-v, .sv-area { animation: sv-fade .6s 4.4s both; }
.sv-nord, .sv-scale { animation: sv-fade 1s 1.4s both; }
@keyframes sv-fade { from { opacity: 0; } }
@keyframes sv-pop { from { opacity: 0; transform: scale(.2); } }
@keyframes sv-draw { from { stroke-dashoffset: 1; } }
@keyframes sv-dim { to { opacity: .6; } }
@keyframes sv-ping { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }
.v2-hero.paused .sv-ring2 { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .v2-hero .sv *, .v2-hero .sv { animation: none !important; }
  .sv-s { opacity: .6; }
  .v2-plan svg { transition: none; }
}
.a11y-rm .sv-s { opacity: .6; }

/* Texte de l'ouverture */
/* Texte ancré en haut (et non centré) : un changement de hauteur du paragraphe au chargement des polices ne déplace pas le titre (CLS) */
.v2-hero-in { position: relative; display: flex; align-items: flex-start; padding-block: max(6.4rem, calc((100svh - 900px) / 2 + 6.4rem)) 2rem; }
.v2-hero-txt { max-width: 47rem; min-width: 0; flex: 1 1 auto; }
.v2-hero-txt h1, .v2-hero-txt .eyebrow, .v2-hero-txt .lead { overflow-wrap: break-word; hyphens: auto; }
.v2-hero-txt .eyebrow { display: flex; flex-wrap: wrap; }
[dir="rtl"] .v2-hero-txt { max-width: 42rem; }
.v2-hero .eyebrow { color: var(--copper-l); }
.v2-hero h1 { font-size: clamp(2.6rem, 1.4rem + 3.6vw, 4.4rem); font-weight: 790; line-height: 1.04; letter-spacing: -.035em; margin: 0 0 .45em; }
[dir="rtl"] .v2-hero h1 { font-size: clamp(2.3rem, 1.3rem + 3.6vw, 4.2rem); line-height: 1.3; letter-spacing: 0; }
.v2-hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--copper-l), #f2c79d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.v2-hero .lead { color: rgba(236, 234, 255, .84); font-size: clamp(1.05rem, .98rem + .3vw, 1.18rem); max-width: 43rem; }
.v2-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.v2-search { display: flex; align-items: center; gap: .8rem; width: min(100%, 34rem); min-height: 54px; margin-top: 1rem; padding: .7rem 1rem .7rem 1.1rem; border-radius: 14px; text-decoration: none;
  color: rgba(236, 234, 255, .8); background: rgba(255, 255, 255, .06); border: 1px solid rgba(201, 198, 244, .26); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: border-color .25s, background .25s; }
.v2-search:hover { border-color: var(--copper-l); background: rgba(255, 255, 255, .09); }
.v2-search svg { width: 20px; height: 20px; flex: none; color: var(--copper-l); }
.v2-search span { flex: 1; min-width: 0; }
.v2-search kbd { font-family: var(--mono); font-size: .72rem; padding: .2rem .45rem; border-radius: 6px; border: 1px solid rgba(201, 198, 244, .3); color: rgba(236, 234, 255, .7); white-space: nowrap; }
@media (hover: none), (max-width: 700px) { .v2-search kbd { display: none; } }
.v2-guar { list-style: none; margin: 1.2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .92rem; color: rgba(236, 234, 255, .82); }
.v2-guar li { display: inline-flex; align-items: center; gap: .45rem; }
.v2-guar svg { width: 18px; height: 18px; flex: none; color: #6fd27a; }

/* Cartouche (comme sur un plan) : chiffres clés, référence de la carte, attribution OpenStreetMap */
.v2-cart.rv { opacity: 1; transform: none; }
.v2-cart { position: relative; padding-bottom: 1.1rem; }
.v2-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid rgba(201, 198, 244, .2); border-radius: 16px;
  background: rgba(11, 13, 34, .66); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); overflow: hidden; }
.v2-stats li { padding: 1rem 1.3rem; border-inline-start: 1px solid rgba(201, 198, 244, .16); min-width: 0; }
.v2-stats li:first-child { border: 0; }
.v2-stats b { display: block; font-family: var(--mono); font-weight: 500; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem); line-height: 1.1; color: #fff; letter-spacing: -.02em; }
.v2-stats i { font-style: normal; }
.v2-stats small { font-size: .5em; color: var(--copper-l); margin-inline-start: .25em; }
[dir="rtl"] .v2-stats small { font-family: var(--sans); }
.v2-stats span { display: block; margin-top: .3rem; font-size: .84rem; line-height: 1.4; color: rgba(236, 234, 255, .72); }
.v2-osm { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; margin: .7rem .2rem 0; font-size: .78rem; color: rgba(236, 234, 255, .7); }
.v2-osm a { color: #f2c79d; }
.v2-hud { font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; font-size: .7rem; }

/* Tablette et téléphone : le plan occupe le haut, le texte passe dessous */
@media (max-width: 1099px) {
  .v2-hero, [dir="rtl"] .v2-hero { --s: 1.1; --ox: 40%; --oy: 300px; }
  .v2-hero::before, [dir="rtl"] .v2-hero::before { background: linear-gradient(to bottom, rgba(11, 13, 34, .7) 0, transparent 90px, transparent 270px, rgba(11, 13, 34, .9) 360px, #0b0d22 470px); }
  .v2-hero::after { background: radial-gradient(70% 220px at var(--ox) var(--oy), transparent 45%, rgba(11, 13, 34, .5) 100%); }
  .v2-hero-in { padding-block: 370px 1.5rem; }
  .sv-c { display: none; }
  .sv-st, .sv-s, .sv-nord { display: none; }
  .v2-stats { grid-template-columns: 1fr 1fr; }
  .v2-stats li:nth-child(3) { border-inline-start: 0; }
  .v2-stats li:nth-child(n + 3) { border-top: 1px solid rgba(201, 198, 244, .16); }
}
@media (max-width: 480px) {
  .v2-hero, [dir="rtl"] .v2-hero { --s: .95; --oy: 270px; }
  .v2-hero-in { padding-block: 322px 1.2rem; }
  .v2-hero h1 { font-size: min(2.8rem, 12vw); }
  /* Titre arabe calé sur trois lignes, avec ou sans la police web : pas de re-coupure au chargement de la police (CLS) */
  [dir="rtl"] .v2-hero h1 { font-size: min(2.85rem, 11.8vw); line-height: 1.35; max-width: 7em; }
  [lang="ar-MA"] .v2-hero h1 { max-width: 7.5em; }
  [dir="rtl"] .v2-hero h1 { text-wrap: balance; }
  .v2-hero .lead, [dir="rtl"] .v2-hero .lead { font-size: .97rem; }
  .v2-cta .btn { flex: 1 1 100%; justify-content: center; }   /* toujours empilés : pas de re-coupure au chargement des polices */
  .v2-stats li { padding: .8rem .9rem; }
  .v2-guar { gap: .4rem 1rem; font-size: .88rem; }
}

/* ── 2. Aiguilleur (composant existant) + bande des métiers ─────────────────── */
.v2 .orient { background: var(--v2-sand); padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.v2 .orient .sec-head { margin-bottom: 2.2rem; }
.v2 .or-out { box-shadow: 0 40px 90px -40px rgba(11, 13, 34, .7), inset 0 0 0 1px rgba(201, 198, 244, .12); }
@media (max-width: 700px) {
  /* Choix en rangées horizontales défilantes plutôt qu'en longues piles */
  .v2 .or-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -1.2rem; padding: .2rem 1.2rem .5rem; scroll-padding-inline: 1.2rem; }
  .v2 .or-chips::-webkit-scrollbar { display: none; }
  .v2 .or-what { display: grid; grid-auto-flow: column; grid-template-rows: auto auto; grid-auto-columns: max-content; }
  .v2 .or-chip span { white-space: nowrap; }
  .v2 .or-q { padding: 1.1rem 1.2rem; overflow: hidden; }
  .v2 .or-f + .or-f { margin-top: 1.2rem; }
}
.v2-trades { background: var(--v2-sand); padding-block: clamp(1rem, 2vw, 2rem) clamp(4rem, 3rem + 4vw, 7rem); }
.v2-trades-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1.4rem; margin-bottom: 1.6rem; padding-inline-end: 7rem; }
.v2-trades-head .eyebrow { margin: 0; }
.v2-trades-head h2 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.9rem); margin: 0; }
.v2-car-trades { --car-w: minmax(11rem, calc((100% - 5 * 1rem) / 6)); }
.v2-car-trades .v2-car-list { gap: 1rem; }
.v2-trade { position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--text); background: var(--v2-paper); border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.1rem 1.1rem; overflow: hidden;
  --illu-acc: var(--copper); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.v2-trade:hover { transform: translateY(-4px); border-color: rgba(156, 90, 42, .45); box-shadow: 0 24px 50px -30px rgba(21, 17, 90, .45); }
.v2-trade-art { display: block; color: var(--n-text); margin: -.2rem auto .3rem; width: 100%; max-width: 150px; aspect-ratio: 1; }
.v2-trade-art svg { width: 100%; height: 100%; }
.v2-trade-art .ic { width: 64px; height: 64px; margin: 2.6rem auto; }
.v2-trade-n { position: absolute; top: .8rem; inset-inline-start: 1rem; font-family: var(--mono); font-size: .72rem; color: var(--copper-ink); }
.v2-trade h3 { font-size: 1.06rem; margin: 0 0 .35rem; line-height: 1.25; }
.v2-trade p { font-size: .9rem; line-height: 1.5; color: var(--muted); margin: 0 0 .8rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.v2-go { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-weight: 650; font-size: .92rem; color: var(--g-text); }
.v2-go svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
[dir="rtl"] .v2-go svg { transform: scaleX(-1); }
a:hover > .v2-go svg { transform: translateX(3px); } [dir="rtl"] a:hover > .v2-go svg { transform: scaleX(-1) translateX(3px); }
/* Les dessins se tracent quand la bande apparaît */
.v2-trades .illu [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 0; }
.v2-trades.anim .illu [pathLength] { stroke-dashoffset: 1; }
.v2-trades.anim.in .illu [pathLength] { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease); }
.v2-trades.anim.in li:nth-child(2) .illu [pathLength] { transition-delay: .12s; } .v2-trades.anim.in li:nth-child(3) .illu [pathLength] { transition-delay: .24s; }
.v2-trades.anim.in li:nth-child(4) .illu [pathLength] { transition-delay: .36s; } .v2-trades.anim.in li:nth-child(5) .illu [pathLength] { transition-delay: .48s; }
.v2-trades.anim.in li:nth-child(6) .illu [pathLength] { transition-delay: .6s; }
@media (max-width: 700px) { .v2-trades-head { padding-inline-end: 0; } .v2-car-trades { --car-wm: 64%; } .v2-trade p { -webkit-line-clamp: 4; } }

/* ── 3. La preuve ─────────────────────────────────────────────────────────── */
.v2-proof { background: var(--v2-paper); }
.v2-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.2rem 3rem; margin-bottom: 2rem; }
.v2-head > div { max-width: 46rem; min-width: 0; }
.v2-trades-head > * { min-width: 0; max-width: 100%; }
.v2-head h2 { margin: 0; }
.v2-head > p { margin: 0; max-width: 34rem; color: var(--muted); }
.v2-more { color: var(--text); }
.v2-proof .rm { margin-top: 0; }
.v2-clients { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2.2rem; }
.v2-clients li { font-weight: 700; font-size: clamp(1rem, .9rem + .4vw, 1.25rem); letter-spacing: -.01em; color: var(--muted); }
.v2-clients li + li::before { content: "◆"; font-size: .45em; color: var(--copper); vertical-align: middle; margin-inline-end: 2.2rem; margin-inline-start: -2.2rem; position: relative; inset-inline-start: 1.1rem; }

/* ── 4. La méthode ────────────────────────────────────────────────────────── */
.v2 .v2-method { background: var(--v2-night); }
.v2 .v2-method .steps p { font-size: .98rem; color: rgba(236, 234, 255, .76); }
.v2 .v2-method .steps h3 { font-size: 1.12rem; }
.v2 .v2-method .sec-head p { color: rgba(236, 234, 255, .8); }
@media (max-width: 980px) { .v2 .v2-method .steps { gap: 1.4rem; } .v2 .v2-method .sec-head { margin-bottom: 2.2rem; } }

/* ── 5. Ressources à onglets ──────────────────────────────────────────────── */
.v2-res { background: var(--v2-sand); }
.v2-tablist { display: flex; flex-wrap: wrap; gap: .4rem; padding: .35rem; margin-bottom: 1.6rem; border-radius: 999px; background: var(--v2-paper); border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.v2-tablist[hidden] { display: none; }
.v2-tablist [role="tab"] { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem 1.15rem; border: 0; border-radius: 999px; background: transparent; color: var(--text); font: inherit; font-weight: 650; font-size: .98rem; cursor: pointer; }
.v2-tablist [role="tab"][aria-selected="true"] { background: var(--v2-night); color: #fff; }
:root.v2[data-theme="dark"] .v2-tablist [role="tab"][aria-selected="true"] { background: var(--copper-btn); }
@media (prefers-color-scheme: dark) { :root.v2:not([data-theme="light"]) .v2-tablist [role="tab"][aria-selected="true"] { background: var(--copper-btn); } }
.v2-tablist [role="tab"]:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
.v2-cnt { font-family: var(--mono); font-size: .72rem; opacity: .7; }
.v2-panel + .v2-panel { margin-top: 3rem; }
.v2-tabs.js .v2-panel + .v2-panel { margin-top: 0; }
.v2-tabs.js .v2-ptitle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.v2-ptitle { font-size: 1.3rem; margin-bottom: 1rem; }
.v2-car-res .v2-car-nav { inset-block-start: -5rem; }
.v2-rc { display: flex; flex-direction: column; text-decoration: none; color: var(--text); background: var(--v2-paper); border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem 1.4rem 1.3rem; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.v2-rc:hover { transform: translateY(-3px); border-color: rgba(156, 90, 42, .45); box-shadow: 0 24px 50px -30px rgba(21, 17, 90, .4); }
.v2-rc-art .ic { width: 44px; height: 44px; color: var(--n-text); margin-bottom: .8rem; }
.v2-rc-art .ic .acc { color: var(--copper); }
.v2-rc-tag { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--g-text); margin-bottom: .6rem; }
[dir="rtl"] .v2-rc-tag { font-family: var(--sans); letter-spacing: 0; font-size: .85rem; text-transform: none; }
.v2-rc h4 { font-size: 1.15rem; line-height: 1.3; margin: 0 0 .5rem; letter-spacing: -.01em; }
.v2-rc p { font-size: .97rem; line-height: 1.55; color: var(--muted); margin: 0 0 1rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.v2-all { margin: 1.3rem 0 0; }
.v2-all a, .v2-link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--copper-ink); text-decoration: none; }
.v2-all a:hover, .v2-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.v2-all svg, .v2-link svg { width: 17px; height: 17px; } [dir="rtl"] .v2-all svg, [dir="rtl"] .v2-link svg { transform: scaleX(-1); }
@media (max-width: 700px) { .v2-tablist { width: 100%; } .v2-tablist [role="tab"] { flex: 1 1 auto; justify-content: center; padding-inline: .7rem; } }

/* ── 6. Le cabinet et le contact ──────────────────────────────────────────── */
.v2-firm { background: var(--v2-night); color: #eeecff; }
.v2-firm-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: start; }
.v2-boss { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 2rem; padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: 24px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(201, 198, 244, .14); }
.v2-ph { margin: 0; }
.v2-ph-art { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; display: grid; place-items: center; color: #c9c6f4; --illu-acc: var(--copper-l);
  background: radial-gradient(80% 60% at 70% 20%, rgba(224, 153, 92, .22), transparent 60%), linear-gradient(165deg, #1b1f5c, #0b0d22 75%); box-shadow: inset 0 0 0 1px rgba(201, 198, 244, .16); }
.v2-ph-art::before { content: ""; position: absolute; inset: 0; opacity: .35; background-image: linear-gradient(rgba(201, 198, 244, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(201, 198, 244, .14) 1px, transparent 1px); background-size: 22px 22px; }
.v2-ph-art .illu { position: relative; width: 82%; height: auto; }
.v2-ph-logo { position: absolute; width: 46%; inset-block-end: 7%; inset-inline-end: 7%; opacity: .55; }
.v2-ph figcaption { margin-top: .7rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(236, 234, 255, .65); text-align: center; }
[dir="rtl"] .v2-ph figcaption { font-family: var(--sans); letter-spacing: 0; text-transform: none; font-size: .9rem; }
.v2-firm .eyebrow { color: var(--copper-l); }
.v2-boss h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
.v2-boss-txt > p { color: rgba(236, 234, 255, .8); font-size: 1rem; }
.v2-guar-d { margin: 0 0 1.2rem; color: #fff; font-weight: 600; flex-direction: column; gap: .4rem; }
.v2-cv { margin: 0 0 1.2rem; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.4rem; }
.v2-cv dt { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--copper-l); }
[dir="rtl"] .v2-cv dt { font-family: var(--sans); letter-spacing: 0; font-size: .85rem; }
.v2-cv dd { margin: .15rem 0 0; font-size: .9rem; line-height: 1.45; color: rgba(236, 234, 255, .78); }
.v2-firm .v2-link { color: var(--copper-l); }
.v2-contact h2 { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.6rem); }
.v2-contact .lead { color: rgba(236, 234, 255, .78); }
.v2-contact .guided a { color: var(--copper-l); }
.v2-contact .contact-card { margin-top: 1.8rem; }
@media (max-width: 1060px) { .v2-firm-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .v2-boss { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .v2-ph { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); align-items: center; gap: 1rem; }
  .v2-ph figcaption { margin: 0; text-align: start; }
  .v2-cv { grid-template-columns: minmax(0, 1fr); }
}

/* Espacement des sections plus serré sur téléphone (accueil plus court) */
@media (max-width: 700px) { .v2 .v2-proof, .v2 .v2-method, .v2 .v2-res, .v2 .v2-firm, .v2 .orient { padding-block: 3.6rem; } .v2 .orient { padding-bottom: 1.5rem; } }

/* ── Téléphone : accueil resserré (objectif ≤ 9 000 px à 390 px) ─────────── */
@media (max-width: 700px) {
  .v2 .orient .or-short { display: none; }                      /* doublon des choix de l'aiguilleur */
  .v2 .orient .sec-head { margin-bottom: 1.4rem; gap: .8rem; }
  .v2 .v2-proof .rm-col-main { display: none; }                 /* le détail A (nord du Maroc) suffit sur petit écran */
  .v2 .v2-proof .rm-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v2 .v2-proof .rm-stats > div { display: block; padding: .5rem .6rem; }
  .v2 .v2-proof .rm-stats b { font-size: 1.45rem; } .v2 .v2-proof .rm-stats span { font-size: .78rem; line-height: 1.3; margin-top: .25rem; }
  .v2-clients { gap: .3rem 1.4rem; margin-top: 1.4rem; } .v2-clients li { font-size: .95rem; }
  .v2-clients li + li::before { margin-inline-end: 1.4rem; margin-inline-start: -1.4rem; inset-inline-start: .7rem; }
  .v2 .v2-method .steps p { font-size: .93rem; line-height: 1.55; }
  .v2 .v2-method .steps h3 { margin-bottom: .3rem; }
  .v2 .v2-method .steps { gap: 1.1rem; }
  .v2-tablist { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-radius: 16px; }
  .v2-tablist [role="tab"] { white-space: nowrap; font-size: .92rem; }
  .v2-cv { display: none; }                                    /* parcours détaillé : page « Le cabinet » */
  .v2-boss h2 { font-size: 1.6rem; }
  .v2-boss-txt > p { font-size: .97rem; line-height: 1.6; }
  .v2-contact h2 { font-size: 2rem; }
  .v2-contact .v2-cta .btn { flex: 1 1 auto; justify-content: center; }
  .v2-hero .lead { font-size: 1rem; line-height: 1.6; }
  .v2-search { min-height: 50px; font-size: .95rem; }
  .v2-search span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .v2-osm { font-size: .72rem; }
}
/* Méthode : frise horizontale défilante sur téléphone */
.v2-steps-vp:focus-visible { outline: 2px solid var(--copper-l); outline-offset: 6px; border-radius: 8px; }
@media (max-width: 700px) {
  .v2-steps-vp { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -1.25rem; padding: 0 1.25rem .5rem; scroll-padding-inline: 1.25rem; }
  .v2-steps-vp::-webkit-scrollbar { display: none; }
  .v2 .v2-method .steps, .v2 .v2-method .steps.fx { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; gap: 1.1rem; }
  .v2 .v2-method .steps li { padding: 4.2rem 0 0; scroll-snap-align: start; }
  .v2-hero .v2-cta .btn { padding-block: .8rem; }
  .v2-stats span { font-size: .78rem; }
  .v2-stats b { font-size: 1.45rem; }
}
@media (max-width: 700px) {
  .v2 .orient .sec-head > p { display: none; }                  /* les deux questions se suffisent */
  .v2 main h2 { font-size: 1.75rem; }
  .v2 .v2-proof, .v2 .v2-method, .v2 .v2-res, .v2 .v2-firm, .v2 .orient { padding-top: 3.2rem; padding-bottom: 3.2rem; }
  .v2 .orient { padding-bottom: 1.2rem; }
  .v2-guar-d { display: none; }
  .v2-contact .contact-card { padding: 1.3rem; }
  .v2-contact .contact-card dl { grid-template-columns: 1fr 1fr; gap: .9rem 1rem; }
  .v2-contact .contact-card dl > div:first-child, .v2-contact .contact-card dl > div:last-child { grid-column: 1 / -1; }
  .v2-contact .contact-card dd { font-size: .98rem; }
  .v2-head { margin-bottom: 1.4rem; }
}
@media (max-width: 700px) {
  .v2 .v2-proof .rm-hud { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; }
  .v2 .v2-proof .rm-card { min-height: 0; }
  .v2 .v2-proof .rm-list { max-height: 10.5rem; }
  .v2-clients li { font-size: .88rem; }
  .v2 .or-sum { display: none; }
}
@media (max-width: 700px) {
  .v2-trade-art { max-width: 112px; }
  .v2-trades { padding-bottom: 2.6rem; }
  .v2-trades-head { margin-bottom: 1rem; }
  .v2-ph-art { max-height: 120px; }
  .v2-ph { grid-template-columns: 6rem minmax(0, 1fr); }
  .v2-guar { margin-top: 1rem; }
  .v2-cart { padding-bottom: .8rem; }
}
@media (max-width: 700px) {
  .v2-head { gap: .8rem; }
  .v2-more { padding: .6rem 1rem; font-size: .92rem; }
  .v2-head > p { font-size: .98rem; line-height: 1.6; }
  .v2-res .v2-all { margin-top: .8rem; }
  .v2-contact .lead { font-size: 1rem; }
}
@media (max-width: 360px) { .v2-hero .lead, [dir="rtl"] .v2-hero .lead { font-size: .92rem; } }
.v2 .or-act > * { max-width: 100%; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 700px) { .v2-hud { display: none; } .v2-osm { margin-top: .5rem; } .v2-guar { gap: .3rem 1rem; } }
