/*
  SO QUALITÉ — feuille de styles unique.
  Reproduction fidèle de docs/MAQUETTE-PDG-2026-09-25.webp.
  Familles : Fraunces (titres), Inter (corps/UI), Caveat (phrases manuscrites).
*/

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Caveat";
  src: url("fonts/caveat-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #1D6FE6;
  --primary-dark: #12305E;
  --primary-ink: #12305E;
  --teal: #1FB6B0;
  --teal-dark: #0E8A85;
  --background: #FFFFFF;
  --tint: #EAF3FF;
  --tint-soft: #F3F8FF;
  --text: #17233B;
  --text-muted: #4E5A73;
  --border: #DCE6F5;
  --danger: #B3261E;
  --success: #0F7A4A;
  --check-green: #16A34A;
  --footer-bg: #12305E;
  --media-fallback: linear-gradient(135deg, #1D6FE6 0%, #12305E 100%);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --header-height: 72px;
  --font-title: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-hand: "Caveat", "Segoe Script", cursive;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 768px) { body { font-size: 17px; } }

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

a { color: var(--primary); }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 var(--space-4);
  color: var(--primary-ink);
}

h1 { font-size: 34px; }
h2 { font-size: 27px; }
h3 { font-size: 19px; }

@media (min-width: 768px) {
  h1 { font-size: 52px; }
  h2 { font-size: 34px; }
}

@media (max-width: 374px) { h1 { font-size: 28px; } }

p { margin: 0 0 var(--space-4); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

/* Lien d'évitement */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary-ink);
  color: #fff;
  padding: var(--space-3) var(--space-4);
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===== Boutons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -8px rgba(29,111,230,0.55); }
.btn-primary:hover { background: #1860cc; transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: var(--tint-soft); }
.btn-dark { background: var(--primary-ink); color: #fff; }
.btn-dark:hover { background: #0d2547; transform: translateY(-1px); }
.btn-pill { padding: 11px 20px; font-size: 14px; }

/* ===== En-tête ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.logo-link { display: flex; align-items: center; gap: var(--space-2); text-decoration: none; color: var(--primary-ink); }
.logo-cartouche { display: inline-flex; }
.logo-cartouche img { border-radius: 50%; }
.logo-wordmark { font-family: var(--font-title); font-weight: 600; font-size: 19px; letter-spacing: 0.02em; }

.main-nav { display: none; gap: var(--space-8); }
.main-nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; }
.main-nav a:hover { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.header-actions .btn-pill { display: none; }
.header-phone {
  display: none;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.header-phone:hover { color: var(--primary); }
.header-phone svg { width: 16px; height: 16px; flex-shrink: 0; }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: #fff; color: var(--primary-ink);
  cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }

.mobile-nav {
  display: none;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: var(--space-3) var(--space-4) var(--space-4); display: flex; flex-direction: column; gap: var(--space-1); }
.mobile-nav a { display: block; padding: var(--space-2) 0; color: var(--text); text-decoration: none; font-weight: 500; }

@media (min-width: 900px) {
  .main-nav { display: flex; }
  .header-actions .btn-pill { display: inline-flex; }
  .header-phone { display: inline-flex; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ===== Hero ===== */
.hero { position: relative; padding: var(--space-12) 0 var(--space-8); overflow-x: hidden; overflow-y: visible; }

/* Fond du hero : dégradé animé bord à bord + blobs organiques qui dérivent */
.hero-bg-pattern {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: linear-gradient(120deg, #EAF3FF 0%, #F3F8FF 22%, #E4F8F6 48%, #F3F8FF 74%, #EAF3FF 100%);
  background-size: 300% 300%;
  animation: hero-gradient-shift 28s ease-in-out infinite;
}
@keyframes hero-gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-blob {
  position: absolute;
  filter: blur(60px);
  opacity: 0.2;
  will-change: transform, border-radius;
}
.hero-blob-a {
  top: -10%; left: -8%;
  width: 46vw; height: 46vw; min-width: 360px; min-height: 360px;
  background: var(--primary);
  border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%;
  animation: hero-blob-drift-a 26s ease-in-out infinite, hero-blob-morph-a 18s ease-in-out infinite;
}
.hero-blob-b {
  top: 10%; right: -12%;
  width: 40vw; height: 40vw; min-width: 320px; min-height: 320px;
  background: var(--teal);
  border-radius: 60% 40% 35% 65% / 55% 60% 40% 45%;
  animation: hero-blob-drift-b 30s ease-in-out infinite, hero-blob-morph-b 20s ease-in-out infinite;
}
.hero-blob-c {
  bottom: -14%; left: 18%;
  width: 34vw; height: 34vw; min-width: 260px; min-height: 260px;
  background: #BFE0FF;
  border-radius: 50% 50% 40% 60% / 60% 45% 55% 40%;
  opacity: 0.25;
  animation: hero-blob-drift-c 24s ease-in-out infinite, hero-blob-morph-a 22s ease-in-out infinite;
}
.hero-blob-d {
  bottom: 4%; right: 6%;
  width: 26vw; height: 26vw; min-width: 200px; min-height: 200px;
  background: var(--teal);
  border-radius: 45% 55% 60% 40% / 40% 55% 45% 60%;
  opacity: 0.18;
  animation: hero-blob-drift-d 21s ease-in-out infinite, hero-blob-morph-b 16s ease-in-out infinite;
}

@keyframes hero-blob-drift-a { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(4%, 5%) scale(1.06); } }
@keyframes hero-blob-drift-b { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-5%, 4%) scale(1.08); } }
@keyframes hero-blob-drift-c { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(3%, -4%) scale(1.05); } }
@keyframes hero-blob-drift-d { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-4%, -5%) scale(1.07); } }

