/* =================================================================
   Logic Flow — Feuille de styles principale
   Design : agence moderne, lumineux, un accent indigo/cyan.
   Tout est piloté par des variables CSS (voir :root ci-dessous).
   ================================================================= */

@import url('../assets/fonts/fonts.css');

/* ---------- Design tokens ---------- */
:root {
  /* Couleurs — accent unique : oxblood / bordeaux profond.
     Les neutres sont légèrement réchauffés vers la teinte de marque. */
  --bg: #ffffff;
  --bg-soft: #f7eeef;          /* off-white chaud teinté marque (alternance visible) */
  --bg-ink: #1c1216;           /* charbon chaud (footer) */
  --ink: #211519;              /* texte principal / titres */
  --muted: #6b5d62;            /* texte secondaire */
  --muted-soft: #9a8b90;
  --brand: #8a2433;            /* accent principal (oxblood) */
  --brand-strong: #6f1b28;     /* survol / état appuyé */
  --brand-soft: #f6e7e9;       /* fond très clair teinté marque */
  --border: #ece4e5;
  --border-strong: #dcd1d3;
  --white: #ffffff;
  --success: #0f9d6b;          /* validation réussie d'un champ */
  --success-soft: #e6f6ee;
  --danger: #c0344a;           /* erreur de saisie */

  /* Typo */
  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Formes */
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Ombres — neutres, discrètes et réalistes (aucun halo coloré / glow) */
  --shadow-sm: 0 1px 2px rgba(33, 21, 25, .06);
  --shadow: 0 10px 30px rgba(33, 21, 25, .09);
  --shadow-lg: 0 30px 60px rgba(33, 21, 25, .15);
  --shadow-brand: 0 4px 12px rgba(33, 21, 25, .12);

  /* Layout */
  --container: 1140px;
  --gutter: clamp(1rem, 4vw, 2rem);
}

/* ---------- Reset léger ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.04;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variation-settings: 'opsz' 48;   /* axe optique de Bricolage : plus de caractère en grand */
  text-wrap: balance;
}

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

button { font-family: inherit; cursor: pointer; }

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

/* ---------- Primitives de layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 2px;
  background: var(--brand);
}

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 1.0;
  font-variation-settings: 'opsz' 72;
  margin-bottom: 1.1rem;
}
.section-head p {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  max-width: 52ch;
}
.section-head--center p { margin-inline: auto; }

/* Marqueur d'index éditorial surdimensionné — (01), (02)… */
.section-index {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variation-settings: 'opsz' 96;
  color: var(--brand);
  margin-bottom: .5rem;
}
.section-index small {
  color: var(--border-strong);
  font-weight: 700;
}

/* Titre dramatique de la page contact */
.section-head--contact { max-width: 880px; }
.contact-title {
  font-size: clamp(3.4rem, 11vw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-variation-settings: 'opsz' 96;
  margin-bottom: 1.25rem;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  padding: .85rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: var(--shadow-brand);
}
.btn--primary:hover { background: var(--brand-strong); }

.btn--ghost {
  background: var(--white);
  color: var(--ink);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn--whatsapp {
  background: #25d366;
  color: #06351a;
  box-shadow: var(--shadow-sm);
}
.btn--whatsapp:hover { background: #1ebe5b; }

.btn--on-dark {
  background: var(--white);
  color: var(--ink);
}
.btn--on-dark:hover { background: var(--brand); color: var(--white); }

.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* ---------- En-tête / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}
/* Logo : mot-symbole seul (pas d'icône). Un point accent termine le mot. */
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: .35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.34rem;
  letter-spacing: -0.035em;
  color: var(--ink);
  font-variation-settings: 'opsz' 24;
}
.brand strong { font-weight: 700; }
.brand span { color: var(--brand); }
.brand::after {
  content: "";
  align-self: center;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  margin-left: .1rem;
  transform: translateY(.05em);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .95rem;
  color: var(--muted);
  position: relative;
  transition: color .2s ease;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }

.nav__cta { display: inline-flex; align-items: center; gap: 1rem; }

/* Le bouton dans .nav__links est réservé au menu mobile déroulant : masqué sur desktop. */
.nav__links > .btn { display: none; }

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.nav__toggle svg { width: 22px; height: 22px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero — composition éditoriale, échelle dramatique ---------- */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.hero__badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand);
}

