/* ============================================================
   CLARALENN Software — feuille de style principale
   Direction : moderne / SaaS — grotesque bold, verre dépoli,
   dégradés mesh, cartes bento, micro-interactions.
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f4f5f3;
  --ink: #0a0c0b;
  --ink-soft: #4c534f;
  --ink-faint: #8b928d;
  --line: #e6e8e4;

  --dark: #16215c;
  --dark-soft: #1c2c72;
  --dark-line: rgba(255, 255, 255, 0.1);

  --accent: #17e3a1;      /* menthe / lait fermenté — vivid */
  --accent-2: #5c6cff;    /* indigo tech */
  --accent-ink: #04140f;  /* texte sur fond accent clair */
  --gradient: linear-gradient(120deg, var(--accent), var(--accent-2));

  --radius-lg: 26px;
  --radius: 18px;
  --radius-sm: 12px;
  --max-width: 1200px;
  --shadow: 0 18px 45px rgba(6, 17, 13, 0.10);
  --shadow-lg: 0 30px 70px rgba(6, 17, 13, 0.16);

  --font-head: "Spinnaker", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: Helvetica, Arial, sans-serif;
  --teal: #2ec4d6;
  --panel-alpha: 0.7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

#a-propos, #nos-services, #dialait, #autres-domaines, #nous-contacter {
  scroll-margin-top: 165px;
}
@media (max-width: 680px) {
  #a-propos, #nos-services, #dialait, #autres-domaines, #nous-contacter {
    scroll-margin-top: 90px;
  }
}

body {
  margin: 0;
  overflow-x: clip;
  max-width: 100vw;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg) url('../images/fond.jpg') no-repeat center center fixed;
  background-size: cover;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 5.2vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 700; }
@media (max-width: 480px) {
  .trust-title { font-size: 1.72rem; white-space: nowrap; }
}
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 16px; color: var(--ink-soft); }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient);
  flex: none;
}
.eyebrow.on-dark {
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.06);
  border-color: var(--dark-line);
}

.lede {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 640px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  font-family: var(--font-body);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.16,1,0.3,1), box-shadow 0.28s cubic-bezier(0.16,1,0.3,1), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: var(--gradient);
  color: var(--accent-ink);
  box-shadow: 0 10px 30px rgba(23, 227, 161, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(92, 108, 255, 0.35); }
.btn-ghost {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.28);
  color: var(--white, #fff);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); border-color: rgba(255,255,255,0.5); }
.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-navy {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}
.btn-navy:hover {
  background: #fff;
  color: var(--dark);
  border-color: var(--dark);
  box-shadow: var(--shadow);
}
.btn-outline:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(6, 17, 13, 0.02);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(6, 17, 13, 0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 145px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand-logo img {
  height: 117px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 0.98rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover { color: var(--accent-2); }
.nav-links a[aria-current="page"] { color: var(--accent-2); border-color: var(--accent-2); }
.nav-links a.btn-navy { color: #fff; }
.nav-links a.btn-navy:hover { color: var(--dark); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn-navy {
  padding: 10px 20px;
  font-size: 0.88rem;
  text-transform: uppercase;
}
.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--dark);
  color: #fff;
  padding: 76px 0 0;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
  opacity: 0.55;
}
.hero::before {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  top: -180px; right: -120px;
}
.hero::after {
  width: 460px; height: 460px;
  background: radial-gradient(circle, var(--accent-2), transparent 70%);
  bottom: -220px; left: -140px;
  opacity: 0.45;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.09) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
  z-index: 0;
}
.hero-spotlight {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 30%), rgba(23,227,161,0.16), transparent 60%);
  transition: opacity 0.4s ease;
  opacity: 0;
}
.spotlight-zone:hover .hero-spotlight { opacity: 1; }
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 76px;
}
.hero h1 { color: #fff; }
.hero .lede { color: rgba(255,255,255,0.72); font-size: 1.18rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

.hero-visual {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 16px;
  backdrop-filter: blur(10px);
}

/* Bento stat strip, floating across the hero/section seam */
.bento-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 0 24px;
  transform: translateY(50%);
}
.bento-stats.cols-3 { grid-template-columns: repeat(3, 1fr); }
.bento-stats .chip {
  background: rgba(255,255,255,var(--panel-alpha));
  border: 1px solid rgba(10,12,11,0.06);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
  min-width: 0;
}
.bento-stats .chip strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.bento-stats .chip span { font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); }