@keyframes hero-blob-morph-a {
  0%, 100% { border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%; }
  50% { border-radius: 58% 42% 40% 60% / 55% 60% 40% 45%; }
}
@keyframes hero-blob-morph-b {
  0%, 100% { border-radius: 60% 40% 35% 65% / 55% 60% 40% 45%; }
  50% { border-radius: 40% 60% 55% 45% / 45% 35% 65% 55%; }
}

@media (max-width: 859px) {
  .hero-blob-c, .hero-blob-d { display: none; }
  .hero-blob-a, .hero-blob-b { filter: blur(36px); opacity: 0.16; }
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-12); align-items: stretch; }

.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 var(--space-3);
}
.kicker-on-band { color: var(--primary-ink); }

.hero-lede { color: var(--text-muted); max-width: 46ch; font-size: 17px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-6) 0; }

.reassurance-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  font-size: 14px;
  color: var(--text);
}
.reassurance-list li { display: flex; align-items: center; gap: var(--space-2); }
.check-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--check-green); color: #fff; flex-shrink: 0;
}
.check-dot svg { width: 12px; height: 12px; }

.hero-visual {
  position: relative;
  align-self: stretch;
  display: flex; flex-direction: column; align-items: center;
}

/* Phrase manuscrite : premier enfant, toujours visible en haut de la colonne */
.hand-note-hero { flex-shrink: 0; order: 1; align-self: center; margin: 0; font-size: 22px; }

/* ===== Logo hero à plat — reflet lumineux traversant les formes du PNG (mask),
   plus léger flottement vertical. Repris de l'effet du commit d0f1028. */
.hero-logo {
  position: relative;
  isolation: isolate;
  width: min(200px, 72%);
  aspect-ratio: 1;
  margin: auto 0;
  animation: hero-logo-float 6s ease-in-out infinite;
}
.hero-visual .hero-logo { flex: 0 0 auto; order: 2; }
@media (min-width: 768px) {
  .hero-logo { width: min(320px, 72%); }
}
.hero-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hero-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 34%, rgba(255, 255, 255, 0.45) 48%, rgba(214, 231, 255, 0.9) 54%, transparent 68%);
  background-size: 300% 100%;
  opacity: 0;
  mask: url("img/logo-hero.png") center/contain no-repeat;
  -webkit-mask: url("img/logo-hero.png") center/contain no-repeat;
}
.hero-logo.playing::after {
  animation: logo-light 7s ease-in-out infinite;
}
@keyframes logo-light { 0%, 12% { opacity: 0; background-position: 150% 0; } 25%, 48% { opacity: 0.85; } 65%, 100% { opacity: 0; background-position: -50% 0; } }
@keyframes hero-logo-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.hand-note { font-family: var(--font-hand); font-weight: 600; color: var(--primary); font-size: 24px; line-height: 1.25; transform: rotate(-3deg); }
.hand-note-hero { max-width: 280px; text-align: center; }

