/* ==========================================================================
   Millau Numérique - design system et micro-animations
   Palette et registre issus des maquettes Stitch (sauge, calcaire, encre).
   Micro-animations : apparitions discretes, ease-out precis, jamais d'effet.
   ========================================================================== */

:root {
  --ink: #2c3531;
  --ink-soft: #1e2522;
  --ink-ghost: #858c88;
  --sage: #546250;
  --sage-soft: #dce3d8;
  --sage-pale: #eef2ea;
  --limestone: #f2efe9;
  --chalk: #fbf9f4;
  --bg: #f8faf8;
  --card: #ffffff;
  --muted: #595c58;
  --line: #e4dfd5;
  --line-strong: #c5bdb0;
  --error: #ba1a1a;

  /* Orange terre cuite : s'accorde aux tons calcaire et sauge, contraste
     4.9:1 avec le texte clair (AA). Reserve aux appels a l'action. */
  --accent: #c2410c;
  --accent-deep: #9d340a;
  --accent-pale: #f7e8de;

  /* Nappes du hero : couleurs de la planche Stitch (charbon, sauge, ocre, corail). */
  --blob-charcoal: #3f4543;
  --blob-sage: #a9b3aa;
  --blob-ochre: #e0b45c;
  --blob-coral: #e0725a;

  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-serif: "Newsreader", Georgia, serif;

  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 16px;

  --shadow-soft: 0 1px 2px rgba(9, 15, 13, 0.04), 0 14px 34px -24px rgba(9, 15, 13, 0.22);
  --shadow-lift: 0 2px 4px rgba(9, 15, 13, 0.05), 0 22px 44px -26px rgba(9, 15, 13, 0.28);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 620ms;

  --container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* Ancres : le defilement s'arrete sous l'en-tete collant. */
[id] { scroll-margin-top: 96px; }

/* Verrou du fond quand le panneau de conversation est ouvert (mobile) : le
   panneau est une surface applicative, la page derriere ne defile plus. */
html.lock, html.lock body { overflow: hidden; overscroll-behavior: none; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  /* Le viewport mobile fait foi : aucun debordement horizontal (clip ne cree
     pas de conteneur de defilement, les en-tetes collants restent collants). */
  overflow-x: clip;
}

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

a { color: inherit; }

::selection { background: var(--sage-soft); }

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

/* Fine barre de progression de lecture ------------------------------------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--sage);
  z-index: 60;
  transition: width 120ms linear;
}

/* Reveals ------------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(5px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
    filter var(--dur) var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform, filter;
}

.reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}

@keyframes soft-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes blink { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  * { animation: none !important; }
  .blob { animation: none !important; }
  .hero-blobs { transition: none; }
}

/* Structure ---------------------------------------------------------------- */
.container { width: min(var(--container), calc(100% - 3rem)); margin-inline: auto; }
.narrow { width: min(880px, calc(100% - 3rem)); margin-inline: auto; }

.section { padding: 6rem 0; }
.section-tight { padding: 4rem 0; }
.section-limestone { background: var(--limestone); }

.kicker {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 700;
  display: inline-block;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: 0; line-height: 1.25; }

/* Echelle de la maquette Stitch : 48 / 32 / 24 / 20 px, libelles 14 et 12 px. */
h1.display { font-size: clamp(40px, 4.6vw, 64px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
h2.display { font-size: clamp(26px, 2.3vw, 32px); line-height: 1.25; letter-spacing: -0.01em; font-weight: 600; }
h3 { font-size: 20px; line-height: 28px; font-weight: 600; }
h4 { font-size: 14px; line-height: 20px; font-weight: 600; }

p { margin: 0; }

.lead { font-size: 18px; line-height: 28px; color: var(--muted); max-width: 44rem; }

.serif { font-family: var(--font-serif); }

.section-head {
  max-width: 42rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head h2 { margin: 0.8rem auto 0.9rem; max-width: 34rem; }
.section-head .lead { max-width: 38rem; margin: 0 auto; font-size: 16px; line-height: 24px; }

/* En-tete ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 248, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms var(--ease), background 300ms var(--ease);
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(248, 250, 248, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand img { width: auto; height: 44px; max-width: 100%; border-radius: 0; display: block; }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }

.site-nav a {
  text-decoration: none;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.015em;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  padding: 0.3rem 0;
  white-space: nowrap;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 360ms var(--ease);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { font-weight: 700; }

.nav-cta {
  background: var(--accent);
  color: var(--chalk) !important;
  padding: 0.55rem 1.1rem !important;
  border-radius: 999px;
  transition: background 260ms var(--ease);
  animation: cta-glow 2.8s ease-out 1.2s infinite;
}

.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--accent-deep); }

/* Halo du bouton d'appel a l'action : un anneau discret qui s'eloigne et se
   dissout, double d'une ombre chaude qui assoit le bouton. Purement
   decoratif : aucune variation de taille, aucun deplacement de mise en page. */
@keyframes cta-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(194, 65, 12, 0.3),
                0 10px 22px -14px rgba(194, 65, 12, 0.6);
  }
  80%, 100% {
    box-shadow: 0 0 0 11px rgba(194, 65, 12, 0),
                0 10px 22px -14px rgba(194, 65, 12, 0.6);
  }
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 220ms var(--ease), border-color 220ms var(--ease);
}

.nav-toggle:hover { background: var(--limestone); border-color: var(--line-strong); }

/* Boutons ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.015em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 260ms var(--ease), color 260ms var(--ease),
    border-color 260ms var(--ease), box-shadow 260ms var(--ease),
    transform 260ms var(--ease);
}

.btn .arrow { transition: transform 320ms var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-dark { background: var(--ink-soft); color: var(--chalk); box-shadow: var(--shadow-soft); }
.btn-dark:hover { background: var(--sage); }

.btn-accent {
  background: var(--accent);
  color: var(--chalk);
  box-shadow: 0 10px 22px -14px rgba(194, 65, 12, 0.65);
}
.btn-accent:hover { background: var(--accent-deep); }

.btn-light { background: var(--card); color: var(--ink-soft); box-shadow: var(--shadow-soft); }
.btn-light:hover { background: var(--limestone); }

.btn-ghost { border-color: var(--line-strong); color: var(--ink-soft); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-soft); background: var(--card); }

.btn-sand { background: var(--limestone); color: var(--ink-soft); }
.btn-sand:hover { background: var(--sage-soft); }

.btn-sage { background: var(--sage); color: var(--chalk); }
.btn-sage:hover { background: var(--ink-soft); }

/* Cartes ------------------------------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-soft);
}

.pad-md { padding: 1.6rem; }
.pad-lg { padding: 2.2rem; }

/* Chips -------------------------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.chip-sage { background: var(--sage-soft); color: var(--sage); }
.chip-line { border: 1px solid var(--line); color: var(--muted); font-weight: 500; }
.chip-card { background: var(--card); color: var(--sage); box-shadow: var(--shadow-soft); }

/* Hero --------------------------------------------------------------------- */
.hero { padding: 4.8rem 0 4.2rem; position: relative; overflow: hidden; }

.hero > .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 4rem;
  align-items: center;
}

.hero-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; }

