/* ==========================================================================
   xadimouSALIH — Design system
   Style: Swiss Modernism 2.0 (grille modulaire, grotesque, hiérarchie nette)
   Base: navy #0F172A + orange de marque #F96D00 (hérité de l'identité 2020)
   Aucune dépendance: pas de jQuery, pas de Bootstrap, pas de framework.
   ========================================================================== */

/* --------------------------------------------------------------- 1. Tokens */

:root {
  /* Couleurs — mode clair (défaut) */
  --ink:            #0F172A;   /* texte principal / surfaces sombres */
  --ink-2:          #334155;   /* texte secondaire */
  --ink-3:          #64748B;   /* texte tertiaire, légendes */
  --surface:        #FFFFFF;
  --surface-2:      #F8FAFC;   /* fond de page */
  --surface-3:      #F1F5F9;   /* cartes en creux */
  --border:         #E2E8F0;
  --border-strong:  #CBD5E1;

  /* Accent de marque.
     --accent      : réservé aux aplats, filets, icônes (contraste graphique)
     --accent-text : variante lisible sur blanc (5.9:1 — AA) */
  --accent:         #F96D00;
  --accent-text:    #C2410C;
  --accent-wash:    #FFF3E9;

  --whatsapp:       #25D366;
  --whatsapp-dark:  #128C7E;

  --focus:          #0369A1;

  /* Typographie */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Échelle typographique (fluide, ratio ~1.25) */
  --t-xs:   0.75rem;   /* 12 */
  --t-sm:   0.875rem;  /* 14 */
  --t-base: 1rem;      /* 16 */
  --t-md:   1.125rem;  /* 18 */
  --t-lg:   clamp(1.25rem, 0.5vw + 1.1rem, 1.5rem);
  --t-xl:   clamp(1.5rem,  1vw + 1.25rem, 2rem);
  --t-2xl:  clamp(1.875rem, 2vw + 1.25rem, 2.75rem);
  --t-3xl:  clamp(2.25rem, 3.5vw + 1.25rem, 4rem);

  /* Espacement — densité 4/10 (standard) */
  --s-1: 0.25rem; --s-2: 0.5rem;  --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;    --s-7: 3rem;    --s-8: 4rem;
  --s-9: 6rem;

  --section-y: clamp(3.5rem, 7vw, 6rem);
  --gutter:    clamp(1.25rem, 4vw, 2.5rem);
  --measure:   68ch;
  --container: 1200px;

  --radius:    4px;
  --radius-lg: 8px;

  --shadow-1: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-2: 0 4px 16px -4px rgba(15, 23, 42, .10), 0 1px 3px rgba(15, 23, 42, .06);
  --shadow-3: 0 16px 48px -12px rgba(15, 23, 42, .18);

  --ease: cubic-bezier(.2, .6, .2, 1);
  --dur:  200ms;

  /* Échelle z-index explicite */
  --z-base: 0; --z-raised: 10; --z-sticky: 40; --z-fab: 60; --z-header: 80; --z-overlay: 100;
}

/* ------------------------------------------------------------ 2. Reset */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--t-base);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--surface-2);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
img { background: var(--surface-3); }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
h1 { font-size: var(--t-3xl); }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-lg); letter-spacing: -0.014em; line-height: 1.3; }
h4 { font-size: var(--t-md); letter-spacing: -0.01em; }