@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; }
  .hand-note-hero { max-width: 260px; font-size: 28px; text-align: center; }
}

/* En-tête sticky toujours au-dessus du logo du hero */
.site-header { z-index: 100; }
.hero-visual .hero-logo { z-index: 1; }

/* Reduced motion : logo statique, sans reflet ni flottement */
@media (prefers-reduced-motion: reduce) {
  .hero-logo { animation: none; }
  .hero-logo::after { display: none; }
}

/* ===== Bandeau atouts ===== */
.benefits-band { padding: var(--space-8) 0; background: #EEF5FF; }
.benefits-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: var(--space-6);
}
.benefit-item { display: flex; align-items: center; gap: var(--space-4); position: relative; padding-bottom: var(--space-6); border-bottom: 1px solid var(--border); }
.benefit-item:last-child { border-bottom: none; padding-bottom: 0; }
.benefit-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: #fff; color: var(--primary); flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(18,48,94,0.10);
}
.benefit-item:nth-child(even) .benefit-icon { color: var(--teal-dark); }
.benefit-icon svg { width: 26px; height: 26px; }
.benefit-item strong { display: block; font-size: 17px; font-weight: 700; color: var(--primary-ink); }
.benefit-item small { display: block; color: var(--text-muted); font-size: 13px; margin-top: 2px; }

@media (min-width: 860px) {
  .benefits-list { grid-template-columns: repeat(4, 1fr); }
  .benefit-item { border-bottom: none; padding-bottom: 0; border-right: 1px solid var(--border); padding-right: var(--space-4); }
  .benefit-item:last-child { border-right: none; }
}

/* ===== Sections génériques ===== */
.section { padding: var(--space-16) 0; }
.section-white { background: var(--background); }
.section-tint { background: var(--tint-soft); }

.section-header { max-width: 60ch; margin-bottom: var(--space-8); }
.section-header p { color: var(--text-muted); }

.section-cta { margin-top: var(--space-8); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Pour qui ===== */
.usecase-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
.usecase-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}
.usecase-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--tint); color: var(--primary); flex-shrink: 0;
}
.usecase-icon svg { width: 28px; height: 28px; }
.usecase-body { flex: 1; min-width: 0; }
.usecase-item h3 { margin-bottom: var(--space-2); }
.usecase-item p { color: var(--text-muted); margin-bottom: var(--space-3); }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--primary); }
.link-more svg { width: 16px; height: 16px; }
.link-more:hover { text-decoration: underline; }

@media (min-width: 768px) { .usecase-list { grid-template-columns: repeat(3, 1fr); } }

/* ===== Cadre média (image + repli sans image générée) ===== */
.media-frame {
  position: relative;
  background: var(--media-fallback);
  overflow: hidden;
  aspect-ratio: 3 / 2;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 Q 75 5 150 30 T 300 30 T 450 30 T 600 30' fill='none' stroke='white' stroke-opacity='0.35' stroke-width='4'/%3E%3C/svg%3E");
  background-repeat: repeat-y;
  background-size: 100% 60px;
  background-position: center;
  opacity: 0.6;
}
.media-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Prestations ===== */
.section-tint { background: #EAF3FF; }
.services-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
.service-card {
  background: #fff;
  border: 1px solid #DCE8F8;
  border-radius: 16px;
  overflow: hidden;
}
.service-card .media-frame { border-radius: 16px 16px 0 0; }
.service-card-body { padding: 28px; }
.service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%; margin-bottom: var(--space-4);
  background: var(--tint); color: var(--primary);
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { margin-bottom: var(--space-2); }
.service-card p { color: var(--text-muted); margin: 0; }
.referentiels { color: var(--text-muted); font-size: 14px; margin-top: var(--space-8); }

@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); } }
@media (min-width: 1100px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

/* ===== À propos ===== */
.about-inner { max-width: 64ch; }
.about-signature { color: var(--text-muted); font-size: 15px; }
.about-zone { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); color: var(--text-muted); font-size: 14px; }
.about-zone li { display: flex; align-items: center; gap: var(--space-2); }
.about-zone svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }

/* ===== Comment ça marche ===== */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--space-6); align-items: start; }
.step { text-align: left; }
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--tint); color: var(--primary);
  font-family: var(--font-title); font-weight: 700; font-size: 24px;
  margin-bottom: var(--space-3);
}
.step h3 { margin-bottom: var(--space-1); font-size: 18px; }
.step p { color: var(--text-muted); margin: 0; }
.step-arrow { display: none; color: #9FC1EE; }
.step-arrow svg { width: 32px; height: 32px; stroke-width: 2.5; }
.devis-note { margin-top: var(--space-8); color: var(--text-muted); font-size: 14px; }

@media (min-width: 860px) {
  .steps { grid-template-columns: 1fr auto 1fr auto 1fr; justify-items: center; text-align: center; }
  .step { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .step-arrow { display: flex; align-items: center; justify-content: center; padding-top: 20px; }
}

/* ===== Bandeau CTA ===== */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: var(--space-16) 0;
  background: linear-gradient(120deg, #BFE0FF 0%, #9FDCDC 100%);
  color: var(--primary-ink);
}
.cta-waves { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.cta-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: var(--space-8); align-items: center; }
.cta-text h2 { max-width: 18ch; }
.cta-text p { color: rgba(18,48,94,0.78); max-width: 42ch; }
.hand-note-cta { text-align: center; color: var(--primary-ink); }

@media (min-width: 860px) {
  .cta-grid { grid-template-columns: 1.2fr 0.8fr; }
  .hand-note-cta { text-align: right; }
}

/* ===== Contact ===== */
.contact-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-8); }
.contact-form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.form-field { margin-bottom: var(--space-4); }
.form-field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: var(--space-1); color: var(--primary-ink); }
.optional-tag { font-weight: 400; color: var(--text-muted); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: #fff;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29,111,230,0.18);
}

.form-error { color: var(--danger); font-size: 13px; margin: var(--space-1) 0 0; }
.field-invalid input,
.field-invalid select,
.field-invalid textarea { border-color: var(--danger); }

.hp-field { position: absolute; left: -9999px; }

.form-submit-row { margin-top: var(--space-6); }
.form-rgpd { font-size: 13px; color: var(--text-muted); margin-top: var(--space-4); }