/* Titre géant : "Nous / créons." */
.hero__title {
  font-size: clamp(3.4rem, 13vw, 10rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-variation-settings: 'opsz' 96;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
  position: relative;
  z-index: 2;
}
.hero__title-line { display: block; }
.hero__period { color: var(--brand); }

/* Ligne basse : intro (gauche) + tagline (droite) — remplit le vide bas-gauche */
.hero__cols {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  position: relative;
  z-index: 2;
}
.hero__intro { max-width: 38ch; }
.hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
  margin-bottom: 1.75rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Tagline éditoriale à droite, sous le coin du titre */
.hero__tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.4vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 28;
  color: var(--muted);
  max-width: 16ch;
  justify-self: end;
  text-align: right;
  text-wrap: balance;
}
.hero__tagline em {
  font-style: normal;
  color: var(--ink);
  position: relative;
  white-space: nowrap;
}
.hero__tagline em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .02em;
  height: .12em;
  background: var(--brand);
}

/* Aperçu produit : décalé en haut à droite, chevauche le titre (tension) */
.hero__media {
  position: absolute;
  top: clamp(5rem, 11vw, 9rem);
  right: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  width: clamp(280px, 34vw, 440px);
  margin: 0;
  z-index: 1;
  transform: rotate(1.4deg);
}

/* Aperçu produit (fenêtre) dans le hero */
.window {
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.window__bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.window__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.window__title {
  flex: 1;
  text-align: center;
  font-family: var(--font-display);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-soft);
}
.window img { width: 100%; }

/* ---------- Bande marquee pleine largeur (oxblood, défilante) ---------- */
.marquee-band {
  background: var(--brand);
  color: var(--white);
  overflow: hidden;
  border-block: 1px solid var(--brand-strong);
}
.marquee {
  display: flex;
  width: 100%;
  padding-block: clamp(1rem, 2.2vw, 1.6rem);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  white-space: nowrap;
  flex: none;
  animation: marquee-scroll 38s linear infinite;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 3.2vw, 2.4rem);
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 40;
}
/* Séparateur losange dessiné en CSS (indépendant de la couverture de la police) */
.marquee__sep {
  flex: none;
  width: .6rem;
  height: .6rem;
  background: color-mix(in srgb, var(--white) 55%, var(--brand));
  transform: rotate(45deg);
  text-indent: -9999px;   /* masque le glyphe ✦ sans annuler la taille */
  overflow: hidden;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Services : composition éditoriale asymétrique ---------- */
.services {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
}

/* Service phare — panneau bordeaux, poids visuel dominant */
.service-lead {
  background: var(--brand);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-brand);
}
.service-lead__tag {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: color-mix(in srgb, var(--white) 78%, var(--brand));
  margin-bottom: 1.1rem;
}
.service-lead h3 {
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: .9rem;
}
.service-lead p {
  color: color-mix(in srgb, var(--white) 84%, var(--brand));
  font-size: 1.02rem;
  margin-bottom: 1.5rem;
}
.service-lead__points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem 1.25rem;
  margin-bottom: 1.75rem;
}
.service-lead__points li {
  position: relative;
  padding-left: 1.25rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .95rem;
}
.service-lead__points li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--white) 70%, var(--brand));
}
.service-lead__link {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--white);
  border-bottom: 2px solid color-mix(in srgb, var(--white) 45%, transparent);
  padding-bottom: 2px;
  transition: gap .2s ease, border-color .2s ease;
}
.service-lead__link svg { width: 1.05em; height: 1.05em; }
.service-lead__link:hover { gap: .85rem; border-color: var(--white); }

