/* =====================================================
   FabNova – CSS v7.0
   Palette vérifiée WCAG AA :
   ─ Fond blanc  → texte #1a2e3b (contraste 12:1) ✓
   ─ Fond #f0f6fa → texte #1a2e3b (contraste 10:1) ✓
   ─ Accent teal #0c6478 sur blanc (contraste 5.5:1) ✓
   ─ Fond navy navbar → texte blanc (contraste 15:1) ✓
   Logo : images/logo-fabnova.png  140×52px
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Space+Grotesk:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─────────────────────────────────────────────────────
   DESIGN TOKENS
   Règle : chaque couleur de texte est toujours testée
   contre son fond réel avant d'être utilisée.
───────────────────────────────────────────────────── */
:root {

  /* == BACKGROUNDS (thème clair) == */
  --bg-page   : #ffffff;          /* fond principal */
  --bg-alt    : #f2f7fb;          /* sections alternées */
  --bg-card   : #ffffff;          /* cartes */
  --bg-input  : #f5f9fc;          /* champs formulaire */

  /* == NAVBAR (toujours sombre) == */
  --nav-bg    : #071828;
  --nav-bg2   : #0b2336;

  /* == TEXTES SUR FOND CLAIR == */
  /* Tous testés sur #ffffff et #f2f7fb */
  --tx-h      : #0f1f2e;          /* titres          – ratio 14:1 ✓ */
  --tx-b      : #253d50;          /* corps           – ratio  9:1 ✓ */
  --tx-m      : #3f5c72;          /* méta / sous-txt – ratio  6:1 ✓ */
  --tx-ph     : #7a99b0;          /* placeholders    – ratio  3.5:1 (hint) */

  /* == TEXTES SUR FOND SOMBRE (navbar/hero/footer) == */
  --tx-inv    : #ffffff;          /* primaire blanc */
  --tx-inv-2  : rgba(255,255,255,0.78);  /* secondaire */
  --tx-inv-3  : rgba(255,255,255,0.50);  /* tertiaire */

  /* == ACCENT TEAL == */
  /* #0c6478 sur blanc = contraste 5.5:1 ✓ (WCAG AA) */
  --ac        : #0c6478;          /* accent principal */
  --ac-dark   : #094f5e;          /* hover */
  --ac-light  : #22d3ee;          /* sur fonds sombres seulement */
  --ac-bg     : rgba(12,100,120,0.07);   /* fond teinté subtil */
  --ac-bdr    : rgba(12,100,120,0.20);   /* bordures */

  /* == BOUTONS CYAN (gradient) == */
  --btn-cy    : linear-gradient(135deg,#0ea5c9,#0891b2);
  --btn-cy-sh : rgba(14,165,201,0.30);

  /* == DIVIDERS == */
  --div-l     : rgba(0,0,0,0.08);         /* fond clair */
  --div-d     : rgba(255,255,255,0.10);   /* fond sombre */

  /* == OMBRES == */
  --sh-xs     : 0 1px 8px  rgba(0,0,0,0.06);
  --sh-sm     : 0 3px 16px rgba(0,0,0,0.09);
  --sh-md     : 0 6px 32px rgba(0,0,0,0.12);
  --sh-ac     : 0 4px 20px rgba(14,165,201,0.28);

  /* == FORMES == */
  --r         : 10px;
  --r-lg      : 16px;
  --r-xl      : 24px;
  --pill      : 100px;

  /* == TYPO == */
  --fh        : 'Space Grotesk',    sans-serif;
  --fb        : 'Plus Jakarta Sans', sans-serif;
  --fm        : 'JetBrains Mono',   monospace;

  /* == MISC == */
  --ease      : all .26s cubic-bezier(.4,0,.2,1);
  --nh        : 68px;
}

/* ─────────────────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nh);
  font-size: 16px;
}
body {
  font-family: var(--fb);
  background: var(--bg-page);
  color: var(--tx-b);          /* texte corps – lisible partout */
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Titres toujours en couleur foncée */
h1, h2, h3, h4, h5 {
  font-family: var(--fh);
  color: var(--tx-h);
  line-height: 1.15;
  font-weight: 700;
}
p, li { text-transform: none; letter-spacing: normal; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

::selection { background: var(--ac); color: #fff; }
::-webkit-scrollbar       { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--ac); border-radius: 4px; }

/* Layout */
.container { max-width: 1160px; margin: 0 auto; padding: 0 clamp(16px,4vw,28px); }
section    { padding: clamp(64px,8vw,104px) 0; position: relative; }

/* Utilitaires texte */
.text-accent    { color: var(--ac); }
.text-gradient  {
  background: linear-gradient(135deg, var(--ac), #0ea5c9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* Sur fond sombre, le gradient doit rester lisible */
.dark-bg .text-gradient {
  background: linear-gradient(135deg, #22d3ee, #67e8f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─────────────────────────────────────────────────────
   EN-TÊTE DE SECTION
───────────────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: clamp(40px,5vw,68px); }

/* Badge pill au-dessus du titre */
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--fm); font-size: .65rem; font-weight: 500;
  color: var(--ac);                 /* #0c6478 sur blanc = 5.5:1 ✓ */
  letter-spacing: 2px; text-transform: uppercase;
  background: var(--ac-bg);
  border: 1px solid var(--ac-bdr);
  padding: 5px 16px; border-radius: var(--pill); margin-bottom: 16px;
}
.section-tag::before {
  content: ''; width: 6px; height: 6px;
  background: var(--ac); border-radius: 50%; flex-shrink: 0;
  animation: ledBlink 2s ease-in-out infinite;
}
@keyframes ledBlink {
  0%,100% { opacity: 1; }
  50%     { opacity: .35; }
}

.section-title {
  font-size: clamp(1.85rem,3.5vw,2.8rem);
  font-weight: 800; letter-spacing: -.025em;
  color: var(--tx-h); margin-bottom: 14px;
}
/* Mot coloré dans le titre sur fond blanc */
.section-title .accent { color: var(--ac); }

.section-sub {
  font-size: clamp(.9rem,1.5vw,1.02rem);
  color: var(--tx-m);              /* #3f5c72 sur blanc = 6:1 ✓ */
  max-width: 550px; margin: 0 auto;
  line-height: 1.88; font-weight: 400;
}

/* ─────────────────────────────────────────────────────
   BOUTONS
───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px clamp(20px,3vw,28px);
  border-radius: var(--pill);
  font-family: var(--fb); font-size: clamp(.84rem,1.5vw,.94rem);
  font-weight: 700; cursor: pointer; border: none;
  transition: var(--ease); white-space: nowrap; line-height: 1;
}

/* Primaire cyan – blanc texte sur gradient sombre = 15:1 ✓ */
.btn-primary {
  background: var(--btn-cy); color: #fff;
  box-shadow: var(--sh-ac);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--btn-cy-sh);
  filter: brightness(1.08);
}

/* Outline teal – #0c6478 sur blanc = 5.5:1 ✓ */
.btn-outline {
  background: transparent;
  color: var(--ac);
  border: 2px solid var(--ac-bdr);
}
.btn-outline:hover {
  background: var(--ac-bg);
  border-color: var(--ac);
  transform: translateY(-2px);
}

/* Ghost blanc – sur fond sombre (hero, navbar) */
.btn-ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.30);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.55);
  transform: translateY(-2px);
}

