/* ============================================================
   AGENZ IA — Design System (Dark Premium Tech)
   Tokens → design-system/agenz-ia/MASTER.md (adapté dark-first)
   ============================================================ */

:root {
  /* Couleurs — surfaces (bleu nuit de agenz-ia.io) */
  --bg: #0a0e18;
  --bg-elevated: #0e1422;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Couleurs — texte */
  --text: #f2f6f8;
  --text-muted: #a2adbd;
  --text-faint: #6b7688;

  /* Couleurs — marque (cyan agenz-ia.io) */
  --primary: #4ac8da;
  --primary-light: #7adcea;
  --secondary: #2fa9bc;
  --accent: #4ac8da;
  --ring: #7adcea;

  --gradient-brand: linear-gradient(135deg, #2fa9bc 0%, #4ac8da 55%, #7adcea 100%);
  --gradient-text: linear-gradient(110deg, #7adcea 0%, #4ac8da 55%, #a9ecf5 100%);

  /* Typo */
  --font-heading: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Espacement (spacieux — marketing) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;

  /* Rayons & ombres */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;
  --shadow-glow: 0 0 40px rgba(74, 200, 218, 0.35);
  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.45);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-med: 300ms;

  /* Layers */
  --z-nav: 100;
  --z-overlay: 1000;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: rgba(74, 200, 218, 0.45); color: #fff; }

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: calc(var(--z-overlay) + 1);
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Typographie ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-muted);
  max-width: 62ch;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: var(--space-2);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--gradient-brand);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.section { padding-block: clamp(72px, 10vw, 128px); }
.section-alt { background: var(--bg-elevated); }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head p { margin-top: var(--space-2); color: var(--text-muted); }

.grid { display: grid; gap: var(--space-3); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
  touch-action: manipulation;
  cursor: pointer;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--gradient-brand);
  color: #071018; /* texte sombre sur cyan clair : contraste AA (comme agenz-ia.io) */
  font-weight: 700;
  box-shadow: 0 4px 24px rgba(74, 200, 218, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(74, 200, 218, 0.5);
}

.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: var(--surface);
}
.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: var(--primary-light);
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: var(--z-nav);
  transition: background-color var(--dur-med) ease, border-color var(--dur-med) ease,
              backdrop-filter var(--dur-med) ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 10, 18, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 76px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.nav-logo .logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 18px rgba(74, 200, 218, 0.35);
}
.nav-logo .logo-mark img { width: 100%; height: 100%; object-fit: cover; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--dur-fast), background-color var(--dur-fast);
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover { color: #071018; background: var(--gradient-brand); }

/* CTA mobile : masqué sur desktop (le bouton .nav-cta prend le relais) */
.nav-mobile-cta { display: none; }
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
}

.nav-cta { display: inline-flex; }
.nav-cta .btn { min-height: 44px; padding: 10px 22px; font-size: 0.95rem; }

.nav-burger {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--surface);
}
.nav-burger svg { width: 22px; height: 22px; }
.nav-burger .icon-close { display: none; }
.nav-burger[aria-expanded="true"] .icon-open { display: none; }
.nav-burger[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 900px) {
  .nav-burger { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed;
    top: 76px;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: var(--space-3) clamp(20px, 4vw, 40px) var(--space-4);
    background: rgba(10, 10, 18, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur-med) var(--ease-out),
                transform var(--dur-med) var(--ease-out),
                visibility 0s linear var(--dur-med);
  }
  .nav-links.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition-delay: 0s;
  }
  .nav-links a { min-height: 52px; font-size: 1.05rem; }
  .nav-links .nav-mobile-cta { display: list-item; margin-top: var(--space-2); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(140px, 18vh, 200px);
  padding-bottom: clamp(72px, 10vw, 120px);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-bg .grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 75%);
}
/* Orbes ambiants : dégradés radiaux doux, SANS filter:blur (trop coûteux
   en GPU sur mobile / machines modestes quand animé en continu). */
.orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
  will-change: transform;
  transform: translateZ(0);
}
.orb-violet {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(74,200,218,0.4) 0%, rgba(74,200,218,0.12) 40%, transparent 68%);
  top: -160px; left: 6%;
}
.orb-pink {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(47,169,188,0.3) 0%, rgba(47,169,188,0.1) 40%, transparent 68%);
  top: 40px; right: 2%;
}
.orb-indigo {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(47,169,188,0.3) 0%, rgba(47,169,188,0.1) 40%, transparent 68%);
  bottom: -140px; left: 40%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 840px;
  margin-inline: auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}
