/* ==========================================================
   PXI — Feuille de styles principale  (pxi.css)
   Conseil · Formation · Ingénierie · Négoce
   Version : 1.0.0
   ==========================================================

   TABLE DES MATIÈRES :
    1.  Design Tokens          — Variables CSS globales (couleurs, typo, espacements)
    2.  Reset                  — Remise à zéro des styles navigateur + base body
    3.  Navigation             — Barre nav fixe, logo, liens, dropdown langue
    4.  Mobile Drawer          — Menu hamburger et panel de navigation mobile
    5.  Hero                   — Section plein-écran avec orbes, particules, stats
    6.  Boutons                — btn-p (primaire bleu) + btn-s (secondaire outline)
    7.  Éléments communs       — Tags de section, titres, descriptions, révélation
    8.  Promesse PXI           — Section P·X·I (Performance/eXcellence/Innovation)
    9.  Services               — Grille 2×2 des 4 pôles
   10.  Spectre Technique       — Grille 2 colonnes des 14 domaines d'expertise
   11.  Méthodologie            — Timeline 4 étapes (cercles + connecteur)
   12.  Études de cas           — État vide (aucune référence publiée)
   13.  Pôle Formation          — Layout 2 colonnes titre + cartes de cours
   14.  Pôle Négoce             — Layout carte SVG + grille 2×2 valeurs
   15.  Pourquoi PXI            — Grille 3 différenciateurs
   16.  Contact                 — Section CTA sombre + formulaire email
   17.  Footer                  — Pied de page sombre
   18.  Animations globales     — Fond animé, grid drift, reveal, compteurs
   19.  RTL                     — Surcharges pour la langue arabe (dir="rtl")
   20.  Responsive              — Breakpoints tablette (≤1024px) et mobile (≤640px)

   CONVENTIONS :
    - Toutes les couleurs sont des variables CSS (--blue, --ink, etc.)
    - Les tailles de texte utilisent l'échelle --text-* (rem)
    - Les ombres utilisent --sh-xs / --sh-sm / --sh-md / --sh-lg
    - Les animations d'entrée utilisent les classes .reveal / .reveal-left / etc.
    - Les règles RTL préfixées .rtl sont appliquées dynamiquement par pxi.js

   POLICES (auto-hébergées dans fonts/ — aucune dépendance CDN) :
    - Syne        → Titres display (fd)  — weight 400/600/700/800
    - Lato        → Corps de texte (fb) — weight 300/400/700
    - JetBrains Mono → Labels, badges (fm) — weight 400/500
    - Cairo       → Version arabe (fa)  — weight 300/400/600/700/800
   ========================================================== */

/* ── Chargement des polices Google Fonts ─────────────────────
   Toutes les variantes de poids nécessaires sont déclarées ici.
   Cairo est nécessaire pour le rendu correct de l'arabe.          */
/* ── Self-hosted fonts — no Google Fonts CDN, no IP leakage, GDPR-clean ── */

/* Syne — display/titles */
@font-face { font-family:'Syne'; src:url('fonts/syne-latin-400.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Syne'; src:url('fonts/syne-latin-600.woff2') format('woff2'); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:'Syne'; src:url('fonts/syne-latin-700.woff2') format('woff2'); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:'Syne'; src:url('fonts/syne-latin-800.woff2') format('woff2'); font-weight:800; font-style:normal; font-display:swap; }

/* Lato — body text */
@font-face { font-family:'Lato'; src:url('fonts/lato-latin-300.woff2') format('woff2'); font-weight:300; font-style:normal; font-display:swap; }
@font-face { font-family:'Lato'; src:url('fonts/lato-latin-400.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Lato'; src:url('fonts/lato-latin-700.woff2') format('woff2'); font-weight:700; font-style:normal; font-display:swap; }

/* JetBrains Mono — labels/badges */
@font-face { font-family:'JetBrains Mono'; src:url('fonts/jetbrains-mono-latin-400.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'JetBrains Mono'; src:url('fonts/jetbrains-mono-latin-500.woff2') format('woff2'); font-weight:500; font-style:normal; font-display:swap; }

/* Cairo — Arabic RTL */
@font-face { font-family:'Cairo'; src:url('fonts/cairo-arabic-300.woff2') format('woff2'); font-weight:300; font-style:normal; font-display:swap; unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF; }
@font-face { font-family:'Cairo'; src:url('fonts/cairo-arabic-400.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF; }
@font-face { font-family:'Cairo'; src:url('fonts/cairo-arabic-600.woff2') format('woff2'); font-weight:600; font-style:normal; font-display:swap; unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF; }
@font-face { font-family:'Cairo'; src:url('fonts/cairo-arabic-700.woff2') format('woff2'); font-weight:700; font-style:normal; font-display:swap; unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF; }
@font-face { font-family:'Cairo'; src:url('fonts/cairo-arabic-800.woff2') format('woff2'); font-weight:800; font-style:normal; font-display:swap; unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF; }
@font-face { font-family:'Cairo'; src:url('fonts/cairo-latin-300.woff2') format('woff2'); font-weight:300; font-style:normal; font-display:swap; unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Cairo'; src:url('fonts/cairo-latin-400.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Cairo'; src:url('fonts/cairo-latin-600.woff2') format('woff2'); font-weight:600; font-style:normal; font-display:swap; unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Cairo'; src:url('fonts/cairo-latin-700.woff2') format('woff2'); font-weight:700; font-style:normal; font-display:swap; unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Cairo'; src:url('fonts/cairo-latin-800.woff2') format('woff2'); font-weight:800; font-style:normal; font-display:swap; unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* Plus Jakarta Sans — nav/UI controls */
@font-face { font-family:'Plus Jakarta Sans'; src:url('fonts/plus-jakarta-sans-latin-400.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Plus Jakarta Sans'; src:url('fonts/plus-jakarta-sans-latin-500.woff2') format('woff2'); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:'Plus Jakarta Sans'; src:url('fonts/plus-jakarta-sans-latin-600.woff2') format('woff2'); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:'Plus Jakarta Sans'; src:url('fonts/plus-jakarta-sans-latin-700.woff2') format('woff2'); font-weight:700; font-style:normal; font-display:swap; }


/* ═══════════════════════════════════════════════════════════
   1. DESIGN TOKENS
   Variables CSS globales — modifier ici pour changer le thème
   de tout le site sans toucher aux règles individuelles.
   ═══════════════════════════════════════════════════════════ */
:root {
  /* ── Palette de couleurs ─────────────────────────────────── */
  --bg:        #F4F7FC;  /* Fond de page — gris-bleu très clair */
  --surface:   #FFFFFF;  /* Fond des cartes et sections blanches */
  --surface-2: #EBF0F9;  /* Fond secondaire légèrement teinté */
  --ink:       #111827;  /* Texte principal — quasi-noir */
  --ink-soft:  #374151;  /* Texte secondaire — gris foncé */
  --ink-mute:  #6B7280;  /* Texte tertiaire / labels / sous-titres */

  /* Bleu principal — utilisé pour les CTA, liens actifs, accents */
  --blue:      #1D4ED8;  /* Bleu PXI principal */
  --blue-lt:   #EFF6FF;  /* Version très claire (fond des tags bleus) */
  --blue-mid:  #2563EB;  /* Version légèrement plus claire (hover) */
  --blue-dark: #1E3A8A;  /* Version sombre (états pressés) */

  --accent:    #F97316;  /* Orange — accents, dégradés, gradient bar */
  --accent-lt: #FFF7ED;  /* Orange très clair (fond des icônes orange) */
  --success:   #059669;  /* Vert — indicateurs de succès */

  /* Bordures */
  --border:    #E5E7EB;  /* Bordure standard (la plus utilisée) */
  --border-md: #D1D5DB;  /* Bordure légèrement plus marquée */

  /* ── Ombres portées (shadow) ─────────────────────────────── */
  /* Utiliser la variable la plus légère qui convient au contexte */
  --sh-xs: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);   /* Très subtile */
  --sh-sm: 0 4px 12px rgba(0,0,0,.06), 0 2px 6px rgba(0,0,0,.04);  /* Cartes repos */
  --sh-md: 0 10px 30px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.05);/* Cartes hover */
  --sh-lg: 0 24px 60px rgba(0,0,0,.10), 0 8px 20px rgba(0,0,0,.06);/* Modales/panels */

  /* ── Échelle typographique ──────────────────────────────────
     Basée sur 16px (1rem). Respecte les tailles WCAG AA minimum. */
  --text-xs:   0.75rem;   /* 12px — étiquettes de section, badges */
  --text-sm:   0.875rem;  /* 14px — descriptions secondaires */
  --text-base: 1rem;      /* 16px — corps de texte standard */
  --text-lg:   1.125rem;  /* 18px — texte lead / intro */
  --text-xl:   1.25rem;   /* 20px — titres de cartes */
  --text-2xl:  1.5rem;    /* 24px — titres de sous-sections */
  --text-3xl:  1.875rem;  /* 30px */
  --text-4xl:  2.25rem;   /* 36px */
  --text-5xl:  3rem;      /* 48px */

  /* ── Familles de polices ─────────────────────────────────── */
  --fd: 'Syne', sans-serif;             /* Display : titres, logos, nums */
  --fb: 'Lato', sans-serif;            /* Body : corps de texte */
  --fm: 'JetBrains Mono', monospace;   /* Mono : labels, tags, badges */
  --fa: 'Cairo', sans-serif;           /* Arabe : activée via .rtl */
  --fn: 'Plus Jakarta Sans', sans-serif; /* Nav : liens, CTA, contrôles */

  /* ── Espacements globaux ─────────────────────────────────── */
  --section-py:  clamp(3.5rem, 6vw, 5.5rem); /* Padding vertical des sections */
  --container:   1200px;   /* Largeur max du contenu centré */
  --radius:      12px;     /* Border-radius standard des cartes */
  --radius-lg:   20px;     /* Border-radius large (modales, grandes cartes) */
}

/* ═══════════════════════════════════════════════════════════
   2. RESET & BASE
   Annule les marges/paddings par défaut du navigateur,
   définit le comportement de base du document et du body.
   ═══════════════════════════════════════════════════════════ */

/* Universal box-sizing — inclut border et padding dans la taille */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Défilement fluide pour les ancres (#section-id) */
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);          /* Fond de page */
  color: var(--ink);              /* Couleur de texte par défaut */
  font-family: var(--fb);         /* Police corps de texte */
  font-size: var(--text-base);    /* 16px */
  line-height: 1.75;              /* Interligne confortable pour la lecture */
  overflow-x: hidden;             /* Évite le débordement horizontal (animations) */
  -webkit-font-smoothing: antialiased;       /* Lissage des polices — WebKit */
  -moz-osx-font-smoothing: grayscale;        /* Lissage des polices — Firefox macOS */
}

/* Classe RTL appliquée par pxi.js lors du changement vers l'arabe */
body.rtl { direction: rtl; text-align: right; font-family: var(--fa); }

/* Réinitialisations communes */
img, svg { display: block; max-width: 100%; } /* Bloque le display inline des images */
a { color: inherit; text-decoration: none; }   /* Liens sans décoration par défaut */
button { cursor: pointer; font-family: inherit; } /* Boutons héritent de la police */
ul { list-style: none; }                          /* Listes sans puces */

/* Styles de focus pour la navigation clavier (accessibilité WCAG AA) */
:focus-visible {
  outline: 3px solid var(--blue); /* Anneau bleu visible au clavier */
  outline-offset: 3px;
  border-radius: 4px;
}

/* Scrollbar personnalisée (WebKit uniquement — Chrome, Safari, Edge) */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 2px; }

/* Conteneur centré standard — utilisé dans toutes les sections */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

/* ═══════════════════════════════════════════════════════════
   3. NAVIGATION
   Barre fixe toujours visible. z-index: 9999 pour rester
   au-dessus de toutes les sections et animations.
   ⚠️ backdrop-filter est INTENTIONNELLEMENT absent : il crée
   un contexte de composition qui emprisonne les enfants et
   rend le dropdown de langue invisible (bug cross-browser).
   ═══════════════════════════════════════════════════════════ */
nav {
  position: fixed;           /* Reste visible au défilement */
  top: 0; left: 0; right: 0;
  z-index: 9999;             /* Au-dessus de tout le contenu */
  background: #ffffff;       /* Fond opaque — pas de backdrop-filter */
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,.08), 0 2px 12px rgba(0,0,0,.04);
  height: 68px;
  overflow: visible;         /* CRITIQUE : permet au dropdown de déborder */
}

/* Conteneur interne centré de la nav */
.nav-inner {
  max-width: var(--container); margin: 0 auto;
  height: 100%; padding: 0 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  overflow: visible;
  flex-wrap: nowrap;
  direction: ltr; /* ALWAYS ltr — logo left, links center, nav-right always right */
}

/* ── Logo ─────────────────────────────────────────────────── */
.logo {
  font-family: var(--fd); font-size: 1.4rem; font-weight: 800;
  letter-spacing: .08em; color: var(--ink);
  display: flex; align-items: center; gap: .4rem; flex-shrink: 0;
  /* direction: ltr FORCÉ — empêche l'inversion "IXP" en mode arabe RTL */
  direction: ltr;
  unicode-bidi: embed;
}
.logo-ac { color: var(--blue); }   /* Lettre I colorée en bleu dans PXI */

/* Point animé à droite du logo — indique l'activité/vitalité */
.logo-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);           /* Orange accent */
  animation: pulse 2.5s ease-in-out infinite; /* Pulsation douce */
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ── Liens de navigation desktop ────────────────────────────── */
.nav-links {
  display: flex; gap: 0; flex: 1;
  justify-content: center; min-width: 0;
  flex-wrap: nowrap;
  overflow: visible;   /* MUST be visible — dropdown panel escapes this container */
  padding: 0;          /* override browser default ul padding-inline-start:40px */
  margin: 0;
  list-style: none;
}
.nav-links li {
  display: flex;       /* make li a flex container so button/a fills it */
  align-items: center;
  padding: 0; margin: 0;
  list-style: none;
}
.nav-links a {
  font-family: var(--fn); font-size: .8rem; font-weight: 600;
  letter-spacing: .03em; text-transform: uppercase;
  color: var(--ink-soft); padding: .5rem .7rem;
  border-radius: 6px; transition: color .18s, background .18s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--blue); background: var(--blue-lt); }

/* ── RTL nav overrides — Arabic script must not be uppercased or letter-spaced ── */
.rtl .nav-links a,
.rtl .nav-dd-trigger {
  font-family: var(--fa);
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;       /* larger — Arabic words are shorter, need more size to balance */
  font-weight: 600;
  padding: .5rem 1rem;   /* generous padding to spread items across the center zone */
  direction: rtl;
  unicode-bidi: embed;
}
/* Add gap between li items in Arabic to spread them out */
.rtl .nav-links { gap: .25rem; flex-direction: row-reverse; }
/* RTL nav-inner: same gap as LTR — Cairo narrower so fits fine */
.rtl .nav-inner { gap: 1rem; }
/* RTL: hide CTA + divider — saves ~130px */
.rtl .nav-cta    { display: none; }
.rtl .nav-divider { display: none; }
/* RTL nav-links: centered like LTR, direction:ltr on nav-inner prevents order reversal */
.rtl .nav-links  { flex: 1; justify-content: center; }
/* RTL nav-right: stays at right edge naturally in ltr nav-inner */
.rtl .nav-right  { margin-left: 0; }

/* ── Solutions dropdown trigger ─────────────────────────────── */
.nav-has-dd { position: relative; }

.nav-dd-trigger {
  display: flex; align-items: center; gap: .3rem;
  font-family: var(--fn); font-size: .8rem; font-weight: 600;
  letter-spacing: .03em; text-transform: uppercase;
  color: var(--ink-soft); padding: .5rem .7rem;
  border-radius: 6px; background: transparent; border: none;
  transition: color .18s, background .18s; white-space: nowrap;
  cursor: pointer;
}
.nav-dd-trigger:hover,
.nav-has-dd.open .nav-dd-trigger { color: var(--blue); background: var(--blue-lt); }

.nav-dd-chevron { transition: transform .25s; flex-shrink: 0; opacity: .7; }
.nav-has-dd.open .nav-dd-chevron { transform: rotate(180deg); opacity: 1; }

/* ── Solutions dropdown panel ───────────────────────────────── */
.nav-solutions-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0; transform: translateY(-6px);
  width: 360px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,.11), 0 4px 16px rgba(0,0,0,.06);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 10001;
  overflow: hidden;
}
.nav-has-dd.open .nav-solutions-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0);
}