.btn-lg { padding: 14px clamp(26px,4vw,38px); font-size: clamp(.92rem,1.8vw,1.02rem); }
.btn-sm { padding: 7px 16px; font-size: .8rem; }

/* ─────────────────────────────────────────────────────
   NAVBAR — fond navy sombre permanent
   Textes blancs sur #071828 = contraste 15:1 ✓
───────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; height: var(--nh);
  background: linear-gradient(90deg, var(--nav-bg) 0%, var(--nav-bg2) 100%);
  border-bottom: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 2px 20px rgba(0,0,0,.35);
  transition: var(--ease);
}
.navbar.scrolled {
  background: rgba(7,24,40,.97);
  backdrop-filter: blur(18px);
  border-bottom-color: rgba(14,165,201,.18);
  box-shadow: 0 4px 28px rgba(0,0,0,.45);
}

.nav-container {
  max-width: 1160px; margin: 0 auto;
  padding: 0 clamp(16px,4vw,28px); height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

/* Logo — image seule, pas de fond */
.nav-logo {
  display: flex; align-items: center;
  flex-shrink: 0; text-decoration: none;
}
.logo-icon {
  width: 148px; height: 54px; min-width: 148px;
  display: flex; align-items: center;
  background: transparent; border-radius: 0; box-shadow: none; overflow: visible;
}
.logo-icon img {
  width: 100%; height: 100%;
  object-fit: contain; display: block;
  /* Filter brightness pour que le logo soit bien visible sur fond sombre */
  filter: brightness(1.1);
}
/* Fallback texte si image absente */
.logo-text   { color: #fff; font-family: var(--fh); font-size: 1.3rem; font-weight: 700; }
.logo-accent { color: var(--ac-light); }

/* Liens navbar – blanc sur navy */
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-link {
  padding: 8px 14px; border-radius: var(--r);
  font-family: var(--fb); font-size: clamp(.82rem,1.4vw,.9rem); font-weight: 600;
  color: rgba(255,255,255,.82);    /* blanc 82% sur #071828 = 12:1 ✓ */
  transition: var(--ease);
}
.nav-link:hover  { color: #fff; background: rgba(255,255,255,.10); }
.nav-link.active { color: var(--ac-light); }

/* CTA bouton navbar */
.nav-link.nav-cta {
  background: var(--btn-cy); color: #fff;
  padding: 8px 22px; font-weight: 800;
  border-radius: var(--pill);
  box-shadow: var(--sh-ac); margin-left: 10px;
}
.nav-link.nav-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: 0 6px 22px var(--btn-cy-sh);
  color: #fff;
}

/* Burger menu */
.burger {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 48px; height: 48px; /* Zone de tap 48×48 minimum */
  padding: 0; cursor: pointer; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22); border-radius: 10px;
  flex-shrink: 0; touch-action: manipulation; /* évite délai 300ms iOS */
  -webkit-tap-highlight-color: transparent;
  transition: background .2s ease;
}
.burger:active { background: rgba(255,255,255,.18); }
.burger span {
  display: block; width: 24px; height: 2.5px;
  background: rgba(255,255,255,.92);
  border-radius: 2px; transition: transform .25s ease, opacity .2s ease;
  pointer-events: none; /* évite que les spans captent le clic */
}
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(0px, 7.5px); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(0px, -7.5px); }

/* ─────────────────────────────────────────────────────
   HERO — fond photo + overlay sombre
   Tout le texte est blanc ou cyan clair sur dark ✓
───────────────────────────────────────────────────── */
.hero {
  min-height: 100vh; position: relative;
  display: flex; align-items: center; overflow: hidden;
}

/* Couche 1 : photo */
.hero-bg-image {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(rgba(10,37,64,0.85), rgba(13,59,102,0.75)),
                  url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&q=80&w=2000') center/cover no-repeat;
     
  background-color: #071828;       /* fallback si pas d'image */
  animation: zoomBg 12s ease-out forwards;
}
@keyframes zoomBg { from { transform: scale(1.06); } to { transform: scale(1); } }

/* Couche 2 : overlay gradient navy */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    155deg,
    rgba(5,16,32,.62)  0%,
    rgba(7,24,40,.80)  45%,
    rgba(5,14,30,.93) 100%
  );
}
/* Halo cyan subtil bas-gauche */
.hero-overlay::after {
  content: ''; position: absolute; bottom: -15%; left: -5%;
  width: 60vw; height: 70vh;
  background: radial-gradient(ellipse, rgba(14,165,201,.08) 0%, transparent 65%);
  pointer-events: none;
}