p  { margin: 0 0 var(--s-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

button { font: inherit; cursor: pointer; }

/* Focus visible partout — jamais supprimé */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection { background: var(--accent); color: #fff; }

/* -------------------------------------------------------- 3. Utilitaires */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 760px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--dark { background: var(--ink); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #CBD5E1; }
.section--alt { background: var(--surface); }

.stack > * + * { margin-top: var(--s-4); }
.measure { max-width: var(--measure); }
.center  { margin-inline: auto; text-align: center; }
.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 d'évitement clavier */
.skip-link {
  position: absolute; left: var(--s-4); top: -100px;
  z-index: var(--z-overlay);
  background: var(--ink); color: #fff;
  padding: var(--s-3) var(--s-5); border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--s-4); color: #fff; }

/* Sur-titre monospace — signal "technique" du design system */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: var(--s-3);
}
.eyebrow::before {
  content: ""; width: 24px; height: 2px; background: var(--accent); flex: none;
}
.section--dark .eyebrow { color: var(--accent); }

.lede { font-size: var(--t-md); color: var(--ink-2); line-height: 1.7; }
.section--dark .lede { color: #CBD5E1; }

/* ------------------------------------------------------------ 4. Boutons */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  --btn-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px;                 /* cible tactile ≥ 44px */
  padding: var(--s-3) var(--s-5);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: .005em;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease), transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  touch-action: manipulation;
}
.btn:hover  { background: #1E293B; border-color: #1E293B; color: #fff; box-shadow: var(--shadow-2); }
.btn:active { transform: translateY(1px); }
.btn svg    { width: 18px; height: 18px; flex: none; }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--border-strong); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }
.btn--light:hover { background: var(--surface-3); border-color: var(--surface-3); color: var(--ink); }

.btn--wa { --btn-bg: var(--whatsapp); --btn-fg: #0B3D24; --btn-bd: var(--whatsapp); }
.btn--wa:hover { background: #1FBE5B; border-color: #1FBE5B; color: #0B3D24; }

.btn--lg { min-height: 56px; padding: var(--s-4) var(--s-6); font-size: var(--t-base); }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* Lien fléché */
.arrow-link {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 44px;                    /* cible tactile, même pour un lien texte */
  font-weight: 600; font-size: var(--t-sm);
  color: var(--accent-text); text-decoration: none;
}
.arrow-link svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.arrow-link:hover { color: var(--ink); }
.arrow-link:hover svg { transform: translateX(3px); }

/* -------------------------------------------------------------- 5. Header */

.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
@supports not (backdrop-filter: blur(1px)) {
  .site-header { background: #fff; }
}

/* Bandeau contact au-dessus de la nav (masqué en mobile) */
.topbar {
  background: var(--ink);
  color: #CBD5E1;
  font-size: var(--t-sm);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-5); min-height: 44px; flex-wrap: wrap;
}
.topbar__list { display: flex; align-items: center; gap: var(--s-5); flex-wrap: wrap; }
.topbar a {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 44px;
  color: #CBD5E1; text-decoration: none;
  padding-block: var(--s-2);
  transition: color var(--dur) var(--ease);
}
.topbar a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; flex: none; color: var(--accent); }
@media (max-width: 860px) { .topbar { display: none; } }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-5); min-height: 72px;
}
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 30px; width: auto; background: none; }

.nav__links { display: flex; align-items: center; gap: var(--s-1); }
.nav__links a {
  display: block;
  padding: var(--s-3) var(--s-4);
  color: var(--ink-2);
  font-size: var(--t-sm);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav__links a:hover { color: var(--ink); background: var(--surface-3); }
.nav__links a[aria-current="page"] {
  color: var(--ink); font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--accent);
  border-radius: var(--radius) var(--radius) 0 0;
}

.nav__actions { display: flex; align-items: center; gap: var(--s-3); flex: none; }

/* Sélecteur de langue */
.lang {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--surface);
}
.lang a {
  display: flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: var(--s-2) var(--s-3);
  font-family: var(--font-mono); font-size: var(--t-xs); font-weight: 500;
  letter-spacing: .06em;
  color: var(--ink-3); text-align: center; text-decoration: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.lang a:hover { background: var(--surface-3); color: var(--ink); }
.lang a[aria-current="true"] { background: var(--ink); color: #fff; }

/* Burger */
.nav__toggle {
  display: none;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--ink);
}
.nav__toggle svg { width: 22px; height: 22px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }
.nav__toggle[aria-expanded="true"] .icon-menu  { display: none; }

/* Le CTA « devis » du menu mobile n'existe qu'en dessous du point de rupture :
   au-dessus, le bouton de la barre de navigation fait le travail. */
.nav__cta { display: none; }

@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }

  /* `position: absolute` et non `fixed` : le header porte un backdrop-filter,
     ce qui en fait le bloc conteneur des descendants fixed — le panneau était
     alors écrasé à la hauteur du header (bug constaté en QA). */
  .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    max-height: calc(100dvh - var(--nav-offset, 72px));
    flex-direction: column; align-items: stretch;
    gap: 0;
    padding: var(--s-4) var(--gutter) max(var(--s-6), env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-3);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    transform: translateY(-8px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  }
  .nav__links[data-open="true"] {
    opacity: 1; visibility: visible; pointer-events: auto; transform: none;
  }
  .nav__links a {
    padding: var(--s-4) var(--s-2);
    font-size: var(--t-md);
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .nav__links a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); }

  /* Le CTA reprend l'apparence bouton : `.nav__links a` de la media query
     l'écraserait sinon (même spécificité, déclaré plus haut). */
  .nav__cta { display: block; margin-top: var(--s-5); }
  .nav__cta .btn {
    padding: var(--s-4) var(--s-5);
    font-size: var(--t-base);
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    color: #fff;
    text-align: center;
  }

  .nav__actions > .btn { display: none; }
}