.dialait-chip { flex: 0 1 calc(14.28% - 14px); }
@media (max-width: 980px) {
  .dialait-chip { flex-basis: calc(33.33% - 11px); }
}
@media (max-width: 680px) {
  .dialait-chip { flex-basis: calc(50% - 8px); }
}

.chip-flip { position: relative; min-height: 96px; }
.chip-flip-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.chip-flip-face.is-active { opacity: 1; }
.chip-flip-alt-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.3;
  color: var(--dark);
  text-align: center;
}
.hero-spacer { height: 0; }

/* ---------- Placeholder blocks (screenshots / logos to be supplied) ---------- */
.placeholder {
  border: 1.5px dashed rgba(255,255,255,0.3);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  color: rgba(255,255,255,0.72);
  padding: 40px 20px;
  min-height: 260px;
}
.placeholder .ph-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.placeholder span { font-size: 0.82rem; max-width: 260px; }

.placeholder-light {
  border-color: var(--line);
  background: var(--bg-soft);
  color: var(--ink-faint);
}
.placeholder-light .ph-icon { background: #e9ebe6; color: var(--ink-soft); }

/* ---------- Sections ---------- */
section { padding: 68px 0; }
.bento-stats + section { padding-top: calc(68px + 60px); }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

/* Card grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

/* Variant: centers a trailing incomplete row (used when a grid-3 doesn't hold a multiple of 3 items) */
.grid-flex-center { display: flex; flex-wrap: wrap; justify-content: center; }
.grid-flex-center > .card-stack { flex: 0 1 calc((100% - 44px) / 3); }
@media (max-width: 980px) {
  .grid-flex-center > .card-stack { flex-basis: calc(50% - 11px); }
}
@media (max-width: 680px) {
  .grid-flex-center > .card-stack { flex-basis: 100%; }
}

.card {
  position: relative;
  background: rgba(255,255,255,var(--panel-alpha));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s cubic-bezier(0.16,1,0.3,1), border-color 0.25s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.card:hover { transform: translateY(-6px) scale(1.01); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card .ic {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--bg-soft);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.95rem; }

/* Split (image/text) rows */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse .split-text { order: 2; }
.split.reverse .split-visual { order: 1; }
.split-text .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.feature-list { margin-top: 22px; }
.feature-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 0.96rem;
  color: var(--ink-soft);
}
.feature-list li:first-child { border-top: none; }
.feature-list-plain li { border-top: none; padding: 6px 0; }
.feature-list li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--gradient);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/60% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/60% no-repeat;
}

/* Timeline (histoire) */
.timeline { position: relative; margin-top: 24px; padding-left: 40px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 9px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--line);
}
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -40px; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gradient);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--line);
}
.timeline-item .year {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
  margin-bottom: 4px;
  display: block;
}

/* Logo wall */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.logo-slot {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 0.72rem;
  text-align: center;
  padding: 14px 18px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(15,23,42,0.10);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.logo-slot::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.logo-slot:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(15,23,42,0.14); }
.logo-slot:hover::before { transform: scaleX(1); }
.logo-slot:focus, .logo-slot:focus-visible, .logo-slot:active { outline: none; }
.logo-slot img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  outline: none;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

/* Logo marquee — continuous horizontal scroll */
.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.logo-marquee-track.slow { animation-duration: 64s; }
.logo-marquee:hover .logo-marquee-track { animation-play-state: paused; }
.logo-marquee .logo-slot { flex: 0 0 auto; width: 180px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track { animation: none; }
  .reveal, .hero-enter { transition: none; opacity: 1; transform: none; }
}

