/* ============================================================
   L'ASSOCIÉ SARL — Design System « Digital Premium » 2026
   Identité logo conservée (navy / or / accents multicolores)
   + ambiance tech : bleu électrique, cyan, flux numériques
   Typographie : Space Grotesk (titres) · Inter (texte)
   ============================================================ */

:root {
  /* Identité */
  --navy:        #12206A;
  --navy-deep:   #0B1345;
  --ink-bg:      #070D2E;
  --gold:        #C8950A;
  --gold-light:  #E8B33A;
  /* Ambiance digitale */
  --electric:    #2E6BFF;
  --cyan:        #2BD9F0;
  --anthracite:  #23262F;
  /* Neutres */
  --white:       #FFFFFF;
  --off-white:   #F6F8FC;
  --grey:        #565D74;
  --grey-light:  #E3E7F1;
  --ink:         #14182B;
  /* Système */
  --radius:      18px;
  --radius-sm:   12px;
  --shadow:      0 12px 40px rgba(18, 32, 106, 0.10);
  --shadow-lg:   0 28px 70px rgba(7, 13, 46, 0.20);
  --glow-cyan:   0 0 24px rgba(43, 217, 240, 0.35);
  --glow-gold:   0 0 24px rgba(232, 179, 58, 0.35);
  --font-head:   'Space Grotesk', 'Inter', -apple-system, sans-serif;
  --font-body:   'Inter', -apple-system, 'Segoe UI', sans-serif;
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --transition:  0.35s var(--ease);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px; line-height: 1.7;
  color: var(--ink); background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
ul { list-style: none; }

.container { width: min(1180px, 92%); margin-inline: auto; }

/* ---------- Typographie ---------- */
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); letter-spacing: -0.015em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); line-height: 1.08; font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.15; font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 600; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--gold);
}
.eyebrow::before {
  content: ''; width: 36px; height: 1.5px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
}
.lead { font-size: 1.12rem; color: var(--grey); font-weight: 300; }
.gold { color: var(--gold); }
.text-gradient {
  background: linear-gradient(100deg, var(--cyan) 0%, var(--gold-light) 55%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Icônes SVG ---------- */
.icon {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.card-icon {
  width: 56px; height: 56px; border-radius: 15px;
  display: grid; place-items: center;
  color: var(--navy);
  background: linear-gradient(135deg, rgba(46, 107, 255, 0.08), rgba(43, 217, 240, 0.10));
  border: 1px solid rgba(46, 107, 255, 0.16);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.card-icon .icon { width: 26px; height: 26px; }
.card:hover .card-icon {
  color: var(--gold); border-color: rgba(232, 179, 58, 0.5);
  box-shadow: var(--glow-gold); transform: rotate(-4deg) scale(1.06);
}

/* ---------- Boutons premium ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 30px; border-radius: 14px;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  cursor: pointer; border: 1.5px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}
.btn::after { /* balayage lumineux */
  content: ''; position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg); transition: left 0.6s var(--ease);
}
.btn:hover::after { left: 130%; }
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 16px 38px; font-size: 1rem; }
.btn-gold {
  background: linear-gradient(120deg, var(--gold-light), var(--gold));
  color: var(--ink-bg); box-shadow: 0 10px 28px rgba(200, 149, 10, 0.35);
}
.btn-gold:hover { box-shadow: 0 16px 40px rgba(200, 149, 10, 0.5), var(--glow-gold); }
.btn-outline {
  border-color: rgba(43, 217, 240, 0.45); color: var(--white);
  background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px);
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: var(--glow-cyan); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); box-shadow: 0 12px 32px rgba(18, 32, 106, 0.4); }