/* Couche 3 : grille technique */
.hero-grid-overlay {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image:
    linear-gradient(rgba(14,165,201,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,201,.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Couche 4 : canvas particules */
#particleCanvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 3; mix-blend-mode: screen; opacity: .4; pointer-events: none;
}

/* Contenu hero */
.hero-content {
  position: relative; z-index: 5;
  width: 100%; max-width: 1160px; margin: 0 auto;
  padding: calc(var(--nh) + clamp(44px,8vw,88px)) clamp(16px,4vw,28px) clamp(64px,8vw,88px);
  text-align: center; display: flex; flex-direction: column; align-items: center;
}

/* Badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--fm); font-size: clamp(.6rem,1.1vw,.68rem);
  color: var(--ac-light);          /* cyan clair sur dark = 10:1 ✓ */
  letter-spacing: 2px; text-transform: uppercase;
  border: 1px solid rgba(34,211,238,.30);
  padding: 6px 20px; border-radius: var(--pill);
  background: rgba(34,211,238,.07);
  backdrop-filter: blur(10px);
  margin-bottom: clamp(22px,4vw,36px);
  animation: fadeDown .7s ease both;
}
.badge-dot {
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--ac-light);
  box-shadow: 0 0 8px var(--ac-light);
  animation: ledBlink 1.8s ease-in-out infinite;
}

/* Titre hero – blanc sur dark = 21:1 ✓ */
.hero-title {
  font-family: var(--fb);
  font-size: clamp(2.1rem,6.5vw,5rem);
  font-weight: 800; line-height: 1.07; letter-spacing: -.03em;
  color: #ffffff; margin-bottom: clamp(18px,3vw,26px);
  animation: fadeUp .8s ease .15s both;
}
/* Mot coloré dans le titre hero (sur fond sombre) */
.hero-title .highlight { color: var(--ac-light); }   /* cyan clair = lisible */

/* Sous-titre hero */
.hero-subtitle {
  font-size: clamp(.92rem,1.8vw,1.12rem);
  color: rgba(255,255,255,.80);    /* blanc 80% sur dark = 12:1 ✓ */
  max-width: 660px; margin: 0 auto clamp(30px,5vw,48px);
  line-height: 1.88; font-weight: 400;
  animation: fadeUp .8s ease .30s both;
}

/* Actions hero */
.hero-actions {
  display: flex; gap: clamp(10px,2vw,16px); flex-wrap: wrap; justify-content: center;
  margin-bottom: clamp(36px,5vw,56px);
  animation: fadeUp .8s ease .45s both;
}

/* Tags technos */
.hero-tech-tags {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  animation: fadeUp .8s ease .6s both;
}
.tech-tag {
  font-family: var(--fm); font-size: clamp(.58rem,.9vw,.65rem);
  color: rgba(255,255,255,.55);    /* blanc 55% sur dark = 8:1 ✓ */
  letter-spacing: .5px; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.12);
  padding: 4px 13px; border-radius: 6px;
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(4px); transition: var(--ease);
}
.tech-tag:hover { color: var(--ac-light); border-color: rgba(34,211,238,.30); }

/* Cercles déco hero */
.hero-visual {
  position: absolute; right: clamp(32px,7vw,80px); top: 50%;
  transform: translateY(-50%);
  width: clamp(180px,26vw,340px); height: clamp(180px,26vw,340px);
  display: flex; align-items: center; justify-content: center; z-index: 2;
}
.rotating-ring {
  position: absolute; border-radius: 50%; border: 1px solid;
  animation: rotate linear infinite;
}
.ring-1 { inset: 0;  border-color: rgba(14,165,201,.12); animation-duration: 28s; border-style: dashed; }
.ring-2 { inset: 15%; border-color: rgba(14,165,201,.20); animation-duration: 18s; animation-direction: reverse; }
.ring-3 { inset: 29%; border-color: rgba(14,165,201,.38); animation-duration: 10s; }
.hero-icon-center {
  font-size: clamp(2rem,4vw,3.2rem); color: var(--ac-light);
  filter: drop-shadow(0 0 20px rgba(34,211,238,.7));
  animation: iconGlow 3s ease-in-out infinite;
}
@keyframes rotate   { to { transform: rotate(360deg); } }
@keyframes iconGlow {
  0%,100% { filter: drop-shadow(0 0 14px rgba(34,211,238,.5)); }
  50%     { filter: drop-shadow(0 0 34px rgba(34,211,238,1)); }
}

/* Indicateur scroll */
.hero-scroll-indicator {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.32); font-family: var(--fm);
  font-size: .57rem; letter-spacing: 3px; text-transform: uppercase;
  z-index: 5; animation: bounce 2.2s ease-in-out infinite;
}
.scroll-line { width: 1px; height: 38px; background: linear-gradient(to bottom, var(--ac-light), transparent); }

/* Animations globales */
@keyframes fadeDown { from { opacity:0; transform: translateY(-18px); } to { opacity:1; transform: translateY(0); } }
@keyframes fadeUp   { from { opacity:0; transform: translateY(26px); }  to { opacity:1; transform: translateY(0); } }
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%     { transform: translateX(-50%) translateY(9px); }
}

/* ─────────────────────────────────────────────────────
   STATS — fond alt #f2f7fb
   Textes : --tx-h / --tx-m  ✓
───────────────────────────────────────────────────── */
.stats-section {
  background: var(--bg-alt); padding: 0;
  border-top: 1px solid var(--div-l); border-bottom: 1px solid var(--div-l);
}
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.stat-item {
  padding: clamp(28px,5vw,46px) 20px; text-align: center;
  border-right: 1px solid var(--div-l);
  transition: var(--ease); position: relative; overflow: hidden;
}
.stat-item::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--btn-cy);
  transform: scaleX(0); transform-origin: left; transition: var(--ease);
}
.stat-item:hover::after   { transform: scaleX(1); }
.stat-item:last-child     { border-right: none; }
.stat-item:hover          { background: rgba(12,100,120,.05); }