/* Vertical list */
.nsm-inner {
  display: flex; flex-direction: column;
  padding: .4rem;
}

/* Each service item — clean text-only row */
.nsm-item {
  display: flex; flex-direction: column;
  padding: .85rem 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: background .15s, border-color .15s;
  position: relative;
}
.nsm-item:hover {
  background: var(--blue-lt);
  border-left-color: var(--blue);
}

.nsm-name {
  font-family: var(--fn); font-size: .82rem; font-weight: 700;
  color: var(--ink); line-height: 1.3; margin-bottom: .22rem;
  letter-spacing: .01em;
  transition: color .15s;
}
.nsm-item:hover .nsm-name { color: var(--blue); }

.nsm-desc { display: none; }

/* Thin separator between items */
.nsm-item + .nsm-item {
  border-top: 1px solid var(--border);
  border-radius: 0;
}
.nsm-item:first-child { border-radius: 8px 8px 0 0; }
.nsm-item:last-child  { border-radius: 0 0 8px 8px; }

/* nsm-footer removed */

/* "See all services" bottom text link */
.nsm-all {
  display: block;
  padding: .65rem 1.1rem;
  font-family: var(--fm); font-size: .68rem; font-weight: 600;
  color: var(--ink-mute); letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none;
  border-top: 1px solid var(--border);
  text-align: right;
  transition: color .15s, letter-spacing .2s;
}
.nsm-all:hover { color: var(--blue); letter-spacing: .15em; }

/* ── Mobile drawer Solutions group ──────────────────────────── */
.drawer-group-label {
  font-family: var(--fm); font-size: .65rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue); padding: .5rem 1rem .25rem;
  margin-top: .5rem;
}
/* RTL: use Cairo, no uppercase/letter-spacing */
.rtl .drawer-group-label {
  font-family: var(--fa);
  text-transform: none;
  letter-spacing: 0;
  font-size: .8rem;
  text-align: right;
}
.drawer-group {
  display: flex; flex-direction: column;
  background: var(--blue-lt); border-radius: 10px;
  margin-bottom: .5rem; overflow: hidden;
}
.drawer-group a {
  font-family: var(--fn); font-size: .9rem; font-weight: 600;
  letter-spacing: .03em; text-transform: uppercase;
  color: var(--blue); padding: .65rem 1.1rem;
  border-bottom: 1px solid rgba(29,78,216,.1);
  transition: background .15s;
}
.drawer-group a:last-child { border-bottom: none; }
.drawer-group a:hover { background: rgba(29,78,216,.1); }

/* Groupe droit : sélecteur de langue + CTA */
.nav-right { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; position: relative; }

/* ── Dropdown de langue ─────────────────────────────────────── */

/* Conteneur du dropdown — isolation crée un nouveau contexte d'empilement */
.lang-dd {
  position: relative;
  overflow: visible;
  isolation: isolate;
  z-index: 10000;
}

/* Bouton déclencheur (affiche "FR ▾") */
.lang-trigger {
  display: flex; align-items: center; justify-content: center; gap: .35rem;
  padding: .42rem .65rem;
  background: var(--surface-2); border: 1px solid var(--border-md);
  border-radius: 8px; font-family: var(--fn); font-size: var(--text-xs);
  font-weight: 600; color: var(--ink-soft);
  transition: all .2s; user-select: none;
  letter-spacing: .08em; cursor: pointer;
}
.lang-trigger:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-lt); }
.lang-globe { flex-shrink: 0; opacity: .75; transition: opacity .2s; }
.lang-trigger:hover .lang-globe,
.lang-dd.open .lang-globe { opacity: 1; }
.lang-trigger svg:not(.lang-globe) { transition: transform .25s; flex-shrink: 0; }    /* Chevron */
.lang-dd.open .lang-trigger { border-color: var(--blue); color: var(--blue); background: var(--blue-lt); }
.lang-dd.open .lang-trigger svg { transform: rotate(180deg); }  /* Chevron retourné quand ouvert */

/* Code langue dans le bouton (ex: "FR") */
.lang-code { text-transform: uppercase; font-weight: 600; letter-spacing: .08em; line-height: 1; }

/* Menu déroulant — affiché par la classe .open ajoutée par pxi.js */
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 96px;
  background: #ffffff;    /* Blanc opaque — pas de transparence */
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.14), 0 4px 10px rgba(0,0,0,.08);
  padding: .3rem;
  /* État caché par défaut */
  opacity: 0;
  visibility: hidden;     /* visibility évite le tabindex en mode caché */
  transform: translateY(-4px); /* Légère remontée initiale */
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 10001;         /* Au-dessus du lang-dd (10000) */
  pointer-events: none;   /* Non cliquable quand invisible */
}
.rtl .lang-menu { right: auto; left: 0; } /* En RTL : aligné à gauche */

/* État ouvert — déclenché par .lang-dd.open via pxi.js */
.lang-dd.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;   /* Rétablir les clics */
}

/* Options individuelles dans le menu */
.lang-opt {
  display: flex; align-items: center; justify-content: space-between; gap: .4rem;
  width: 100%; padding: .38rem .7rem;
  background: transparent; border: none;
  border-radius: 5px; font-family: var(--fm);
  font-size: var(--text-xs); font-weight: 600; color: var(--ink-soft);
  text-align: left; transition: all .13s;
  letter-spacing: .08em; text-transform: uppercase;
}
.rtl .lang-opt { text-align: right; flex-direction: row-reverse; } /* RTL */
.lang-opt:hover  { background: var(--blue-lt); color: var(--blue); }
.lang-opt.active { background: var(--blue); color: #fff; font-weight: 700; }
.lang-opt-flag   { display: none; }     /* Drapeaux désactivés — codes seuls */
.lang-opt-name   { flex: 1; }           /* Le code langue prend l'espace */
.lang-opt-check  { font-size: .65rem; opacity: 0; flex-shrink: 0; }  /* Coche ✓ */
.lang-opt.active .lang-opt-check { opacity: 1; } /* Afficher la coche pour l'actif */

/* ── Bouton CTA dans la nav ─────────────────────────────────── */
.nav-cta {
  font-family: var(--fn); font-size: var(--text-sm); font-weight: 700;
  letter-spacing: .03em; text-transform: uppercase;
  padding: .55rem 1.3rem;
  background: var(--blue); color: #fff; border-radius: 7px;
  transition: all .2s; white-space: nowrap; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(29,78,216,.25);
}
.nav-cta:hover { background: var(--blue-mid); transform: translateY(-1px); box-shadow: var(--sh-md); }

/* Divider between CTA and lang selector */
.nav-divider {
  width: 1px; height: 22px;
  background: var(--border-md);
  flex-shrink: 0;
  opacity: .6;
}

/* ═══════════════════════════════════════════════════════════
   4. MOBILE DRAWER
   Panneau de navigation overlay visible sur tablette/mobile.
   Affiché par pxi.js via la classe .open.
   Le backdrop-filter ici est acceptable car le drawer n'a
   aucun enfant positionné qui doit en sortir.
   ═══════════════════════════════════════════════════════════ */

/* Bouton hamburger ≡ — caché sur desktop, visible sur mobile */
.nav-burger {
  display: none;             /* Caché par défaut (desktop) */
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 36px; height: 36px;
  background: transparent; border: none;
  padding: .35rem; border-radius: 6px; cursor: pointer;
  transition: background .2s;
  flex-shrink: 0;
}
.nav-burger:hover { background: var(--surface-2); }

/* Les 3 lignes du hamburger */
.burger-line {
  width: 20px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .28s ease, opacity .2s;
  transform-origin: center;
}

/* Animation X (fermeture) : ligne 1 tourne +45°, ligne 2 disparaît, ligne 3 tourne -45° */
.nav-burger.open .burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open .burger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open .burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Fond semi-transparent derrière le panel (overlay) */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.mobile-drawer.open {
  opacity: 1;
  visibility: visible;
}

/* Panel blanc — commence sous la nav, couvre tout le reste */
.drawer-panel {
  position: absolute;
  top: 68px; left: 0; right: 0;
  bottom: 0;                          /* S'étend jusqu'en bas de l'écran */
  background: #ffffff;
  overflow-y: auto;                   /* Scroll si contenu dépasse */
  padding: 1.5rem 1.5rem 2rem;
  transform: translateY(-16px);
  opacity: 0;
  transition: transform .3s cubic-bezier(.16,1,.3,1), opacity .3s ease;
  display: flex;
  flex-direction: column;
}
.mobile-drawer.open .drawer-panel {
  transform: translateY(0);
  opacity: 1;
}

/* Liens de navigation dans le drawer */
.drawer-links { display: flex; flex-direction: column; gap: .25rem; margin-bottom: 1.5rem; }
.drawer-links a {
  font-family: var(--fn); font-size: 1rem; font-weight: 600;
  letter-spacing: .02em; text-transform: uppercase;
  color: var(--ink-soft); padding: .75rem 1rem; border-radius: 8px;
  transition: all .18s;
}
.drawer-links a:hover { color: var(--blue); background: var(--blue-lt); }

/* RTL drawer — Arabic needs Cairo, no uppercase, no letter-spacing */
.rtl .drawer-links a,
.rtl .drawer-group a {
  font-family: var(--fa);
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.05rem;   /* Cairo slightly smaller optically — bump up */
  text-align: right;
}

/* Zone inférieure du drawer : langue + bouton CTA */
.drawer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  border-top: 1px solid var(--border); padding-top: 1.25rem;
  margin-top: auto;                   /* Colle au bas du panel */
}

/* Groupe de boutons de langue (FR / EN / ES / AR) */
.drawer-lang { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Bouton individuel de langue dans le drawer */
.drawer-lang-btn {
  display: flex; align-items: center; justify-content: center;
  padding: .45rem .7rem;
  background: transparent; border: 1.5px solid var(--border-md);
  border-radius: 7px; font-family: var(--fm); font-size: .7rem;
  font-weight: 600; color: var(--ink-soft);
  letter-spacing: .1em; text-transform: uppercase;
  transition: all .2s; cursor: pointer; line-height: 1;
}
.drawer-lang-btn:hover  { border-color: var(--blue); color: var(--blue); }
.drawer-lang-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Bouton CTA dans le drawer */
.drawer-cta {
  font-family: var(--fn); font-size: var(--text-sm); font-weight: 700;
  text-transform: uppercase; letter-spacing: .03em;
  padding: .6rem 1.25rem; background: var(--blue); color: #fff;
  border-radius: 7px; transition: background .18s, transform .18s;
}
.drawer-cta:hover { background: var(--blue-mid); transform: translateY(-1px); }
.drawer-cta:active { transform: translateY(0); background: var(--blue-dark); }

/* ═══════════════════════════════════════════════════════════
   5. HERO
   Section plein écran avec orbes animées, grille de points,
   particules flottantes, titre, description, CTA et stats.
   Padding-top = hauteur nav (68px) + espace clampé.
   ═══════════════════════════════════════════════════════════ */
#hero {
  position: relative;
  z-index: 0;           /* Stacking context explicite — contient les couches GPU des orbes */
  min-height: 100vh;    /* Fallback pour navigateurs sans svh */
  min-height: 100svh;   /* Hauteur réelle sur iOS (exclut la barre d'adresse) */
  display: flex;
  align-items: center;  /* Centre le contenu verticalement */
  overflow: hidden;     /* Empêche les orbes de créer une scrollbar */
  background: var(--surface);
  padding: calc(68px + clamp(1.5rem,3vw,2.5rem)) 1.5rem clamp(1.5rem,3vw,2.5rem);
}

