/* ==========================================================================
   MERCURY GLOBAL SOLUTIONS — Site web vitrine
   Design : Technical Editorial / Dark mode
   ========================================================================== */

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

:root {
  /* Palette - Dark mode, charte Mercury */
  --bg: #0a0e14;
  --bg-elevated: #0f141c;
  --bg-card: #111821;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);

  --text: #e8eaed;
  --text-muted: #9aa3ad;
  --text-dim: #6b7380;

  --mercury-blue: #006EAA;
  --mercury-blue-light: #1a8fd4;
  --mercury-blue-glow: rgba(0, 110, 170, 0.4);

  /* Typography */
  --font-display: 'Montserrat', -apple-system, sans-serif;
  --font-body: 'Montserrat', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Menlo', monospace;

  /* Spacing */
  --container: 1280px;
  --gutter: clamp(1.5rem, 4vw, 4rem);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Fond : motif atmosphérique subtil */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(0, 110, 170, 0.08), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(0, 110, 170, 0.05), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Grille overlay éditoriale - visible en hover subtle */
.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: calc(100vw / 12) 100%;
  pointer-events: none;
  z-index: 1;
  max-width: var(--container);
  left: 50%;
  transform: translateX(-50%);
}

main { position: relative; z-index: 2; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 200ms var(--ease), opacity 200ms var(--ease);
}

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

::selection {
  background: var(--mercury-blue);
  color: white;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--mercury-blue-light);
}

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  transition: transform 300ms var(--ease-out);
}
.logo:hover { transform: translateY(-1px); }
.logo-svg {
  height: 42px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.3rem 0;
}
.main-nav a:hover { color: var(--text); }
.main-nav a.active { color: var(--text); }
.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--mercury-blue);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 300ms var(--ease);
}

/* Sections & layout ------------------------------------------------------ */
section {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.section-index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--mercury-blue);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}

/* Hero (accueil) --------------------------------------------------------- */
.hero {
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(5rem, 10vw, 9rem);
  position: relative;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  margin-bottom: 3rem;
  background: var(--bg-elevated);
  animation: fadeUp 600ms var(--ease-out) both;
}
.meta-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.meta-dot {
  width: 4px;
  height: 4px;
  background: var(--mercury-blue);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--mercury-blue-glow);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 6rem);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 4rem;
  max-width: 1000px;
}
.hero-title .line {
  display: block;
  animation: fadeUp 700ms var(--ease-out) both;
}
.hero-title .line:nth-child(1) { animation-delay: 80ms; }
.hero-title .line:nth-child(2) { animation-delay: 160ms; }
.hero-title .line:nth-child(3) { animation-delay: 240ms; }
.hero-title .line:nth-child(4) { animation-delay: 320ms; }
.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--mercury-blue-light);
  letter-spacing: -0.02em;
}
.accent-slash {
  display: inline-block;
  width: 0.25em;
  height: 1em;
  background: var(--mercury-blue);
  margin-left: 0.2em;
  transform: skewX(-15deg);
  vertical-align: -0.12em;
  animation: blink 2.4s steps(1, end) infinite;
  animation-delay: 1.2s;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 5rem;
  animation: fadeUp 800ms var(--ease-out) 400ms both;
}
.hero-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 560px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  animation: fadeUp 900ms var(--ease-out) 550ms both;
}
.stat {
  padding: 0 2rem;
  border-left: 1px solid var(--border);
}
.stat:first-child { padding-left: 0; border-left: none; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--mercury-blue-light);
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
}
.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 180px;
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 250ms var(--ease-out);
  white-space: nowrap;
  border-radius: 2px;
}
.btn .arrow {
  display: inline-block;
  transition: transform 250ms var(--ease-out);
}
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--mercury-blue);
  color: white;
  border-color: var(--mercury-blue);
  box-shadow: 0 0 0 0 var(--mercury-blue-glow);
}
.btn-primary:hover {
  background: var(--mercury-blue-light);
  border-color: var(--mercury-blue-light);
  box-shadow: 0 0 30px var(--mercury-blue-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

/* Pillars section (4 piliers) ------------------------------------------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.pillars-grid-5 {
  grid-template-columns: repeat(3, 1fr);
}
.pillar {
  padding: 3rem 2.5rem;
  background: var(--bg);
  transition: background 300ms var(--ease);
  position: relative;
}
.pillar:hover {
  background: var(--bg-elevated);
}
.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--mercury-blue);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
}
.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text);
}
.pillar p {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.pillar p strong {
  color: var(--mercury-blue-light);
  font-weight: 600;
}
.pillar-featured {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--bg) 0%, rgba(0, 110, 170, 0.06) 100%);
  position: relative;
}
.pillar-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--mercury-blue), transparent);
}
.pillar-featured .pillar-num {
  color: var(--mercury-blue-light);
}

/* Manifesto --------------------------------------------------------------- */
.manifesto-content {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.manifesto-lead {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.5;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.01em;
}
.manifesto-points {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.point {
  position: relative;
  padding-left: 2rem;
  border-left: 1px solid var(--border);
  padding-bottom: 0.3rem;
}
.point-marker {
  position: absolute;
  left: -1px;
  top: 0;
  width: 2rem;
  background: var(--bg);
  font-family: var(--font-mono);
  color: var(--mercury-blue);
  font-weight: 700;
  text-align: center;
  line-height: 1;
}
.point h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.point p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Realizations section --------------------------------------------------- */
.realization {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}
.realization::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--mercury-blue), transparent);
}
.realization-meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}
.real-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.real-dot {
  width: 4px;
  height: 4px;
  background: var(--mercury-blue);
  border-radius: 50%;
  opacity: 0.6;
}
.realization-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.realization-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 2rem;
}
.realization-desc strong {
  color: var(--mercury-blue-light);
  font-weight: 600;
}
.realization-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 0.3rem;
  transition: all 200ms var(--ease-out);
}
.realization-link:hover {
  color: var(--mercury-blue-light);
  border-color: var(--mercury-blue);
}
.realization-link .arrow {
  display: inline-block;
  transition: transform 200ms var(--ease-out);
}
.realization-link:hover .arrow {
  transform: translate(2px, -2px);
}