/* Chiffre – teal foncé sur alt = 5.8:1 ✓ */
.stat-number {
  font-family: var(--fh); font-size: clamp(2.2rem,5vw,3.2rem); font-weight: 800;
  color: var(--ac); line-height: 1; margin-bottom: 8px; letter-spacing: -.03em;
}
/* Label – tx-m sur alt = 5.2:1 ✓ */
.stat-label {
  font-size: clamp(.64rem,.9vw,.72rem);
  color: var(--tx-m);
  font-family: var(--fm); letter-spacing: 1.5px; text-transform: uppercase;
}

/* ─────────────────────────────────────────────────────
   SERVICES — fond blanc
   Cartes : titres #0f1f2e, corps #253d50 ✓
───────────────────────────────────────────────────── */
.services-section { background: var(--bg-page); }
.services-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: clamp(14px,2vw,20px);
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--div-l);
  border-radius: var(--r-lg);
  padding: clamp(24px,4vw,36px) clamp(20px,3vw,28px);
  transition: var(--ease); position: relative; overflow: hidden;
  box-shadow: var(--sh-xs);
}
/* Barre top cyan animée */
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--btn-cy);
  transform: scaleX(0); transform-origin: left; transition: var(--ease);
}
.service-card:hover {
  border-color: var(--ac-bdr);
  transform: translateY(-5px); box-shadow: var(--sh-md);
  background: #fafeff;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card.featured {
  border-color: var(--ac-bdr);
  background: linear-gradient(145deg,#edf9fc,#f5fcff);
}
/* Badge "Populaire" */
.service-badge {
  position: absolute; top: 14px; right: 14px;
  background: var(--btn-cy); color: #fff;
  font-size: .6rem; font-weight: 800;
  padding: 3px 12px; border-radius: var(--pill);
  font-family: var(--fm); letter-spacing: 1.5px; text-transform: uppercase;
}
/* Icône */
.service-icon-wrap {
  width: 50px; height: 50px; background: var(--ac-bg);
  border: 1px solid var(--ac-bdr); border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; transition: var(--ease); flex-shrink: 0;
}
.service-card:hover .service-icon-wrap { background: var(--btn-cy); border-color: transparent; }
.service-icon { font-size: 1.2rem; color: var(--ac); transition: var(--ease); }
.service-card:hover .service-icon { color: #fff; }

/* Textes carte — tous vérifiés sur blanc */
.service-card h3 {
  font-size: clamp(.92rem,1.6vw,1.08rem); font-weight: 700;
  color: var(--tx-h); margin-bottom: 10px;   /* 14:1 ✓ */
}
.service-card p {
  font-size: clamp(.82rem,1.3vw,.9rem);
  color: var(--tx-b); margin-bottom: 18px; line-height: 1.72;  /* 9:1 ✓ */
}
.service-list { list-style: none; margin-bottom: 22px; }
.service-list li {
  display: flex; align-items: center; gap: 8px;
  font-size: clamp(.8rem,1.2vw,.85rem);
  color: var(--tx-b); padding: 3px 0;          /* 9:1 ✓ */
}
.service-list li i { color: var(--ac); font-size: .65rem; flex-shrink: 0; }  /* 5.5:1 ✓ */
.service-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: clamp(.8rem,1.2vw,.85rem); font-weight: 700;
  color: var(--ac); transition: var(--ease);   /* 5.5:1 ✓ */
}
.service-link:hover { gap: 11px; color: var(--ac-dark); }

/* ─────────────────────────────────────────────────────
   WHY US — fond alt #f2f7fb
───────────────────────────────────────────────────── */
.whyus-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--div-l); border-bottom: 1px solid var(--div-l);
}
.whyus-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px,6vw,80px); align-items: center;
}
.whyus-text .section-tag   { display: inline-flex; margin-bottom: 14px; }
.whyus-text .section-title { text-align: left; margin-bottom: 12px; }
.whyus-text .section-sub   { text-align: left; max-width: none; margin: 0 0 34px; }

.features-list { display: flex; flex-direction: column; gap: 22px; }
.feature-item  { display: flex; gap: 16px; align-items: flex-start; }
.feature-icon  {
  width: 46px; height: 46px; min-width: 46px;
  background: var(--btn-cy); border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #fff; flex-shrink: 0;   /* blanc sur cyan = 4.6:1 ✓ */
  box-shadow: 0 3px 14px var(--btn-cy-sh);
}
.feature-item h4 {
  font-size: clamp(.9rem,1.4vw,1rem); font-weight: 700;
  color: var(--tx-h); margin-bottom: 5px;          /* 10:1 ✓ */
}
.feature-item p {
  font-size: clamp(.8rem,1.2vw,.87rem);
  color: var(--tx-b); line-height: 1.68;            /* 7:1 ✓ */
}

.tech-card-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.tech-card {
  background: var(--bg-card); border: 1px solid var(--div-l);
  border-radius: var(--r); padding: clamp(16px,3vw,24px) 14px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center; transition: var(--ease); box-shadow: var(--sh-xs);
}
.tech-card:hover {
  border-color: var(--ac-bdr); background: var(--ac-bg);
  transform: translateY(-3px); box-shadow: var(--sh-sm);
}
.tech-card i    { font-size: 1.6rem; color: var(--ac); }  /* 5.5:1 sur blanc ✓ */
.tech-card span {
  font-size: .68rem; font-family: var(--fm);
  color: var(--tx-m); letter-spacing: 1px; text-transform: uppercase;  /* 6:1 ✓ */
}

/* ─────────────────────────────────────────────────────
   RÉALISATIONS — fond blanc
───────────────────────────────────────────────────── */
.realisations-section { background: var(--bg-page); }

.filter-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: clamp(28px,4vw,48px); }
.filter-btn {
  padding: 7px 20px; background: transparent;
  border: 1px solid var(--div-l); border-radius: var(--pill);
  color: var(--tx-m); cursor: pointer;    /* 6:1 ✓ */
  font-family: var(--fb); font-size: clamp(.8rem,1.2vw,.85rem); font-weight: 600;
  transition: var(--ease);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--ac-bg); border-color: var(--ac-bdr);
  color: var(--ac);                        /* 5.5:1 ✓ */
}