/* ---------- Logo vivant ---------- */
.logo-float {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 10px;
  animation: logoIn 1s var(--ease) both;
}
.logo-halo {
  position: absolute; inset: -18%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.85) 0%, rgba(43, 217, 240, 0.18) 45%, transparent 72%);
  border-radius: 50%; filter: blur(6px);
  animation: haloPulse 4.5s ease-in-out infinite;
  pointer-events: none;
}
.brand-logo {
  position: relative; height: 46px; width: auto;
  filter: drop-shadow(0 2px 10px rgba(255, 255, 255, 0.5));
  transition: transform 0.5s var(--ease);
  animation: logoFloat 6s ease-in-out infinite;
}
.brand:hover .brand-logo { transform: scale(1.05) rotateY(6deg); }
.logo-float-lg .brand-logo { height: 60px; }

/* Logo héroïque (accueil) avec anneau lumineux orbital */
.logo-hero {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 38px; margin-bottom: 6px;
  animation: logoIn 1.2s var(--ease) both;
}
.logo-hero::before { /* anneau lumineux circulant */
  content: ''; position: absolute; inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(43, 217, 240, 0.55) 82%, rgba(232, 179, 58, 0.65) 92%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 1.5px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 1.5px));
  animation: orbit 7s linear infinite;
}
.logo-hero .logo-halo { inset: 6%; }
.logo-hero .brand-logo { height: clamp(78px, 12vw, 118px); animation-duration: 7s; }

@keyframes logoIn   { from { opacity: 0; transform: translateY(14px) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes logoFloat{ 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes haloPulse{ 0%, 100% { opacity: 0.75; scale: 1; } 50% { opacity: 1; scale: 1.06; } }
@keyframes orbit    { to { transform: rotate(360deg); } }

/* ---------- Header glass ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 12px 0;
  background: rgba(7, 13, 46, 0.28);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.header-line {
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(43, 217, 240, 0.7) 30%, rgba(232, 179, 58, 0.7) 70%, transparent);
  opacity: 0; transition: opacity 0.5s ease;
}
.site-header.scrolled {
  background: rgba(7, 13, 46, 0.82);
  padding: 6px 0;
  box-shadow: 0 10px 40px rgba(7, 13, 46, 0.4);
}
.site-header.scrolled .header-line { opacity: 1; }
.site-header.scrolled .brand-logo { height: 38px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative; padding: 9px 15px; border-radius: 12px;
  color: rgba(255, 255, 255, 0.85); font-size: 0.92rem; font-weight: 500;
  transition: color var(--transition), background var(--transition);
}
.nav-link::after {
  content: ''; position: absolute; left: 15px; right: 15px; bottom: 5px; height: 1.5px;
  background: linear-gradient(90deg, var(--cyan), var(--gold-light));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--gold-light); }
.nav-cta { margin-left: 10px; border: 1.5px solid rgba(232, 179, 58, 0.8); color: var(--gold-light); }
.nav-cta::after { display: none; }
.nav-cta:hover, .nav-cta.active { background: var(--gold); color: var(--ink-bg); box-shadow: var(--glow-gold); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2.5px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: var(--transition); }

/* ---------- Fond numérique (canvas réseau) ---------- */
.net-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 80% -10%, rgba(46, 107, 255, 0.28), transparent 60%),
    radial-gradient(900px 500px at 8% 110%, rgba(43, 217, 240, 0.14), transparent 55%),
    radial-gradient(700px 400px at 50% 50%, rgba(200, 149, 10, 0.08), transparent 60%),
    linear-gradient(165deg, var(--ink-bg) 0%, var(--navy-deep) 55%, var(--navy) 100%);
  color: var(--white);
  padding: 170px 0 120px;
  text-align: center;
}
.hero::before { /* maillage technologique */
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(120, 160, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, black 25%, transparent 75%);
}
.hero > .container { position: relative; z-index: 2; }
.hero h1 { color: var(--white); margin: 20px auto 22px; max-width: 900px; }
.hero .lead { color: rgba(255, 255, 255, 0.78); max-width: 660px; margin-inline: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; justify-content: center; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 48px; justify-content: center; }
.badge {
  padding: 8px 17px; border-radius: 999px; font-size: 0.8rem; font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(43, 217, 240, 0.22);
  backdrop-filter: blur(8px);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.badge:hover { border-color: var(--cyan); box-shadow: var(--glow-cyan); }

/* Pages intérieures */
.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 88% 0%, rgba(46, 107, 255, 0.25), transparent 60%),
    radial-gradient(600px 300px at 10% 100%, rgba(200, 149, 10, 0.1), transparent 55%),
    linear-gradient(155deg, var(--ink-bg), var(--navy-deep) 70%, var(--navy));
  color: var(--white); padding: 155px 0 75px;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(120, 160, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, 0.04) 1px, transparent 1px);
  background-size: 54px 54px;
}
.page-hero > .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); margin: 16px 0 14px; font-size: clamp(2rem, 4.2vw, 3rem); }
.page-hero .lead { color: rgba(255, 255, 255, 0.75); max-width: 680px; }