/* Boutons pleine largeur sur petit écran : deux CTA de largeurs différentes
   côte à côte cassent l'alignement vertical de la colonne. */
@media (max-width: 560px) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
}

/* ---------------------------------------------------------------- 6. Hero */

.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.hero__media {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .28;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(15,23,42,.94) 0%, rgba(15,23,42,.80) 45%, rgba(15,23,42,.55) 100%);
}
.hero__inner {
  position: relative; z-index: var(--z-raised);
  padding-top: clamp(4rem, 9vw, 7rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  max-width: 800px;
}
.hero h1 { color: #fff; margin-bottom: var(--s-5); }
.hero .lede { color: #CBD5E1; font-size: clamp(1.0625rem, .6vw + 1rem, 1.25rem); max-width: 60ch; }
.hero .eyebrow { color: var(--accent); }
.hero .btn-row { margin-top: var(--s-6); }

/* Bandeau preuve sous le hero */
.hero__proof {
  position: relative; z-index: var(--z-raised);
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: var(--s-5);
}
.hero__proof p {
  font-family: var(--font-mono); font-size: var(--t-xs);
  letter-spacing: .1em; text-transform: uppercase;
  color: #94A3B8; margin-bottom: var(--s-3);
}
.hero__proof ul {
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6);
  color: #E2E8F0; font-size: var(--t-sm); font-weight: 500;
}
.hero__proof li { display: flex; align-items: center; gap: var(--s-2); }
.hero__proof li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); flex: none;
}