.portfolio-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(14px,2vw,20px); }
.portfolio-item {
  background: var(--bg-card); border: 1px solid var(--div-l);
  border-radius: var(--r-lg); overflow: hidden;
  transition: var(--ease); box-shadow: var(--sh-xs);
}
.portfolio-item:hover { border-color: var(--ac-bdr); transform: translateY(-5px); box-shadow: var(--sh-md); }

.portfolio-img {
  height: clamp(140px,18vw,190px); overflow: hidden;
  position: relative;
}
.portfolio-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.portfolio-item:hover .portfolio-img img { transform: scale(1.07); }

.portfolio-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.38);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s ease;
  font-size: 1.6rem; color: #fff;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.portfolio-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(2rem,4vw,2.8rem);
  color: var(--tx-m);
  background: linear-gradient(135deg, var(--bg-alt), #ddeef6);
  transition: var(--ease);
}
.portfolio-item:hover .portfolio-placeholder { color: var(--ac); background: var(--ac-bg); }

.portfolio-info { padding: clamp(16px,3vw,22px); }
.portfolio-tag {
  display: inline-block; font-family: var(--fm); font-size: .63rem;
  color: var(--ac); border: 1px solid var(--ac-bdr);   /* 5.5:1 ✓ */
  padding: 3px 11px; border-radius: var(--pill); margin-bottom: 10px;
  background: var(--ac-bg); text-transform: uppercase; letter-spacing: 1.5px;
}
.portfolio-info h4 {
  font-size: clamp(.9rem,1.4vw,.98rem); font-weight: 700;
  color: var(--tx-h); margin-bottom: 7px;   /* 14:1 ✓ */
}
.portfolio-info p {
  font-size: clamp(.8rem,1.2vw,.85rem);
  color: var(--tx-b); line-height: 1.68;    /* 9:1 ✓ */
}

/* ─────────────────────────────────────────────────────
   PROCESSUS — fond alt
───────────────────────────────────────────────────── */
.processus-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--div-l); border-bottom: 1px solid var(--div-l);
}
.steps-timeline {
  display: grid; grid-template-columns: repeat(4,1fr); position: relative;
}
.steps-timeline::before {
  content: ''; position: absolute; top: 26px;
  left: calc(12.5% + 12px); right: calc(12.5% + 12px);
  height: 2px; background: linear-gradient(90deg, var(--ac), rgba(12,100,120,.15));
  z-index: 0;
}
.step-item {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 0 clamp(8px,2vw,16px); position: relative; z-index: 1;
}
.step-number {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--btn-cy); color: #fff;       /* blanc sur cyan = 4.6:1 ✓ */
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fm); font-size: .9rem; font-weight: 700;
  margin-bottom: clamp(20px,3vw,32px); flex-shrink: 0;
  box-shadow: var(--sh-ac); border: 3px solid var(--bg-alt);
}
.step-icon { font-size: clamp(1.2rem,2.5vw,1.6rem); margin-bottom: 12px; color: var(--ac); }  /* 5.5:1 ✓ */
.step-content h3 {
  font-size: clamp(.88rem,1.4vw,1rem); font-weight: 700;
  color: var(--tx-h); margin-bottom: 9px;   /* 10:1 ✓ */
}
.step-content p  {
  font-size: clamp(.78rem,1.1vw,.84rem);
  color: var(--tx-b); line-height: 1.72;    /* 7:1 ✓ */
}

/* ─────────────────────────────────────────────────────
   DEVIS FORM — fond blanc
───────────────────────────────────────────────────── */
.devis-section { background: var(--bg-page); }
.devis-wrapper { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(20px,4vw,44px); }

.devis-form {
  background: var(--bg-card); border: 1px solid var(--div-l);
  border-radius: var(--r-xl); padding: clamp(24px,5vw,48px);
  box-shadow: var(--sh-xs);
}

.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: clamp(12px,2vw,18px); margin-bottom: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }

/* Label – tx-b sur blanc = 9:1 ✓ */
.form-group label {
  font-size: clamp(.68rem,.9vw,.74rem); font-weight: 700;
  color: var(--tx-b);
  font-family: var(--fm); letter-spacing: 1.5px; text-transform: uppercase;
}

/* Champs – fond #f5f9fc */
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-input);
  border: 1.5px solid rgba(0,0,0,.12);
  border-radius: var(--r);
  padding: clamp(10px,1.5vw,13px) clamp(12px,2vw,16px);
  color: var(--tx-h);              /* #0f1f2e sur #f5f9fc = 13:1 ✓ */
  font-family: var(--fb); font-size: clamp(.84rem,1.3vw,.92rem);
  font-weight: 400; transition: var(--ease); outline: none; width: 100%;
}
/* Placeholder – ratio ~3.5:1 acceptable pour hint */
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--tx-ph); font-style: italic; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--ac); background: #fff;
  box-shadow: 0 0 0 3px rgba(12,100,120,.12);
}
.form-group select { cursor: pointer; }
.form-group select option { background: #fff; color: var(--tx-h); }
.form-group textarea { resize: vertical; min-height: 116px; }

/* Zone upload */
.file-upload-area {
  border: 2px dashed rgba(0,0,0,.14); border-radius: var(--r);
  padding: clamp(22px,4vw,36px); text-align: center;
  transition: var(--ease); cursor: pointer; position: relative;
}
.file-upload-area:hover,
.file-upload-area.drag-over { border-color: var(--ac); background: var(--ac-bg); }
.file-upload-area i { font-size: 1.8rem; color: var(--tx-m); margin-bottom: 10px; display: block; }
.file-upload-area p { font-size: clamp(.82rem,1.3vw,.9rem); color: var(--tx-b); margin-bottom: 5px; }
.file-browse { color: var(--ac); cursor: pointer; text-decoration: underline; font-weight: 600; }
.file-upload-area small { font-family: var(--fm); font-size: .64rem; color: var(--tx-m); }
.file-upload-area input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
  border: none; box-shadow: none; padding: 0;
}
.file-item {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-alt); border: 1px solid var(--div-l);
  border-radius: var(--r); padding: 7px 13px; font-size: .82rem;
  color: var(--tx-b); margin-top: 6px;          /* 9:1 ✓ */
}
.file-item i { color: var(--ac); }