/* ── Orbes animées (décor de fond) ──────────────────────────── */
/* Cercles gradients qui dérivent lentement pour donner vie au fond */
/* ── Gradient mesh background — Stripe style (Option B) ─────
   4 color stops that slowly interpolate. No moving shapes.
   Pure atmosphere — premium, timeless, B2B standard.          */

.h-orb {
  position: absolute; inset: 0;
  pointer-events: none; border-radius: 0;
}
.h-orb1 {
  background:
    radial-gradient(ellipse 80% 60% at 70% -10%, rgba(219,234,254,.7) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 50%, rgba(199,210,254,.4) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 20% 110%, rgba(239,246,255,.5) 0%, transparent 60%);
  animation: meshShift1 18s ease-in-out infinite alternate;
}
.h-orb2 {
  background:
    radial-gradient(ellipse 45% 55% at -5% 30%, rgba(224,231,255,.35) 0%, transparent 55%),
    radial-gradient(ellipse 55% 35% at 85% 95%, rgba(254,243,199,.25) 0%, transparent 50%);
  animation: meshShift2 24s ease-in-out infinite alternate;
}

@keyframes meshShift1 {
  0%   { opacity: 1;   transform: scale(1)    rotate(0deg); }
  33%  { opacity: .85; transform: scale(1.04) rotate(.8deg); }
  66%  { opacity: .9;  transform: scale(.97)  rotate(-.5deg); }
  100% { opacity: 1;   transform: scale(1.02) rotate(.3deg); }
}
@keyframes meshShift2 {
  0%   { opacity: .7;  transform: scale(1)    rotate(0deg); }
  50%  { opacity: .85; transform: scale(1.06) rotate(-1deg); }
  100% { opacity: .7;  transform: scale(.96)  rotate(.6deg); }
}

/* ── Dot grid — kept, complements the mesh */
.h-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(29,78,216,.08) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 1;
  mask-image: radial-gradient(ellipse 75% 85% at 75% 45%, black 20%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 75% 45%, black 20%, transparent 85%);
  pointer-events: none;
}

/* ── Accent bar — removed, mesh provides sufficient atmosphere */
.h-bar { display: none; }

/* ── Particles removed — replaced by mesh */
.h-particles { display: none; }
.h-particle  { display: none; }

/* ── Hero inner container ── */
.h-inner {
  max-width: var(--container); margin: 0 auto; width: 100%;
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  gap: clamp(1.5rem, 2.5vw, 2rem);
}

/* ── Text content — full width centered ── */
.h-content {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; max-width: 780px; margin: 0 auto;
}

/* ── KPI strip — single horizontal row of 4 ── */
.h-kpi-panel {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .65rem;
  width: 100%;
  animation: fadeUp .7s 1s ease both;
}

.h-kpi-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem .75rem .9rem;
  display: flex; flex-direction: column; align-items: center; gap: 0;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: transform .22s, box-shadow .22s;
  position: relative; overflow: hidden;
}
.h-kpi-card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }

.h-kpi-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--blue-lt); border: 1px solid rgba(29,78,216,.15);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px; flex-shrink: 0;
}
.h-kpi-icon i { font-size: 1.1rem; color: var(--blue); }

.h-kpi-card .stat-num {
  font-family: var(--fd); font-size: .82rem;
  font-weight: 700; color: var(--ink); line-height: 1.2;
  margin-bottom: 4px;
}
.h-kpi-card .stat-lbl {
  font-family: var(--fm); font-size: .58rem;
  color: var(--ink-mute); text-transform: uppercase;
  letter-spacing: .06em; line-height: 1.2;
}

/* ── Title: centered, full width ── */
.h-title {
  font-family: var(--fd);
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 800; line-height: 1.15; letter-spacing: -.02em;
  color: var(--ink); margin-bottom: .75rem;
  width: 100%; text-align: center;
  animation: fadeUp .7s .5s ease both;
}
.h-title em { font-style: normal; color: var(--blue); }

/* ── Description ── */
.h-desc {
  font-family: var(--fb);
  font-size: .925rem;
  color: var(--ink-soft); font-weight: 400; line-height: 1.7;
  max-width: 560px;
  margin-bottom: 1.25rem; text-align: center;
  animation: fadeUp .7s .7s ease both;
}

/* ── CTA buttons ── */
.h-actions {
  display: flex; gap: .85rem; flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp .7s .9s ease both;
}

/* h-stats removed — replaced by KPI panel */
.h-stats { display: none; }
.h-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--fm); font-size: var(--text-xs); color: var(--ink-soft);
  letter-spacing: .14em; text-transform: uppercase;
  background: var(--surface-2); border: 1px solid var(--border-md);
  padding: .38rem .95rem; border-radius: 100px; margin-bottom: .9rem;
  animation: fadeUp .7s .3s ease both;
  width: fit-content;
  align-self: center;
}
/* Point animé à gauche du texte */
.ey-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue); flex-shrink: 0;
  animation: pulse 2.5s ease-in-out infinite;
}

/* ── Global stat-num/lbl (used outside hero too) ── */
.stat-num { font-family: var(--fd); font-size: var(--text-2xl); font-weight: 800; color: var(--blue); line-height: 1; }
.stat-lbl { font-family: var(--fm); font-size: var(--text-xs); color: var(--ink-mute); text-transform: uppercase; letter-spacing: .1em; margin-top: .2rem; }

/* Suppression des classes héritées du héros vidéo (version précédente) */
.h-video-bg, .h-video-frame, .h-video-overlay, .h-video-panel,
.h-video-label, .h-video-pulse, .h-inner--split, .h-bg-orb,
.h-bg-dots, .h-orb1-old, .h-orb2-old { display: none !important; }

/* Animation d'entrée universelle : monte de 20px + fondu */
@keyframes fadeUp { from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)} }


/* ═══════════════════════════════════════════════════════════
   6. BOUTONS
   Deux variantes : primaire (bleu plein) et secondaire (outline).
   Les boutons héritent de la police via le reset.
   ═══════════════════════════════════════════════════════════ */

/* ── Bouton primaire (btn-p) — fond bleu plein ───────────────── */
.btn-p {
  font-family: var(--fn); font-size: var(--text-sm); font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  padding: .7rem 1.5rem; border-radius: 8px; /* Was .85rem 1.85rem — tighter */
  background: var(--blue); color: #fff;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: all .22s; text-decoration: none;
  box-shadow: 0 4px 14px rgba(29,78,216,.25);
  position: relative; overflow: hidden;
}
.btn-p:hover {
  background: var(--blue-mid);
  transform: translateY(-2px);      /* Légère élévation au hover */
  box-shadow: var(--sh-lg);
}
/* Effet de balayage lumineux au hover (pseudo-élément) */
.btn-p::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.22) 50%, transparent 65%);
  transform: translateX(-100%);      /* Hors du bouton par défaut */
  transition: transform .45s ease;
}
.btn-p:hover::after { transform: translateX(100%); } /* Balaie de gauche à droite */

/* ── Bouton secondaire (btn-s) — contour outline ─────────────── */
.btn-s {
  font-family: var(--fn); font-size: var(--text-sm); font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  padding: .7rem 1.5rem; /* Matches btn-p */
  border: 1.5px solid var(--border-md);
  color: var(--ink-soft); border-radius: 8px; transition: all .22s;
  text-decoration: none; display: inline-flex; align-items: center;
}
.btn-s:hover {
  border-color: var(--blue); color: var(--blue);
  background: var(--blue-lt); transform: translateY(-2px);
}


/* ═══════════════════════════════════════════════════════════
   7. ÉLÉMENTS COMMUNS — Tags, titres de section, descriptions
   Réutilisés dans toutes les sections du site.
   ═══════════════════════════════════════════════════════════ */

/* ── Tag de section (ex: "◆ NOS PÔLES") ─────────────────────── */
.s-tag {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--fm); font-size: var(--text-xs); color: var(--blue);
  text-transform: uppercase; letter-spacing: .16em; margin-bottom: .6rem;
  transition: letter-spacing .3s; /* Légère animation au hover pour dynamisme */
}
.s-tag::before { content: '◆'; font-size: .36rem; } /* Losange décoratif */

/* ── Titre de section ─────────────────────────────────────────── */
.s-title {
  font-family: var(--fd);
  font-size: 1.5rem; /* Fallback */
  font-size: clamp(1.4rem, calc(1.2rem + 1vw), 2.1rem); /* Safe cross-browser */
  font-weight: 800; color: var(--ink); line-height: 1.2; letter-spacing: -.01em;
  word-break: normal; overflow-wrap: normal; /* Pas de coupure de mots */
}
.s-title span { color: var(--blue); } /* Mot coloré en bleu */

/* ── Description de section ───────────────────────────────────── */
.s-desc { font-family: var(--fb); font-size: var(--text-sm); color: var(--ink-soft); line-height: 1.7; margin-top: .55rem; }

/* ── En-tête de section (.s-hdr) ─────────────────────────────── */
.s-hdr { margin-bottom: clamp(1.5rem,3vw,2.5rem); } /* Marge inférieure adaptative */
.s-hdr.center { text-align: center; }
.s-hdr.center .s-tag { justify-content: center; } /* Centrer le tag aussi */
.rtl .s-hdr.center .s-tag { flex-direction: row-reverse; } /* RTL : losange à droite */

/* ── Classes utilitaires de section ──────────────────────────── */
.section    { padding: var(--section-py) 1.5rem; } /* Espacement vertical standard */
.section-bg { background: var(--bg); }              /* Fond gris-bleu clair */
.section-wh { background: var(--surface); }         /* Fond blanc */

/* ── Animations de révélation au scroll ──────────────────────── */
/* Classe de base : monte depuis le bas */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Variante : entre depuis la gauche */
.reveal-left {
  opacity: 0; transform: translateX(-28px);
  transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

/* Variante : entre depuis la droite */
.reveal-right {
  opacity: 0; transform: translateX(28px);
  transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* Variante : grossit depuis une taille réduite */
.reveal-scale {
  opacity: 0; transform: scale(.93);
  transition: opacity .55s cubic-bezier(.16,1,.3,1), transform .55s cubic-bezier(.16,1,.3,1);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }
/* ── Stagger delays — replaces JS inline style.transitionDelay writes ── */
.sv-grid > *:nth-child(2)  { transition-delay: .07s; }
.sv-grid > *:nth-child(3)  { transition-delay: .14s; }
.sv-grid > *:nth-child(4)  { transition-delay: .21s; }

.pm-grid > *:nth-child(2)  { transition-delay: .08s; }
.pm-grid > *:nth-child(3)  { transition-delay: .16s; }

.diff-grid > *:nth-child(2) { transition-delay: .07s; }
.diff-grid > *:nth-child(3) { transition-delay: .14s; }

.pn-cards > *:nth-child(2) { transition-delay: .07s; }
.pn-cards > *:nth-child(3) { transition-delay: .14s; }
.pn-cards > *:nth-child(4) { transition-delay: .21s; }

.pf-right > *:nth-child(2) { transition-delay: .07s; }
.pf-right > *:nth-child(3) { transition-delay: .14s; }
.pf-right > *:nth-child(4) { transition-delay: .21s; }

/* Anneau lumineux sur les cercles de la méthodologie */
.step-c:hover .step-circ {
  box-shadow: 0 0 0 6px rgba(29,78,216,.1), 0 6px 16px rgba(29,78,216,.22);
}

/* Bordure gauche bleue sur les cours de formation */
.pf-course { border-left: 3px solid transparent; }

/* Dérive du grand chiffre en fond des cartes différenciateurs */
.diff-bgn { transition: transform .4s ease, color .3s; }
.diff-card:hover .diff-bgn { transform: translate(4px, -4px); }

/* ═══════════════════════════════════════════════════════════
   8. PROMESSE PXI (pm)
   Fond gris-bleu (surface-2) entre Hero et Services.
   3 cartes côte à côte : P (Performance), X (eXcellence), I (Innovation).
   La lettre P/X/I s'illumine avec un glow au hover (pas d'inclinaison).
   En responsive mobile, l'ordre est P → X → I (imposé par order:).
   ═══════════════════════════════════════════════════════════ */
#apropos {
  background: var(--surface-2);     /* Légèrement différent du fond blanc */
  padding: 4rem 1.5rem;
  position: relative; overflow: hidden;
  border-top: 1px solid var(--border);    /* Séparateurs visuels */
  border-bottom: 1px solid var(--border);
}
/* Halo bleu centré discret en arrière-plan */
#apropos::before {
  content: '';
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 300px;
  background: radial-gradient(ellipse, rgba(29,78,216,.07) 0%, transparent 70%);
  pointer-events: none;
}
.pm-inner { max-width: var(--container); margin: 0 auto; }

/* ── En-tête de la section Promesse ──────────────────────────── */
.pm-header { text-align: center; margin-bottom: 2.5rem; }

/* Étiquette bordée (ex: "La Promesse PXI") */
.pm-tag-label {
  display: inline-block;
  font-family: var(--fm); font-size: .65rem;
  letter-spacing: .25em; text-transform: uppercase;
  color: var(--blue); border: 1px solid rgba(29,78,216,.3);
  padding: .3rem .85rem; border-radius: 4px;
  margin-bottom: 1rem; background: var(--blue-lt);
}
/* Titre : "Trois piliers. Un seul engagement." */
.pm-title {
  font-family: var(--fd);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 800; color: var(--ink); line-height: 1.15; letter-spacing: -.015em;
}
.pm-title em { font-style: normal; color: var(--blue); } /* Partie bleue */