/* Autres services — liste numérotée, sans pastilles d'icônes */
.service-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: .5rem;
  counter-reset: svc;
}
.service-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}
.service-item:first-child { border-top: 0; padding-top: 0; }
.service-item:last-child { padding-bottom: 0; }
.service-item__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brand);
  font-variation-settings: 'opsz' 16;
  padding-top: .15rem;
}
.service-item h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.service-item p { color: var(--muted); font-size: .97rem; }

/* ---------- Mise en avant produit ---------- */
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.product__media { position: relative; }
/* Capture produit "réelle" : pleine, rognée, sans chrome de navigateur
   (le chrome reste réservé au héro pour ne pas répéter le même motif). */
.product__shot {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.product__shot img { width: 100%; display: block; }
.product__media .badge-float {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  padding: .55rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  z-index: 2;
}
.product__media .badge-float svg { width: 1.15rem; height: 1.15rem; color: var(--brand); }

.feature-list { display: grid; gap: 1.1rem; margin: 1.75rem 0; }
.feature-list li { display: flex; gap: .85rem; align-items: flex-start; }
.feature-list .tick {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
}
.feature-list .tick svg { width: 15px; height: 15px; }
.feature-list strong { font-family: var(--font-display); font-weight: 600; display: block; }
.feature-list span { color: var(--muted); font-size: .95rem; }

.product__thumbs { display: flex; gap: .85rem; margin-top: .85rem; }
.product__thumbs img {
  width: 50%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  object-fit: cover;
}

/* ---------- Étapes / pourquoi nous — numéros surdimensionnés, pas de cartes ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}
.step {
  padding-top: 1.5rem;
  border-top: 3px solid var(--ink);
}
.step__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variation-settings: 'opsz' 96;
  color: var(--brand);
  margin-bottom: 1rem;
}
.step h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: .55rem; }
.step p { color: var(--muted); font-size: 1rem; }

/* ---------- Bandeau CTA — oxblood plein, composition assumée (sans glow) ---------- */
.cta-band {
  background: var(--brand);
  border-radius: var(--radius-lg);
  padding: clamp(2.75rem, 6vw, 4.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Filets d'angle discrets : un détail précis plutôt qu'un flou décoratif. */
.cta-band::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid color-mix(in srgb, var(--white) 18%, transparent);
  border-radius: calc(var(--radius-lg) - 8px);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 {
  color: var(--white);
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-variation-settings: 'opsz' 96;
  margin-bottom: 1.1rem;
}
.cta-band p {
  color: color-mix(in srgb, var(--white) 82%, var(--brand));
  max-width: 46ch;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}
.cta-band .hero__actions { justify-content: center; margin-bottom: 0; }
/* Sur fond bordeaux, le bouton "sur fond sombre" passe au survol en blanc cassé chaud. */
.cta-band .btn--on-dark:hover { background: var(--bg-soft); color: var(--brand); }

/* ---------- Page contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.contact-methods { display: grid; gap: 0; }
.contact-methods .eyebrow { margin-bottom: .75rem; }
/* Liste éditoriale : séparée par des filets, sans cartes flottantes */
.method {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.35rem .25rem;
  border-top: 1px solid var(--border);
  background: transparent;
  transition: padding-left .25s ease, color .2s ease;
}
.method:first-child { border-top: 0; }
.method:hover { padding-left: .75rem; color: var(--brand); }
.method__icon {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
}
.method__icon svg { width: 22px; height: 22px; }
.method--whatsapp .method__icon { background: #e7f9ee; color: #1ebe5b; }
.method > span:last-child { min-width: 0; }
.method__label {
  display: block;
  font-family: var(--font-display);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted-soft);
  margin-bottom: .15rem;
}
.method__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--brand);   /* filet de marque : rattache le formulaire au système */
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.field { margin-bottom: 1.5rem; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .85rem;
  margin-bottom: .55rem;
  color: var(--ink);
}
.input-wrap { position: relative; }
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .85rem 2.6rem .85rem 1rem;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.field textarea { resize: vertical; min-height: 140px; }

/* Pastille de validation : cachée par défaut, révélée quand le champ est valide */
.field-check {
  position: absolute;
  top: 1rem;
  right: .9rem;
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: var(--radius-pill);
  color: var(--white);
  background: var(--success);
  opacity: 0;
  transform: scale(.4);
  transition: opacity .28s ease, transform .42s cubic-bezier(.16, 1, .3, 1);
  pointer-events: none;
}
.input-wrap--area .field-check { top: .85rem; }

/* État VALIDE (posé par main.js après saisie correcte, jamais pendant la frappe) */
.field.is-valid input,
.field.is-valid textarea {
  border-color: color-mix(in srgb, var(--success) 55%, var(--border));
  background: var(--white);
}
.field.is-valid .field-check { opacity: 1; transform: scale(1); }

/* État ERREUR (saisie invalide quittée, ou échec à l'envoi) */
.field.is-invalid input,
.field.is-invalid textarea {
  border-color: var(--danger);
}
.field.is-invalid input:focus,
.field.is-invalid textarea:focus {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 16%, transparent);
}
.form-note { font-size: .85rem; color: var(--muted-soft); margin-top: .9rem; text-align: center; }
.form-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.4rem 0;
  color: var(--muted-soft);
  font-size: .85rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .15em;
}
.form-divider::before,
.form-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--bg-ink);
  color: #c4b6ba;   /* gris chaud, teinté vers la marque */
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.site-footer .brand { color: var(--white); margin-bottom: 1rem; }
.site-footer .brand::after { background: #e0a3ab; }   /* point accent lisible sur fond sombre */
.footer-about p { font-size: .95rem; max-width: 38ch; }
.footer-col h4 {
  color: var(--white);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 1rem;
}
.footer-col a, .footer-col p { display: block; font-size: .95rem; margin-bottom: .6rem; transition: color .2s ease; }
.footer-col a:hover { color: var(--white); }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: .85rem;
  color: var(--muted-soft);
}
.footer-legal .legal-ids span { margin-right: 1.25rem; }

