/* ============================================================
   CKFD — Clean Day landing page  ·  v2 « premium sobre »
   Vert #8DC63F · forêt profonde · crème chaud
   ============================================================ */

:root {
  --green:       #8DC63F;   /* accent de marque */
  --green-br:    #a8da5e;   /* sur fond foncé */
  --green-deep:  #5a8a22;   /* lisible sur clair */
  --green-tint:  #eef5e0;
  --green-line:  #d3e6b4;   /* séparateur vert clair */

  --forest:      #15271b;   /* ancre foncée, hero & moments premium */
  --forest-2:    #1d3525;
  --forest-line: rgba(255,255,255,.13);

  --ink:         #1b2019;   /* texte foncé sur clair */
  --ink-soft:    #565c52;
  --ink-faint:   #888d82;

  --cream:       #f7f6ef;   /* base chaude */
  --paper:       #ffffff;
  --line:        #e7e7dd;
  --line-soft:   #efefe7;

  --radius:      16px;
  --radius-sm:   11px;
  --shadow-sm:   0 1px 2px rgba(21,39,27,.05), 0 6px 16px -10px rgba(21,39,27,.14);
  --shadow:      0 2px 8px rgba(21,39,27,.05), 0 26px 50px -28px rgba(21,39,27,.30);
  --shadow-xl:   0 4px 14px rgba(21,39,27,.07), 0 44px 80px -36px rgba(21,39,27,.42);

  --maxw: 1200px;
  --rail: 408px;
  --gap:  64px;
  --pad:  30px;

  --font-display: 'Schibsted Grotesk', system-ui, sans-serif;
  --font-body:    'Hanken Grotesk', system-ui, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.07;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }

.gridrow {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--rail);
  column-gap: var(--gap);
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* micro-label monospace (détail éditorial) */
.kicker, .eyebrow, .form-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ============================================================
   BLOC 0 + 1 — HERO FONCÉ
   ============================================================ */
.hero-dark {
  position: relative;
  background:
    radial-gradient(110% 90% at 16% -10%, #213a28 0%, var(--forest) 56%);
  color: #fff;
  overflow: hidden;
}
/* fine grille décorative très discrète */
.hero-dark::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--forest-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--forest-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 80% 0%, #000 0%, transparent 60%);
          mask-image: radial-gradient(120% 90% at 80% 0%, #000 0%, transparent 60%);
  opacity: .26;
  pointer-events: none;
}

.masthead { position: relative; z-index: 2; }
.masthead .wrap {
  display: flex; align-items: center;
  padding-top: 26px; padding-bottom: 8px;
}
.masthead img { height: 60px; width: auto; display: block; }

.hero-grid { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 64px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 11px;
  color: var(--green-br);
  margin-bottom: 24px;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--green); }

.hero-intro h1 {
  font-size: clamp(2.35rem, 4.7vw, 3.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero-intro h1 .hl { color: var(--green-br); }

.lede {
  margin-top: 22px;
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
  line-height: 1.5;
  color: rgba(255,255,255,.76);
  max-width: 40ch;
}

.badges {
  list-style: none; margin: 32px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 12px 14px;
}
.badges li {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; font-size: 0.92rem;
  color: rgba(255,255,255,.92);
  border: 1px solid var(--forest-line);
  background: rgba(255,255,255,.04);
  border-radius: 999px;
  padding: 7px 14px 7px 11px;
}
.badges svg { flex: none; color: var(--green-br); }

/* bandeau logos intégré au hero */
.hero-logos { margin-top: 34px; max-width: 620px; }
.hl-label {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.5); display: block; margin-bottom: 13px;
}
.marquee--hero { padding: 13px 0; }
.marquee--hero .mq-track img { margin-right: 46px; }

/* ============================================================
   LAYOUT — contenu (crème) + formulaire collant
   ============================================================ */
.layout { position: relative; }
.content-rest { grid-column: 1; grid-row: 1; }
.rail { grid-column: 2; grid-row: 1; position: relative; z-index: 5; }

.rail-inner {
  position: sticky;
  top: 18px;
  margin-top: -525px;          /* remonte la carte dans le hero foncé (compense le bandeau logos ~153px) */
  padding-bottom: 56px;
}

/* ============================================================
   FORMULAIRE
   ============================================================ */
.form-card {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.form-card::before {            /* liseré vert en tête */
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: var(--green); z-index: 1;
}

/* bandeau de rareté / urgence */
.form-urgency {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 26px;
  background: var(--green-tint);
  border-bottom: 1px solid var(--green-line);
  font-size: 0.79rem; font-weight: 600; line-height: 1.25;
  color: var(--green-deep);
}
.form-urgency .pulse {
  flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green-deep);
  box-shadow: 0 0 0 0 rgba(90,138,34,.5);
  animation: urgpulse 2.2s ease-out infinite;
}
@keyframes urgpulse {
  0%   { box-shadow: 0 0 0 0 rgba(90,138,34,.5); }
  70%  { box-shadow: 0 0 0 7px rgba(90,138,34,0); }
  100% { box-shadow: 0 0 0 0 rgba(90,138,34,0); }
}
@media (prefers-reduced-motion: reduce) { .form-urgency .pulse { animation: none; } }

/* canal alternatif : téléphone */
.form-tel {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 8px;
  font-size: 0.9rem; font-weight: 600;
  color: var(--ink); text-decoration: none;
}
.form-tel svg { color: var(--green-deep); }
.form-tel .num { letter-spacing: .01em; }
.form-tel:hover { color: var(--green-deep); }
.form-tel:hover .num { text-decoration: underline; text-underline-offset: 3px; }
.form-head {
  padding: 18px 26px 15px;
  border-bottom: 1px solid var(--line-soft);
}
.form-tag {
  display: inline-block;
  color: var(--green-deep);
  background: var(--green-tint);
  border-radius: 999px;
  padding: 5px 11px;
  margin-bottom: 11px;
}
.form-head .ft {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.18rem;
  letter-spacing: -0.02em; color: var(--ink);
  line-height: 1.12;
}
.form-head .fs { margin-top: 5px; font-size: 0.9rem; color: var(--ink-soft); }

.form-body { padding: 16px 26px 15px; }

.field { margin-bottom: 11px; }
.field.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label, .field-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.82rem; font-weight: 600; line-height: 1.2;
  color: var(--ink); margin-bottom: 5px;
}
.req { color: var(--green-deep); }