.hero h1 { margin: 1.5rem 0 1.2rem; max-width: 24ch; }

.hero .lead { max-width: 38rem; font-size: 20px; line-height: 30px; }

/* Accent serif italique de la maquette sur la seconde ligne du H1. */
.hero h1 .accent-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--sage);
  letter-spacing: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.hero .chip { font-size: 13px; line-height: 18px; }

.hero-actions .btn { font-size: 15px; line-height: 22px; min-height: 48px; padding: 0.9rem 1.6rem; }

.hero-promesse {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  color: var(--sage);
  margin-top: 1.2rem;
  max-width: 32rem;
}

.hero-promesse .ic { flex: none; color: var(--accent); }

.hero-direct {
  margin-top: 0.7rem;
  font-size: 15px;
  line-height: 22px;
  color: var(--muted);
}

.hero-direct a {
  color: var(--accent-deep);
  font-weight: 600;
  text-underline-offset: 3px;
}

.reperes {
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
}

.reperes a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  color: var(--ink-soft);
}

.reperes .ic { color: var(--sage); }
.reperes a:hover { color: var(--sage); }

.hero-visual { position: relative; }

.hero-photo {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  background: var(--limestone);
}

.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.hero-photo figcaption {
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
  padding: 0.7rem 1rem;
  background: var(--chalk);
}

.hero-float {
  position: absolute;
  left: -1.2rem;
  bottom: 5.1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--chalk);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lift);
  padding: 0.8rem 1rem;
  max-width: 18rem;
}