/* Modules marquee (DIALAIT / Autres domaines) */
.modules-marquee,
.domains-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.modules-marquee-track,
.domains-marquee-track {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  width: max-content;
  animation: marquee 55s linear infinite;
}
.domains-marquee-track { animation-duration: 32s; }
.modules-marquee:hover .modules-marquee-track,
.domains-marquee:hover .domains-marquee-track { animation-play-state: paused; }
.modules-marquee .card-stack { flex: 0 0 369px; width: 369px; }
.domains-marquee .card-stack { flex: 0 0 369px; width: 369px; }
.modules-marquee .feature-list li,
.domains-marquee .feature-list li { display: block; }
.modules-marquee .module-card ul li,
.domains-marquee .module-card ul li { border-top: none; }
.modules-marquee .feature-list li,
.domains-marquee .feature-list li {
  padding: 3px 0;
}
.modules-marquee .feature-list li::before,
.domains-marquee .feature-list li::before {
  content: "•";
  display: inline;
  flex: none;
  width: auto;
  height: auto;
  margin-top: 0;
  margin-right: 8px;
  border-radius: 0;
  background: none;
  -webkit-mask: none;
  mask: none;
  color: var(--accent-2);
  font-weight: 700;
  font-size: 1rem;
}
.modules-marquee .card-stack > .module-card,
.domains-marquee .card-stack > .module-card { height: 239px; display: flex; flex-direction: column; }
.modules-marquee .module-card,
.domains-marquee .module-card { padding-top: 22px; }
.modules-marquee .module-card h3,
.domains-marquee .module-card h3 { flex: 0 0 auto; }
.modules-marquee .module-body,
.domains-marquee .module-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;
}
.modules-marquee .module-body::-webkit-scrollbar,
.domains-marquee .module-body::-webkit-scrollbar { width: 6px; }
.modules-marquee .module-body::-webkit-scrollbar-track,
.domains-marquee .module-body::-webkit-scrollbar-track { background: transparent; }
.modules-marquee .module-body::-webkit-scrollbar-thumb,
.domains-marquee .module-body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
@media (max-width: 680px) {
  .modules-marquee .card-stack,
  .domains-marquee .card-stack { flex-basis: 260px; width: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  .modules-marquee-track,
  .domains-marquee-track { animation: none; }
}

/* Testimonial */
.testimonial {
  background: rgba(255,255,255,var(--panel-alpha));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.testimonial p.quote {
  font-family: var(--font-head);
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.testimonial .who { font-size: 0.85rem; color: var(--ink-faint); font-weight: 600; }

/* CTA band */
.cta-band {
  position: relative;
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 60px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 360px; height: 360px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  filter: blur(70px);
  opacity: 0.4;
  top: -140px; right: -80px;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.7); margin-bottom: 0; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.contact-info .item { display: flex; gap: 14px; margin-bottom: 24px; }
.contact-info .ic {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--bg-soft); color: var(--ink);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.contact-info h4 { margin: 0 0 4px; font-size: 0.95rem; color: var(--ink); }
.contact-info p { margin: 0; font-size: 0.92rem; }

form.contact-form {
  background: rgba(255,255,255,var(--panel-alpha));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row.cols-4 { grid-template-columns: repeat(4, 1fr); }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--bg-soft);
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  background: var(--bg);
}
.form-note { font-size: 0.8rem; color: var(--ink-faint); margin-top: 12px; }

/* Footer */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 36px 0 28px;
  margin-top: 20px;
  border-radius: 32px 32px 0 0;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--accent-2), transparent 70%);
  filter: blur(90px);
  opacity: 0.18;
  top: -220px; left: -100px;
  pointer-events: none;
}
.site-footer .container { position: relative; z-index: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}
.footer-grid > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-grid h4 {
  color: #fff;
  font-family: 'Spinnaker', sans-serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--teal);
}
.footer-grid p { color: rgba(255,255,255,0.75); font-family: Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.7; }
.footer-grid li { margin-bottom: 11px; }
.footer-grid a { color: rgba(255,255,255,0.85); font-family: Helvetica, Arial, sans-serif; font-size: 14px; transition: color 0.15s; }
.footer-grid a:hover { color: var(--accent); }
.footer-envelope { font-size: 1.5em; margin-right: 4px; vertical-align: middle; }
.footer-logo { height: 117px; width: auto; max-width: none; margin-bottom: 0; align-self: flex-start; flex: none; }
.footer-copy { color: rgba(255,255,255,0.6); font-family: Helvetica, Arial, sans-serif; font-size: 0.88rem; margin: 24px 0 0 3ch; text-align: left; }
.footer-phone { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.footer-phone .ic {
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex: none;
}
.footer-phone .ic img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.footer-phone a {
  font-size: 24px;
  font-weight: 400;
}
.footer-bottom {
  margin-top: -28px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
@media (max-width: 680px) and (orientation: portrait) {
  .footer-bottom { margin-top: 26px; }
  .footer-copy { margin-top: -2px; }
  .footer-grid > div:nth-child(3) { margin-top: -14px; }
}
.footer-bottom a:hover { color: var(--accent); }
.footer-top-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  flex: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.footer-top-link:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); transform: translateY(-2px); color: #fff; }

/* Bandeau promotionnel défilant (page d'accueil) */
.promo-banner {
  position: relative;
  background: var(--dark);
  color: #fff;
  padding: 26px 0;
  overflow: hidden;
}
.promo-track {
  position: relative;
  height: 86px;
}
.promo-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}
.promo-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.promo-slide h3 {
  margin: 0 0 6px;
  font-size: 1.7rem;
  color: #fff;
}
.promo-slide p {
  margin: 0;
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
}