/* champ caché accessible */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* boutons « besoin » — micro-engagement */
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-family: var(--font-body);
  font-size: 0.86rem; font-weight: 600; line-height: 1;
  color: var(--ink-soft);
  background: #fbfbf7;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  cursor: pointer;
  transition: border-color .14s, background .14s, color .14s, box-shadow .14s;
}
.chip:hover { border-color: var(--green); color: var(--ink); }
.chip[aria-pressed="true"] {
  background: var(--green-tint);
  border-color: var(--green);
  color: var(--green-deep);
  box-shadow: inset 0 0 0 1px var(--green);
}
.chips.invalid .chip { border-color: #cf5b4b; }

.input, select.input {
  width: 100%;
  font-family: var(--font-body); font-size: 1rem;
  color: var(--ink); background: #fbfbf7;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: border-color .15s, box-shadow .15s, background .15s;
  appearance: none;
}
.input::placeholder { color: var(--ink-faint); }
.input:focus, select.input:focus {
  outline: none; background: #fff;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(141,198,63,.22);
}
.input:user-invalid {
  border-color: #cf5b4b;
  box-shadow: 0 0 0 3px rgba(207,91,75,.15);
}
select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23888d82' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
  padding-right: 36px; cursor: pointer;
}
select.input:invalid { color: var(--ink-faint); }

.submit {
  width: 100%; margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.02rem;
  color: var(--forest);
  background: var(--green);
  border: none; border-radius: var(--radius-sm);
  padding: 13px 18px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 10px 22px -10px rgba(141,198,63,.75);
  transition: background .15s, transform .06s, box-shadow .15s;
}
.submit:hover { background: #98d24a; transform: translateY(-1px); }
.submit:active { transform: translateY(0); }
.submit .arr { transition: transform .18s; }
.submit:hover .arr { transform: translateX(4px); }

.rgpd { margin-top: 9px; font-size: 0.74rem; line-height: 1.38; color: var(--ink-faint); }
.rgpd a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }

.form-success { display: none; padding: 44px 28px; text-align: center; }
.form-success .chk {
  width: 58px; height: 58px; margin: 0 auto 18px;
  border-radius: 50%; background: var(--green-tint);
  display: grid; place-items: center; color: var(--green-deep);
}
.form-success h3 { font-size: 1.34rem; color: var(--ink); }
.form-success p { margin-top: 10px; color: var(--ink-soft); font-size: 0.97rem; }
.form-success p strong { color: var(--forest); font-weight: 600; }
.form-success p a { color: var(--green-deep); font-weight: 600; text-decoration: none; }
.form-success p a:hover { text-decoration: underline; text-underline-offset: 2px; }
.form-card.sent .form-body { display: none; }
.form-card.sent .form-success { display: block; }