.form-status {
  display: none;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
}
.form-status.is-visible { display: flex; }
.form-status svg { width: 22px; height: 22px; flex-shrink: 0; }
.form-status p { margin: 0; }
.form-status-success { background: #EAF8F0; color: var(--success); }
.form-status-error { background: #FBEAE9; color: var(--danger); }

.contact-info { background: var(--tint-soft); border-radius: var(--radius-md); padding: var(--space-6); align-self: start; }
.contact-info h3 { margin-bottom: var(--space-3); }
.contact-info p a { display: inline-flex; align-items: center; gap: var(--space-2); text-decoration: none; font-weight: 600; }
.contact-info svg { width: 20px; height: 20px; }
.contact-address { font-style: normal; color: var(--text-muted); line-height: 1.7; margin-top: var(--space-4); display: block; }

@media (min-width: 860px) { .contact-layout { grid-template-columns: 1.4fr 1fr; } }

/* ===== Newsletter ===== */
.newsletter-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-8); align-items: center; }
.newsletter-copy h2 { margin-bottom: var(--space-2); }
.newsletter-copy p { color: var(--text-muted); max-width: 46ch; }
.newsletter-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}
.newsletter-input-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.newsletter-input-row input { flex: 1 1 220px; }
.newsletter-input-row .btn { flex: 0 0 auto; }
.form-field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-top: var(--space-3);
  font-size: 14px;
  color: var(--text-muted);
}
.form-field-checkbox input { margin-top: 3px; flex-shrink: 0; width: 18px; height: 18px; }
.form-field-checkbox label { cursor: pointer; }
.form-field-checkbox.field-invalid label { color: var(--danger); }
.form-status-already { background: #FFF3E0; color: #9A5B00; }

@media (min-width: 860px) { .newsletter-layout { grid-template-columns: 1fr 1.2fr; } }

/* ===== Pied de page ===== */
.site-footer { background: var(--footer-bg); color: #E7EDF9; padding: var(--space-12) 0 var(--space-6); }
.footer-inner { display: flex; flex-direction: column; gap: var(--space-6); align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: var(--space-3); }
.footer-brand-text { display: flex; flex-direction: column; }
.footer-brand-text strong { font-family: var(--font-title); font-size: 17px; }
.footer-brand-text span { font-size: 13px; color: #B9C6E3; }
.footer-phone { font-size: 13px; color: #B9C6E3; text-decoration: none; margin-top: 2px; }
.footer-phone:hover { color: #fff; text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); }
.footer-links a { color: #D7E1F5; text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-copy { margin-top: var(--space-8); color: #9AAAC9; font-size: 13px; }

@media (min-width: 860px) {
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* =====================================================================
   Animations — respiration des fonds, entrée en cascade, micro-interactions
   Toutes en transform/opacity (et clip-path pour l'écriture manuscrite),
   figées par la règle globale prefers-reduced-motion ci-dessus.
   ===================================================================== */

/* ---- Hero : fonds neutres, dérives réutilisées ailleurs (Quatre domaines) ---- */
@keyframes drift-a {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(24px, 18px); }
}
@keyframes drift-b {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, -16px); }
}

/* ---- Hero : entrée en cascade au chargement ---- */
@keyframes fade-up-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-text > .kicker,
.hero-text > h1,
.hero-text > .hero-lede,
.hero-text > .hero-cta,
.hero-text > .reassurance-list {
  opacity: 0;
  animation: fade-up-in 0.7s ease forwards;
}
.hero-text > .kicker { animation-delay: 0.05s; }
.hero-text > h1 { animation-delay: 0.15s; }
.hero-text > .hero-lede { animation-delay: 0.3s; }
.hero-text > .hero-cta { animation-delay: 0.45s; }
.hero-text > .reassurance-list { animation-delay: 0.58s; }

.reassurance-list .check-dot {
  display: inline-flex;
  opacity: 0;
  animation: pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.reassurance-list li:nth-child(1) .check-dot { animation-delay: 0.75s; }
.reassurance-list li:nth-child(2) .check-dot { animation-delay: 0.86s; }
.reassurance-list li:nth-child(3) .check-dot { animation-delay: 0.97s; }
@keyframes pop-in {
  0% { opacity: 0; transform: scale(0.4); }
  60% { opacity: 1; transform: scale(1.15); }
  100% { opacity: 1; transform: scale(1); }
}

/* ---- Phrase manuscrite : effet d'écriture ---- */
@keyframes write-on {
  from { clip-path: inset(0 100% 0 0); opacity: 0.4; }
  to { clip-path: inset(0 0 0 0); opacity: 1; }
}
.hand-note-hero { animation: write-on 1.1s ease 1.05s both; }
.reveal .hand-note-cta { opacity: 0; }
.reveal.is-visible .hand-note-cta { animation: write-on 1.1s ease 0.35s both; }

/* ---- Bandeau atouts : dégradé qui glisse + icônes qui rebondissent ---- */
.benefits-band {
  background: linear-gradient(120deg, #EEF5FF 0%, #E3EFFE 50%, #EEF5FF 100%);
  background-size: 200% 200%;
  animation: gradient-shift 20s ease infinite alternate;
}
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
.benefits-list.is-visible .benefit-icon {
  animation: pop-in 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.benefits-list.is-visible .benefit-item:nth-child(1) .benefit-icon { animation-delay: 0.05s; }
.benefits-list.is-visible .benefit-item:nth-child(2) .benefit-icon { animation-delay: 0.15s; }
.benefits-list.is-visible .benefit-item:nth-child(3) .benefit-icon { animation-delay: 0.25s; }
.benefits-list.is-visible .benefit-item:nth-child(4) .benefit-icon { animation-delay: 0.35s; }

/* ---- Cartes « Pensé pour » et « Quatre domaines » : cascade + survol ---- */
.usecase-list .usecase-item,
.services-grid .service-card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s ease;
}
.usecase-list.is-visible .usecase-item,
.services-grid.is-visible .service-card { opacity: 1; transform: translateY(0); }
.usecase-list.is-visible .usecase-item:nth-child(2),
.services-grid.is-visible .service-card:nth-child(2) { transition-delay: 0.1s; }
.usecase-list.is-visible .usecase-item:nth-child(3),
.services-grid.is-visible .service-card:nth-child(3) { transition-delay: 0.2s; }
.services-grid.is-visible .service-card:nth-child(4) { transition-delay: 0.3s; }
.services-grid.is-visible .service-card:nth-child(5) { transition-delay: 0.4s; }

.usecase-item:hover,
.service-card:hover { transform: translateY(-5px); box-shadow: 0 16px 32px -18px rgba(18,48,94,0.28); }
.usecase-item:hover .usecase-icon svg,
.service-card:hover .service-icon svg { transform: translateY(-2px) rotate(-6deg); }
.usecase-icon svg, .service-icon svg { transition: transform 0.25s ease; }

/* Fond « Quatre domaines » : formes douces qui dérivent, plus discrètes que le hero */
.section-tint { position: relative; overflow: hidden; }
.section-tint::before, .section-tint::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(30px); opacity: 0.4; z-index: 0;
  pointer-events: none;
}
.section-tint::before {
  width: 260px; height: 260px; top: -60px; right: 8%;
  background: radial-gradient(circle, #BFE0FF 0%, rgba(191,224,255,0) 72%);
  animation: drift-a 24s ease-in-out infinite;
}
.section-tint::after {
  width: 220px; height: 220px; bottom: -40px; left: 4%;
  background: radial-gradient(circle, #9FE3DC 0%, rgba(159,227,220,0) 72%);
  animation: drift-b 28s ease-in-out infinite;
}
.section-tint .container { position: relative; z-index: 1; }
@media (max-width: 859px) { .section-tint::before, .section-tint::after { opacity: 0.22; } }

/* ---- Étapes : numéros en pulse successif, flèches qui se dessinent ---- */
@keyframes number-pulse {
  0% { opacity: 0; transform: scale(0.6); }
  55% { opacity: 1; transform: scale(1.12); }
  100% { opacity: 1; transform: scale(1); }
}
.steps.is-visible li:nth-child(1) .step-number { animation: number-pulse 0.5s ease 0.05s both; }
.steps.is-visible li:nth-child(3) .step-number { animation: number-pulse 0.5s ease 0.3s both; }
.steps.is-visible li:nth-child(5) .step-number { animation: number-pulse 0.5s ease 0.55s both; }

.step-arrow svg { transform: scaleX(0); transform-origin: left center; opacity: 0; transition: transform 0.5s ease, opacity 0.3s ease; }
.steps.is-visible .step-arrow svg { opacity: 1; transform: scaleX(1); }
.steps.is-visible li:nth-child(2) .step-arrow svg { transition-delay: 0.2s; }
.steps.is-visible li:nth-child(4) .step-arrow svg { transition-delay: 0.45s; }

/* ---- Bandeau CTA : vagues qui défilent horizontalement en boucle + bob vertical ---- */
.cta-wave-layer {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 45%;
  overflow: hidden;
  will-change: transform;
}
.cta-wave-scroll { display: block; width: 200%; height: 100%; }

.cta-wave-back { animation: wave-bob-a 7s ease-in-out infinite; }
.cta-wave-mid { animation: wave-bob-b 6.5s ease-in-out infinite; }
.cta-wave-front { animation: wave-bob-c 8.5s ease-in-out infinite; }
@keyframes wave-bob-a { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes wave-bob-b { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes wave-bob-c { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.cta-wave-back .cta-wave-scroll { animation: wave-scroll 14s linear infinite; }
.cta-wave-mid .cta-wave-scroll { animation: wave-scroll 20s linear infinite reverse; }
.cta-wave-front .cta-wave-scroll { animation: wave-scroll 26s linear infinite; }
@keyframes wave-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---- Boutons : la flèche glisse au survol ---- */
.btn svg { transition: transform 0.25s ease; }
.btn:hover svg { transform: translateX(4px); }