.hero-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.8);
}

.hero h1 { margin-bottom: var(--space-3); }
.hero .lead { margin-inline: auto; margin-bottom: var(--space-4); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
}

.hero-trust {
  margin-top: var(--space-5);
  font-size: 0.875rem;
  color: var(--text-faint);
}

/* Petit hero pour pages internes */
.hero-sub { padding-top: clamp(130px, 15vh, 170px); padding-bottom: clamp(48px, 6vw, 72px); }
.hero-sub .hero-content { max-width: 760px; }

/* ---------- Stats ---------- */
.stats-band {
  border-block: 1px solid var(--border);
  background: var(--bg-elevated);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  padding-block: clamp(40px, 5vw, 64px);
}
@media (max-width: 700px) { .stats-grid { grid-template-columns: 1fr; row-gap: var(--space-4); } }

.stat { text-align: center; }
.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat-label { margin-top: 6px; color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 36px);
  transition: transform var(--dur-med) var(--ease-out),
              border-color var(--dur-med) ease,
              background-color var(--dur-med) ease,
              box-shadow var(--dur-med) ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%),
              rgba(74, 200, 218, 0.14), transparent 45%);
  opacity: 0;
  transition: opacity var(--dur-med) ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(122, 220, 234, 0.4);
  box-shadow: var(--shadow-card);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(74,200,218,0.25), rgba(47,169,188,0.18));
  border: 1px solid rgba(122, 220, 234, 0.3);
  color: var(--primary-light);
  margin-bottom: var(--space-3);
}
.card-icon svg { width: 26px; height: 26px; }

.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.975rem; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-3);
  min-height: 44px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-light);
  transition: gap var(--dur-fast) ease;
}
.card-link:hover { gap: 12px; }
.card-link svg { width: 16px; height: 16px; }

/* Card entière cliquable */
.card > a.card-cover::after { content: ""; position: absolute; inset: 0; }

/* ---------- Bénéfices numérotés (« Pourquoi l'IA ») ---------- */
.benefit {
  position: relative;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color var(--dur-med) ease, transform var(--dur-med) var(--ease-out);
}
.benefit:hover { border-color: rgba(122, 220, 234, 0.4); transform: translateY(-4px); }
.benefit-num {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--space-2);
  display: block;
}
.benefit h3 { font-size: 1.15rem; margin-bottom: 8px; }
.benefit p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Étapes / Méthode ---------- */
.steps { counter-reset: step; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: var(--space-3);
  padding-block: var(--space-4);
}
.step + .step { border-top: 1px solid var(--border); }

.step-num {
  counter-increment: step;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: #071018;
  background: var(--gradient-brand);
  box-shadow: 0 0 24px rgba(74, 200, 218, 0.45);
}
.step-num::before { content: counter(step, decimal-leading-zero); }

.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-muted); max-width: 62ch; }

.step-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-light);
}
.step-meta svg { width: 15px; height: 15px; }

@media (max-width: 640px) {
  .step { grid-template-columns: 1fr; gap: var(--space-2); }
}

/* ---------- Témoignages ---------- */
.testimonial {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.testimonial blockquote {
  font-size: 1.02rem;
  color: var(--text);
  flex-grow: 1;
}
.testimonial blockquote::before { content: "« "; color: var(--primary-light); }
.testimonial blockquote::after { content: " »"; color: var(--primary-light); }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #071018;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 0.95rem; }
.testimonial-author span { font-size: 0.85rem; color: var(--text-faint); }

.stars { display: flex; gap: 3px; color: #fbbf24; }
.stars svg { width: 16px; height: 16px; }

/* ---------- Listes à puces custom ---------- */
.check-list { list-style: none; display: grid; gap: 14px; }
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-muted);
}
.check-list li svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--primary-light);
}
.check-list li strong { color: var(--text); }