/* Page hero (sous-pages) */
.page-hero {
  position: relative;
  background: var(--dark);
  color: #fff;
  padding: 64px 0 90px;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  width: 480px; height: 480px;
  background: radial-gradient(circle, var(--accent-2), transparent 70%);
  filter: blur(80px);
  opacity: 0.45;
  top: -220px; right: -100px;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.7); max-width: 640px; margin-bottom: 0; font-size: 1.08rem; }
.breadcrumb { font-size: 0.82rem; color: rgba(255,255,255,0.5); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: var(--accent); }

/* Utility */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.note-todo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #9a7215;
  background: #fbf1dc;
  border: 1px solid #e9d29a;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* Scroll reveal, with a staggered cascade inside grids */
.reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.in-view { opacity: 1; transform: none; }

.grid-3 > .reveal:nth-child(1), .grid-2 > .reveal:nth-child(1), .interface-row > .reveal:nth-child(1), .bento-stats > .reveal:nth-child(1) { transition-delay: 0s; }
.grid-3 > .reveal:nth-child(2), .grid-2 > .reveal:nth-child(2), .interface-row > .reveal:nth-child(2), .bento-stats > .reveal:nth-child(2) { transition-delay: 0.09s; }
.grid-3 > .reveal:nth-child(3), .grid-2 > .reveal:nth-child(3), .interface-row > .reveal:nth-child(3), .bento-stats > .reveal:nth-child(3) { transition-delay: 0.18s; }
.grid-3 > .reveal:nth-child(4), .interface-row > .reveal:nth-child(4), .bento-stats > .reveal:nth-child(4) { transition-delay: 0.27s; }
.grid-3 > .reveal:nth-child(5), .interface-row > .reveal:nth-child(5) { transition-delay: 0.36s; }
.grid-3 > .reveal:nth-child(6), .interface-row > .reveal:nth-child(6) { transition-delay: 0.45s; }
.grid-3 > .reveal:nth-child(7) { transition-delay: 0.54s; }
.grid-3 > .reveal:nth-child(8) { transition-delay: 0.63s; }
.grid-3 > .reveal:nth-child(9) { transition-delay: 0.72s; }

.timeline-item.reveal:nth-child(1) { transition-delay: 0s; }
.timeline-item.reveal:nth-child(2) { transition-delay: 0.1s; }
.timeline-item.reveal:nth-child(3) { transition-delay: 0.2s; }
.timeline-item.reveal:nth-child(4) { transition-delay: 0.3s; }

