/* ==========================================================================
   Deltaware.be — Design system
   Structure inspirée de Spotify (typographie compacte, pilules, densité,
   ombres marquées) recolorée en palette bleu marine corporate.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Couleurs — fond */
  --bg-base: #0a1628;
  --bg-surface: #0f2138;
  --bg-surface-alt: #15294a;
  --bg-card: #132542;
  --bg-card-hover: #1a3155;

  /* Couleurs — accent fonctionnel unique */
  --accent: #8b2635;
  --accent-hover: #ac3a49;
  --accent-border: #9c3140;
  --on-accent: #ffffff;

  /* Texte */
  --text-base: #ffffff;
  --text-secondary: #a9b4c4;
  --text-muted: #7c8aa0;

  /* Sémantique */
  --text-negative: #f3727f;
  --text-warning: #ffa42b;
  --text-info: #539df5;
  --bg-negative: rgba(243, 114, 127, 0.12);
  --bg-warning: rgba(255, 164, 43, 0.12);

  /* Bordures */
  --border-subtle: rgba(169, 180, 196, 0.14);
  --border-strong: rgba(169, 180, 196, 0.28);

  /* Ombres */
  --shadow-md: rgba(0, 0, 0, 0.35) 0px 8px 8px;
  --shadow-lg: rgba(0, 0, 0, 0.55) 0px 8px 24px;
  --shadow-inset: rgb(10, 22, 40) 0px 1px 0px, rgba(169, 180, 196, 0.35) 0px 0px 0px 1px inset;

  /* Typographie */
  --font-title: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Rayons */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Espacement (base 8px) */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px;

  --container-max: 1200px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-base);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }

/* Accessibilité : focus visible clair (WCAG) */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 2px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-sm);
}
.skip-link:focus { left: var(--sp-4); top: var(--sp-4); }

/* ---- Layout ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
.section { padding: var(--sp-16) 0; }
.section-alt { background: var(--bg-surface); }

/* ---- Typographie ---- */
.eyebrow {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--accent-hover); margin-bottom: var(--sp-3);
  display: inline-block;
}
h1, .h1 {
  font-family: var(--font-title); font-weight: 800; font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1; letter-spacing: -0.02em;
}
h2, .h2 {
  font-family: var(--font-title); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.2; letter-spacing: -0.01em;
}
h3, .h3 {
  font-family: var(--font-title); font-weight: 700; font-size: 1.25rem; line-height: 1.3;
}
h4, .h4 { font-family: var(--font-title); font-weight: 600; font-size: 1.125rem; line-height: 1.3; }
.lead { font-size: 1.125rem; color: var(--text-secondary); line-height: 1.6; }
p { color: var(--text-secondary); }
.text-base-color { color: var(--text-base); }
.small { font-size: 0.875rem; color: var(--text-muted); }