/* ── Grille 3 cartes ─────────────────────────────────────────── */
.pm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* Carte individuelle */
.pm-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.75rem 1.5rem;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transition: box-shadow .3s, transform .3s, border-color .3s;
}
.pm-card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); border-color: rgba(29,78,216,.25); }

/* Bar on ALL cards — hidden by default */
.pm-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--blue-mid));
  border-radius: 14px 14px 0 0;
  opacity: 0;
  transition: opacity .3s;
}
/* Carte X (centrale) — bar visible by default */
.pm-card--featured { border-color: var(--blue); box-shadow: var(--sh-md); }
.pm-card--featured::before { opacity: 1; }
/* Hide X bar when P or I is hovered */
.pm-grid:has(.pm-card:not(.pm-card--featured):hover) .pm-card--featured::before { opacity: 0; }
/* Show bar on hovered P or I */
.pm-card:not(.pm-card--featured):hover::before { opacity: 1; }

/* Grande lettre P / X / I — animation de glow au hover */
.pm-letter {
  font-family: var(--fd); font-size: 3rem; font-weight: 800;
  color: var(--blue); line-height: 1; margin-bottom: .9rem;
  letter-spacing: -.03em; opacity: .9;
  transition: none; cursor: default;
}
/* Animation keyframe : halo lumineux bleu qui pulse */
@keyframes letterGlow {
  0%,100% { text-shadow: 0 0 0px rgba(29,78,216,0); color: var(--blue); letter-spacing: -.03em; }
  40%      { text-shadow: 0 0 22px rgba(29,78,216,.55), 0 0 40px rgba(29,78,216,.25); color: var(--blue-mid); letter-spacing: .02em; }
  70%      { text-shadow: 0 0 10px rgba(29,78,216,.3); color: var(--blue); letter-spacing: -.01em; }
}
.pm-card:hover .pm-letter { animation: letterGlow .9s ease forwards; transform: none; }

/* Titre de la carte */
.pm-name { font-family: var(--fn); font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-bottom: .6rem; letter-spacing: -.01em; }
.pm-name em { font-style: normal; color: var(--blue); } /* X en bleu dans eXcellence */

/* Description de la carte */
.pm-desc { font-family: var(--fb); font-size: .85rem; color: var(--ink-soft); line-height: 1.75; flex: 1; margin-bottom: 1.25rem; }

/* Badges technologie en bas de la carte */
.pm-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; }
.pm-tag-item {
  font-family: var(--fm); font-size: .6rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--blue);
  border: 1px solid rgba(29,78,216,.25); background: var(--blue-lt);
  padding: .3rem .75rem; border-radius: 4px; white-space: nowrap; transition: all .2s;
}
.pm-card:hover .pm-tag-item, .pm-card--featured .pm-tag-item { border-color: rgba(29,78,216,.45); background: #DBEAFE; }

/* Mobile — ordre imposé : P=1, X=2, I=3 */
@media (max-width: 768px) {
  .pm-grid { grid-template-columns: 1fr; }
  .pm-card:nth-child(1) { order: 1; } /* P — Performance en premier */
  .pm-card--featured   { order: 2; } /* X — eXcellence au milieu */
  .pm-card:nth-child(3) { order: 3; } /* I — Innovation en dernier */
}

/* ═══════════════════════════════════════════════════════════
   18. FOND ANIMÉ GLOBAL
   body::before — 3 gradients radiaux qui se déplacent lentement
   body::after  — grille de lignes fines qui dérivent en diagonal
   Les deux couches sont en position: fixed derrière tout le contenu.
   ═══════════════════════════════════════════════════════════ */

/* Orbes colorées subtiles en arrière-plan de toute la page */
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 55% 45% at 15% 20%, rgba(29,78,216,.04) 0%, transparent 70%),
    radial-gradient(ellipse 45% 50% at 85% 75%, rgba(249,115,22,.04) 0%, transparent 70%),
    radial-gradient(ellipse 40% 35% at 50% 50%, rgba(29,78,216,.025) 0%, transparent 70%);
  animation: bgShift 18s ease-in-out infinite alternate; /* alternate: va-et-vient */
}
/* Les positions des gradients bougent lentement pour créer du mouvement */
@keyframes bgShift {
  0%   { background-position: 15% 20%, 85% 75%, 50% 50%; opacity: 1; }
  33%  { background-position: 25% 35%, 70% 60%, 45% 55%; }
  66%  { background-position: 10% 55%, 80% 30%, 55% 45%; }
  100% { background-position: 20% 15%, 75% 80%, 50% 50%; }
}

/* Grille de lignes très fines qui dérive en diagonal */
body::after {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(29,78,216,.028) 1px, transparent 1px), /* Lignes horizontales */
    linear-gradient(90deg, rgba(29,78,216,.028) 1px, transparent 1px); /* Lignes verticales */
  background-size: 72px 72px; /* Espacement de la grille */
  animation: gridDrift 30s linear infinite; /* Dérive continue vers bas-droite */
}
@keyframes gridDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 72px 72px; } /* Déplace d'exactement 1 maille = effet infini */
}

/* Les sections et le footer ne doivent pas créer de contexte d'empilement
   qui monterait au-dessus de la nav (z-index: 9999) */
section { position: relative; z-index: auto; scroll-margin-top: 68px; }
footer  { position: relative; z-index: auto; }

/* Detail sections — tighter top padding so header visible on arrival */
#conseil, #engineering, #formation, #negoce {
  padding-top: clamp(2rem, 3vw, 3rem);
}
/* ═══════════════════════════════════════════════════════════
   9. SERVICES — NOS PÔLES
   Grille 2×2 des 4 pôles (Conseil / Formation / Ingénierie / Négoce).
   Barre de couleur apparaît en haut de chaque carte au hover.
   L'icône tourne légèrement au hover pour une touche de vivacité.
   ═══════════════════════════════════════════════════════════ */

/* Grille 2 colonnes — 2×2 pour les 4 pôles */
.sv-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }

/* Carte de pôle */
.sv-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(1.25rem,2.5vw,2rem);
  position: relative; overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
/* Barre dégradée en haut de la carte — invisible au repos, visible au hover */
.sv-card::before {
  content:''; position:absolute; top:0;left:0;right:0;
  height:3px; background:linear-gradient(90deg,var(--blue),var(--blue-mid));
  opacity:0; transition:opacity .3s;
}
.sv-card:hover { transform:translateY(-3px); box-shadow:var(--sh-md); border-color:var(--border-md); }
.sv-card:hover::before { opacity:1; } /* Révéler la barre au hover */

/* Icône carrée avec rotation au hover */
.sv-ico {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; transition: transform .3s, background .2s;
  flex-shrink: 0;
}
.sv-card:hover .sv-ico { transform: scale(1.08) rotate(3deg); }

.si1, .si2, .si3, .si4 {
  background: var(--blue-lt);
  border: 1px solid rgba(29,78,216,.15);
  box-shadow: var(--sh-xs);
}
.si1 i, .si2 i, .si3 i, .si4 i { color: var(--blue); }
.sv-card:hover .si1,
.sv-card:hover .si2,
.sv-card:hover .si3,
.sv-card:hover .si4 { background: rgba(29,78,216,.12); border-color: rgba(29,78,216,.25); }

/* Numéro du pôle (ex: "01 / CONSEIL") */
.sv-num { font-family:var(--fm); font-size:var(--text-xs); color:var(--ink-mute); letter-spacing:.14em; margin-bottom:.4rem; }

/* Nom du pôle */
.sv-name { font-family:var(--fn); font-size:var(--text-lg); font-weight:700; color:var(--ink); margin-bottom:.7rem; line-height:1.25; }

/* Description */
.sv-desc { font-family:var(--fb); font-size:var(--text-sm); color:var(--ink-soft); line-height:1.7; margin-bottom:1.25rem; }

/* Groupe de tags technologie */
.sv-tags { display:flex; flex-wrap:wrap; gap:.35rem; }

/* Tag technologie individuel */
.tag { font-family:var(--fm); font-size:.68rem; padding:.22rem .6rem; background:var(--surface-2); border:1px solid var(--border); color:var(--ink-mute); border-radius:4px; transition:all .2s; }

/* Tags passent en bleu au hover de la carte */
.sv-card:hover .tag { border-color:rgba(29,78,216,.22); color:var(--blue); background:var(--blue-lt); }



/* ═══════════════════════════════════════════════════════════
   CONSEIL — IT STRATEGY & CONSULTING
   Centered header + 3-col cards + KPI strip + CTA
   ═══════════════════════════════════════════════════════════ */
.cs-layout { display: flex; flex-direction: column; gap: 2.5rem; }

.cs-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 960px; margin: 0 auto; }
.cs-intro--single { grid-template-columns: 1fr; max-width: 760px; text-align: center; }
.cs-intro p { font-size: var(--text-base); color: var(--ink-soft); line-height: 1.8; }

.cs-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

.cs-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem 1.5rem;
  position: relative; overflow: hidden;
  transition: box-shadow .3s, transform .3s, border-color .3s;
}
.cs-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-mid));
  border-radius: var(--radius) var(--radius) 0 0;
  opacity: 0; transition: opacity .3s;
}
.cs-card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); border-color: rgba(29,78,216,.25); }
.cs-card:hover::before { opacity: 1; }
.cs-card-ico { margin-bottom: 1rem; } /* size defined in Tabler block below */
.cs-card-name { font-family: var(--fn); font-size: var(--text-lg); font-weight: 700; color: var(--ink); margin-bottom: .6rem; line-height: 1.25; }
.cs-card-desc { font-family: var(--fb); font-size: var(--text-sm); color: var(--ink-soft); line-height: 1.75; }

.cs-kpis {
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
}
.cs-kpi { text-align: center; flex: 1; }
.cs-kpi-val { font-family: var(--fd); font-size: var(--text-4xl); font-weight: 800; color: var(--blue); line-height: 1; }
.cs-kpi-lbl { font-family: var(--fm); font-size: var(--text-xs); color: var(--ink-mute); text-transform: uppercase; letter-spacing: .12em; margin-top: .4rem; }
.cs-kpi-divider { width: 1px; height: 48px; background: var(--border-md); flex-shrink: 0; }
.cs-cta-wrap { text-align: center; }

/* ═══════════════════════════════════════════════════════════
   10. SPECTRE TECHNIQUE — EXPERTISE
   Layout 2 colonnes : texte explicatif sticky à gauche,
   grille 2 colonnes de 14 domaines à droite.
   Chaque domaine a un effet de balayage lumineux au hover.
   ═══════════════════════════════════════════════════════════ */

/* Layout 2 colonnes — colonne gauche sticky pendant le scroll */
.ex-inner {
  display: grid;
  grid-template-columns: 1fr 2fr; /* 33/66 — label breathes, grid dominates */
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

/* La colonne de gauche reste visible pendant le défilement de la droite */
.ex-sticky {
  position: sticky;
  top: calc(68px + 1.5rem); /* Nav height + breathing room */
}

/* Texte introductif sous le titre */
.ex-intro {
  font-size: var(--text-base); /* Was text-sm — more readable */
  color: var(--ink-soft);
  line-height: 1.8;
  margin-top: 1rem;
  max-width: 360px; /* Natural column width handles wrapping */
}

/* Stat block "80+ technologies mastered" — compact enterprise style */
.tech-ct {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: 1.25rem;
  padding: .5rem .9rem;
  background: var(--blue-lt);
  border: 1px solid rgba(29,78,216,.2);
  border-radius: 8px;
  font-family: var(--fm);
  font-size: var(--text-xs);
  color: var(--blue);
  letter-spacing: .1em;
}
.tech-ct strong {
  font-size: var(--text-xl);
  font-family: var(--fd);
  font-weight: 800;
}

/* Grille 2 colonnes des domaines — séparés par des lignes fines */
.ex-domains {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}

/* Cellule d'un domaine — min-height garantit l'uniformité */
.dm-item {
  background: var(--surface);
  padding: 1.1rem 1.35rem;
  min-height: 80px;               /* Uniform row height */
  display: flex; gap: .85rem;
  align-items: center;            /* Vertically centered (was flex-start) */
  transition: background .2s;
  position: relative; overflow: hidden;
}
.dm-item:hover { background: var(--blue-lt); }

/* Icon container — fixed square so all icons align */
.dm-ico {
  font-size: 1.15rem; flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--blue-lt);
  border: 1px solid rgba(29,78,216,.12);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
}
.dm-item:hover .dm-ico {
  background: rgba(29,78,216,.12);
  border-color: rgba(29,78,216,.25);
}

/* Text block — clamps sub to single line with ellipsis */
.dm-body { min-width: 0; flex: 1; }

/* Domain name */
.dm-name {
  font-family: var(--fn); font-size: var(--text-sm);
  font-weight: 700; color: var(--ink);
  margin-bottom: .18rem;
}

/* Tech stack subtitle */
.dm-sub {
  font-family: var(--fm); font-size: .65rem;
  color: var(--ink-mute); letter-spacing: .02em;
}


/* ═══════════════════════════════════════════════════════════
   11. MÉTHODOLOGIE
   Timeline horizontale de 4 étapes reliées par un connecteur.
   Le cercle se remplit de bleu et s'illumine au hover.
   Sur tablette : passe à 2×2. Sur mobile : empile en 1 colonne.
   ═══════════════════════════════════════════════════════════ */

/* Grille 4 colonnes égales pour les 4 étapes */
.mt-steps { display:grid; grid-template-columns:repeat(4,1fr); gap:0; position:relative; margin-top:.5rem; }

/* Ligne horizontale reliant les cercles — dégradé bleu→orange */
.mt-connector { position:absolute; top:30px; left:calc(12.5% + 14px); right:calc(12.5% + 14px); height:2px; background:linear-gradient(90deg,var(--blue),var(--accent)); opacity:.18; border-radius:1px; }