/* Hero entrance (plays once on load, independent from scroll reveal) */
.hero-enter {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.is-loaded .hero-enter { opacity: 1; transform: none; }
.hero-enter:nth-child(1) { transition-delay: 0.05s; }
.hero-enter:nth-child(2) { transition-delay: 0.15s; }
.hero-enter:nth-child(3) { transition-delay: 0.25s; }
.hero-enter:nth-child(4) { transition-delay: 0.35s; }

/* Animated stat counters */
[data-count-to] { font-variant-numeric: tabular-nums; }

/* Module cards (page Logiciel) */
.module-card {
  position: relative;
  background: rgba(255,255,255,var(--panel-alpha));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 26px 28px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s cubic-bezier(0.16,1,0.3,1);
}
.services-grid .module-card { padding: 22px 26px; }
.services-grid .card-stack > .module-card { height: 239px; }
@media (max-width: 680px) {
  .services-grid .card-stack > .module-card { height: auto; }
}
.module-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.module-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: var(--shadow-lg); }
.module-card:hover::before { transform: scaleX(1); }
.module-card .module-num {
  position: absolute;
  top: 16px;
  left: 20px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
}
.module-card h3 { margin: 0 0 12px; }
.module-card ul { margin: 0; }
.module-card ul li {
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.module-card ul li:first-child { border-top: none; }

/* Post-it dynamique (A propos) */
.postit-jar {
  position: relative;
  height: 260px;
  max-width: 300px;
  margin: 0 auto;
}
.postit {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 260px;
  height: 240px;
  background: linear-gradient(160deg, #fff176, #ffe066);
  box-shadow: 0 16px 34px rgba(0,0,0,0.18);
  padding: 30px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.postit::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 70px;
  height: 24px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.7);
  transform: translateX(-50%) rotate(-2deg);
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.postit-back-1 { transform: rotate(-8deg); z-index: 1; }
.postit-back-2 { transform: rotate(6deg); z-index: 2; background: linear-gradient(160deg, #ffe066, #ffd43b); }
.postit-active {
  z-index: 3;
  transform: rotate(-2deg);
  transition: transform 0.55s cubic-bezier(0.34,1.2,0.64,1), opacity 0.55s ease;
}
.postit-active.is-peeling {
  transform: translate(160px, -120px) rotate(28deg);
  opacity: 0;
}
.postit-text {
  font-family: "Caveat", cursive;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.15;
  color: #3a3319;
  white-space: pre-line;
}
@media (max-width: 680px) {
  .postit-jar { height: 220px; max-width: 240px; }
  .postit { width: 210px; height: 190px; }
  .postit-text { font-size: 1.7rem; }
}

.db-core {
  position: relative;
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  overflow: hidden;
}
.db-core::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  filter: blur(80px);
  opacity: 0.35;
  bottom: -220px; left: -100px;
}
.db-core > * { position: relative; z-index: 1; }
.db-core h3 { color: #fff; }
.db-core p { color: rgba(255,255,255,0.68); }
.db-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.db-tags span {
  font-size: 0.8rem;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.88);
}

.services-note {
  max-width: 900px;
  margin: 26px auto;
  text-align: center;
}
@media (min-width: 860px) {
  .services-note-line2 { white-space: nowrap; }
}

.portrait-break { display: none; }
.no-portrait-break { display: inline; }
@media (max-width: 680px) and (orientation: portrait) {
  .portrait-break { display: inline; }
  .no-portrait-break { display: none; }
  .process-head { margin-bottom: 22px; }
  .process-head + .process { margin-top: 20px; }
}
@media (max-width: 680px) {
  .split { gap: 22px; }
}

.card-stack {
  position: relative;
}
.card-stack > .module-card,
.card-stack > .card,
.card-stack > .chip {
  position: relative;
  height: 100%;
  box-shadow: 0 14px 34px rgba(15,23,42,0.10);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s cubic-bezier(0.16,1,0.3,1);
}
.card-stack > .chip {
  overflow: hidden;
}
.card-stack > .chip::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.card-stack > .chip:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15,23,42,0.14);
}
.card-stack > .chip:hover::before {
  transform: scaleX(1);
}
.card-stack-accent .module-num { color: var(--accent); }

.card-stack h3 {
  color: var(--dark);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 16px;
  text-align: center;
}

/* Frise "comment ça se passe" avec ligne qui se dessine */
.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.process-track {
  position: absolute;
  top: 23px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--line);
  z-index: 0;
}
.process-track-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0;
  background: var(--gradient);
  transition: width 1.4s cubic-bezier(0.16,1,0.3,1);
}
.process-track-fill.in-view { width: 100%; }
.process-step { position: relative; z-index: 1; text-align: center; }
.process-step .num {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 10px 24px rgba(23,227,161,0.28);
}
.process-step h4 { margin-bottom: 8px; }
.process-step p { font-size: 0.9rem; margin-bottom: 0; }