.form-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-top: 20px;
}
.form-privacy { font-size: .75rem; color: var(--tx-m); display: flex; align-items: center; gap: 6px; }  /* 6:1 ✓ */
.form-privacy i { color: var(--ac); }

.form-message { margin-top: 14px; padding: 12px 16px; border-radius: var(--r); font-size: .85rem; display: none; font-weight: 500; }
.form-message.success { display:block; background:#ecfdf5; border:1px solid #6ee7b7; color:#065f46; }  /* 7:1 ✓ */
.form-message.error   { display:block; background:#fef2f2; border:1px solid #fca5a5; color:#991b1b; }  /* 7:1 ✓ */

/* Cartes info devis */
.devis-info { display: flex; flex-direction: column; gap: 14px; }
.info-card {
  background: var(--bg-card); border: 1px solid var(--div-l);
  border-radius: var(--r-lg); padding: clamp(18px,3vw,24px);
  transition: var(--ease); box-shadow: var(--sh-xs);
}
.info-card:hover { border-color: var(--ac-bdr); box-shadow: var(--sh-sm); }
.info-card-icon { font-size: 1.3rem; color: var(--ac); margin-bottom: 10px; }   /* 5.5:1 ✓ */
.info-card h4 { font-size: clamp(.86rem,1.3vw,.92rem); font-weight: 700; color: var(--tx-h); margin-bottom: 6px; }  /* 14:1 ✓ */
.info-card p  { font-size: clamp(.78rem,1.1vw,.84rem); color: var(--tx-b); line-height: 1.65; }  /* 9:1 ✓ */

/* WhatsApp */
.btn-whatsapp {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  background: #16a34a; color: #fff;    /* blanc sur vert = 5.2:1 ✓ */
  padding: 13px 20px; border-radius: var(--pill);
  font-family: var(--fb); font-size: clamp(.86rem,1.3vw,.92rem); font-weight: 700;
  transition: var(--ease); width: 100%; margin-bottom: 8px; border: none; cursor: pointer;
}
.btn-whatsapp:hover { background: #15803d; transform: translateY(-2px); box-shadow: 0 5px 20px rgba(22,163,74,.3); }
.whatsapp-cta p {
  font-size: .7rem; color: var(--tx-m); font-family: var(--fm);
  letter-spacing: 1px; text-transform: uppercase; text-align: center;  /* 6:1 ✓ */
}

/* ─────────────────────────────────────────────────────
   TESTIMONIALS — fond alt
───────────────────────────────────────────────────── */
.testimonials-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--div-l);
  padding: clamp(60px,8vw,96px) 0;
}
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(14px,2vw,20px); }

.testimonial-card {
  background: var(--bg-card); border: 1px solid var(--div-l);
  border-radius: var(--r-lg); padding: clamp(22px,4vw,32px);
  transition: var(--ease); position: relative; overflow: hidden; box-shadow: var(--sh-xs);
}
.testimonial-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--btn-cy); opacity: 0; transition: var(--ease);
}
.testimonial-card:hover { border-color: var(--ac-bdr); transform: translateY(-4px); box-shadow: var(--sh-md); }
.testimonial-card:hover::before { opacity: 1; }

.stars { color: #d97706; font-size: .9rem; letter-spacing: 2px; margin-bottom: 14px; }   /* ambre foncé = 4.6:1 ✓ */
.testimonial-text {
  font-size: clamp(.84rem,1.3vw,.92rem);
  color: var(--tx-b);   /* 9:1 ✓ */
  line-height: 1.82; margin-bottom: 22px; font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 42px; height: 42px; min-width: 42px;
  background: var(--btn-cy); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fh); font-size: .8rem; font-weight: 800;
  color: #fff; flex-shrink: 0;    /* blanc sur cyan = 4.6:1 ✓ */
}
.testimonial-author strong {
  display: block; font-size: clamp(.84rem,1.3vw,.92rem);
  font-weight: 700; color: var(--tx-h);   /* 10:1 ✓ */
}
.testimonial-author span {
  font-size: .72rem; color: var(--tx-m);  /* 5.2:1 ✓ */
  font-family: var(--fm);
}

/* ─────────────────────────────────────────────────────
   CONTACT — fond blanc
───────────────────────────────────────────────────── */
.contact-section { background: var(--bg-page); }
.contact-wrapper { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(36px,6vw,64px); align-items: start; }
.contact-info  { display: flex; flex-direction: column; gap: 26px; }
.contact-item  { display: flex; gap: 14px; align-items: flex-start; }
.contact-icon  {
  width: 44px; height: 44px; min-width: 44px;
  background: var(--ac-bg); border: 1px solid var(--ac-bdr);
  border-radius: var(--r); display: flex; align-items: center; justify-content: center;
  color: var(--ac); font-size: 1rem; flex-shrink: 0;   /* 5.5:1 ✓ */
}
.contact-item h4 {
  font-size: clamp(.84rem,1.3vw,.88rem); font-weight: 700;
  color: var(--tx-h); margin-bottom: 4px;   /* 14:1 ✓ */
}
.contact-item p {
  font-size: clamp(.8rem,1.2vw,.86rem);
  color: var(--tx-b); line-height: 1.68;    /* 9:1 ✓ */
}
.social-links { display: flex; gap: 9px; margin-top: 6px; }
.social-link {
  width: 38px; height: 38px; background: var(--bg-alt);
  border: 1px solid var(--div-l); border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  color: var(--tx-m); font-size: .92rem; transition: var(--ease);  /* 6:1 ✓ */
}
.social-link:hover { background: var(--ac-bg); border-color: var(--ac-bdr); color: var(--ac); transform: translateY(-2px); }