/* Conteneur d'une étape */
.step-c { padding:0 clamp(.6rem,1.5vw,1.25rem); text-align:center; }

/* Wrapper du cercle (pour centrer avec flexbox) */
.step-circ-w { display:flex; justify-content:center; margin-bottom:1.1rem; }

/* Cercle numéroté */
.step-circ { width:58px; height:58px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:var(--surface); border:2px solid var(--border); transition:all .3s; }
/* Au hover : fond bleu, anneau lumineux */
.step-c:hover .step-circ { border-color:var(--blue); background:var(--blue); box-shadow:0 0 0 6px rgba(29,78,216,.1), 0 6px 16px rgba(29,78,216,.22); }

/* Chiffre à l'intérieur du cercle */
.step-circ span { font-family:var(--fd); font-size:var(--text-xl); font-weight:800; color:var(--blue); transition:color .3s; }
.step-c:hover .step-circ span { color:#fff; } /* Blanc sur fond bleu au hover */

/* Label de phase (ex: "Étape 1") */
.step-ph { font-family:var(--fm); font-size:var(--text-xs); color:var(--blue); letter-spacing:.18em; text-transform:uppercase; margin-bottom:.3rem; }

/* Nom de l'étape (ex: "Audit") */
.step-nm { font-family:var(--fn); font-size:var(--text-lg); font-weight:700; color:var(--ink); margin-bottom:.5rem; }

/* Description de l'étape */
.step-ds { font-family:var(--fb); font-size:var(--text-sm); color:var(--ink-soft); line-height:1.7; }


/* ═══════════════════════════════════════════════════════════
   12. ÉTUDES DE CAS — ÉTAT VIDE
   Le bloc FinanceGroup SA a été supprimé.
   Affiche un message d'attente centré avec un CTA.
   ═══════════════════════════════════════════════════════════ */

/* Conteneur de l'état vide — bordure pointillée discrète */
.rf-empty {
  text-align: center; padding: 4rem 2rem;
  background: var(--surface-2);
  border: 1px dashed var(--border-md); /* Pointillé pour indiquer le contenu à venir */
  border-radius: 16px;
}
.rf-empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: .5; } /* Icône atténuée */
.rf-empty-text { font-size: .95rem; color: var(--ink-mute); max-width: 440px; margin: 0 auto; line-height: 1.7; }


/* ═══════════════════════════════════════════════════════════
   13. PÔLE FORMATION
   Layout 2 colonnes : titre accroche sticky à gauche,
   liste verticale de 4 cartes de cours à droite.
   Le titre ne coupe JAMAIS les mots (word-break: normal).
   La carte de cours coulisse légèrement à droite au hover.
   ═══════════════════════════════════════════════════════════ */

/* Top border separates #formation from adjacent white #expertise section */
#formation { border-top: 1px solid var(--border); }

/* "Pourquoi PXI" sub-section inside #apropos */
.ap-why {
  padding-top: 3rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--border);
}

/* Grid : colonne gauche titre (min 280px max 380px), droite cartes */
.pf-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr; /* Flexible pour éviter le débordement */
  gap: 3rem; align-items: start;
}

/* Colonne de gauche reste visible pendant le défilement des cours */
.pf-left { position: sticky; top: 90px; }

/* Grand titre d'accroche ("Accélérateur de / Compétences / Technologiques") */
.pf-title {
  font-family: var(--fd);
  font-size: clamp(1.4rem, 2vw, 1.75rem); /* Tighter — fits left sticky column */
  font-weight: 800; color: var(--ink); line-height: 1.15; letter-spacing: -.02em;
  margin: .6rem 0 1.25rem;
  word-break: normal;     /* Interdit la coupure de mots */
  overflow-wrap: normal;  /* Interdit le découpage arbitraire */
  hyphens: none;          /* Pas de tirets de coupure */
  -webkit-hyphens: none;  /* Safari */
  white-space: normal;    /* Les retours à la ligne naturels sont autorisés */
}
.pf-title em { font-style: normal; color: var(--blue); } /* "Compétences" en bleu */

/* Paragraphes de description sous le titre */
.pf-desc { font-size: .875rem; color: var(--ink-soft); line-height: 1.75; margin-bottom: .85rem; }

/* Marge supérieure du bouton catalogue */
.pf-cta { margin-top: 1.5rem; align-self: flex-start; width: auto; display: inline-flex; }

/* Colonne droite : liste verticale des cartes de cours */
.pf-right { display: flex; flex-direction: column; gap: .75rem; }

/* Carte de cours individuelle */
.pf-course {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.1rem 1.35rem;
  display: flex; gap: 1rem; align-items: flex-start;
  border-left: 3px solid transparent; /* Bordure gauche cachée — révélée au hover */
  transition: box-shadow .25s, border-color .25s, transform .25s;
}
.pf-course:hover { box-shadow: var(--sh-sm); border-color: rgba(29,78,216,.3); transform: translateX(3px); border-left-color: var(--blue); background: var(--surface); }
.rtl .pf-course:hover { transform: translateX(-3px); } /* RTL : glisse vers la gauche */

/* Icône carrée du cours */
.pf-course-ico { width: 42px; height: 42px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; } /* colors defined in Tabler block below */

/* Titre du cours */
.pf-course-name { font-family: var(--fn); font-size: .95rem; font-weight: 700; color: var(--ink); margin-bottom: .25rem; }

/* Description courte du cours */
.pf-course-desc { font-family: var(--fb); font-size: .8rem; color: var(--ink-soft); line-height: 1.55; margin-bottom: .6rem; }

/* Groupe de badges (durée + public cible) */
.pf-course-meta { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Badge outline (ex: "3 Jours", "Ingénieurs") */
.pf-badge { font-family: var(--fm); font-size: .62rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: .28rem .7rem; border: 1.5px solid var(--blue); color: var(--blue); border-radius: 4px; background: transparent; transition: all .2s; }
.pf-course:hover .pf-badge { background: var(--blue-lt); color: var(--blue); border-color: var(--blue); } /* Subtle hover — no full fill */


/* ═══════════════════════════════════════════════════════════
   14. PÔLE NÉGOCE
   Titre centré + une seule ligne : carte SVG à gauche,
   grille 2×2 de cartes valeur à droite.
   ═══════════════════════════════════════════════════════════ */

/* Titre de section négoce */
.pn-title {
  font-family: var(--fd);
  font-size: 1.6rem; /* Fallback */
  font-size: clamp(1.5rem, calc(1.2rem + 1.5vw), 2.4rem);
  font-weight: 800; color: var(--ink); line-height: 1.15; letter-spacing: -.015em; margin-bottom: .6rem;
  word-break: break-word; overflow-wrap: break-word;
}
.pn-title em { font-style: normal; color: var(--blue); } /* Partie bleue du titre */

/* Ligne principale : carte SVG gauche + grille cartes droite */
.pn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: stretch; }

/* Carte de la carte mondiale SVG */
.pn-map { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem 1.25rem 1rem; display: flex; flex-direction: column; justify-content: space-between; }

/* Label au-dessus de la carte */
.pn-map-label { font-family: var(--fm); font-size: .6rem; color: var(--ink-mute); letter-spacing: .18em; text-transform: uppercase; text-align: center; margin-bottom: .85rem; }

/* SVG — prend toute la hauteur disponible */
.pn-map-visual { width: 100%; flex: 1; }

/* Légende de la carte */
.pn-map-legend { display: flex; gap: 1.5rem; justify-content: center; margin-top: .75rem; font-family: var(--fm); font-size: .65rem; color: var(--ink-mute); letter-spacing: .05em; }
.pn-map-legend > span { display: flex; align-items: center; gap: .4rem; }

/* Point bleu (hub partenaire) */
.pn-legend-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); display: inline-block; }

/* Ligne pointillée bleue (flux d'approvisionnement) */
.pn-legend-line { width: 20px; height: 2px; background: repeating-linear-gradient(90deg, var(--blue) 0, var(--blue) 4px, transparent 4px, transparent 8px); display: inline-block; }

/* Grille 2×2 de cartes valeur */
.pn-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-content: stretch; }

/* Carte valeur individuelle */
.pn-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem 1rem; text-align: left; display: flex; flex-direction: column; position: relative; overflow: hidden; transition: box-shadow .28s, transform .28s, border-color .28s; }
.pn-card::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(90deg,var(--blue),var(--blue-mid)); border-radius:12px 12px 0 0; opacity:0; transition:opacity .3s; }
.pn-card:hover { box-shadow: var(--sh-sm); transform: translateY(-2px); border-color: rgba(29,78,216,.22); }
.pn-card:hover::before { opacity:1; }
.pn-card-ico {
  width: 40px; height: 40px; border-radius: 9px;
  background: var(--blue-lt); border: 1px solid rgba(29,78,216,.15);
  box-shadow: var(--sh-xs);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .75rem; flex-shrink: 0;
  transition: background .2s, border-color .2s;
}
.pn-card:hover .pn-card-ico { background: rgba(29,78,216,.12); border-color: rgba(29,78,216,.25); }
.pn-card-name { font-family: var(--fn); font-size: .88rem; font-weight: 700; color: var(--ink); margin-bottom: .4rem; line-height: 1.3; }
.pn-card-desc { font-family: var(--fb); font-size: .77rem; color: var(--ink-soft); line-height: 1.6; }

.pn-cta-wrap {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  margin-top: 1rem;
  text-align: center;
  display: flex; justify-content: center;
}


/* ═══════════════════════════════════════════════════════════
   15. POURQUOI PXI — DIFFÉRENCIATEURS
   Grille 3 cartes horizontale.
   Chaque carte a un grand numéro de fond décoratif (01/02/03)
   qui dérive légèrement au hover.
   Un badge KPI bleu apparaît en bas de chaque carte.
   ═══════════════════════════════════════════════════════════ */

/* Grille 3 colonnes */
.diff-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; }

/* Carte différenciateur */
.diff-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:clamp(1.25rem,2.5vw,2rem); position:relative; overflow:hidden; transition:all .3s; }
.diff-card::before { content:''; position:absolute; top:0; left:0; right:0; height:4px; background:linear-gradient(90deg,var(--blue),var(--blue-mid)); border-radius:var(--radius) var(--radius) 0 0; opacity:0; transition:opacity .3s; }
.diff-card:hover { box-shadow:var(--sh-md); transform:translateY(-3px); border-color:var(--border-md); }
.diff-card:hover::before { opacity:1; }