@media (max-width: 780px) {
  .process { grid-template-columns: 1fr; row-gap: 44px; }
  .process-track { display: none; }
  .process-step + .process-step::before {
    content: "";
    position: absolute;
    top: -44px;
    left: 50%;
    width: 2px;
    height: 44px;
    background: var(--gradient);
    opacity: 0.5;
    transform: translateX(-50%);
  }
}

.process-3 { grid-template-columns: repeat(3, 1fr); margin-top: 0; }
.process-3 + .process-3 { margin-top: 56px; }
.process-3 .process-track { left: 16.67%; right: 16.67%; }
.process-step-accent .num { background: none; color: var(--accent); border: 2px solid var(--accent); box-shadow: none; }
@media (max-width: 780px) {
  .process-3 { grid-template-columns: 1fr 1fr 1fr; row-gap: 32px; }
  .process-3 .process-track { display: none; }
}
@media (max-width: 560px) {
  .process-3 { grid-template-columns: 1fr; }
}

.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: start; }
/* Arbre écosystème (Producteur, Transporteur…) */
.eco-tree { margin: 0 auto; }
.eco-tree-root {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}
.eco-tree-trunk {
  width: 2px;
  height: 30px;
  background: var(--gradient);
  opacity: 0.5;
  margin: 0 auto;
}
.eco-tree-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}
.eco-tree-bus {
  position: absolute;
  top: 0;
  left: calc((100% - 60px) / 12);
  right: calc((100% - 60px) / 12);
  height: 2px;
  z-index: 0;
}
.eco-tree-bus-fill {
  position: absolute;
  top: 0;
  width: 0;
  height: 100%;
  background: var(--gradient);
  opacity: 0.6;
  transition: width 1.2s cubic-bezier(0.16,1,0.3,1);
}
.eco-tree-bus-fill-left { right: 50%; }
.eco-tree-bus-fill-right { left: 50%; }
.eco-tree-bus-fill.in-view { width: 50%; }
.eco-tree-node {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding-top: 26px;
  position: relative;
  z-index: 1;
}
.eco-tree-node::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 26px;
  background: var(--gradient);
  opacity: 0.5;
  transform: translateX(-50%);
}
.eco-tree-node .ic-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 8px;
  box-shadow: var(--shadow);
}
.eco-tree-node h4 { font-size: 0.85rem; margin: 0 0 2px; color: var(--ink); }
.eco-tree-node p { font-size: 0.72rem; margin: 0; color: var(--ink-faint); line-height: 1.3; }

@media (max-width: 780px) {
  .eco-tree-row {
    flex-direction: column;
    align-items: center;
    row-gap: 36px;
    border-top: none;
  }
  .eco-tree-node { flex: 0 1 100%; width: 100%; padding-top: 0; }
  .eco-tree-node::before { display: none; }
  .eco-tree-node + .eco-tree-node::before {
    display: block;
    content: "";
    position: absolute;
    top: -36px;
    left: 50%;
    width: 2px;
    height: 65px;
    background: var(--gradient);
    opacity: 0.5;
    transform: translateX(-50%);
  }
  .eco-tree-bus { display: none; }
}
@media (max-width: 560px) {
  .eco-tree-node .ic-circle { width: 48px; height: 48px; font-size: 1.15rem; }
  .eco-tree-node h4 { font-size: 0.78rem; }
  .eco-tree-node p { font-size: 0.68rem; }
}