/* CTA Band ---------------------------------------------------------------- */
.cta-band {
  max-width: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
}
.cta-band-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6rem) var(--gutter);
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse at center, rgba(0, 110, 170, 0.1), transparent 60%),
    var(--bg-elevated);
  position: relative;
}
.cta-band-inner::before,
.cta-band-inner::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40px;
  height: 1px;
  background: var(--mercury-blue);
}
.cta-band-inner::before { left: 0; }
.cta-band-inner::after { right: 0; }

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.cta-band p {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

/* Page Hero (pages intérieures) ------------------------------------------ */
.page-hero {
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(4rem, 7vw, 5rem);
  border-bottom: 1px solid var(--border);
}
.page-index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--mercury-blue);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 2rem;
  animation: fadeUp 500ms var(--ease-out) both;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin-bottom: 2rem;
  animation: fadeUp 700ms var(--ease-out) 100ms both;
}
.page-hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--mercury-blue-light);
}
.page-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 680px;
  animation: fadeUp 800ms var(--ease-out) 200ms both;
}

/* Services list ---------------------------------------------------------- */
.services-list {
  padding-top: 0;
  padding-bottom: 0;
  max-width: var(--container);
  margin: 0 auto;
}
.service {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  padding: clamp(3rem, 5vw, 4.5rem) var(--gutter);
  border-bottom: 1px solid var(--border);
  transition: background 300ms var(--ease);
}
.service:hover {
  background: var(--bg-elevated);
}
.service-header {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.service-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--mercury-blue);
  letter-spacing: 0.15em;
}
.service-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.service-intro {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.service-bullets {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.9rem;
}
.service-bullets li {
  font-size: 0.98rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  line-height: 1.5;
}
.bullet-marker {
  color: var(--mercury-blue);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

/* Stack ------------------------------------------------------------------- */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.stack-cat h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--mercury-blue);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.stack-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.stack-items span {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  font-size: 0.85rem;
  color: var(--text);
  background: var(--bg-elevated);
  transition: all 200ms var(--ease);
}
.stack-items span:hover {
  border-color: var(--mercury-blue);
  color: var(--mercury-blue-light);
  background: rgba(0, 110, 170, 0.06);
}

/* Contact grid ----------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0;
  max-width: var(--container);
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.contact-block {
  padding: 3rem var(--gutter);
  border-right: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.contact-block:last-of-type { border-right: 1px solid var(--border); }
.contact-block-wide {
  grid-column: 1 / -1;
  border-right: none;
  background: var(--bg-elevated);
}
.block-index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--mercury-blue);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 1.25rem;
}
.contact-block h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.contact-block p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  line-height: 1.55;
}
.contact-link {
  font-family: var(--font-mono);
  color: var(--mercury-blue-light);
  font-size: 1rem;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease);
}
.contact-link:hover { border-color: var(--mercury-blue-light); }
.contact-block address {
  font-style: normal;
  color: var(--text);
  line-height: 1.7;
}

.legal-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem 2rem;
  max-width: 600px;
  margin-top: 1rem;
}
.legal-list dt {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-top: 3px;
}
.legal-list dd {
  color: var(--text);
}

/* Legal pages ------------------------------------------------------------ */
.legal-content {
  padding: var(--gutter);
}
.legal-inner {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.legal-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}
.legal-section h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 1.2rem 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.legal-section p,
.legal-section address {
  color: var(--text-muted);
  line-height: 1.8;
  font-style: normal;
  margin-bottom: 0.8rem;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.legal-section ul li {
  color: var(--text-muted);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.7;
}
.legal-section ul li::before {
  content: '/';
  position: absolute;
  left: 0;
  color: var(--mercury-blue);
  font-family: var(--font-mono);
}
.legal-section .legal-list {
  margin-top: 1.2rem;
  margin-bottom: 1.2rem;
  max-width: 100%;
}
.legal-section a {
  color: var(--mercury-blue-light);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.legal-section a:hover { border-color: var(--mercury-blue-light); }

/* Form ------------------------------------------------------------------- */
.contact-form {
  max-width: 800px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.field label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.req { color: var(--mercury-blue); }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.9rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 2px;
  transition: all 200ms var(--ease);
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--mercury-blue);
  box-shadow: 0 0 0 3px rgba(0, 110, 170, 0.15);
}
.field textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-body);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%239aa3ad' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}
.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.form-legal {
  font-size: 0.82rem;
  color: var(--text-dim);
  max-width: 500px;
  line-height: 1.5;
}
.form-message {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 2px;
  font-size: 0.95rem;
  display: none;
}
.form-message.success {
  display: block;
  background: rgba(0, 110, 170, 0.1);
  border: 1px solid var(--mercury-blue);
  color: var(--mercury-blue-light);
}
.form-message.error {
  display: block;
  background: rgba(200, 50, 50, 0.1);
  border: 1px solid rgba(200, 50, 50, 0.5);
  color: #ff7070;
}

/* Turnstile widget */
.form-row-turnstile {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-start;
}

/* Honeypot anti-spam : invisible pour les humains, rempli par les bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Bouton désactivé (tant que Turnstile n'a pas validé) */
.btn:disabled,
.btn[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* Message de succès affiché à la place du formulaire après envoi */
.form-success {
  padding: 2rem 2.25rem;
  background: rgba(0, 110, 170, 0.08);
  border: 1px solid var(--mercury-blue);
  border-left: 3px solid var(--mercury-blue);
  color: var(--text-bright);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  line-height: 1.7;
}
.form-success strong {
  color: var(--mercury-blue-light);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
}

/* Footer ----------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 4rem;
  margin-top: 4rem;
  position: relative;
  z-index: 2;
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 2fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand .logo-svg {
  height: 40px;
  margin-bottom: 1rem;
  color: var(--text);
}
.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.footer-parent-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  text-decoration: none;
}
.footer-parent-logo:hover {
  opacity: 0.8;
}
.footer-parent-logo img {
  height: 60px;
  width: auto;
  opacity: 0.9;
}
.footer-parent-logo .parent-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text);
  letter-spacing: 0.02em;
  margin-left: -1.8rem;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--mercury-blue);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-col a, .footer-col li {
  color: var(--text-muted);
  font-size: 0.92rem;
}
.footer-col a:hover { color: var(--mercury-blue-light); }
.footer-group p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.5rem var(--gutter);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}
.footer-legal {
  display: flex;
  gap: 2rem;
}

/* Animations ------------------------------------------------------------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-bottom {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-cta { justify-content: flex-start; }
  .hero-stats { grid-template-columns: 1fr; }
  .stat {
    padding: 1.5rem 0;
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .stat:first-child { border-top: none; padding-top: 0; }

  .manifesto-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .service {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pillars-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .pillar-featured { grid-column: span 2; }

  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-block { border-right: none !important; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .footer-brand, .footer-group { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    padding-top: 80px;
    z-index: 90;
    flex-direction: column;
    gap: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    padding-bottom: 1.5rem;
    transform: translateY(-110%);
    transition: transform 300ms var(--ease);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.05rem;
  }
  .main-nav a:last-child { border-bottom: none; }
  .main-nav a.active::after { display: none; }
  .main-nav a.active { color: var(--mercury-blue-light); }

  .pillars-grid { grid-template-columns: 1fr; }
  .pillars-grid-5 { grid-template-columns: 1fr; }
  .pillar-featured { grid-column: span 1; }
  .pillar { padding: 2rem 1.5rem; }

  .form-row { grid-template-columns: 1fr; }
  .form-footer { flex-direction: column; align-items: flex-start; }
  .form-footer .btn { width: 100%; justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  .footer-legal { flex-direction: column; gap: 0.5rem; }

  .hero-title { font-size: clamp(2.5rem, 10vw, 3.5rem); }
}

/* Accessibility ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .accent-slash { animation: none; opacity: 1; }
}

*:focus-visible {
  outline: 2px solid var(--mercury-blue);
  outline-offset: 3px;
}