/* Grand numéro en fond (01/02/03) — purement décoratif */
.diff-bgn { position:absolute; top:.6rem; right:1rem; font-family:var(--fd); font-size:3.5rem; font-weight:800; color:#EFF6FF; line-height:1; user-select:none; transition:transform .4s ease, color .3s; pointer-events:none; }
.rtl .diff-bgn { right:auto; left:1rem; } /* RTL : passe à gauche */
.diff-card:hover .diff-bgn { color:var(--blue); transform: translate(4px, -4px); } /* Dérive au hover */

/* Icône emoji */
.diff-ico { font-size:1.55rem; margin-bottom:.75rem; display:block; }

/* Titre du différenciateur */
.diff-t { font-family:var(--fn); font-size:var(--text-lg); font-weight:700; color:var(--ink); margin-bottom:.6rem; line-height:1.3; }

/* Description */
.diff-d { font-family:var(--fb); font-size:var(--text-sm); color:var(--ink-soft); line-height:1.72; }

/* Badge KPI en bas (ex: "40+ certifications actives") */
.diff-kpi { display:inline-flex; align-items:center; gap:.35rem; margin-top:1rem; font-family:var(--fm); font-size:var(--text-xs); color:var(--blue); letter-spacing:.1em; text-transform:uppercase; background:var(--blue-lt); padding:.28rem .7rem; border-radius:4px; }


/* ═══════════════════════════════════════════════════════════
   16. CONTACT
   Section CTA sur fond bleu dégradé.
   Formulaire email centré avec bouton blanc.
   Grille de points en overlay pour texture.
   ═══════════════════════════════════════════════════════════ */

#contact {
  padding: var(--section-py) 1.5rem;
  background: linear-gradient(135deg, #1E3A8A 0%, #1D4ED8 60%, #2563EB 100%); /* Dégradé bleu */
  text-align: center; position: relative; overflow: hidden;
}

/* Grille de points blancs en overlay */
#contact::before { content:''; position:absolute; inset:0; background-image:radial-gradient(rgba(255,255,255,.04) 1.5px,transparent 1.5px); background-size:24px 24px; }

/* Halo lumineux en haut de la section */
.ct-glow { position:absolute; top:-80px; left:50%; transform:translateX(-50%); width:600px; height:300px; background:radial-gradient(ellipse,rgba(255,255,255,.1),transparent 70%); pointer-events:none; }

/* Titre principal blanc */
.ct-title { font-family:var(--fd); font-size:clamp(1.6rem, 3.5vw, 2.6rem); font-weight:800; color:#fff; line-height:1.2; margin-bottom:.85rem; position:relative; }
.ct-title span { color:#93C5FD; } /* Mot coloré en bleu clair */

/* Sous-titre */
.ct-sub { font-size:var(--text-base); color:rgba(255,255,255,.75); max-width:420px; margin:0 auto 2rem; line-height:1.7; position:relative; font-weight:400; }

/* Formulaire email en ligne */
.ct-form { display:flex; max-width:480px; margin:0 auto; border-radius:9px; overflow:hidden; box-shadow:var(--sh-lg); position:relative; }

/* Champ email */
.ct-form input { flex:1; padding:.85rem 1.25rem; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.2); border-right:none; color:#fff; font-family:var(--fb); font-size:var(--text-base); outline:none; transition:all .2s; }
.ct-form input::placeholder { color:rgba(255,255,255,.5); }
.ct-form input:focus { background:rgba(255,255,255,.18); border-color:rgba(255,255,255,.4); }

/* Submit button */
.ct-form button { padding:.95rem 1.75rem; background:#fff; color:var(--blue-dark); border:none; font-family:var(--fn); font-size:var(--text-sm); font-weight:700; letter-spacing:.04em; text-transform:uppercase; transition:all .2s; cursor:pointer; white-space:nowrap; }
.ct-form button:hover { background:#DBEAFE; }

/* ── Dual CTA layout ────────────────────────────────────────── */
.ct-dual {
  display: flex; align-items: center; justify-content: center;
  gap: 0; max-width: 860px; margin: 0 auto;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; overflow: hidden;
  padding: 1.25rem;
}

.ct-option {
  flex: 1; padding: 1.75rem 2rem;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  text-align: center;
}
.ct-option--primary {
  background: rgba(255,255,255,.08);
  border-radius: 12px;
}

.ct-option-label {
  font-family: var(--fm); font-size: .68rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
}

/* Calendly primary button */
.ct-calendly-btn {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .95rem 2rem; border-radius: 9px;
  background: #fff; color: var(--blue-dark);
  font-family: var(--fn); font-size: var(--text-sm); font-weight: 700;
  letter-spacing: .02em; text-transform: uppercase;
  border: none; cursor: pointer;
  transition: all .22s;
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
  white-space: nowrap;
}
.ct-calendly-btn:hover {
  background: #DBEAFE; transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.22);
}

/* Or divider */
.ct-or {
  display: flex; flex-direction: column; align-items: center;
  gap: .6rem; flex-shrink: 0; padding: 0 .25rem;
}
.ct-or::before, .ct-or::after {
  content: ''; width: 1px; height: 60px;
  background: rgba(255,255,255,.15);
}
.ct-or span {
  font-family: var(--fm); font-size: .65rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.3);
}

/* Responsive */
@media (max-width: 768px) {
  .ct-dual { flex-direction: column; }
  .ct-option { padding: 1.75rem 1.5rem; width: 100%; }
  .ct-or { flex-direction: row; padding: .25rem 0; width: 100%; }
  .ct-or::before, .ct-or::after { width: 60px; height: 1px; flex: 1; }
  .ct-calendly-btn { width: 100%; justify-content: center; }
}

/* Service context tag — shown when user arrives from a service CTA */
.ct-service-tag {
  font-family: var(--fm); font-size: .7rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-top: .75rem; min-height: 1.2em;
  text-align: center;
}
.ct-service-tag:empty { display: none; }

/* Texte du numéro de téléphone */
.ct-phone { font-family:var(--fm); font-size:var(--text-xs); color:rgba(255,255,255,.4); margin-top:1.1rem; position:relative; letter-spacing:.08em; }


/* ═══════════════════════════════════════════════════════════
   17. FOOTER — Enterprise 4-column layout
   Dark background, brand column + 3 nav columns + legal strip.
   ═══════════════════════════════════════════════════════════ */

footer {
  background: #0B1120;
  border-top: 1px solid rgba(255,255,255,.07);
}

/* ── Main footer grid (Option B — brand left + 3 nav cols) ── */
.footer-main {
  padding: 3.5rem 1.5rem 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-main-inner {
  max-width: var(--container); margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* ── Brand column ── */
.f-brand {
  display: flex; flex-direction: column; gap: .45rem;
}
.f-logo-wrap { margin-bottom: .25rem; }
.f-logo-wrap .logo-img {
  height: 32px; width: auto; object-fit: contain;
  filter: brightness(1.4) drop-shadow(0 0 8px rgba(29,78,216,.35));
}
.f-statement {
  font-family: var(--fn);
  font-size: .85rem;
  font-weight: 600; letter-spacing: -.01em;
  color: rgba(255,255,255,.55); line-height: 1.5; margin: 0;
}
.f-tagline {
  font-family: var(--fb); font-size: .78rem; font-weight: 400;
  letter-spacing: .01em; text-transform: none;
  color: rgba(255,255,255,.30); line-height: 1.5;
}

/* Social buttons */
.f-socials { display: flex; gap: .4rem; margin-top: .1rem; }
.f-social-btn {
  width: 22px; height: 22px; border-radius: 5px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.35); transition: all .2s;
}
.f-social-btn svg { width: 11px; height: 11px; }
.f-social-btn:hover {
  background: var(--blue); border-color: var(--blue);
  color: #fff; transform: translateY(-1px);
}

/* ── Nav columns ── */
.f-col { display: flex; flex-direction: column; gap: .6rem; }
.f-col-title {
  font-family: var(--fn); font-size: .65rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.35); margin-bottom: .35rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.f-col-links { display: flex; flex-direction: column; gap: .1rem; }
.f-col-links a {
  font-family: var(--fn); font-size: .82rem; font-weight: 500;
  color: rgba(255,255,255,.52); padding: .28rem 0;
  transition: color .18s, padding-left .18s;
  display: inline-block;
}
.f-col-links a:hover { color: #fff; padding-left: .35rem; }
.rtl .f-col-links a:hover { padding-left: 0; padding-right: .35rem; }

/* ── Legal strip ── */
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 1rem 1.5rem;
}
.footer-legal-inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .75rem;
}
.f-copy {
  font-family: var(--fm); font-size: .7rem;
  color: rgba(255,255,255,.28); letter-spacing: .04em;
}
.f-links { display: flex; gap: 1.5rem; }
.f-links a {
  font-family: var(--fm); font-size: .7rem;
  color: rgba(255,255,255,.28); transition: color .2s; letter-spacing: .04em;
}
.f-links a:hover { color: rgba(255,255,255,.7); }

/* ── RTL overrides ── */
.rtl .footer-main-inner { direction: rtl; }
.rtl .footer-legal-inner { flex-direction: row-reverse; }
.rtl .f-col-links a { padding-left: 0; padding-right: 0; }
.rtl .f-col-links a:hover { padding-left: 0; padding-right: .35rem; }
.rtl .f-socials { flex-direction: row-reverse; }
.rtl .f-links { flex-direction: row-reverse; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-main-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .f-brand { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 1.5rem; }
}
@media (max-width: 640px) {
  .footer-main { padding: 2.5rem 1.5rem 2rem; }
  .footer-main-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .f-brand { grid-column: 1 / -1; flex-direction: column; gap: .85rem; }
  .footer-legal-inner { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .rtl .footer-legal-inner { align-items: flex-end; }
  .f-links { flex-wrap: wrap; gap: 1rem; }
}


/* ═══════════════════════════════════════════════════════════
   19. RTL — RÈGLES D'INVERSION GLOBALES
   Toutes les règles appliquées quand body.rtl est actif.
   Concerne uniquement l'arabe — les autres langues sont LTR.
   Les propriétés margin-left/right et text-align sont les
   principales propriétés à inverser en RTL.
   ═══════════════════════════════════════════════════════════ */

.rtl .s-tag         { flex-direction: row-reverse; } /* Losange passe à droite */
.rtl .h-actions     { flex-direction: row-reverse; } /* Boutons dans l'ordre inversé */
.rtl .h-stats       { flex-direction: row-reverse; } /* Stats dans l'ordre inversé */
.rtl .h-eyebrow     { flex-direction: row-reverse; } /* Point bullet à droite */
.rtl .res-kpis      { flex-direction: row-reverse; } /* KPIs dans l'ordre inversé */
.rtl .case-meta     { flex-direction: row-reverse; } /* Méta du cas inversée */
.rtl .diff-grid     { direction: rtl; }              /* Grille différenciateurs RTL */
.rtl .cc-lbl        { flex-direction: row-reverse; } /* Label colonne cas inversé */
.rtl #apropos .pm-header { direction: rtl; }        /* En-tête promesse RTL */
.rtl .pm-grid       { direction: rtl; }              /* Grille P/X/I inversée */
.rtl .f-links { flex-direction: row-reverse; } /* RTL */

/* Éléments m-item (méta des cas) : aligner à gauche en RTL (normal = droite) */
.rtl .m-item { text-align: left; }

/* Résultat de cas : guillemet à droite en RTL */
.rtl .res-q p { border-left:none; border-right:3px solid var(--blue); padding-left:0; padding-right:.85rem; }

/* Formulaire de contact RTL */
.rtl .ct-form { flex-direction: row-reverse; }
.rtl .ct-form input { border-right:1px solid rgba(255,255,255,.2); border-left:none; }

/* Cours de formation : glisse à gauche en RTL */
.rtl .pf-course:hover { transform: translateX(-3px); border-left-color: transparent; border-right-color: var(--blue); }

/* Colonne de cas : bordures inversées */
.rtl .case-col { border-right:none; border-left:1px solid var(--border); }
.rtl .case-col:last-child { border-left:none; }


/* ═══════════════════════════════════════════════════════════
   20. RESPONSIVE
   ─ Tablette ≤ 1024px : masque nav desktop, active burger
   ─ Mobile  ≤  640px  : une seule colonne pour tout
   ═══════════════════════════════════════════════════════════ */

/* ── Mid breakpoint: hide CTA + divider when nav is tight (1025px–1200px) ── */
@media (max-width: 1100px) and (min-width: 1025px) {
  .nav-cta    { display: none; }
  .nav-divider { display: none; }
}

/* ── RTL/Arabic: switch to burger at 1100px (Arabic labels wider than Latin) ── */
@media (max-width: 1100px) {
  .rtl .nav-links   { display: none; }
  .rtl .nav-burger  { display: flex; }
  .rtl .mobile-drawer { display: block; }
  .rtl .mobile-drawer .drawer-panel { top: 68px; }
}

/* ── Tablette (≤ 1024px) ─────────────────────────────────── */
@media (max-width:1024px) {
  /* Navigation */
  .nav-links  { display:none; }
  .nav-cta    { display:none; }
  .nav-divider { display:none; }
  .nav-burger { display:flex; }
  .mobile-drawer { display: block; }
  .mobile-drawer .drawer-panel { top: 68px; }

  /* Hero: KPI panel 3×2 on tablet */
  .h-kpi-panel { grid-template-columns: repeat(3, 1fr); gap: .75rem; }
  .h-desc  { max-width: 100%; }

  /* Services : reste en 2 colonnes sur tablette */
  .sv-grid { grid-template-columns:1fr 1fr; }

  /* Expertise : empile le titre sur la grille */
  .ex-inner  { grid-template-columns:1fr; gap:2.5rem; }
  .ex-sticky { position:static; }
  .ex-intro  { max-width: 100%; }
  .tech-ct   { max-width: 320px; }

  /* Méthodologie : 2×2 au lieu de 1×4 */
  .mt-steps     { grid-template-columns:repeat(2,1fr); gap:2.5rem 1rem; }
  .mt-connector { display:none; } /* Connecteur horizontal caché */

  /* Différenciateurs : 2 colonnes */
  .diff-grid { grid-template-columns:1fr 1fr; }

  /* Étude de cas : colonnes empilées */
  .case-body { grid-template-columns:1fr; }
  .case-col  { border-right:none!important; border-left:none!important; border-bottom:1px solid var(--border); }
  .case-col:last-child { border-bottom:none; }

  /* Conseil */
  .cs-intro { grid-template-columns: 1fr; gap: 1rem; }
  .cs-cards { grid-template-columns: 1fr 1fr; }

  /* Formation et Négoce : empilés */
  .pf-layout { grid-template-columns: 1fr; gap: 2rem; }
  .pf-left   { position: static; }
  .pn-row    { grid-template-columns: 1fr; }
  .pn-cards  { grid-template-columns: 1fr 1fr; } /* Cartes restent en 2 colonnes */
}

/* ── Mobile (≤ 640px) ────────────────────────────────────── */
@media (max-width:640px) {
  /* Fix anchor scroll offset — nav shrinks to 60px on mobile */
  section { scroll-margin-top: 60px; }
  /* Réduire l'espacement global des sections */
  :root { --section-py: 3.5rem; }

  /* Navigation plus compacte */
  nav { height:60px; }
  .nav-inner { padding:0 1rem; }
  .mobile-drawer { top:60px; }
  .mobile-drawer .drawer-panel { top: 0; }
  .logo { font-size:1.25rem; }

  /* Hero */
  #hero { padding-top:calc(60px + 2.5rem); padding-bottom:2.5rem; }
  .h-title   { font-size:clamp(1.85rem,8vw,2.75rem); }
  .h-desc    { font-size:var(--text-base); }
  .h-kpi-panel { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  .h-actions { flex-direction:column; align-items:center; }
  .h-actions.rtl { align-items:center; }
  .btn-p, .btn-s { width:100%; justify-content:center; text-align:center; }

  /* Conseil */
  .cs-cards { grid-template-columns: 1fr; }
  .cs-kpis { flex-direction: column; gap: 1.5rem; }
  .cs-kpi-divider { width: 48px; height: 1px; }

  /* 1 colonne pour tout sur mobile */
  .sv-grid      { grid-template-columns:1fr; }
  .ex-domains   { grid-template-columns:1fr; }
  .mt-steps     { grid-template-columns:1fr; }
  .diff-grid    { grid-template-columns:1fr; }

  /* Étude de cas : disposition verticale */
  .case-hdr  { flex-direction:column; align-items:flex-start; }
  .case-meta { justify-content:flex-start; }
  .m-item    { text-align:left; }
  .case-res  { flex-direction:column; align-items:flex-start; }
  .res-div   { width:100%; height:1px; }    /* Séparateur horizontal */
  .res-kpis  { gap:1.25rem; }

  /* Formulaire de contact : empilé verticalement */
  .ct-form        { gap:.5rem; }
  .ct-form input  { border-radius:8px; }
  .ct-form button { border-radius:8px; padding:.9rem; }

  /* Footer : empilé verticalement */
  .footer-inner { flex-direction:column; align-items:flex-start; gap:.75rem; }
  .rtl .footer-inner { align-items:flex-end; }
  .f-links { flex-wrap:wrap; gap:1rem; }

  /* Dropdown de langue : largeur minimale réduite */
  .lang-menu { min-width:96px; }

  /* Négoce : 1 colonne */
  .pn-cards { grid-template-columns: 1fr; }
  .pn-title { font-size: clamp(1.6rem, 7vw, 2.2rem); }
}


/* ═══════════════════════════════════════════════════════════
   ACCESSIBILITÉ — UTILITAIRES
   Classes helper pour l'accessibilité et la navigation clavier.
   ═══════════════════════════════════════════════════════════ */

/* Texte visible uniquement pour les lecteurs d'écran */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* Lien de saut vers le contenu principal (tab → visible) */
.skip-link { position:fixed; top:-40px; left:1rem; background:var(--blue); color:#fff; padding:.5rem 1rem; border-radius:0 0 6px 6px; font-family:var(--fd); font-size:var(--text-sm); font-weight:700; z-index:9999; transition:top .2s; }
.skip-link:focus { top:0; } /* Apparaît quand on le focus au clavier */

/* ── Logo image ──────────────────────────────────────────── */
.logo-img {
  height: 38px; width: auto;
  object-fit: contain; display: block;
  filter: none;
}
.f-logo-wrap .logo-img {
  height: 32px; width: auto;
  object-fit: contain; display: block;
  filter: brightness(1.3) drop-shadow(0 0 6px rgba(29,78,216,.3));
}
footer .logo-img {
  filter: brightness(1.3) drop-shadow(0 0 6px rgba(29,78,216,.3));
}
@media (max-width: 640px) {
  .logo-img { height: 32px; }
  .f-logo-wrap .logo-img { height: 26px; }
}


/* ═══════════════════════════════════════════════════════════
   21. BOOKING MODAL — Calendly-style
   ═══════════════════════════════════════════════════════════ */

.bk-overlay {
  display: none; position: fixed; inset: 0; z-index: 99999;
  background: rgba(0,0,0,.55); align-items: center; justify-content: center;
  padding: 1rem; backdrop-filter: blur(6px);
}
.bk-overlay.open { display: flex; }

.bk-modal {
  background: var(--surface); border-radius: 16px;
  box-shadow: 0 32px 80px rgba(0,0,0,.18), 0 8px 24px rgba(0,0,0,.1);
  width: 100%; max-width: 860px; max-height: 88vh;
  overflow: hidden;
  display: flex; flex-direction: column;
  animation: bkSlideIn .28s cubic-bezier(.16,1,.3,1);
  border: 1px solid var(--border);
}
@keyframes bkSlideIn {
  from { opacity:0; transform:translateY(20px) scale(.98); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}

/* Top bar */
.bk-topbar {
  display: flex; align-items: center; justify-content: flex-end;
  padding: .45rem .75rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface); flex-shrink: 0;
  border-radius: 16px 16px 0 0;
}
.bk-logo { height: 26px; width: auto; object-fit: contain; }
.bk-close {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink-mute); transition: all .18s;
}
.bk-close i { font-size: 15px; }
.bk-close:hover { background: var(--border); color: var(--ink); }

/* Body layouts */
.bk-body {
  display: flex; flex: 1; overflow-y: auto; min-height: 0;
}
.bk-body--single {
  flex-direction: column; padding: 1.25rem 2rem;
  overflow-y: auto; max-width: 100%; margin: 0 auto; width: 100%;
  box-sizing: border-box;
}
.bk-body--center { align-items: center; text-align: center; }

/* Left info panel — overflow:visible so TZ dropdown can escape panel bounds */
.bk-info-panel {
  width: 260px; flex-shrink: 0;
  padding: 1.25rem;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: .35rem;
  overflow: visible;
}
.bk-info-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--blue-lt); border: 1px solid rgba(29,78,216,.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .35rem;
}
.bk-info-avatar i { font-size: 20px; color: var(--blue); }
.bk-info-org {
  font-family: var(--fn); font-size: .65rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute);
}
.bk-title {
  font-family: var(--fn); font-size: .95rem; font-weight: 700;
  color: var(--ink); line-height: 1.3; margin: .1rem 0 .35rem;
}
.bk-info-meta { display: flex; flex-direction: column; gap: .4rem; margin-top: .15rem; }
.bk-info-row {
  display: flex; align-items: center; gap: .45rem;
  font-size: .78rem; color: var(--ink-soft);
}
.bk-info-row i { font-size: 14px; color: var(--ink-mute); flex-shrink: 0; }

/* Right calendar panel */
.bk-cal-panel {
  flex: 1; padding: 1rem 1.25rem; overflow-y: auto;
  display: flex; flex-direction: column; gap: .6rem;
}
.bk-cal-heading {
  font-family: var(--fn); font-size: .85rem; font-weight: 700;
  color: var(--ink); margin-bottom: 0;
}

/* Calendar */
.bk-cal-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .4rem;
}
.bk-month-label {
  font-size: .82rem; font-weight: 600; color: var(--ink);
  text-transform: capitalize;
}
.bk-nav-btn {
  width: 24px; height: 24px; border-radius: 50%;
  background: transparent; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink-soft); transition: all .18s;
}
.bk-nav-btn i { font-size: 14px; }
.bk-nav-btn:hover { background: var(--blue-lt); border-color: var(--blue); color: var(--blue); }

.bk-cal-days-hdr {
  display: grid; grid-template-columns: repeat(5,1fr);
  margin-bottom: .2rem;
}
.bk-cal-days-hdr span {
  text-align: center; font-family: var(--fn); font-size: .6rem;
  font-weight: 700; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: .04em; padding: .2rem 0;
}
.bk-cal-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 1px; }

.bk-day {
  aspect-ratio: 1; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 500; cursor: pointer;
  color: var(--ink); transition: all .15s; border: 1.5px solid transparent;
  max-width: 34px; max-height: 34px; margin: 0 auto; width: 100%;
}
.bk-day:hover:not(.bk-day--disabled):not(.bk-day--empty) {
  background: var(--blue-lt); color: var(--blue);
}
.bk-day--today { color: var(--blue); font-weight: 700; }
.bk-day--selected { background: var(--blue) !important; color: #fff !important; }
.bk-day--disabled { color: var(--border-md); cursor: not-allowed; }
.bk-day--empty { cursor: default; }

/* Time slots */
.bk-slots-wrap { display: none; }
.bk-slots-label {
  display: flex; align-items: center; gap: .35rem;
  font-family: var(--fn); font-size: .62rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: .35rem;
}
.bk-slots-label i { font-size: 13px; }
.bk-slots { display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; }
.bk-slot {
  padding: .38rem .25rem; border-radius: 6px;
  border: 1px solid var(--border); font-family: var(--fn);
  font-size: .72rem; font-weight: 600; text-align: center;
  cursor: pointer; color: var(--ink-soft); transition: all .15s;
}
.bk-slot:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-lt); }
.bk-slot--selected { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Primary button */
.bk-primary-btn {
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  width: 100%; padding: .62rem 1rem; border-radius: 8px;
  background: var(--blue); color: #fff; border: none;
  font-family: var(--fn); font-size: .82rem; font-weight: 700;
  letter-spacing: .01em; cursor: pointer; transition: all .2s;
  box-shadow: 0 2px 8px rgba(29,78,216,.25); flex-shrink: 0;
}
.bk-primary-btn i { font-size: 15px; }
.bk-primary-btn:hover { background: var(--blue-mid); transform: translateY(-1px); box-shadow: var(--sh-md); }
.bk-primary-btn:disabled { opacity: .38; cursor: not-allowed; transform: none; box-shadow: none; }
.bk-primary-btn--outline {
  background: transparent; color: var(--blue);
  border: 1.5px solid var(--blue); box-shadow: none; max-width: 180px;
}
.bk-primary-btn--outline:hover { background: var(--blue-lt); transform: none; box-shadow: none; }

/* Step 2 */
.bk-back {
  display: inline-flex; align-items: center; gap: .35rem;
  background: none; border: none; font-family: var(--fm);
  font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-mute);
  cursor: pointer; padding: 0; margin-bottom: .6rem; transition: color .18s;
}
.bk-back i { font-size: 14px; }
.bk-back:hover { color: var(--blue); }