.hero-float-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-pale);
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-float strong { display: block; font-size: 0.9rem; }
.hero-float span { font-size: 0.78rem; color: var(--muted); line-height: 1.4; }

.hero-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.9rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.hero-note .ic { color: var(--sage); flex: none; margin-top: 0.15rem; }

/* Fond du hero : nappes organiques lentes, d'apres la planche de couleurs.
   Purement decoratif : derriere le contenu, non interactif, tres discret. */
.hero-blobs {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 900ms var(--ease);
}

.hero-blobs.pret { opacity: 1; }

.blob {
  position: absolute;
  display: block;
  filter: blur(19px);
  mix-blend-mode: multiply;
  opacity: 0.18;
  will-change: transform, translate;
  border-radius: 52% 48% 55% 45% / 45% 52% 48% 55%;
}

.blob-1 {
  width: 520px; height: 500px; top: -18%; right: 2%;
  background: var(--blob-charcoal); opacity: 0.15;
  --dx1: -95px; --dy1: 70px; --s1: 1.18; --r1: 12deg;
  --dx2: 58px; --dy2: -48px; --s2: 0.90; --r2: -10deg;
  animation: blob-derive 10s ease-in-out -6s infinite alternate;
}

.blob-2 {
  width: 440px; height: 420px; top: 20%; left: -10%;
  background: var(--blob-sage); opacity: 0.22;
  border-radius: 45% 55% 48% 52% / 52% 45% 55% 48%;
  --dx1: 80px; --dy1: -58px; --s1: 0.90; --r1: -11deg;
  --dx2: -56px; --dy2: 46px; --s2: 1.16; --r2: 9deg;
  animation: blob-derive 13s ease-in-out -10s infinite alternate;
}

.blob-3 {
  width: 380px; height: 360px; bottom: -18%; left: 22%;
  background: var(--blob-ochre); opacity: 0.22;
  border-radius: 58% 42% 50% 50% / 48% 55% 45% 52%;
  --dx1: -72px; --dy1: -56px; --s1: 1.20; --r1: -9deg;
  --dx2: 72px; --dy2: 38px; --s2: 0.90; --r2: 11deg;
  animation: blob-derive 9s ease-in-out -4s infinite alternate;
}

.blob-4 {
  width: 320px; height: 300px; bottom: 4%; right: 16%;
  background: var(--blob-coral); opacity: 0.18;
  border-radius: 48% 52% 45% 55% / 55% 48% 52% 45%;
  --dx1: 64px; --dy1: 52px; --s1: 1.10; --r1: 8deg;
  --dx2: -70px; --dy2: -44px; --s2: 0.86; --r2: -10deg;
  animation: blob-derive 12s ease-in-out -12s infinite alternate;
}

.blob-5 {
  width: 180px; height: 170px; top: 14%; left: 38%;
  background: var(--blob-charcoal); opacity: 0.11;
  border-radius: 55% 45% 52% 48% / 45% 55% 48% 52%;
  --dx1: -46px; --dy1: 34px; --s1: 1.16; --r1: -8deg;
  --dx2: 44px; --dy2: -28px; --s2: 0.92; --r2: 6deg;
  animation: blob-derive 8s ease-in-out -5s infinite alternate;
}

/* Trajectoire de fond : chaque nappe recoit ses propres variables (JS),
   pour qu'aucune ne suive le meme chemin qu'une autre. */
@keyframes blob-derive {
  0% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  50% {
    transform: translate3d(var(--dx1, -40px), var(--dy1, 30px), 0)
               scale(var(--s1, 1.08)) rotate(var(--r1, 6deg));
  }
  100% {
    transform: translate3d(var(--dx2, 30px), var(--dy2, -20px), 0)
               scale(var(--s2, 0.96)) rotate(var(--r2, -4deg));
  }
}

/* Trois accompagnements ---------------------------------------------------- */
.offres-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  align-items: stretch;
}

.offre {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 0;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  padding: 2rem;
}

.offre-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.1rem;
}

.offre-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--sage-pale);
  color: var(--sage);
}