@keyframes flash {
  0%,100% { box-shadow: var(--shadow-xl); }
  30%,60% { box-shadow: 0 0 0 4px rgba(141,198,63,.6), var(--shadow-xl); }
}
.form-card.flash { animation: flash 1.1s ease; }

/* ============================================================
   SECTIONS DE CONTENU
   ============================================================ */
.content-rest { padding-bottom: 20px; }
.block { padding: 66px 0; }
.block + .block { border-top: 1px solid var(--line); }

.kicker { color: var(--green-deep); margin-bottom: 16px; display: block; }
.h2 { font-size: clamp(1.6rem, 2.7vw, 2.2rem); color: var(--forest); }
.t-dot { color: var(--green); }
.block > .lead { margin-top: 12px; color: var(--ink-soft); font-size: 1.08rem; max-width: 54ch; }

/* ---- Bloc 2 : étapes ---- */
.steps { margin-top: 36px; display: grid; gap: 16px; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 24px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.step-num {
  font-family: var(--font-display); font-weight: 700; font-size: 1.18rem;
  width: 48px; height: 48px; border-radius: 6px 18px 6px 18px;
  background: var(--forest); color: var(--green-br);
  display: grid; place-items: center;
}
.step h3 { font-size: 1.28rem; color: var(--forest); }
.step p { margin-top: 9px; color: var(--ink-soft); }
.step .dur {
  display: inline-block; margin-top: 13px;
  font-size: 0.82rem; font-weight: 600; color: var(--green-deep);
  background: var(--green-tint); border-radius: 999px; padding: 4px 13px;
}
.bsd {
  margin-top: 16px; padding: 15px 18px;
  border-left: 3px solid var(--green);
  background: var(--green-tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.bsd p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.bsd b { color: var(--forest); }

/* ---- Bloc 3 : tags ---- */
.tags { margin-top: 30px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tag {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  background: var(--paper);
  border-radius: 6px 18px 6px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s;
}
.tag:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tag .ix {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
  color: var(--green-deep);
  background: var(--green-tint);
  border-radius: 5px 14px 5px 14px;
}
.tag .tt { font-weight: 600; font-size: 1.01rem; line-height: 1.25; color: var(--forest); }
.tag .td { font-size: 0.85rem; color: var(--ink-faint); margin-top: 2px; }
.tag.more { background: var(--forest); }
.tag.more .ix { color: var(--forest); background: var(--green-br); }
.tag.more .tt { color: #fff; }
.tag.more .td { color: rgba(255,255,255,.6); }

/* ---- Bloc 4 : pourquoi l'été ---- */
.args { margin-top: 34px; display: grid; gap: 16px; }
.arg { padding: 26px 28px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.arg .n {
  font-family: var(--font-display); font-weight: 700; color: var(--green-deep);
  font-size: 0.82rem; font-variant-numeric: tabular-nums; letter-spacing: .05em;
  display: block; margin-bottom: 10px;
}
.arg h3 { font-size: 1.18rem; color: var(--forest); }
.arg p { margin-top: 9px; color: var(--ink-soft); font-size: 0.98rem; }

/* ---- Bloc 5 : témoignages (3-up) ---- */
.quotes {
  margin-top: 32px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.qcard {
  margin: 0; display: flex; flex-direction: column;
  background: var(--paper);
  border-radius: 8px 26px 8px 26px;
  box-shadow: var(--shadow-sm);
  padding: 24px 24px 22px;
}
.qcard .qmark {
  font-family: var(--font-display); font-weight: 800;
  font-size: 2.4rem; line-height: 0.6; color: var(--green);
  height: 22px; margin-bottom: 14px;
}
.qcard blockquote {
  margin: 0 0 16px; flex: 1;
  font-family: var(--font-body); font-size: 1rem; line-height: 1.5;
  color: var(--ink);
}
.qcard figcaption {
  font-family: var(--font-display); font-weight: 700; font-size: 0.92rem;
  color: var(--forest); line-height: 1.3;
}
.qcard figcaption span {
  display: block; margin-top: 2px;
  font-family: var(--font-body); font-weight: 500; font-size: 0.83rem; color: var(--ink-faint);
}

/* ---- Bloc 6 : chiffres (moment foncé) ---- */
.stats {
  margin-top: 30px;
  display: grid; grid-template-columns: repeat(2, 1fr);
  background: var(--forest);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.stat { padding: 30px 28px; border-top: 1px solid var(--forest-line); border-left: 1px solid var(--forest-line); }
.stat:nth-child(-n+2) { border-top: none; }
.stat:nth-child(odd) { border-left: none; }
.stat .num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.1rem, 3.6vw, 2.9rem); color: var(--green-br);
  letter-spacing: -0.035em; line-height: 1;
}
.stat .lbl { margin-top: 11px; font-size: 0.95rem; color: rgba(255,255,255,.7); }

/* ---- Certifications & agréments ---- */
.cert-strip {
  margin-top: 30px;
  background: var(--paper);
  border-radius: 8px 26px 8px 26px;
  box-shadow: var(--shadow-sm);
  padding: 22px 30px;
  display: flex; align-items: center; justify-content: space-around; gap: 30px;
  flex-wrap: wrap;
}
.cert-strip img { height: 54px; width: auto; display: block; flex: none; }
.cert-cap {
  font-size: 0.84rem; font-weight: 600; line-height: 1.3; color: var(--forest);
}
.certs-note {
  margin-top: 18px; font-size: 0.92rem; line-height: 1.55; color: var(--ink-soft);
  max-width: 60ch;
}

/* ---- Bloc 7 : CTA final (moment foncé) ---- */
.finale {
  margin-top: 6px;
  background: radial-gradient(120% 120% at 80% 0%, #213a28 0%, var(--forest) 60%);
  border-radius: 12px 40px 12px 40px;
  padding: 52px 44px; text-align: center;
  position: relative; overflow: hidden;
}
.finale .kicker { color: var(--green-br); }
.finale h2 { font-size: clamp(1.55rem, 2.7vw, 2.15rem); color: #fff; max-width: 24ch; margin: 12px auto 0; }
.finale .btn {
  margin-top: 26px; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: var(--forest); background: var(--green);
  border-radius: var(--radius-sm); padding: 15px 28px; text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 12px 26px -10px rgba(141,198,63,.6);
  transition: transform .06s, background .15s;
}
.finale .btn:hover { background: #98d24a; transform: translateY(-1px); }
.finale .btn .arr { transition: transform .18s; }
.finale .btn:hover .arr { transform: translateX(4px); }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { border-top: 1px solid var(--line); }
.foot .wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; padding-top: 30px; padding-bottom: 40px;
}
.foot img { height: 46px; width: auto; }
.foot .links { display: flex; gap: 24px; font-size: 0.88rem; color: var(--ink-soft); }
.foot .links a { text-decoration: none; }
.foot .links a:hover { color: var(--green-deep); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--paper);
  border-radius: 6px 18px 6px 18px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.04rem;
  color: var(--forest); line-height: 1.3;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-ic {
  flex: none; position: relative; width: 20px; height: 20px;
}
.faq-ic::before, .faq-ic::after {
  content: ""; position: absolute; background: var(--green-deep);
  border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease;
}
.faq-ic::before { top: 9px; left: 2px; width: 16px; height: 2px; }
.faq-ic::after  { left: 9px; top: 2px; width: 2px; height: 16px; }
.faq-item[open] .faq-ic::after { transform: rotate(90deg); opacity: 0; }
.faq-a {
  padding: 0 22px 20px;
  font-size: 0.98rem; line-height: 1.6; color: var(--ink-soft);
}
.faq-a strong { color: var(--forest); font-weight: 600; }
.faq-item[open] summary { color: var(--green-deep); }

/* ============================================================
   BARRE CTA COLLANTE (MOBILE)
   ============================================================ */
.mobile-bar { display: none; }

/* ============================================================
   PHOTO DE FOND DU HERO
   ============================================================ */
.hero-photo {
  position: absolute; inset: 0;
  z-index: 0; display: block;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(104deg, rgba(21,39,27,.97) 0%, rgba(21,39,27,.9) 36%, rgba(21,39,27,.66) 70%, rgba(21,39,27,.5) 100%),
    linear-gradient(to bottom, rgba(21,39,27,.12), rgba(21,39,27,.55));
}
.hero-dark::after { z-index: 2; }
.hero-graphic {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  transition: opacity .4s;
}
.hero-graphic svg { width: 100%; height: 100%; display: block; }
.hero-dark.has-photo .hero-graphic { opacity: 0; }
.masthead, .hero-grid { z-index: 3; }
.hero-empty { pointer-events: none; }
.hero-hint {
  position: absolute; left: var(--pad); bottom: 16px; z-index: 3; pointer-events: none;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,.62);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--forest-line);
  border-radius: 999px; padding: 6px 13px;
  transition: opacity .35s;
}
.hero-dark.has-photo .hero-hint { opacity: 0; }

/* ============================================================
   BANDEAU LOGOS CLIENTS
   ============================================================ */
.logos { padding: 34px 0 6px; }
.logos .lt {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 18px;
}
.logos-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; align-items: stretch; }
.logo-slot {
  display: block;
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

/* --- bandeau défilant --- */
.marquee {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 17px 0;
}
.mq-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.mq-track {
  display: flex; align-items: center; width: max-content;
  animation: mq-scroll 52s linear infinite;
}
.mq-track img { display: block; width: auto; margin-right: 58px; }
.marquee:hover .mq-track { animation-play-state: paused; }
@keyframes mq-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .mq-track { animation: none; }
}

/* le bandeau logos vit dans le hero sur desktop, après le formulaire sur mobile */
.logos--mobile { display: none; }
@media (max-width: 980px) {
  .hero-logos { display: none; }
  .logos--mobile { display: block; }
}

/* photo témoignage */
.ref-photo { display: block; }

/* ============================================================
   MICRO-ANIMATIONS (apparition au scroll)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  html.reveal-on :is(.steps>.step, .tags>.tag, .args>.arg, .stats>.stat, .quotes>.qcard) {
    opacity: 0; transform: translateY(18px);
    transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1);
    will-change: opacity, transform;
  }
  html.reveal-on :is(.steps>.step, .tags>.tag, .args>.arg, .stats>.stat, .quotes>.qcard).in {
    opacity: 1; transform: none;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .gridrow { display: block; padding: 0 var(--pad); }
  .hero-grid { padding-bottom: 40px; }
  .hero-empty { display: none; }
  .layout { display: flex; flex-direction: column; }
  .rail { order: 0; }
  .content-rest { order: 1; }
  .rail-inner { position: static; margin-top: -36px; padding-bottom: 0; }
  .lede { max-width: none; }
  .block { padding: 52px 0; }
  .hero-hint { display: none; }

  /* barre CTA collante */
  body { padding-bottom: 74px; }
  .mobile-bar {
    display: flex; gap: 10px; align-items: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.93);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 22px -14px rgba(21,39,27,.5);
    transition: transform .3s ease;
  }
  .mobile-bar.hidden { transform: translateY(130%); }
  .mb-call {
    flex: none; display: grid; place-items: center;
    width: 52px; height: 50px; border-radius: 10px;
    background: var(--green-tint); color: var(--green-deep);
    text-decoration: none;
  }
  .mb-cta {
    flex: 1; height: 50px; border: none; border-radius: 10px;
    background: var(--green); color: var(--forest);
    font-family: var(--font-display); font-weight: 700; font-size: 1rem;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
  }
  .mb-cta .arr { transition: transform .18s; }
  .mb-cta:active .arr { transform: translateX(3px); }
}

@media (max-width: 560px) {
  :root { --pad: 20px; }
  body { font-size: 16px; }
  .masthead img { height: 42px; }
  .tags, .stats, .field.row2 { grid-template-columns: 1fr; }
  .cert-strip { gap: 22px 30px; padding: 20px 22px; }
  .cert-strip img { height: 44px; }
  .quotes { grid-template-columns: 1fr; }
  .logos-row { grid-template-columns: repeat(3, 1fr); }
  .step { grid-template-columns: 1fr; gap: 14px; }
  .finale { padding: 38px 24px; }
  .stat:nth-child(2) { border-top: none; }
  .stat { border-left: none; }
  .stat:nth-child(n+2) { border-top: 1px solid var(--forest-line); }
}

/* ============================================================
   Formulaire — captcha, états de chargement & erreurs
   ============================================================ */
/* Pot de miel anti-bot : invisible, hors flux, ignoré des lecteurs d'écran */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-captcha { margin: 2px 0 4px; min-height: 0; }

/* Bouton en cours d'envoi */
.submit.is-loading { opacity: .72; cursor: progress; }
.submit:disabled { cursor: not-allowed; }

/* Champ invalide */
.input.is-invalid {
  border-color: #d6453b !important;
  box-shadow: 0 0 0 3px rgba(214,69,59,.12) !important;
}

/* Message d'erreur sous un champ */
.field-error {
  display: block;
  margin-top: 5px;
  font-size: .8rem;
  font-weight: 600;
  color: #c43c32;
  line-height: 1.35;
}

/* Erreur globale du formulaire */
.form-error {
  margin: 2px 0 0;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: rgba(214,69,59,.08);
  border: 1px solid rgba(214,69,59,.25);
  color: #b23a30;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Référence de suivi dans l'état succès */
.ref-line {
  margin-top: 10px;
  font-size: .92rem;
  color: var(--ink-soft);
}
.ref-line strong {
  font-family: var(--mono);
  letter-spacing: .02em;
  color: var(--green-deep);
}