.bk-step2-header { margin-bottom: .75rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); }

.bk-slot-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .85rem; background: var(--blue-lt);
  border: 1px solid rgba(29,78,216,.2); border-radius: 6px;
  font-family: var(--fm); font-size: .68rem; font-weight: 600;
  color: var(--blue); letter-spacing: .06em; margin-top: .5rem;
}
.bk-slot-badge i { font-size: 13px; }

.bk-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem 1.25rem;
}
/* Full-width fields */
.bk-field--full { grid-column: 1 / -1; }
.bk-field { display: flex; flex-direction: column; gap: .25rem; }
.bk-field label {
  font-family: var(--fm); font-size: .65rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute);
}
.bk-field input, .bk-field textarea {
  padding: .5rem .75rem; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface);
  font-family: var(--fb); font-size: .875rem; color: var(--ink);
  transition: border-color .18s, box-shadow .18s; outline: none; resize: none;
}
.bk-field input:focus, .bk-field textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,78,216,.1);
}
.bk-field input.bk-error, .bk-field textarea.bk-error {
  border-color: #F97316; box-shadow: 0 0 0 3px rgba(249,115,22,.1);
}

/* Step 3 confirmation */
.bk-confirm-circle {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--blue-lt); border: 1px solid rgba(29,78,216,.2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; flex-shrink: 0;
}
.bk-confirm-circle i { font-size: 26px; color: var(--blue); }
.bk-confirm-title {
  font-family: var(--fn); font-size: 1.15rem; font-weight: 700;
  color: var(--ink); margin-bottom: .5rem;
}
.bk-confirm-sub {
  font-size: .85rem; color: var(--ink-soft); line-height: 1.7;
  margin-bottom: 1rem; max-width: 300px;
}

/* Step hidden */
.bk-step--hidden { display: none !important; }

/* Fix step3 body layout */
.bk-body--center {
  align-items: center; text-align: center;
  justify-content: center;
  gap: .5rem; padding: 2.5rem 2rem;
  overflow-y: auto; flex-direction: column;
  max-width: 420px; margin: 0 auto; width: 100%;
}
.bk-body--center .bk-slot-badge {
  margin: .5rem auto 1rem;
}
.bk-body--center .bk-primary-btn--outline {
  max-width: 180px; margin: .5rem auto 0;
}

/* ── Booking modal typography fixes ── */
.bk-modal { font-family: var(--fn); }
.bk-info-org { font-family: var(--fn); }
.bk-cal-heading { font-family: var(--fn); font-weight: 600; }
.bk-month-label { font-family: var(--fn); }
.bk-day { font-family: var(--fn); }
.bk-slot { font-family: var(--fn); }
.bk-field label { font-family: var(--fn); font-size: .72rem; }
.bk-field input, .bk-field textarea { font-family: var(--fn); }
.bk-primary-btn { font-family: var(--fn); letter-spacing: .01em; }
.bk-back { font-family: var(--fn); font-size: .72rem; }
.bk-slots-label { font-family: var(--fn); }
.bk-slot-badge { font-family: var(--fn); font-size: .75rem; letter-spacing: .03em; text-transform: none; }

/* ── Booking modal mobile ── */
@media (max-width: 640px) {
  .bk-modal { max-height: 95vh; border-radius: 16px 16px 0 0; align-self: flex-end; }
  .bk-body { flex-direction: column; overflow-y: auto; }
  .bk-info-panel { width: 100%; border-right: none; border-bottom: 1px solid var(--border); padding: 1.25rem; overflow: visible; }
  .bk-info-avatar { width: 36px; height: 36px; }
  .bk-info-avatar i { font-size: 17px; }
  .bk-cal-panel { padding: 1.25rem; }
  .bk-slots { grid-template-columns: repeat(3,1fr); }
  .bk-body--single { padding: 1.25rem; }
  .bk-form { grid-template-columns: 1fr; }
  .bk-field--full { grid-column: 1; }
  .bk-body--center { padding: 1.75rem 1.25rem; }
}

/* ═══════════════════════════════════════════════════════════
   22. TABLER ICON SIZING — all icon containers
   ═══════════════════════════════════════════════════════════ */
.sv-ico i   { font-size: 1.35rem; color: var(--blue); }

.dm-ico i   { font-size: 1.1rem; color: var(--blue); }

.cs-card-ico {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--blue-lt); border: 1px solid rgba(29,78,216,.15);
  box-shadow: var(--sh-xs);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; transition: background .2s, border-color .2s;
}
.cs-card:hover .cs-card-ico { background: rgba(29,78,216,.12); border-color: rgba(29,78,216,.25); }
.cs-card-ico i  { font-size: 1.4rem; color: var(--blue); }

.pf-course-ico {
  background: var(--blue-lt); border: 1px solid rgba(29,78,216,.15);
  box-shadow: var(--sh-xs); transition: background .2s, border-color .2s;
}
.pf-course:hover .pf-course-ico { background: rgba(29,78,216,.12); border-color: rgba(29,78,216,.25); }
.pf-course-ico i { font-size: 1.2rem; color: var(--blue); }

.pn-card-ico i  { font-size: 1.25rem; color: var(--blue); }

.diff-ico {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--blue-lt); border: 1px solid rgba(29,78,216,.15);
  box-shadow: var(--sh-xs);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .9rem; flex-shrink: 0;
  transition: background .2s, border-color .2s;
}
.diff-card:hover .diff-ico { background: rgba(29,78,216,.12); border-color: rgba(29,78,216,.25); }

/* ── Add to Calendar buttons (step 3) ── */
.bk-cal-buttons {
  width: 100%; margin: .75rem 0;
}
.bk-cal-label {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  font-family: var(--fm); font-size: .65rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: .6rem;
}
.bk-cal-label i { font-size: 14px; }
.bk-cal-btns {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
}
.bk-cal-btn {
  display: flex; align-items: center; justify-content: center; gap: .35rem;
  padding: .5rem .25rem; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface);
  font-family: var(--fn); font-size: .72rem; font-weight: 600;
  color: var(--ink-soft); text-decoration: none; cursor: pointer;
  transition: all .18s; white-space: nowrap;
}
.bk-cal-btn i { font-size: 14px; flex-shrink: 0; }
.bk-cal-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-lt); }