/* Accordéon (page DIALAIT, modules) */
.accordion {
  max-width: 860px;
  margin: 0 auto;
  background: rgba(255,255,255,var(--panel-alpha));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-item:last-child { border-bottom: none; }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 26px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  transition: background 0.2s ease;
}
.accordion-trigger:hover { background: rgba(10,12,11,0.03); }
.accordion-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink-faint);
  flex: none;
  width: 26px;
}
.accordion-title {
  flex: 1;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--ink);
}
.accordion-chevron {
  flex: none;
  color: var(--ink-faint);
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.3s ease;
}
.accordion-item.is-open .accordion-chevron { transform: rotate(180deg); }
.accordion-item.is-open .accordion-num,
.accordion-item.is-open .accordion-title { color: var(--accent-2); }
.accordion-item-accent.is-open .accordion-num,
.accordion-item-accent.is-open .accordion-title { color: var(--accent); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.accordion-panel ul { padding: 0 26px 20px; }
.accordion-panel li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.accordion-panel li:first-child { border-top: none; }
@media (max-width: 680px) {
  .accordion-trigger { padding: 16px 20px; }
  .accordion-panel ul { padding: 0 20px 18px; }
}

@media (max-width: 680px) {
  body { background-attachment: scroll; }
}
.grid-flex-center-4 > .card-stack { flex: 0 1 calc(25% - 16.5px); }
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-flex-center-4 > .card-stack { flex-basis: calc(50% - 11px); }
}
@media (max-width: 680px) {
  .grid-4 { grid-template-columns: 1fr; }
  .grid-flex-center-4 > .card-stack { flex-basis: 100%; }
}

.interface-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.interface-item {
  text-align: center;
  padding: 26px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,var(--panel-alpha));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.interface-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.interface-item .ic {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--bg-soft); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; font-size: 1.15rem;
}
.interface-item h4 { margin: 0 0 4px; font-size: 0.88rem; color: var(--ink); }
.interface-item p { margin: 0; font-size: 0.78rem; color: var(--ink-faint); }

@media (max-width: 980px) {
  .interface-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .interface-row { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; padding-bottom: 60px; }
  .hero-visual { order: -1; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-text,
  .split.reverse .split-visual { order: unset; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .services-grid .card-stack > .module-card { height: auto; }
  .bento-stats { grid-template-columns: repeat(2, 1fr); transform: none; margin-top: -40px; position: relative; z-index: 2; }
  .bento-stats.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .bento-stats + section { padding-top: 100px; }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row.cols-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .site-header .container { height: 72px; }
  .brand-logo img { height: 42px; }
  .nav-links, .nav-actions .btn-navy { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    border-radius: 0 0 20px 20px;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 24px 22px;
    gap: 0;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open a:not(.nav-cta-mobile) {
    padding: 15px 0;
    text-align: left;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open a[aria-current="page"] { border-bottom-color: var(--accent-2); }
  .nav-links.open .nav-cta-mobile {
    display: flex;
    justify-content: center;
    margin-top: 18px;
    width: 100%;
  }
  section { padding: 44px 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .bento-stats { grid-template-columns: 1fr 1fr; transform: none; margin-top: -34px; position: relative; z-index: 2; }
  .bento-stats.cols-3 { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { align-items: center; }
  .footer-logo { align-self: center; }
  .footer-copy { text-align: center; margin-left: 0; }
  .site-footer::before {
    width: 320px; height: 500px;
    top: -120px; left: 50%;
    transform: translateX(-50%);
    opacity: 0.4;
  }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 44px 30px; }
  .form-row, .form-row.cols-4 { grid-template-columns: 1fr; }
  .page-hero { padding: 130px 0 70px; }
}