/* Hero secondaire (pages internes) */
.pagehead {
  background: var(--ink); color: #fff;
  padding-block: clamp(3rem, 7vw, 5rem);
}
.pagehead h1 { color: #fff; margin-bottom: var(--s-4); }
.pagehead .lede { color: #CBD5E1; max-width: 62ch; }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2);
  font-size: var(--t-sm); color: #94A3B8; margin-bottom: var(--s-5);
}
.breadcrumb a { color: #CBD5E1; text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb span[aria-hidden] { color: #94A3B8; }   /* #475569 = 2.4:1 sur navy */

/* ------------------------------------------------------- 7. Grille & cartes */

/* Colonnes explicites plutôt qu'auto-fit : auto-fit produisait des lignes
   orphelines (4 cartes rendues en 3 + 1). Grille modulaire, paliers fixes. */
.grid { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.section-head { max-width: 720px; margin-bottom: var(--s-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head h2 { margin-bottom: var(--s-4); }

.card {
  display: flex; flex-direction: column;
  padding: var(--s-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-2); }
/* Réserve deux lignes de titre : sinon, dans une même rangée, un titre sur une
   ligne et un titre sur deux désalignent tous les paragraphes qui suivent. */
.card :is(h2, h3) {
  margin-bottom: var(--s-3); min-height: 2.6em;
  font-size: var(--t-lg); letter-spacing: -0.014em; line-height: 1.3;
}
.card p  { font-size: var(--t-sm); color: var(--ink-2); }
/* Les listes se calent en bas de carte pour aligner les rangées entre elles. */
.card .checks { margin-top: auto; padding-top: var(--s-5); }
.card .arrow-link { margin-top: auto; padding-top: var(--s-5); }

/* Le niveau HTML du titre de carte varie selon la page (h2 ou h3) ; l'échelle
   visuelle, elle, ne change pas. Voir les règles .card/.project ci-dessus. */
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: var(--s-5);
  border-radius: var(--radius);
  background: var(--accent-wash);
  color: var(--accent-text);
  flex: none;
}
.card__icon svg { width: 22px; height: 22px; stroke-width: 1.75; }

.card--num { counter-increment: cardnum; }
.card--num .card__num {
  font-family: var(--font-mono); font-size: var(--t-xs); font-weight: 500;
  letter-spacing: .1em; color: var(--ink-3); margin-bottom: var(--s-4);
}

/* Chiffres clés */
.stats { border-top: 1px solid var(--border); }
.stat { padding: var(--s-5) 0; }
.stat__num {
  display: block;
  font-size: clamp(2.25rem, 3vw + 1rem, 3.25rem);
  font-weight: 700; line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.section--dark .stat__num { color: #fff; }
.stat__label {
  display: block; margin-top: var(--s-3);
  font-size: var(--t-sm); color: var(--ink-3);
}
.section--dark .stat__label { color: #94A3B8; }
.stat__num::after { content: ""; display: block; width: 32px; height: 3px; background: var(--accent); margin-top: var(--s-4); }

/* Projets — les visuels sont des photos claires et contrastées : sans voile
   opaque, le libellé et le titre deviennent illisibles (constaté en QA). */
.project {
  position: relative; display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--ink);
  text-decoration: none;
  isolation: isolate;
}
.project img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .4;
  transition: opacity var(--dur) var(--ease), transform 400ms var(--ease);
}
.project:hover img { opacity: .3; transform: scale(1.04); }
.project__body {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--s-5);
  background: linear-gradient(to top,
    rgba(15, 23, 42, .96) 0%,
    rgba(15, 23, 42, .88) 32%,
    rgba(15, 23, 42, .45) 62%,
    rgba(15, 23, 42, .10) 100%);
}
.project__tag {
  display: block; margin-bottom: var(--s-2);
  font-family: var(--font-mono); font-size: var(--t-xs);
  letter-spacing: .1em; text-transform: uppercase;
  color: #FDBA74;                     /* orange clair : 7:1 sur le voile navy */
}
.project :is(h2, h3) {
  color: #fff; font-size: var(--t-base); font-weight: 600; line-height: 1.35;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 12px rgba(15, 23, 42, .6);
}

/* Témoignages.
   Les cinq citations réelles vont de 120 à 500 caractères. Sur trois colonnes
   égales, la plus longue crée une carte deux fois plus haute et une rangée
   orpheline. La première occupe donc deux colonnes : mesure de lecture
   confortable pour le texte long, et 5 cartes qui remplissent deux rangées. */
.quotes { align-items: start; }
@media (min-width: 1000px) {
  .quotes > .quote:first-child { grid-column: span 2; }
}

.quote {
  display: flex; flex-direction: column;
  padding: var(--s-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
}
.quote blockquote { margin: 0 0 var(--s-5); }
.quote blockquote p { font-size: var(--t-base); color: var(--ink); line-height: 1.65; }
.quote figcaption { display: flex; align-items: center; gap: var(--s-3); margin-top: auto; }
.quote img {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none;
}
.quote__name { display: block; font-weight: 600; color: var(--ink); font-size: var(--t-sm); }
.quote__role { display: block; font-size: var(--t-xs); color: var(--ink-3); line-height: 1.4; }

/* Bloc média + texte */
.split {
  display: grid; gap: var(--s-7);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: center;
}
.split__media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-lg);
}
.split--reverse .split__media { order: 2; }
@media (max-width: 720px) { .split--reverse .split__media { order: 0; } }

/* Liste à puces cochées */
.checks li {
  position: relative; padding-left: var(--s-6); margin-bottom: var(--s-3);
  color: var(--ink-2); font-size: var(--t-sm);
}
.checks li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.section--dark .checks li { color: #CBD5E1; }

/* Bandeau d'appel à l'action */
.cta-band {
  display: grid; gap: var(--s-5);
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: var(--s-7);
  background: var(--ink);
  border-radius: var(--radius-lg);
}
.cta-band h2 { color: #fff; font-size: var(--t-xl); margin-bottom: var(--s-2); }
.cta-band p  { color: #CBD5E1; font-size: var(--t-sm); }
@media (max-width: 780px) { .cta-band { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------- 8. Formulaire */

.form { display: grid; gap: var(--s-5); }
.field { display: grid; gap: var(--s-2); }
.field > label {
  display: flex; align-items: baseline; gap: var(--s-2);
  font-size: var(--t-sm); font-weight: 600; color: var(--ink);
}
.field .req { color: var(--accent-text); }
.field .hint { font-size: var(--t-xs); font-weight: 400; color: var(--ink-3); margin-left: auto; }

.field input, .field textarea, .field select {
  width: 100%;
  min-height: 48px;
  padding: var(--s-3) var(--s-4);
  font: inherit;
  font-size: var(--t-base);           /* 16px: évite le zoom auto iOS */
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: #94A3B8; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--ink-3); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(3, 105, 161, .18);
}
.field[data-invalid="true"] input,
.field[data-invalid="true"] textarea { border-color: var(--destructive, #DC2626); }

.field__error {
  display: none;
  align-items: center; gap: var(--s-2);
  font-size: var(--t-xs); font-weight: 500; color: #B91C1C;
}
.field__error svg { width: 14px; height: 14px; flex: none; }
.field[data-invalid="true"] .field__error { display: flex; }

.form__status {
  display: none;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--radius);
  font-size: var(--t-sm);
  border: 1px solid transparent;
}
.form__status[data-state="ok"]  { display: flex; background: #ECFDF5; border-color: #A7F3D0; color: #065F46; }
.form__status[data-state="err"] { display: flex; background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.form__status svg { width: 18px; height: 18px; flex: none; }

/* L'icône suit l'état : coche en succès, alerte en erreur.
   Un message vert flanqué d'un panneau d'alerte envoie deux signaux opposés. */
.form__status-ico { display: none; flex: none; margin-top: 2px; }
.form__status[data-state="ok"]  .form__status-ico--ok  { display: block; }
.form__status[data-state="err"] .form__status-ico--err { display: block; }

/* Cartes de canal de contact */
.channel {
  display: flex; gap: var(--s-4);
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.channel:hover { border-color: var(--border-strong); box-shadow: var(--shadow-2); }
.channel__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none;
  border-radius: var(--radius);
  background: var(--surface-3); color: var(--ink);
}
.channel__icon svg { width: 22px; height: 22px; }
.channel--wa .channel__icon { background: #E7F9EF; color: var(--whatsapp-dark); }
.channel__label {
  display: block; font-size: var(--t-xs); font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 2px;
}
.channel__value { display: block; font-weight: 600; color: var(--ink); }
/* L'adresse e-mail est plus longue que la colonne : on la rétrécit plutôt que
   de la couper au milieu d'un mot (« xadimousalih@gm / ail.com »). */
.channel__value--mail { font-size: var(--t-sm); overflow-wrap: anywhere; }
.channel__meta  { display: block; font-size: var(--t-xs); color: var(--ink-3); margin-top: 2px; }

/* -------------------------------------------------- 9. Bouton WhatsApp flottant */

.wa-fab {
  position: fixed;
  right: max(var(--s-4), env(safe-area-inset-right));
  bottom: max(var(--s-4), env(safe-area-inset-bottom));
  z-index: var(--z-fab);
  display: inline-flex; align-items: center; gap: var(--s-3);
  height: 56px; padding: 0 var(--s-5);
  border-radius: 999px;
  background: var(--whatsapp);
  color: #0B3D24;
  font-size: var(--t-sm); font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-3);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  touch-action: manipulation;
}
.wa-fab:hover  { background: #1FBE5B; color: #0B3D24; transform: translateY(-2px); }
.wa-fab:active { transform: translateY(0); }
.wa-fab svg { width: 26px; height: 26px; flex: none; }
@media (max-width: 560px) {
  .wa-fab { width: 56px; padding: 0; justify-content: center; }
  .wa-fab span { display: none; }
}

/* --------------------------------------------------------------- 10. Footer */

.site-footer {
  background: var(--ink);
  color: #94A3B8;
  padding-block: var(--s-8) var(--s-5);
  font-size: var(--t-sm);
}
.site-footer h2 {
  font-size: var(--t-sm); font-weight: 600; color: #fff;
  letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: var(--s-4);
}
.site-footer img.footer-logo { height: 26px; width: auto; background: none; margin-bottom: var(--s-4); }
.site-footer a { color: #CBD5E1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid {
  display: grid; gap: var(--s-7);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding-bottom: var(--s-7);
}
.footer-grid li { margin-bottom: var(--s-3); }
.footer-contact li { display: flex; gap: var(--s-3); align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--accent); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5);
  align-items: center; justify-content: space-between;
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255,255,255,.10);
  font-size: var(--t-xs);
}

/* ------------------------------------------------------------ 11. Animation */

/* Révélation au défilement — activée par JS (classe .js sur <html>) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* --------------------------------------------------------- 12. Impression */

@media print {
  .site-header, .wa-fab, .site-footer, .cta-band { display: none !important; }
  body { background: #fff; color: #000; }
}