/* ---------- Stats ---------- */
.stats-band { background: var(--white); position: relative; z-index: 3; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--grey-light); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); margin-top: -58px; position: relative;
  border: 1px solid rgba(46, 107, 255, 0.1);
}
.stat { background: var(--white); padding: 36px 24px; text-align: center; position: relative; }
.stat::after {
  content: ''; position: absolute; left: 50%; bottom: 0; translate: -50% 0;
  width: 0; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--gold));
  transition: width 0.5s var(--ease);
}
.stat:hover::after { width: 60%; }
.stat-num {
  font-family: var(--font-head); font-size: 2.5rem; font-weight: 700; color: var(--navy);
  display: flex; align-items: baseline; justify-content: center; gap: 2px;
}
.stat-num .suffix { color: var(--gold); font-size: 1.6rem; }
.stat-label { font-size: 0.85rem; color: var(--grey); margin-top: 4px; letter-spacing: 0.04em; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--off-white); }
.section-dark {
  position: relative; overflow: hidden;
  background:
    radial-gradient(800px 400px at 12% 0%, rgba(46, 107, 255, 0.2), transparent 55%),
    radial-gradient(600px 350px at 90% 100%, rgba(200, 149, 10, 0.1), transparent 55%),
    linear-gradient(160deg, var(--ink-bg), var(--navy-deep));
  color: var(--white);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255, 255, 255, 0.75); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { margin: 14px 0 16px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }

/* ---------- Grilles & cartes ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card {
  position: relative;
  background: var(--white); border: 1px solid var(--grey-light);
  border-radius: var(--radius); padding: 34px 30px;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.card::before { /* liseré lumineux au survol */
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(43, 217, 240, 0.7), rgba(46, 107, 255, 0.3) 40%, rgba(232, 179, 58, 0.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.45s var(--ease);
  pointer-events: none;
}
.card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.card:hover::before { opacity: 1; }
.card h3 { margin: 18px 0 10px; }
.card p { color: var(--grey); font-size: 0.95rem; }
.card .card-link { display: inline-block; margin-top: 16px; font-weight: 600; font-size: 0.9rem; color: var(--gold); transition: letter-spacing var(--transition); }
.card:hover .card-link { letter-spacing: 0.02em; }

.card-glass {
  position: relative;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius); padding: 30px 28px;
  backdrop-filter: blur(12px);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), background 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.card-glass:hover {
  transform: translateY(-6px);
  border-color: rgba(43, 217, 240, 0.55);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--glow-cyan);
}
.card-glass h3 { color: var(--gold-light); margin-bottom: 8px; }
.card-glass p { color: rgba(255, 255, 255, 0.72); font-size: 0.93rem; }

/* ---------- Listes ---------- */
.check-list li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--grey); font-size: 0.96rem; }
.check-list li::before {
  content: '✓'; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 7px;
  display: grid; place-items: center; font-size: 0.68rem; font-weight: 700;
  background: linear-gradient(135deg, rgba(43, 217, 240, 0.18), rgba(232, 179, 58, 0.18));
  color: var(--gold);
}
.section-dark .check-list li, .qalitel-band .check-list li { color: rgba(255, 255, 255, 0.8); }