/* ---------- Animations au défilement ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  /* L'aperçu produit ne chevauche plus : il repasse dans le flux, à droite */
  .hero__media {
    position: relative;
    top: auto; right: auto;
    width: min(440px, 78%);
    margin: clamp(1.5rem, 4vw, 2.5rem) 0 0 auto;
    transform: rotate(1.2deg);
  }
  /* L'intro reprend toute la largeur ; la tagline passe au-dessus, à gauche */
  .hero__cols { grid-template-columns: 1fr; align-items: start; }
  .hero__tagline {
    justify-self: start;
    text-align: left;
    order: -1;
    max-width: 24ch;
    margin-bottom: .5rem;
  }
}

@media (max-width: 900px) {
  .services { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: inline-flex; }

  /* Menu mobile déroulant */
  .nav__links.is-open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: .5rem var(--gutter) 1.25rem;
  }
  .nav__links.is-open a {
    padding: .9rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--ink);
    font-size: 1.05rem;
  }
  .nav__links.is-open a::after { display: none; }
  .nav__links.is-open .btn {
    display: inline-flex;
    margin-top: 1rem;
    justify-content: center;
  }

  .steps, .form-row { grid-template-columns: 1fr; }
  .service-lead__points { grid-template-columns: 1fr; }
  .product__thumbs img { width: 50%; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__media { width: 100%; margin-inline: 0; }
  .hero__actions .btn, .cta-band .btn { width: 100%; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; transform: none; justify-content: center; flex-wrap: wrap; white-space: normal; }
}