.offre-reseaux .offre-icon { background: #f4ede2; color: #8a6a3f; }
.offre-ia .offre-icon { background: var(--accent-pale); color: var(--accent-deep); }

.offre h3 { font-size: 24px; line-height: 32px; font-weight: 700; margin-bottom: 0.8rem; }

.offre-desc { font-size: 14px; line-height: 20px; color: var(--muted); }

.offre h4 {
  margin: 1.3rem 0 0.6rem;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sage);
}

.offre-exemples {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

.offre-exemples li { position: relative; padding-left: 1.1rem; }

.offre-exemples li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sage);
}

.offre-resultat {
  margin-top: 1.2rem;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-soft);
  background: var(--sage-pale);
  border-radius: var(--r-sm);
  padding: 0.7rem 0.9rem;
}

.offre-resultat strong { font-weight: 700; }

.offre-cta { margin-top: 1.4rem; width: 100%; min-height: 46px; }

/* Profils ------------------------------------------------------------------ */
.profils-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.profil {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  background: var(--limestone);
  border: 0;
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: var(--shadow-soft);
}

.profil h3 { font-size: 20px; line-height: 28px; font-weight: 700; }

.profil p { font-size: 14px; line-height: 20px; color: var(--muted); }

.profil .btn { margin-top: auto; }

.profils-note {
  margin-top: 1.6rem;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
  text-align: center;
}

/* Methode ------------------------------------------------------------------ */
.etapes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.etape {
  background: var(--card);
  border: 0;
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: var(--shadow-soft);
}

.etape-num {
  display: block;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--sage);
  margin-bottom: 0.7rem;
}

.etape h3 { font-size: 20px; line-height: 28px; font-weight: 700; margin-bottom: 0.4rem; }
.etape p { font-size: 14px; line-height: 20px; color: var(--muted); }

.principes {
  margin-top: 1.4rem;
  background: var(--sage-pale);
  border-radius: 16px;
  padding: 1.6rem 2rem;
}

.principes h3 { font-size: 16px; line-height: 22px; font-weight: 600; margin-bottom: 0.9rem; }

.liste-avantages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem 1.6rem;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

.liste-avantages li { display: flex; gap: 0.6rem; align-items: flex-start; }

.liste-avantages .ic { flex: none; color: var(--sage); margin-top: 0.15rem; }

/* Contact ------------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 1.6rem;
  align-items: start;
}

.contact-options { display: flex; flex-direction: column; gap: 1.2rem; }

.option-card {
  background: var(--card);
  border: 0;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  padding: 2rem;
}

.option-num {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--sage);
}

.option-card h3 { font-size: 24px; line-height: 32px; font-weight: 700; margin: 0.6rem 0; }

.option-card p { font-size: 14px; line-height: 20px; color: var(--muted); }

.option-card .btn { margin-top: 1.1rem; }

.option-note { margin-top: 0.7rem; font-size: 14px; line-height: 20px; }

.option-rdv { background: var(--limestone); }

.option-chat { background: var(--sage-pale); box-shadow: none; }

.option-chat h3 { font-size: 20px; line-height: 28px; }

.coordonnees { padding: 0.4rem 0.2rem; }

.coordonnees h3 { font-size: 16px; line-height: 22px; font-weight: 600; margin-bottom: 0.8rem; }

.coordonnees ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

.coordonnees li { display: flex; gap: 0.6rem; align-items: flex-start; }
.coordonnees .ic { flex: none; color: var(--sage); margin-top: 0.15rem; }
.coordonnees a { color: var(--ink-soft); text-underline-offset: 3px; }

.option-form h3 { margin-bottom: 0.4rem; }

.option-intro { margin-bottom: 1.4rem; }

/* Formulaires -------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }

.field label { font-size: 12px; line-height: 16px; letter-spacing: 0.02em; font-weight: 600; }

.field .req { color: var(--sage); }

/* Pot de miel anti-robots : invisible pour les visiteurs, rempli par les robots. */
.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field input, .field select, .field textarea {
  font: inherit;
  /* 16 px minimum : en deca, iOS zoome automatiquement au focus. */
  font-size: 1rem;
  color: var(--ink);
  background: var(--limestone);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  padding: 0.8rem 0.95rem;
  outline: none;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  transition: background 240ms var(--ease), border-color 240ms var(--ease), box-shadow 240ms var(--ease);
}

.field input:focus, .field select:focus, .field textarea:focus {
  background: var(--card);
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(84, 98, 80, 0.12);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.1rem; }

.form-note { font-size: 12px; line-height: 16px; color: var(--muted); }