/* ---------- Sections alternées (services détail) ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding-block: clamp(48px, 6vw, 80px);
}
.feature-row + .feature-row { border-top: 1px solid var(--border); }
.feature-row:nth-child(even) .feature-visual { order: -1; }

.feature-visual {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 30% 20%, rgba(74,200,218,0.22), transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(47,169,188,0.16), transparent 55%),
    var(--bg-elevated);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.feature-visual .big-icon {
  width: 96px; height: 96px;
  color: var(--primary-light);
  filter: drop-shadow(0 0 24px rgba(122, 220, 234, 0.5));
}
.feature-visual .grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.feature-body .eyebrow { margin-bottom: var(--space-1); }
.feature-body h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: var(--space-2); }
.feature-body > p { color: var(--text-muted); margin-bottom: var(--space-3); }
.feature-result {
  margin-top: var(--space-3);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(52, 211, 153, 0.25);
  background: rgba(52, 211, 153, 0.07);
  color: #a7f3d0;
  font-size: 0.95rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.feature-result svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }

@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row:nth-child(even) .feature-visual { order: 0; }
  .feature-visual { aspect-ratio: 16 / 9; }
}

/* ---------- Bande CTA ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(122, 220, 234, 0.3);
  background:
    radial-gradient(circle at 20% 0%, rgba(74,200,218,0.35), transparent 55%),
    radial-gradient(circle at 85% 100%, rgba(47,169,188,0.28), transparent 55%),
    var(--bg-elevated);
  padding: clamp(48px, 7vw, 88px) clamp(28px, 5vw, 72px);
  text-align: center;
  overflow: hidden;
}
.cta-card h2 { max-width: 640px; margin-inline: auto; margin-bottom: var(--space-2); }
.cta-card p { color: var(--text-muted); max-width: 56ch; margin-inline: auto; margin-bottom: var(--space-4); }
.cta-card .hero-actions { justify-content: center; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: var(--space-2); }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color var(--dur-med) ease;
}
.faq details[open] { border-color: rgba(122, 220, 234, 0.4); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 20px 24px;
  min-height: 64px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--primary-light);
  transition: transform var(--dur-med) var(--ease-out);
}
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .faq-body { padding: 0 24px 22px; color: var(--text-muted); }

/* ---------- Formulaire ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.field label .req { color: var(--accent); }
.field .hint { font-size: 0.8rem; color: var(--text-faint); font-weight: 400; margin-left: 6px; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23a3a3b8' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field select option { background: var(--bg-elevated); color: var(--text); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(74, 200, 218, 0.25);
}

.field .error-msg {
  display: none;
  margin-top: 8px;
  font-size: 0.85rem;
  color: #fca5a5;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #ef4444; }
.field.has-error .error-msg { display: flex; align-items: center; gap: 6px; }
.field .error-msg svg { width: 14px; height: 14px; flex-shrink: 0; }

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-5) var(--space-3);
}
.form-success.is-visible { display: block; }
.form-success .success-icon {
  width: 72px; height: 72px;
  margin: 0 auto var(--space-3);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #34d399;
}
.form-success .success-icon svg { width: 34px; height: 34px; }

/* ---------- Info contact ---------- */
.contact-aside { display: grid; gap: var(--space-3); align-content: start; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-item .card-icon { width: 44px; height: 44px; margin: 0; border-radius: 12px; }
.contact-item .card-icon svg { width: 20px; height: 20px; }
.contact-item strong { display: block; margin-bottom: 2px; }
.contact-item span, .contact-item a { color: var(--text-muted); font-size: 0.95rem; }
.contact-item a:hover { color: var(--primary-light); }

.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

/* ---------- Équipe ---------- */
.team-card { text-align: center; }
.team-avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto var(--space-3);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: #071018;
  background: linear-gradient(135deg, var(--secondary), var(--primary-light));
  box-shadow: 0 0 30px rgba(74, 200, 218, 0.35);
}
.team-card h3 { font-size: 1.15rem; }
.team-role { color: var(--primary-light); font-size: 0.9rem; font-weight: 600; margin-bottom: 10px; display: block; }

/* ---------- Valeurs / piliers ---------- */
.pillar { display: flex; gap: 18px; align-items: flex-start; }
.pillar .card-icon { flex-shrink: 0; margin: 0; }
.pillar h3 { font-size: 1.1rem; margin-bottom: 6px; }
.pillar p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding-block: var(--space-6) var(--space-4);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand p { color: var(--text-muted); font-size: 0.95rem; max-width: 34ch; margin-top: var(--space-2); }

.footer h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-bottom: var(--space-2);
}
.footer ul { list-style: none; display: grid; gap: 4px; }
.footer ul a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color var(--dur-fast);
}
.footer ul a:hover { color: var(--primary-light); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 0.875rem;
}

/* ---------- Reveal (état initial géré par JS — no-JS = visible) ---------- */
.js [data-reveal] { will-change: transform, opacity; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