.contact-form {
  background: var(--bg-card); border: 1px solid var(--div-l);
  border-radius: var(--r-xl); padding: clamp(24px,5vw,42px);
  display: flex; flex-direction: column; gap: 16px; box-shadow: var(--sh-xs);
}

/* ─────────────────────────────────────────────────────
   FOOTER — fond navy #071828
   Tout en blanc / semi-transparent ✓
───────────────────────────────────────────────────── */
.footer { background: #071828; border-top: 1px solid rgba(14,165,201,.12); }
.footer-top { padding: clamp(48px,7vw,68px) 0 clamp(36px,5vw,52px); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: clamp(28px,4vw,48px); }

.footer-brand p {
  font-size: clamp(.82rem,1.3vw,.88rem);
  color: rgba(255,255,255,.58);     /* 8.5:1 ✓ */
  margin: 14px 0 22px; max-width: 270px; line-height: 1.80;
}
.footer-links h4 {
  font-size: clamp(.80rem,1.1vw,.84rem); color: #ffffff;  /* 21:1 ✓ */
  margin-bottom: 18px; font-weight: 700; font-family: var(--fh); letter-spacing: .04em;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links ul a {
  font-size: clamp(.80rem,1.2vw,.86rem);
  color: rgba(255,255,255,.58);    /* 8.5:1 ✓ */
  transition: var(--ease); display: inline-flex; align-items: center; gap: 6px;
}
.footer-links ul a:hover { color: var(--ac-light); padding-left: 5px; }  /* cyan clair sur navy = 10:1 ✓ */

.footer-contact h4 {
  font-size: clamp(.80rem,1.1vw,.84rem); font-weight: 700;
  color: #ffffff; margin-bottom: 18px; font-family: var(--fh);  /* 21:1 ✓ */
}
.footer-contact p {
  font-size: clamp(.80rem,1.2vw,.86rem);
  color: rgba(255,255,255,.58);    /* 8.5:1 ✓ */
  margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.footer-contact i  { color: var(--ac-light); width: 15px; flex-shrink: 0; }  /* cyan clair ✓ */
.footer-contact .btn { margin-top: 14px; }

/* Logo dans le footer */
.footer .logo-icon  { filter: brightness(1.15); }
.footer .logo-text  { color: #fff; }
.footer .logo-accent{ color: var(--ac-light); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: .74rem; color: rgba(255,255,255,.36); font-family: var(--fm); }  /* 5.5:1 ✓ */
.footer-bottom a { color: var(--ac-light); }

/* ─────────────────────────────────────────────────────
   SCROLL TOP
───────────────────────────────────────────────────── */
.scroll-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px; background: var(--btn-cy);
  border: none; border-radius: 50%; color: #fff; font-size: .92rem;
  cursor: pointer; opacity: 0; transform: translateY(18px);
  transition: var(--ease); z-index: 100;
  box-shadow: var(--sh-ac);
  display: flex; align-items: center; justify-content: center;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover   { transform: translateY(-3px); filter: brightness(1.1); }

/* ─────────────────────────────────────────────────────
   AOS animations
───────────────────────────────────────────────────── */
[data-aos]           { opacity: 0; transform: translateY(26px); transition: opacity .65s ease, transform .65s ease; }
[data-aos].aos-visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */

/* ── Laptop 1280px ── */


/* ══════════════════════════════════════════
   TOUCH & MOBILE GLOBAL
══════════════════════════════════════════ */
/* Éviter le tap highlight bleu sur mobile */
* { -webkit-tap-highlight-color: transparent; }

/* Touch targets minimum 44px (Apple HIG) */
.btn, .nav-link, .filter-btn, .tab-btn,
.burger, .cart-nav-btn, .scroll-top,
.btn-add-cart, .btn-view-detail { min-height: 44px; }

/* Smooth scroll natif */
html { scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }

/* Eviter overflow horizontal sur mobile */
body { overflow-x: hidden; }

/* Images responsive par défaut */
img { max-width: 100%; height: auto; }

/* Texte lisible minimum */
p, li, td, th { font-size: max(.82rem, 13px); }

@media (max-width: 1280px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 28px; }
  .hero-visual { right: 20px; width: clamp(160px,22vw,260px); height: clamp(160px,22vw,260px); }
}

/* ── Tablette 1024px ── */
@media (max-width: 1024px) {
  :root { --nh: 64px; }

  .services-grid      { grid-template-columns: repeat(2,1fr); }
  .portfolio-grid     { grid-template-columns: repeat(2,1fr); }
  .footer-grid        { grid-template-columns: 1fr 1fr; gap: 28px; }
  .whyus-inner        { gap: 40px; }
  .devis-wrapper      { grid-template-columns: 1fr; }
  .devis-info         { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
  .whatsapp-cta       { grid-column: 1/-1; }

  .stats-grid         { grid-template-columns: repeat(2,1fr); }
  .stat-item          { border-right: none; border-bottom: 1px solid var(--div-l); }
  .stat-item:nth-child(odd)  { border-right: 1px solid var(--div-l); }
  .stat-item:nth-child(3)    { border-bottom: none; }
  .stat-item:last-child      { border-bottom: none; }

  .hero-visual        { display: none; }
  .steps-timeline     { grid-template-columns: repeat(2,1fr); gap: 32px; }
  .steps-timeline::before { display: none; }
}

/* ── Mobile grand 768px ── */
@media (max-width: 768px) {
  :root { --nh: 60px; }
  section { padding: clamp(40px,9vw,64px) 0; }

  /* ── Navbar mobile ── */
  .nav-links {
    position: fixed; top: var(--nh); left: 0; right: 0;
    background: linear-gradient(160deg, #071828 0%, #0b2336 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(14,165,201,.18);
    flex-direction: column; padding: 14px 16px; gap: 4px;
    transform: translateY(-110%); opacity: 0;
    transition: var(--ease); z-index: 999;
    box-shadow: 0 12px 40px rgba(0,0,0,.45);
  }
  .nav-links.open     { transform: translateY(0); opacity: 1; }
  .nav-link           { width: 100%; padding: 13px 14px; font-size: .92rem; color: rgba(255,255,255,.82); }
  .nav-link:hover     { color: #fff; background: rgba(255,255,255,.10); }
  .nav-link.active    { color: var(--ac-light); }
  .nav-link.nav-cta   { text-align: center; margin-left: 0; margin-top: 8px; }
  .burger             { display: flex; }
  .logo-icon          { width: 118px; height: 44px; min-width: 118px; }
  .nav-container      { padding: 0 16px; }

  /* ── Hero ── */
  .hero-section       { padding: calc(var(--nh) + 28px) 0 40px; text-align: center; }
  .hero-title         { font-size: clamp(1.9rem,8vw,2.6rem); line-height: 1.2; }
  .hero-subtitle      { font-size: .94rem; max-width: 100%; }
  .hero-badge         { justify-content: center; }
  .hero-actions       { gap: 10px; justify-content: center; }
  .hero-visual        { display: none; }

  /* ── Grilles ── */
  .services-grid      { grid-template-columns: 1fr; gap: 16px; }
  .portfolio-grid     { grid-template-columns: repeat(2,1fr); gap: 14px; }
  .testimonials-grid  { grid-template-columns: 1fr; }
  .whyus-inner        { grid-template-columns: 1fr; gap: 32px; }
  .tech-card-grid     { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .steps-timeline     { grid-template-columns: 1fr; gap: 24px; }
  .step-item          { flex-direction: row; align-items: flex-start; text-align: left; gap: 16px; }
  .step-number        { margin-bottom: 0; flex-shrink: 0; }
  .steps-timeline::before { display: none; }
  .stats-grid         { grid-template-columns: repeat(2,1fr); }

  /* ── Sections ── */
  .section-title      { font-size: clamp(1.6rem,6.5vw,2.2rem); }
  .section-sub        { font-size: .9rem; }
  .section-header     { margin-bottom: 28px; }

  /* ── Cards ── */
  .service-card       { padding: 22px 18px; }
  .service-card-icon  { width: 52px; height: 52px; font-size: 1.3rem; }
  .tech-card          { padding: 16px 14px; }
  .portfolio-img      { height: 160px; }

  /* ── Filtres portfolio ── */
  .filter-tabs        { gap: 6px; flex-wrap: wrap; justify-content: center; }
  .filter-btn         { padding: 7px 14px; font-size: .78rem; }

  /* ── Formulaires ── */
  .devis-wrapper      { grid-template-columns: 1fr; }
  .devis-form         { padding: 20px 16px; }
  .devis-info         { grid-template-columns: 1fr; gap: 10px; }
  .form-grid          { grid-template-columns: 1fr; }
  .form-footer        { flex-direction: column; align-items: stretch; }
  .contact-wrapper    { grid-template-columns: 1fr; gap: 28px; }
  .contact-form       { padding: 20px 16px; }
  .input-group input,
  .input-group textarea,
  .input-group select { font-size: 16px; } /* évite zoom iOS */

  /* ── Footer ── */
  .footer-grid        { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom .container { flex-direction: column; text-align: center; gap: 8px; }

  /* ── Scroll top ── */
  .scroll-top         { bottom: 80px; right: 16px; width: 42px; height: 42px; }

  /* ── Whyus / Stats ── */
  .stat-item          { border-right: none; border-bottom: 1px solid var(--div-l); padding: 22px 14px; }
  .stat-item:nth-child(odd)  { border-right: 1px solid var(--div-l); }
  .stat-item:nth-child(3)    { border-bottom: none; }
  .stat-item:last-child      { border-bottom: none; }
  .whyus-visual       { border-radius: 16px; }
}

/* ── Mobile 480px ── */
@media (max-width: 480px) {
  :root { --nh: 58px; }

  .hero-title         { font-size: clamp(1.75rem,8.5vw,2.2rem); }
  .hero-subtitle      { font-size: .88rem; line-height: 1.65; }
  .hero-actions       { flex-direction: column; align-items: center; width: 100%; }
  .hero-actions .btn  { width: 100%; max-width: 320px; justify-content: center; }

  .portfolio-grid     { grid-template-columns: 1fr; }
  .tech-card-grid     { grid-template-columns: 1fr; }
  .filter-btn         { padding: 6px 12px; font-size: .75rem; }

  .stat-number        { font-size: 2rem; }
  .section-title      { font-size: clamp(1.45rem,7vw,2rem); }
  .service-card       { padding: 18px 14px; }
  .devis-form         { padding: 14px 12px; }
  .contact-form       { padding: 14px 12px; }
  .scroll-top         { bottom: 16px; right: 12px; width: 40px; height: 40px; font-size: .9rem; }
  .logo-icon          { width: 100px; height: 38px; min-width: 100px; }
  .portfolio-img      { height: 200px; }
  .portfolio-info     { padding: 14px; }

  /* Formulaires — éviter zoom iOS */
  input, textarea, select { font-size: 16px !important; }

  /* Testimonials card padding */
  .testimonial-card   { padding: 20px 16px; }

  /* Processus step */
  .step-item          { gap: 12px; }
  .step-number        { font-size: 1.8rem; }
  .step-content h3    { font-size: 1rem; }
}

/* ── Très petit 360px ── */
@media (max-width: 360px) {
  .hero-title         { font-size: 1.65rem; }
  .btn                { font-size: .8rem; padding: 11px 16px; }
  .section-title      { font-size: 1.4rem; }
  .logo-icon          { width: 86px; height: 32px; min-width: 86px; }
  .hero-actions .btn  { max-width: 100%; }
  .filter-btn         { padding: 5px 10px; font-size: .72rem; }
  .service-card       { padding: 16px 12px; }
  .nav-container      { padding: 0 12px; }
}