/* ---- Boutons (géométrie pilule héritée du design.MD) ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-family: var(--font-body); font-weight: 700; font-size: 0.875rem;
  letter-spacing: 1.4px; text-transform: uppercase;
  padding: 14px 32px; border-radius: var(--radius-pill);
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: var(--on-accent);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-outline {
  background: transparent; color: var(--text-base); border-color: var(--border-strong);
}
.btn-outline:hover { border-color: var(--accent-hover); color: var(--accent-hover); }
.btn-sm { padding: 10px 22px; font-size: 0.75rem; }
.btn-block { width: 100%; }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-4) 0; }
.brand { display: flex; align-items: center; gap: var(--sp-2); font-weight: 800; font-size: 1.15rem; }
.brand img { height: 52px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: var(--sp-6); }
.nav-links a {
  font-size: 0.875rem; font-weight: 400; color: var(--text-secondary);
  padding: var(--sp-2) 0; border-bottom: 2px solid transparent; transition: color .15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-base); font-weight: 700; }
.nav-links a.active { border-bottom-color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: var(--sp-4); }
.lang-switch { display: flex; gap: var(--sp-1); background: var(--bg-surface-alt); border-radius: var(--radius-pill); padding: 4px; }
.lang-switch a {
  padding: 6px 14px; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 700; color: var(--text-secondary);
}
.lang-switch a.active { background: var(--accent); color: #fff; }
.nav-toggle {
  display: none; background: var(--bg-surface-alt); border: none; border-radius: var(--radius-sm);
  padding: var(--sp-2) var(--sp-3); color: var(--text-base); font-size: 1.25rem;
}

/* ---- Hero ---- */
.hero { padding: var(--sp-20) 0 var(--sp-16); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 60%;
  background: radial-gradient(60% 60% at 50% 0%, rgba(139, 38, 53, 0.28), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; }
.hero-actions { display: flex; gap: var(--sp-4); margin-top: var(--sp-8); flex-wrap: wrap; }
.hero-stats { display: flex; gap: var(--sp-10); margin-top: var(--sp-12); flex-wrap: wrap; }
.stat-num { font-family: var(--font-title); font-weight: 800; font-size: 2rem; color: var(--text-base); }
.stat-label { font-size: 0.875rem; color: var(--text-muted); }

/* ---- Cards ---- */
.card {
  background: var(--bg-card); border-radius: var(--radius-lg); padding: var(--sp-8);
  border: 1px solid var(--border-subtle); transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.card:hover { background: var(--bg-card-hover); box-shadow: var(--shadow-md); }
.card-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md); background: rgba(139, 38, 53, 0.16);
  display: flex; align-items: center; justify-content: center; color: var(--accent-hover);
  font-size: 1.5rem; margin-bottom: var(--sp-5);
}
.grid { display: grid; gap: var(--sp-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---- Team ---- */
.team-card { text-align: center; }
.team-photo {
  width: 120px; height: 120px; border-radius: 50%; margin: 0 auto var(--sp-5);
  background: linear-gradient(135deg, var(--bg-surface-alt), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-title); font-weight: 800; font-size: 2rem; color: #fff;
  box-shadow: var(--shadow-md);
}
.team-role { color: var(--accent-hover); font-size: 0.875rem; font-weight: 700; margin: var(--sp-1) 0 var(--sp-4); }
.linkedin-link {
  display: inline-flex; align-items: center; gap: var(--sp-2); font-size: 0.875rem; font-weight: 700;
  color: var(--text-base); border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
  padding: 8px 18px; margin-top: var(--sp-2);
}
.linkedin-link:hover { border-color: var(--accent-hover); color: var(--accent-hover); }

/* ---- Formulaire ---- */
.form-group { margin-bottom: var(--sp-5); }
label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: var(--sp-2); color: var(--text-base); }
.required { color: var(--text-negative); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; background: var(--bg-surface-alt); color: var(--text-base);
  border: none; border-radius: var(--radius-sm); padding: 14px 16px; font-size: 1rem;
  font-family: var(--font-body); box-shadow: var(--shadow-inset);
}
textarea { resize: vertical; min-height: 140px; }
input::placeholder, textarea::placeholder { color: var(--text-muted); }
.checkbox-row { display: flex; align-items: flex-start; gap: var(--sp-3); }
.checkbox-row input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.checkbox-row label { font-weight: 400; font-size: 0.875rem; color: var(--text-secondary); margin: 0; }
.honeypot-field { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form-alert {
  border-radius: var(--radius-sm); padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-6);
  font-size: 0.9375rem; font-weight: 600;
}
.form-alert.success { background: rgba(83, 157, 245, 0.12); color: var(--text-info); border: 1px solid rgba(83,157,245,.3); }
.form-alert.error { background: var(--bg-negative); color: var(--text-negative); border: 1px solid rgba(243,114,127,.3); }

/* ---- Footer ---- */
.site-footer { background: var(--bg-surface); border-top: 1px solid var(--border-subtle); padding: var(--sp-12) 0 var(--sp-8); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--sp-10); }
.footer-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--sp-4); }
.footer-links li { margin-bottom: var(--sp-2); }
.footer-links a { font-size: 0.9375rem; color: var(--text-secondary); }
.footer-links a:hover { color: var(--text-base); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--sp-3);
  margin-top: var(--sp-10); padding-top: var(--sp-6); border-top: 1px solid var(--border-subtle);
  font-size: 0.8125rem; color: var(--text-muted);
}

/* ---- Cookie banner ---- */
.cookie-banner {
  position: fixed; left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-4); z-index: 300;
  max-width: 560px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); padding: var(--sp-6); box-shadow: var(--shadow-lg);
  display: none;
}
.cookie-banner.visible { display: block; }
.cookie-actions { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); flex-wrap: wrap; }

/* ---- Bandeau maintenance ---- */
.maintenance-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: var(--sp-6);
}

/* ---- Utilitaires ---- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.flex { display: flex; }
.gap-4 { gap: var(--sp-4); }
.badge {
  display: inline-block; font-size: 0.6875rem; font-weight: 600; text-transform: capitalize;
  background: var(--bg-surface-alt); color: var(--text-secondary); padding: 4px 12px; border-radius: var(--radius-pill);
}

/* ---- Responsive ---- */
@media (max-width: 896px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero-stats { gap: var(--sp-6); }
  .btn { padding: 12px 22px; }
}

/* Menu mobile ouvert */
.nav-links.mobile-open {
  display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg-surface); padding: var(--sp-6); border-bottom: 1px solid var(--border-subtle);
  gap: var(--sp-4); box-shadow: var(--shadow-lg);
}