.check-line {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
  margin: 0.2rem 0 1rem;
  line-height: 1.5;
}

.check-line input { margin-top: 0.25rem; }

.check-line a { color: var(--sage); }

.form-submit {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.form-note-live {
  display: none;
  font-size: 14px;
  line-height: 20px;
  margin-top: 0.9rem;
  color: var(--sage);
  font-weight: 600;
  line-height: 1.5;
}

.form-note-live.visible { display: block; animation: soft-in 520ms var(--ease); }
.form-note-live.erreur { color: var(--error); }

/* Informations legales (page mentions-legales) ------------------------------ */
.info-card { margin-bottom: 1.1rem; }
.info-card h3 { font-size: 1.02rem; margin-bottom: 0.6rem; }
.info-card p, .info-card li { font-size: 0.92rem; color: var(--muted); }
.info-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.info-card li { display: flex; gap: 0.7rem; align-items: flex-start; }
.info-card li b { color: var(--ink-soft); }

/* Pied de page ------------------------------------------------------------- */
.site-footer { background: var(--limestone); margin-top: 5rem; padding: 4rem 0 2.4rem; }

.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; padding-bottom: 2.8rem; }

.footer-grid h4 { font-size: 14px; line-height: 20px; font-weight: 600; margin-bottom: 1rem; }

.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; font-size: 14px; line-height: 20px; color: var(--muted); }

.footer-grid a { text-decoration: none; color: var(--muted); transition: color 200ms var(--ease); }
.footer-grid a:hover { color: var(--ink); }

.footer-desc { color: var(--muted); font-size: 14px; line-height: 20px; max-width: 26rem; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 12px;
  line-height: 18px;
  color: var(--muted);
}

/* Fil d'Ariane ------------------------------------------------------------- */
.fil {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.fil a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.fil a:hover { border-bottom-color: var(--ink-soft); }
.fil-sep { color: var(--line-strong); }
.fil [aria-current="page"] { color: var(--muted); }

/* Assistant (panneau de conversation) -------------------------------------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  /* La surface ne doit jamais depasser le viewport : le panneau qui glisse
     reste borne, et rien n'est pannable horizontalement. */
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
}

.overlay.open { display: block; }

.overlay .backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 15, 13, 0.4);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 380ms var(--ease);
}

.overlay.open .backdrop { opacity: 1; }

.overlay .panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(480px, 100%);
  max-width: 100vw;
  min-height: 0;
  background: var(--chalk);
  display: flex;
  flex-direction: column;
  transform: translateX(24px);
  opacity: 0;
  transition: transform 480ms var(--ease), opacity 480ms var(--ease);
  box-shadow: -24px 0 60px -30px rgba(9, 15, 13, 0.4);
}

.overlay.open .panel { transform: none; opacity: 1; }

.panel-head {
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.panel-head .who { display: flex; align-items: center; gap: 0.75rem; }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px rgba(84, 98, 80, 0.14);
  animation: pulse 2.6s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(84, 98, 80, 0.16); }
  50% { box-shadow: 0 0 0 6px rgba(84, 98, 80, 0.06); }
}

.panel-head strong { display: block; font-size: 16px; line-height: 22px; }

.panel-head .sub { font-size: 12px; line-height: 16px; color: var(--muted); }

.panel-close {
  border: 1px solid var(--line);
  background: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 1rem;
  transition: background 240ms var(--ease);
}

.panel-close:hover { background: var(--limestone); }

.panel-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.msg { max-width: 92%; font-size: 14px; line-height: 20px; animation: soft-in 460ms var(--ease); overflow-wrap: anywhere; }
.msg.bot { color: var(--ink-soft); }
.msg.user { align-self: flex-end; background: var(--sage-soft); color: var(--ink-soft); border-radius: 14px 14px 2px 14px; padding: 0.65rem 0.95rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.chips button, .chips a {
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 220ms var(--ease), border-color 220ms var(--ease);
}

.chips button:hover, .chips a:hover { background: var(--sage-soft); border-color: var(--sage-soft); }

.typing { display: inline-flex; gap: 4px; padding: 0.5rem 0; }
.typing i {
  width: 5px; height: 5px; border-radius: 50%; background: var(--sage);
  animation: blink 1.2s infinite var(--ease);
}
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }

.panel-foot { border-top: 1px solid var(--line); padding: 1rem 1.4rem 1.2rem; }

.panel-foot .input-row { display: flex; gap: 0.6rem; }

.panel-foot input {
  flex: 1;
  min-width: 0;
  font: inherit;
  /* 16 px minimum : en deca, iOS zoome automatiquement au focus. */
  font-size: 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  outline: none;
  background: var(--card);
}

.panel-foot input:focus { border-color: var(--sage); }

.panel-foot button {
  border: 0;
  border-radius: 999px;
  width: 44px;
  cursor: pointer;
  background: var(--ink-soft);
  color: var(--chalk);
  transition: background 240ms var(--ease);
}

.panel-foot button:hover { background: var(--sage); }

.panel-foot button[disabled] { opacity: 0.45; cursor: default; }

.panel-foot .fine { font-size: 12px; line-height: 16px; color: var(--muted); margin-top: 0.6rem; text-align: center; }

/* Icones SVG inline -------------------------------------------------------- */
.ic { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 15px; height: 15px; }
.ic-lg { width: 24px; height: 24px; }

/* Mesure d'audience : bandeau d'information et de consentement -------------- */
.consentement {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  padding: 0 1.1rem calc(1.1rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.consentement[hidden] { display: none; }

.consentement-inner {
  pointer-events: auto;
  width: min(var(--container), 100%);
  background: var(--chalk);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lift);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.consentement-texte { margin: 0; font-size: 0.88rem; color: var(--muted); max-width: 62ch; }
.consentement-texte b { color: var(--ink-soft); }

.consentement-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* Bouton texte : lien d'action dans le pied de page (retrait du consentement). */
.lien {
  font: inherit;
  font-size: inherit;
  border: 0;
  background: none;
  padding: 0;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  touch-action: manipulation;
}

.lien:hover { color: var(--sage); }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.6rem; }
  .hero h1 { max-width: none; }
  .hero-visual { max-width: 560px; }
  .hero-float { left: 0.8rem; }
  .section-head { margin-bottom: 2.2rem; }
  .offres-grid, .profils-grid { grid-template-columns: 1fr; }
  .etapes { grid-template-columns: 1fr; }
  .liste-avantages { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .brand img { width: auto; height: 40px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    background: var(--chalk);
    border-bottom: 1px solid var(--line);
    padding: 0.8rem 1.5rem 1.2rem;
    box-shadow: var(--shadow-soft);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.55rem 0; }
  .site-nav .nav-cta { margin-top: 0.4rem; padding: 0.6rem 1.1rem !important; }
  .header-inner { position: relative; }
}

@media (max-width: 720px) {
  .section { padding: 4.2rem 0; }
  .section-tight { padding: 3rem 0; }
  .hero { padding: 2.8rem 0 3rem; }
  .blob { filter: blur(14px); }
  .blob-1 { width: 300px; height: 290px; top: -12%; right: -16%; }
  .blob-2 { width: 260px; height: 250px; top: 30%; left: -18%; opacity: 0.17; }
  .blob-3 { width: 240px; height: 230px; bottom: -6%; left: 8%; opacity: 0.15; }
  .blob-4 { width: 200px; height: 190px; bottom: 14%; right: -8%; opacity: 0.13; }
  .blob-5 { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .liste-avantages { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-float { position: relative; left: auto; bottom: auto; margin: -2.4rem 0.8rem 0; max-width: none; }
  .hero-note { margin-top: 1rem; }
  .form-submit { flex-direction: column; align-items: stretch; }
  .form-submit .form-note { text-align: center; }

  /* Conversation : surface plein ecran ancree au viewport, encoches gerees. */
  .overlay .panel {
    width: 100%;
    max-width: 100%;
    transform: translateX(100%);
  }
  .panel-head { padding: 1rem 1.1rem; padding-top: calc(1rem + env(safe-area-inset-top, 0px)); }
  .panel-body { padding: 1.1rem; }
  .panel-foot {
    padding: 0.9rem 1.1rem;
    padding-bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
  }

  .consentement { padding: 0 0.8rem calc(0.8rem + env(safe-area-inset-bottom, 0px)); }
  .consentement-inner { padding: 0.9rem 1rem; gap: 0.8rem; }
  .consentement-actions { width: 100%; }
  .consentement-actions .btn { flex: 1; justify-content: center; }
}