/* ---------- Services détaillés ---------- */
.service-block {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px;
  padding: 58px 0; border-bottom: 1px solid var(--grey-light);
  align-items: start;
}
.service-block:last-of-type { border-bottom: none; }
.service-block .num {
  font-family: var(--font-head); font-size: 3rem; font-weight: 700; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(46, 107, 255, 0.65);
}
.service-block h2 { font-size: 1.6rem; margin: 12px 0 10px; }
.service-tag { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.service-visual {
  width: 100%; margin-top: 26px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(46, 107, 255, 0.22);
  box-shadow: 0 14px 40px rgba(7, 13, 46, 0.18);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.service-block:hover .service-visual {
  transform: translateY(-5px) scale(1.015);
  box-shadow: 0 22px 54px rgba(7, 13, 46, 0.26), var(--glow-cyan);
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; position: relative; padding: 10px 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--font-head); font-size: 1.2rem; font-weight: 600;
  color: rgba(18, 32, 106, 0.38); white-space: nowrap;
  transition: color var(--transition), text-shadow var(--transition);
}
.marquee-item:hover { color: var(--navy); text-shadow: 0 0 18px rgba(43, 217, 240, 0.5); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- QALITEL ---------- */
.module-card .module-badge {
  position: absolute; top: 18px; right: 18px;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em;
  padding: 4px 11px; border-radius: 999px;
  background: linear-gradient(120deg, rgba(43, 217, 240, 0.16), rgba(232, 179, 58, 0.2)); color: var(--gold);
}
.qalitel-band {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(600px 320px at 88% 15%, rgba(46, 107, 255, 0.35), transparent 60%),
    linear-gradient(140deg, var(--ink-bg), var(--navy));
  color: var(--white); padding: 62px 56px;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center;
  border: 1px solid rgba(43, 217, 240, 0.18);
}
.qalitel-band h2 { color: var(--white); margin-bottom: 14px; }
.qalitel-band p { color: rgba(255, 255, 255, 0.78); }

/* ---------- Équipe / valeurs ---------- */
.team-card { text-align: center; }
.team-avatar {
  width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  border: 2.5px solid var(--gold);
  box-shadow: 0 0 0 5px rgba(43, 217, 240, 0.1);
}
.team-role { color: var(--gold); font-size: 0.84rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }

.value-item { display: flex; gap: 18px; margin-bottom: 26px; }
.value-item .dot {
  flex: none; width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; color: var(--navy);
  background: linear-gradient(135deg, rgba(46, 107, 255, 0.1), rgba(232, 179, 58, 0.12));
  border: 1px solid rgba(46, 107, 255, 0.2);
}

/* ---------- Références ---------- */
.ref-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ref-logo {
  display: grid; place-items: center; text-align: center;
  padding: 26px 18px; border-radius: var(--radius-sm);
  background: var(--white); border: 1px solid var(--grey-light);
  font-family: var(--font-head); font-weight: 600; color: var(--navy);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.ref-logo:hover { border-color: rgba(43, 217, 240, 0.6); box-shadow: var(--shadow), var(--glow-cyan); transform: translateY(-3px); }
.ref-logo .ref-sector { display: block; font-family: var(--font-body); font-size: 0.72rem; color: var(--grey); font-weight: 400; margin-top: 4px; }
.mission-card { border-left: 3px solid var(--gold); }

/* ---------- Partenaires ---------- */
.partner-card .partner-type {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.contact-info-card { position: sticky; top: 110px; }
.contact-line { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-line .ico {
  flex: none; width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center; color: var(--navy);
  background: linear-gradient(135deg, rgba(46, 107, 255, 0.1), rgba(232, 179, 58, 0.12));
  border: 1px solid rgba(46, 107, 255, 0.18);
}
.contact-line a { font-weight: 600; }

.form-card {
  background: var(--white); border: 1px solid var(--grey-light);
  border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 7px; color: var(--navy); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--grey-light); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.95rem; color: var(--ink);
  background: var(--off-white);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--cyan); background: var(--white);
  box-shadow: 0 0 0 4px rgba(43, 217, 240, 0.12);
}
.form-note { font-size: 0.8rem; color: var(--grey); margin-top: 14px; }

.alert { padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 24px; font-size: 0.95rem; font-weight: 500; }
.alert-success { background: #E8F6EC; color: #1B7A3D; border: 1px solid #B5E2C4; }
.alert-error { background: #FBEAEA; color: #B02A2A; border: 1px solid #F0C4C4; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Intro animée (logo HD, HTML/CSS) ---------- */
.intro-overlay {
  position: fixed; inset: 0; z-index: 999;
  display: grid; place-items: center;
  background:
    radial-gradient(800px 500px at 50% 38%, rgba(46, 107, 255, 0.07), transparent 65%),
    radial-gradient(600px 400px at 78% 80%, rgba(200, 149, 10, 0.06), transparent 60%),
    #F6F8FC;
  opacity: 1; transition: opacity 0.6s ease;
}
.intro-overlay::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(18, 32, 106, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 32, 106, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, black 20%, transparent 75%);
}
.intro-overlay.closing { opacity: 0; pointer-events: none; }
.intro-overlay.hidden { display: none; }
.intro-stage { position: relative; display: grid; justify-items: center; text-align: center; padding: 0 6vw; }
.intro-logo-wrap { position: relative; display: grid; place-items: center; padding: clamp(30px, 6vw, 60px); }
.intro-logo {
  position: relative; width: min(430px, 74vw); height: auto;
  opacity: 0;
  animation: introLogo 1.1s cubic-bezier(0.18, 1.25, 0.4, 1) 0.15s forwards;
  filter: drop-shadow(0 18px 40px rgba(18, 32, 106, 0.18));
}
.intro-halo {
  position: absolute; inset: 8%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.9) 0%, rgba(43, 217, 240, 0.14) 48%, transparent 72%);
  border-radius: 50%; filter: blur(8px);
  animation: haloPulse 4.5s ease-in-out infinite;
  pointer-events: none;
}
.intro-ring {
  position: absolute; inset: 4%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 68%, rgba(43, 217, 240, 0.6) 82%, rgba(232, 179, 58, 0.7) 93%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: orbit 5.5s linear infinite;
  opacity: 0; transition: opacity 0.8s ease 0.5s;
}
.intro-overlay.playing .intro-ring { opacity: 1; }
.intro-tagline {
  font-family: var(--font-head); font-weight: 700; color: var(--navy);
  font-size: clamp(1.15rem, 3vw, 1.7rem); line-height: 1.25; margin-top: 8px;
  opacity: 0; animation: introUp 0.8s var(--ease) 1.1s forwards;
}
.intro-bar {
  width: min(220px, 40vw); height: 3px; border-radius: 3px; margin-top: 26px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  transform: scaleX(0); transform-origin: left;
  animation: introBar 3.9s linear 0.3s forwards;
}
@keyframes introLogo { from { opacity: 0; transform: scale(0.55) translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes introUp   { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes introBar  { to { transform: scaleX(1); } }
.intro-skip {
  position: absolute; bottom: 34px; right: 34px;
  padding: 10px 24px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--navy); background: transparent;
  color: var(--navy); font-family: var(--font-body); font-size: 0.88rem; font-weight: 600;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.intro-skip:hover { background: var(--navy); color: var(--white); box-shadow: 0 0 20px rgba(18, 32, 106, 0.35); }

/* ---------- Vidéo ---------- */
.video-frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(46, 107, 255, 0.12);
  max-width: 940px; margin-inline: auto;
}
.video-frame::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 60px rgba(46, 107, 255, 0.08);
}
.video-frame video { width: 100%; display: block; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 320px at 82% 50%, rgba(46, 107, 255, 0.3), transparent 60%),
    radial-gradient(500px 250px at 15% 20%, rgba(200, 149, 10, 0.15), transparent 55%),
    linear-gradient(140deg, var(--ink-bg), var(--navy));
  padding: 76px 0;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-title { color: var(--white); margin-bottom: 10px; }
.cta-text { color: rgba(255, 255, 255, 0.75); max-width: 520px; }

/* ---------- Footer premium ---------- */
.site-footer {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 400px at 85% 0%, rgba(46, 107, 255, 0.16), transparent 60%),
    linear-gradient(170deg, #0A1030, var(--ink-bg));
  color: rgba(255, 255, 255, 0.7);
}
.footer-content { position: relative; z-index: 1; }
.footer-top { padding: 64px 0 10px; }
.footer-brand-row {
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  padding-bottom: 44px; margin-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.newsletter { max-width: 460px; flex: 1 1 320px; }
.newsletter-label { display: block; font-size: 0.92rem; color: rgba(255, 255, 255, 0.85); font-weight: 500; margin-bottom: 12px; }
.newsletter-row { display: flex; gap: 10px; }
.newsletter-row input {
  flex: 1; padding: 13px 18px; border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06); color: var(--white);
  font-family: var(--font-body); font-size: 0.92rem;
  backdrop-filter: blur(8px);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.newsletter-row input::placeholder { color: rgba(255, 255, 255, 0.4); }
.newsletter-row input:focus { outline: none; border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.newsletter-ok { margin-top: 10px; font-size: 0.85rem; color: #7BE3A0; }

.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 44px; padding-bottom: 50px; }
.footer-about p { font-size: 0.9rem; line-height: 1.75; }
.footer-rccm { margin-top: 14px; font-size: 0.78rem !important; color: rgba(255, 255, 255, 0.42) !important; letter-spacing: 0.04em; }
.footer-col h4 {
  font-family: var(--font-head);
  color: var(--gold-light); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: rgba(255, 255, 255, 0.68); font-size: 0.92rem; transition: color var(--transition), text-shadow var(--transition); }
.footer-col a:hover { color: var(--cyan); text-shadow: 0 0 14px rgba(43, 217, 240, 0.6); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--gold-light); }

.social-row { display: flex; gap: 12px; margin-top: 22px; }
.social-btn {
  width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.4s var(--ease), color 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.social-btn .icon { width: 20px; height: 20px; }
.social-btn:hover { transform: translateY(-4px) rotate(-4deg); color: var(--cyan); border-color: var(--cyan); box-shadow: var(--glow-cyan); }

.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.82rem; color: rgba(255, 255, 255, 0.45);
}

/* ---------- Révélation au scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   Fonds dynamiques v2 — imagerie digitale animée
   (aurora, circuit imprimé, grille mobile, glyphes tech)
   ============================================================ */

/* Sections claires : circuit imprimé léger + halos dérivants (corps du site) */
.section { position: relative; }
.section > .container { position: relative; z-index: 1; }
.section:not(.section-dark)::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='420'%20height='420'%20viewBox='0%200%20420%20420'%3E%3Cg%20fill='none'%20stroke='rgba(18,32,106,0.055)'%20stroke-width='1.2'%3E%3Cpath%20d='M20%2060h90l30%2030v70'/%3E%3Cpath%20d='M140%20160h120l40-40h60'/%3E%3Cpath%20d='M60%20300v-80l40-40'/%3E%3Cpath%20d='M300%20380v-90l-50-50'/%3E%3Cpath%20d='M380%20120v100l-40%2040h-80'/%3E%3Cpath%20d='M200%2020v70l30%2030'/%3E%3C/g%3E%3Cg%20fill='rgba(43,217,240,0.10)'%3E%3Ccircle%20cx='20'%20cy='60'%20r='3'/%3E%3Ccircle%20cx='140'%20cy='160'%20r='3'/%3E%3Ccircle%20cx='230'%20cy='120'%20r='3'/%3E%3Ccircle%20cx='60'%20cy='300'%20r='3'/%3E%3Ccircle%20cx='300'%20cy='380'%20r='3'/%3E%3Ccircle%20cx='200'%20cy='20'%20r='3'/%3E%3C/g%3E%3Cg%20fill='rgba(200,149,10,0.10)'%3E%3Crect%20x='316'%20y='116'%20width='7'%20height='7'%20rx='1.5'/%3E%3Crect%20x='96'%20y='176'%20width='7'%20height='7'%20rx='1.5'/%3E%3Crect%20x='246'%20y='236'%20width='7'%20height='7'%20rx='1.5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 420px 420px;
  animation: circuitDrift 90s linear infinite;
}
.section:not(.section-dark)::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(560px 360px at 12% 18%, rgba(46, 107, 255, 0.065), transparent 65%),
    radial-gradient(520px 340px at 88% 82%, rgba(200, 149, 10, 0.055), transparent 65%),
    radial-gradient(480px 320px at 78% 12%, rgba(43, 217, 240, 0.06), transparent 65%);
  background-size: 200% 200%;
  animation: softDrift 26s ease-in-out infinite alternate;
}
@keyframes softDrift { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }

/* Grille technologique en mouvement lent */
.hero::before, .page-hero::before {
  animation: gridPan 14s linear infinite;
}
@keyframes gridPan { to { background-position: 54px 54px, 54px 54px; } }

/* Motif circuit imprimé dérivant (SVG inline, aucune image externe) */
.hero .bg-circuit, .page-hero .bg-circuit {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='420'%20height='420'%20viewBox='0%200%20420%20420'%3E%3Cg%20fill='none'%20stroke='rgba(122,170,255,0.11)'%20stroke-width='1.2'%3E%3Cpath%20d='M20%2060h90l30%2030v70'/%3E%3Cpath%20d='M140%20160h120l40-40h60'/%3E%3Cpath%20d='M60%20300v-80l40-40'/%3E%3Cpath%20d='M300%20380v-90l-50-50'/%3E%3Cpath%20d='M380%20120v100l-40%2040h-80'/%3E%3Cpath%20d='M200%2020v70l30%2030'/%3E%3C/g%3E%3Cg%20fill='rgba(43,217,240,0.18)'%3E%3Ccircle%20cx='20'%20cy='60'%20r='3'/%3E%3Ccircle%20cx='140'%20cy='160'%20r='3'/%3E%3Ccircle%20cx='230'%20cy='120'%20r='3'/%3E%3Ccircle%20cx='60'%20cy='300'%20r='3'/%3E%3Ccircle%20cx='300'%20cy='380'%20r='3'/%3E%3Ccircle%20cx='200'%20cy='20'%20r='3'/%3E%3C/g%3E%3Cg%20fill='rgba(232,179,58,0.18)'%3E%3Crect%20x='316'%20y='116'%20width='7'%20height='7'%20rx='1.5'/%3E%3Crect%20x='96'%20y='176'%20width='7'%20height='7'%20rx='1.5'/%3E%3Crect%20x='246'%20y='236'%20width='7'%20height='7'%20rx='1.5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 420px 420px;
  animation: circuitDrift 70s linear infinite;
  mask-image: radial-gradient(ellipse 90% 85% at 50% 45%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 85% at 50% 45%, black 20%, transparent 80%);
}
@keyframes circuitDrift { to { background-position: 420px 210px; } }

/* Halos lumineux animés (aurora numérique) */
.bg-aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.bg-aurora span {
  position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: 0.55; mix-blend-mode: screen;
  will-change: transform;
}
.bg-aurora span:nth-child(1) {
  width: 46vw; height: 46vw; left: -12%; top: -28%;
  background: radial-gradient(circle, rgba(46, 107, 255, 0.5), transparent 65%);
  animation: aur1 16s ease-in-out infinite alternate;
}
.bg-aurora span:nth-child(2) {
  width: 38vw; height: 38vw; right: -10%; bottom: -32%;
  background: radial-gradient(circle, rgba(43, 217, 240, 0.38), transparent 65%);
  animation: aur2 21s ease-in-out infinite alternate;
}
.bg-aurora span:nth-child(3) {
  width: 30vw; height: 30vw; right: 18%; top: -18%;
  background: radial-gradient(circle, rgba(200, 149, 10, 0.3), transparent 65%);
  animation: aur3 26s ease-in-out infinite alternate;
}
@keyframes aur1 { to { transform: translate(9vw, 7vh) scale(1.18); } }
@keyframes aur2 { to { transform: translate(-8vw, -6vh) scale(1.12); } }
@keyframes aur3 { to { transform: translate(-10vw, 8vh) scale(1.22); } }

/* Glyphes numériques flottants (cloud, engrenages, flux, serveur…) */
.tech-glyphs { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.tech-glyphs .glyph {
  position: absolute; opacity: 0;
  color: rgba(43, 217, 240, 0.22);
  animation: glyphFloat 13s ease-in-out infinite, glyphIn 1.4s ease forwards;
}
.tech-glyphs .glyph:nth-child(even) { color: rgba(232, 179, 58, 0.2); animation-duration: 17s, 1.4s; }
.tech-glyphs .glyph .icon { width: 100%; height: 100%; stroke-width: 1.3; }
.tech-glyphs .glyph:nth-child(1) { width: 54px; height: 54px; left: 6%;  top: 24%; animation-delay: 0s, 0.2s; }
.tech-glyphs .glyph:nth-child(2) { width: 34px; height: 34px; left: 13%; top: 64%; animation-delay: -4s, 0.5s; }
.tech-glyphs .glyph:nth-child(3) { width: 44px; height: 44px; left: 22%; top: 38%; animation-delay: -8s, 0.8s; }
.tech-glyphs .glyph:nth-child(4) { width: 30px; height: 30px; right: 20%; top: 30%; animation-delay: -2s, 0.4s; }
.tech-glyphs .glyph:nth-child(5) { width: 58px; height: 58px; right: 8%;  top: 56%; animation-delay: -6s, 0.7s; }
.tech-glyphs .glyph:nth-child(6) { width: 36px; height: 36px; right: 14%; top: 18%; animation-delay: -10s, 1s; }
.tech-glyphs .glyph:nth-child(7) { width: 40px; height: 40px; left: 8%;  top: 82%; animation-delay: -12s, 1.1s; }
.tech-glyphs .glyph:nth-child(8) { width: 32px; height: 32px; right: 26%; top: 76%; animation-delay: -7s, 1.3s; }
@keyframes glyphFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-20px) rotate(7deg); }
}
@keyframes glyphIn { to { opacity: 1; } }