@media (max-width: 640px) {
  .bk-cal-btns { grid-template-columns: repeat(2, 1fr); }
}

/* ── Timezone selector ── */
.bk-tz-row { align-items: flex-start !important; }

.bk-tz-wrap { position: relative; flex: 1; min-width: 0; }

.bk-tz-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: .3rem;
  width: 100%; padding: .28rem .5rem;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 6px; cursor: pointer;
  font-family: var(--fn); font-size: .72rem; font-weight: 500;
  color: var(--ink-soft); text-align: left;
  transition: border-color .15s, color .15s, background .15s;
  line-height: 1.3;
}
.bk-tz-trigger:hover,
.bk-tz-wrap.open .bk-tz-trigger { border-color: var(--blue); color: var(--blue); background: var(--blue-lt); }

.bk-tz-label {
  flex: 1; min-width: 0; overflow: hidden;
  display: flex; align-items: baseline; gap: 0;
  white-space: nowrap; text-overflow: ellipsis;
}
.bk-tz-lbl-city {
  font-weight: 600; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bk-tz-wrap.open .bk-tz-lbl-city,
.bk-tz-trigger:hover .bk-tz-lbl-city { color: var(--blue); }
.bk-tz-lbl-time {
  font-family: var(--fm); font-weight: 700; color: var(--blue);
  font-size: .72rem; white-space: nowrap;
}
.bk-tz-lbl-sep  { display: none; }   /* unused — kept for safety */
.bk-tz-lbl-offset { display: none; } /* not shown in trigger */

.bk-tz-chevron { flex-shrink: 0; opacity: .6; transition: transform .2s; }
.bk-tz-wrap.open .bk-tz-chevron { transform: rotate(180deg); opacity: 1; }

/* Dropdown panel */
.bk-tz-dropdown {
  position: absolute; top: calc(100% + 5px); left: 0;
  min-width: 340px; width: max-content; max-width: 380px;
  z-index: 100002;
  background: #fff; border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.07);
  overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  display: flex; flex-direction: column;
}
/* RTL — dropdown opens to the right anchor instead of left */
.rtl .bk-tz-dropdown {
  left: auto;
  right: 0;
}
.bk-tz-wrap.open .bk-tz-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}

/* Search row */
.bk-tz-search-wrap {
  display: flex; align-items: center; gap: .45rem;
  padding: .6rem .75rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}
.bk-tz-search-wrap .ti-search { font-size: 13px; color: var(--ink-mute); flex-shrink: 0; }

.bk-tz-search {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: var(--fn); font-size: .78rem; color: var(--ink);
  line-height: 1;
}
.bk-tz-search::placeholder { color: var(--ink-mute); }

/* Detected badge */
.bk-tz-detected { flex-shrink: 0; }
.bk-tz-detected-row {
  display: flex; align-items: center; gap: .4rem;
  padding: .45rem .75rem;
  font-family: var(--fn); font-size: .7rem; color: var(--blue);
  background: var(--blue-lt); border-bottom: 1px solid rgba(29,78,216,.1);
}
.bk-tz-detected-row i { font-size: 13px; }
.bk-tz-detected-row strong { font-weight: 700; }

/* Scrollable list */
.bk-tz-list {
  overflow-y: auto; max-height: 220px;
  padding: .3rem 0;
}
.bk-tz-list::-webkit-scrollbar { width: 3px; }
.bk-tz-list::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 2px; }

/* Region group label */
.bk-tz-group-label {
  font-family: var(--fm); font-size: .58rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-mute); padding: .5rem .75rem .2rem;
  position: sticky; top: 0; background: #fff; z-index: 1;
}

/* Individual option */
.bk-tz-option {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .4rem .75rem;
  font-family: var(--fn); font-size: .75rem; color: var(--ink-soft);
  cursor: pointer; transition: background .12s, color .12s;
  outline: none;
}
.bk-tz-option:hover { background: var(--blue-lt); color: var(--blue); }
.bk-tz-option:focus { background: var(--blue-lt); color: var(--blue); }
.bk-tz-option--active {
  background: var(--blue-lt); color: var(--blue); font-weight: 600;
}
.bk-tz-option--active::after { content: '✓'; font-size: .65rem; flex-shrink: 0; margin-left: .25rem; }

/* Left side: country - city (time) */
.bk-tz-main {
  display: flex; align-items: center; gap: .25rem;
  flex: 1; min-width: 0; overflow: hidden;
}
.bk-tz-country {
  font-weight: 600; color: var(--ink);
  white-space: nowrap; flex-shrink: 0;
}
.bk-tz-option:hover .bk-tz-country,
.bk-tz-option:focus .bk-tz-country,
.bk-tz-option--active .bk-tz-country { color: var(--blue); }

.bk-tz-sep { color: var(--ink-mute); flex-shrink: 0; }

.bk-tz-city {
  color: var(--ink-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
}
.bk-tz-city mark { background: transparent; color: var(--blue); font-weight: 700; }
.bk-tz-country-inline { display: none; } /* not used in new format */

/* Current time badge */
.bk-tz-time {
  font-family: var(--fm); font-size: .7rem; font-weight: 700;
  color: var(--ink-mute); flex-shrink: 0; white-space: nowrap;
  letter-spacing: .02em;
}
.bk-tz-option:hover .bk-tz-time,
.bk-tz-option:focus .bk-tz-time,
.bk-tz-option--active .bk-tz-time { color: var(--blue); }

/* Right side: (GMT+01:00) */
.bk-tz-offset {
  font-family: var(--fm); font-size: .65rem; color: var(--ink-mute);
  flex-shrink: 0; letter-spacing: .02em; white-space: nowrap;
}
.bk-tz-option:hover .bk-tz-offset,
.bk-tz-option:focus .bk-tz-offset,
.bk-tz-option--active .bk-tz-offset { color: var(--blue-mid); }

.bk-tz-empty {
  padding: .85rem .75rem; font-size: .78rem; color: var(--ink-mute);
  text-align: center; font-family: var(--fn);
}

/* Slot TZ hint bar */
.bk-tz-hint {
  display: none; align-items: center; gap: .4rem;
  font-family: var(--fn); font-size: .68rem; color: var(--blue);
  background: var(--blue-lt); border: 1px solid rgba(29,78,216,.15);
  border-radius: 6px; padding: .35rem .65rem; margin-bottom: .4rem;
}
.bk-tz-hint i { font-size: 13px; flex-shrink: 0; }
.bk-tz-hint strong { font-weight: 700; }

/* Mobile adjustments */
@media (max-width: 640px) {
  .bk-tz-dropdown {
    position: fixed;
    left: 1rem !important; right: 1rem !important;
    top: auto; bottom: 0;
    max-width: none; width: auto;
    border-radius: 14px 14px 0 0;
  }
  .bk-tz-list { max-height: 200px; }
}

/* ── Booked slot state ── */
.bk-slot--booked {
  background: var(--surface-2); color: var(--border-md);
  border-color: var(--border); cursor: not-allowed;
  text-decoration: line-through; opacity: .5;
}
.bk-slot--booked:hover { background: var(--surface-2); color: var(--border-md); border-color: var(--border); }

/* ── Slots loading spinner ── */
.bk-slots-loading {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: center;
  padding: .75rem; color: var(--ink-mute);
}
.bk-slots-loading i { font-size: 20px; animation: bkSpin .8s linear infinite; }
@keyframes bkSpin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════
   23. MIGRATED INLINE STYLES
   Moved from HTML to eliminate 'unsafe-inline' from style-src CSP.
   ═══════════════════════════════════════════════════════════ */
.ex-title         { margin-top: .5rem; }
.pn-map-svg       { width: 100%; }
.rf-cta-btn       { margin-top: 1.5rem; display: inline-flex; }
.ct-container     { position: relative; z-index: 1; }
.bk-tz-world-icon { flex-shrink: 0; margin-top: 2px; }

/* ═══════════════════════════════════════════════════════════
   24. CLOUDFLARE TURNSTILE — invisible mode, zero layout impact
   ═══════════════════════════════════════════════════════════ */
.ct-turnstile,
.bk-turnstile,
.cf-turnstile {
  position: absolute !important;
  width: 0 !important; height: 0 !important;
  overflow: hidden !important; pointer-events: none !important;
  opacity: 0 !important; visibility: hidden !important;
}

/* ═══════════════════════════════════════════════════════════
   25. FORM PRIVACY DISCLOSURES
   ═══════════════════════════════════════════════════════════ */
.form-disclosure {
  font-family: var(--fm); font-size: .65rem;
  color: rgba(255,255,255,.38); text-align: center;
  margin-top: .6rem; line-height: 1.6;
}
.form-disclosure a {
  color: rgba(255,255,255,.6);
  text-decoration: underline;
  transition: color .18s;
}
.form-disclosure a:hover { color: #fff; }

.bk-disclosure {
  font-family: var(--fm); font-size: .63rem;
  color: var(--ink-mute); text-align: center;
  margin-top: .5rem; line-height: 1.6;
}
.bk-disclosure a {
  color: var(--blue);
  text-decoration: underline;
  transition: color .18s;
}
.bk-disclosure a:hover { color: var(--blue-dark); }

/* ═══════════════════════════════════════════════════════════
   26. LEGAL PAGES
   All styles moved to legal.css (loaded only on legal pages)
   to avoid cascade conflicts with the main site.
   ═══════════════════════════════════════════════════════════ */


/* ── Booking modal avatar — PXI logo ── */
.bk-info-avatar {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px;
}
.bk-avatar-logo {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}


/* ── Unsocial hours warning in booking modal ── */
.bk-unsocial-warn {
  display: flex; align-items: flex-start; gap: .5rem;
  margin-top: .75rem; padding: .75rem .9rem;
  background: #FFFBEB;
  border: 1px solid rgba(217,119,6,.25);
  border-radius: 8px;
  font-family: var(--fn); font-size: .75rem;
  color: #92400E; line-height: 1.6;
  grid-column: 1 / -1;
}
.bk-unsocial-warn svg { flex-shrink: 0; margin-top: 1px; color: #D97706; }
.bk-unsocial-warn a { color: #1D4ED8; text-decoration: underline; }
.bk-unsocial-warn strong { font-weight: 700; }

/* ── Timezone dropdown RTL overrides ── */
.rtl .bk-tz-search-wrap { direction: rtl; }
.rtl .bk-tz-search { text-align: right; }
.rtl .bk-tz-group-label { text-align: right; direction: rtl; }
.rtl .bk-tz-option { flex-direction: row-reverse; direction: rtl; }
.rtl .bk-tz-option--active::after { margin-left: 0; margin-right: .25rem; }
.rtl .bk-tz-main { flex-direction: row-reverse; }
.rtl .bk-tz-sep { display: none; }
.rtl .bk-tz-trigger { flex-direction: row-reverse; direction: ltr; } /* keep time LTR */
.rtl .bk-tz-label { direction: ltr; } /* time always LTR */
.rtl .bk-tz-detected-row { flex-direction: row-reverse; direction: rtl; }
.rtl .bk-info-panel { direction: rtl; }
.rtl .bk-info-row { flex-direction: row-reverse; }
.rtl .bk-cal-panel { direction: rtl; }
.rtl .bk-cal-nav { flex-direction: row-reverse; }
.rtl .bk-slots { direction: rtl; }
.rtl .bk-slot-badge { direction: rtl; }
.rtl .bk-step2-header { direction: rtl; text-align: right; }
.rtl .bk-form { direction: rtl; }
.rtl .bk-field label { text-align: right; display: block; }
.rtl .bk-unsocial-warn { direction: rtl; flex-direction: row-reverse; text-align: right; }

/* ── Contact form service selector ── */
.ct-service-selector {
  display: flex; flex-wrap: wrap; gap: .5rem;
  justify-content: center;
  width: 100%;
  margin-bottom: .25rem;
}
.ct-service-pill {
  font-family: var(--fn); font-size: .72rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  padding: .45rem 1.1rem;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.7);
  border-radius: 100px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.ct-service-pill:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.5);
  color: #fff;
}
.ct-service-pill.active {
  background: #fff;
  border-color: #fff;
  color: var(--blue-dark);
  font-weight: 700;
}
@media (max-width: 640px) {
  .ct-service-selector { gap: .4rem; }
  .ct-service-pill { font-size: .68rem; padding: .4rem .85rem; }
}

/* ── Booking modal service selector ── */
.bk-service-selector {
  margin-bottom: .85rem;
}
.bk-service-label {
  font-family: var(--fn); font-size: .65rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: .5rem;
}
.bk-service-pills {
  display: flex;
  background: var(--surface-2);
  border: 1.5px solid var(--border-md);
  border-radius: 9px;
  padding: 3px;
  gap: 0;
  width: 100%;
}
.bk-service-pill {
  font-family: var(--fn); font-size: .72rem; font-weight: 600;
  letter-spacing: .02em; text-transform: uppercase;
  padding: .42rem .6rem;
  background: transparent;
  border: none;
  color: var(--ink-mute);
  border-radius: 6px;
  cursor: pointer;
  transition: color .18s, background .18s, box-shadow .18s;
  white-space: nowrap;
  flex: 1;
  text-align: center;
  line-height: 1.3;
}
.bk-service-pill:hover {
  color: var(--ink-soft);
  background: rgba(0,0,0,.04);
}
.bk-service-pill.active {
  background: #fff;
  color: var(--blue);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0,0,0,.10), 0 0 0 1px rgba(29,78,216,.12);
}
.rtl .bk-service-pills { flex-direction: row-reverse; }
@media (max-width: 640px) {
  .bk-service-pill { font-size: .58rem; padding: .4rem .25rem; letter-spacing: 0; }
}