/* Balayage lumineux périodique (scan) */
.bg-scan {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.bg-scan::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: -35%; width: 30%;
  background: linear-gradient(105deg, transparent, rgba(43, 217, 240, 0.06) 45%, rgba(232, 179, 58, 0.05) 55%, transparent);
  transform: skewX(-14deg);
  animation: scanSweep 9s ease-in-out infinite;
}
@keyframes scanSweep {
  0%, 55%  { left: -35%; }
  85%, 100% { left: 135%; }
}

@media (max-width: 820px) {
  .tech-glyphs { display: none; }
  .bg-aurora span { filter: blur(46px); }
}

/* ---------- Accessibilité mouvement ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .net-canvas, .tech-glyphs, .bg-aurora, .bg-scan, .bg-circuit { display: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4, .ref-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .qalitel-band { grid-template-columns: 1fr; padding: 44px 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 84vw);
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: rgba(7, 13, 46, 0.96); backdrop-filter: blur(22px);
    padding: 100px 30px 30px;
    transform: translateX(100%); transition: transform var(--transition);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4);
  }
  .main-nav.open { transform: translateX(0); }
  .nav-link { width: 100%; padding: 13px 16px; font-size: 1.05rem; }
  .nav-cta { margin-left: 0; margin-top: 12px; text-align: center; }
  .nav-toggle { display: block; position: relative; z-index: 110; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .grid-2, .grid-3, .service-block, .contact-layout { grid-template-columns: 1fr; }
  .section { padding: 66px 0; }
  .hero { padding: 140px 0 90px; }
  .page-hero { padding: 130px 0 56px; }
  .contact-info-card { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .footer-brand-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .grid-4, .ref-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-row { flex-direction: column; }
}
@media (min-width: 1800px) { /* Ultra-wide */
  .container { width: min(1320px, 88%); }
}
