/* ==========================================================================
   Hadda Propre Services — Design System
   Feuille de style unique : tokens, base, composants, sections, utilitaires.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Couleurs de marque */
  --green: #02c224;
  --green-600: #00a61e;
  --green-700: #087a1b; /* Vert lisible sur fond clair (5.5:1) */
  --green-050: #eefbf0;
  --green-100: #d6f6dc;

  /* Neutres */
  --ink-900: #07100c;
  --ink-800: #0c1a14;
  --ink-700: #14261d;
  --ink-600: #22382c;
  --ink-500: #3f5a4c;
  --ink-400: #64806f;

  --paper: #ffffff;
  --paper-2: #f7faf8;
  --paper-3: #eef3ef;

  /* Rôles */
  --bg: var(--paper);
  --bg-alt: var(--paper-2);
  --text: var(--ink-800);
  --text-muted: #4a6157;
  --text-invert: #ffffff;
  --text-invert-muted: rgba(255, 255, 255, 0.72);
  --line: rgba(12, 26, 20, 0.1);
  --line-strong: rgba(12, 26, 20, 0.18);
  --line-invert: rgba(255, 255, 255, 0.14);

  --danger: #b3261e;
  --success: #087a1b;

  /* Typographie */
  --font-display: "Fraunces", "Iowan Old Style", "Times New Roman", serif;
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: clamp(1.125rem, 0.3vw + 1.05rem, 1.25rem);
  --fs-lg: clamp(1.375rem, 0.7vw + 1.2rem, 1.625rem);
  --fs-xl: clamp(1.75rem, 1.4vw + 1.4rem, 2.375rem);
  --fs-2xl: clamp(2.125rem, 2.4vw + 1.5rem, 3.25rem);
  --fs-3xl: clamp(2.5rem, 4vw + 1.4rem, 4.5rem);

  /* Espacements */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --section-y: clamp(4rem, 7vw, 7.5rem);

  /* Formes */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Ombres */
  --shadow-sm: 0 1px 2px rgba(7, 16, 12, 0.06),
    0 2px 8px rgba(7, 16, 12, 0.04);
  --shadow: 0 4px 12px rgba(7, 16, 12, 0.06), 0 18px 40px rgba(7, 16, 12, 0.07);
  --shadow-lg: 0 8px 24px rgba(7, 16, 12, 0.09),
    0 36px 80px rgba(7, 16, 12, 0.12);

  /* Transitions */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 160ms var(--ease);
  --t: 280ms var(--ease);
  --t-slow: 620ms var(--ease);

  /* Layout */
  --container: 1200px;
  --container-narrow: 780px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --header-h: 76px;
}

/* --------------------------------------------------------------------------
   2. RESET / BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink-900);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-3xl);
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 144;
}
h2 {
  font-size: var(--fs-2xl);
  font-variation-settings: "opsz" 72;
}
h3 {
  font-size: var(--fs-lg);
}
h4 {
  font-size: var(--fs-md);
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

a {
  color: var(--green-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--t-fast);
}
a:hover {
  color: var(--ink-900);
}

img,
svg,
picture,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  padding-left: 1.15em;
}

strong {
  font-weight: 700;
  color: var(--ink-900);
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--space-7) 0;
}

::selection {
  background: var(--green);
  color: var(--ink-900);
}

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

/* Lien d'évitement */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 200;
  background: var(--ink-900);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top var(--t-fast);
}
.skip-link:focus {
  top: var(--space-4);
  color: #fff;
}

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

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--tight {
  padding-block: clamp(3rem, 5vw, 5rem);
}

.section--alt {
  background: var(--bg-alt);
}

.section--dark {
  background: var(--ink-900);
  color: var(--text-invert-muted);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #fff;
}
.section--dark a {
  color: var(--green);
}
.section--dark a:hover {
  color: #fff;
}

.grid {
  display: grid;
  gap: var(--space-5);
}
.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}
.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.stack > * + * {
  margin-top: var(--space-4);
}

/* --------------------------------------------------------------------------
   4. TITRAILLE
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-700);
  margin: 0 0 var(--space-4);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--green);
  flex: none;
}
.section--dark .eyebrow,
.hero .eyebrow {
  color: var(--green);
}

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head--center .eyebrow::before {
  display: none;
}

.lead {
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--text-muted);
}
.section--dark .lead {
  color: var(--text-invert-muted);
}

/* --------------------------------------------------------------------------
   5. BOUTONS
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--green);
  --btn-fg: var(--ink-900);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.85rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t),
    background-color var(--t-fast), color var(--t-fast),
    border-color var(--t-fast);
  box-shadow: 0 1px 2px rgba(7, 16, 12, 0.08);
}
.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(2, 194, 36, 0.28);
}
.btn:active {
  transform: translateY(0);
}
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn--dark {
  --btn-bg: var(--ink-900);
  --btn-fg: #fff;
}
.btn--dark:hover {
  box-shadow: 0 10px 24px rgba(7, 16, 12, 0.28);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink-900);
  --btn-border: var(--line-strong);
  box-shadow: none;
}
.btn--ghost:hover {
  --btn-border: var(--ink-900);
  box-shadow: none;
}

.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-border: var(--line-invert);
  box-shadow: none;
}
.btn--ghost-light:hover {
  --btn-bg: rgba(255, 255, 255, 0.08);
  --btn-border: rgba(255, 255, 255, 0.4);
  box-shadow: none;
}

/* Bouton WhatsApp : vert de la marque WhatsApp pour être reconnu au premier
   coup d'œil, texte sombre pour rester lisible (contraste 8,9:1). */
.btn--whatsapp {
  --btn-bg: #25d366;
  --btn-fg: var(--ink-900);
}
.btn--whatsapp:hover {
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.32);
}

.btn--lg {
  min-height: 58px;
  padding: 1rem 2rem;
  font-size: var(--fs-base);
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

/* Lien fléché */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: var(--fs-sm);
  text-decoration: none;
  color: var(--green-700);
}
.arrow-link svg {
  transition: transform var(--t-fast);
}
.arrow-link:hover svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   6. HEADER
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t),
    background-color var(--t);
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(7, 16, 12, 0.05);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink-900);
  flex: none;
}
/* Logo : le fichier fourni est un JPEG sur fond gris clair (#f0f0f0), dont le
   cercle bleu est rogné à droite et en bas. On recadre donc sur l'emblème
   central (globe + mains), intact, mesuré à 118 × 118 px depuis (43,5, 50,5).
   Le léger éclaircissement fait disparaître le fond gris sur fond blanc.
   À remplacer par un PNG détouré ou un SVG dès qu'il sera disponible. */
.brand__mark {
  --mark: 46px;
  position: relative;
  width: var(--mark);
  height: var(--mark);
  flex: none;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
}
.brand__mark img {
  position: absolute;
  max-width: none;
  width: calc(var(--mark) * 1.5254);
  height: calc(var(--mark) * 1.5254);
  left: calc(var(--mark) * -0.3686);
  top: calc(var(--mark) * -0.428);
  filter: brightness(1.0625);
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand__tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-700);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.6vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-700);
  text-decoration: none;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.15rem;
  width: 100%;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--ink-900);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.header__cta {
  display: none;
}

.header__phone {
  display: none;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink-900);
  text-decoration: none;
  white-space: nowrap;
}
.header__phone svg {
  color: var(--green-700);
}

.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: -0.5rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--ink-900);
}
.burger__box {
  position: relative;
  width: 20px;
  height: 14px;
}
.burger__box span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t-fast), top var(--t);
}
.burger__box span:nth-child(1) {
  top: 0;
}
.burger__box span:nth-child(2) {
  top: 6px;
}
.burger__box span:nth-child(3) {
  top: 12px;
}
.burger[aria-expanded="true"] .burger__box span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}
.burger[aria-expanded="true"] .burger__box span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] .burger__box span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

/* Panneau mobile */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 99;
  background: var(--paper);
  padding: var(--space-6) var(--gutter) var(--space-8);
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-nav__list {
  list-style: none;
  margin: 0 0 var(--space-6);
  padding: 0;
  display: flex;
  flex-direction: column;
}
.mobile-nav__list a {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink-900);
  text-decoration: none;
}
.mobile-nav__list a[aria-current="page"] {
  color: var(--green-700);
}
.mobile-nav__actions {
  display: grid;
  gap: var(--space-3);
}
body.nav-open {
  overflow: hidden;
}

@media (min-width: 900px) {
  .burger {
    display: none;
  }
  .mobile-nav {
    display: none;
  }
  .header__cta {
    display: inline-flex;
  }
  .header__phone {
    display: inline-flex;
  }
}
@media (max-width: 899px) {
  .nav__list {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink-900);
  color: var(--text-invert-muted);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      120% 90% at 78% 8%,
      rgba(2, 194, 36, 0.22) 0%,
      transparent 58%
    ),
    radial-gradient(80% 70% at 8% 100%, rgba(2, 194, 36, 0.1) 0%, transparent 60%);
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.028) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(
    70% 60% at 50% 40%,
    #000 0%,
    transparent 100%
  );
  z-index: -1;
}

.hero__inner {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 7rem);
}
@media (min-width: 1000px) {
  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero h1 {
  color: #fff;
  margin-bottom: var(--space-5);
}
.hero h1 em {
  font-style: italic;
  color: var(--green);
}
.hero__lead {
  font-size: var(--fs-md);
  color: var(--text-invert-muted);
  max-width: 54ch;
  margin-bottom: var(--space-6);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line-invert);
  list-style: none;
  padding-left: 0;
}
.hero__meta li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
}
.hero__meta svg {
  color: var(--green);
  flex: none;
}

/* Bandeau de logos / rappel secteurs */
.hero__strip {
  border-top: 1px solid var(--line-invert);
  padding-block: var(--space-5);
}
.hero__strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-7);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* --------------------------------------------------------------------------
   8. VISUELS / PLACEHOLDERS
   -------------------------------------------------------------------------- */
.media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(150deg, var(--ink-700), var(--ink-900));
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.media--tall {
  aspect-ratio: 3 / 4;
}
.media--wide {
  aspect-ratio: 16 / 10;
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Image affichée en entier plutôt que recadrée : utile pour un comparatif,
   où rogner les bords ferait perdre une partie de la démonstration. */
.media--contain {
  background: var(--ink-800);
}
.media--contain img {
  object-fit: contain;
}
.media__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.75rem;
  justify-items: center;
  text-align: center;
  padding: var(--space-5);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.035) 0 2px,
    transparent 2px 14px
  );
  color: rgba(255, 255, 255, 0.62);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.media__placeholder svg {
  color: var(--green);
  opacity: 0.9;
}

/* Carte flottante posée sur un visuel */
.floating-card {
  position: absolute;
  left: clamp(-0.5rem, -2vw, -1.5rem);
  bottom: clamp(1rem, 4vw, 1.75rem);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  max-width: min(300px, 84%);
  padding: 0.9rem 1.15rem;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink-800);
  font-size: var(--fs-sm);
  line-height: 1.4;
}
.floating-card strong {
  display: block;
  font-size: var(--fs-base);
}
.floating-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--green-050);
  color: var(--green-700);
}

/* --------------------------------------------------------------------------
   9. CARTES
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: clamp(1.5rem, 2.4vw, 2.15rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--green-050);
  color: var(--green-700);
  margin-bottom: var(--space-2);
}
.card__list {
  margin: var(--space-2) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.card__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}
.card__list li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 0.62em;
  border-radius: 50%;
  background: var(--green);
}
.card__footer {
  margin-top: auto;
  padding-top: var(--space-4);
}

.card--dark {
  background: var(--ink-800);
  border-color: var(--line-invert);
  color: var(--text-invert-muted);
}
.card--dark h3 {
  color: #fff;
}
.card--dark p {
  color: var(--text-invert-muted);
}
.card--dark .card__icon {
  background: rgba(2, 194, 36, 0.14);
  color: var(--green);
}

.card--feature {
  background: linear-gradient(160deg, var(--green-050), var(--paper) 65%);
  border-color: var(--green-100);
}

/* --------------------------------------------------------------------------
   10. CHIFFRES / REPÈRES
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}
.stat {
  padding: var(--space-5) 0;
  border-top: 2px solid var(--green);
}
.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 500;
  line-height: 1;
  color: var(--ink-900);
  margin-bottom: 0.4rem;
}
.section--dark .stat__value {
  color: #fff;
}
.stat__label {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.section--dark .stat__label {
  color: var(--text-invert-muted);
}

/* --------------------------------------------------------------------------
   11. PROCESSUS
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: var(--space-5);
  counter-reset: step;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.step {
  position: relative;
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
}
.section--dark .step {
  border-top-color: var(--line-invert);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: var(--space-4);
  left: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--green-700);
}
.section--dark .step::before {
  color: var(--green);
}
.step h3 {
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  font-weight: 700;
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}
.step p {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.section--dark .step p {
  color: var(--text-invert-muted);
}

/* --------------------------------------------------------------------------
   12. SPLIT (texte + visuel)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split--reverse .split__media {
    order: -1;
  }
}

.checklist {
  list-style: none;
  margin: var(--space-5) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--fs-sm);
}
.checklist svg {
  flex: none;
  margin-top: 0.2em;
  color: var(--green-700);
}
.section--dark .checklist svg {
  color: var(--green);
}

/* --------------------------------------------------------------------------
   13. FAQ (accordéon)
   -------------------------------------------------------------------------- */
.faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  padding: 1.4rem 0;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--ink-900);
  cursor: pointer;
  transition: color var(--t-fast);
}
.faq__btn:hover {
  color: var(--green-700);
}
.faq__icon {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  transition: background-color var(--t), border-color var(--t),
    transform var(--t);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform var(--t), opacity var(--t);
}
.faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.faq__btn[aria-expanded="true"] .faq__icon {
  background: var(--green);
  border-color: var(--green);
  color: var(--ink-900);
}
.faq__btn[aria-expanded="true"] .faq__icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
}
.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t);
}
.faq__panel[data-open="true"] {
  grid-template-rows: 1fr;
}
.faq__panel > div {
  overflow: hidden;
}
.faq__panel p {
  max-width: 68ch;
  margin: 0 0 1.4rem;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

/* --------------------------------------------------------------------------
   14. CTA FINAL
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--ink-900);
  color: var(--text-invert-muted);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    90% 120% at 82% 20%,
    rgba(2, 194, 36, 0.24),
    transparent 60%
  );
}
.cta-band__inner {
  position: relative;
  display: grid;
  gap: var(--space-6);
  align-items: center;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
@media (min-width: 900px) {
  .cta-band__inner {
    grid-template-columns: 1.3fr auto;
    gap: var(--space-8);
  }
}
.cta-band h2 {
  color: #fff;
  margin-bottom: var(--space-3);
}

/* --------------------------------------------------------------------------
   15. FORMULAIRE
   -------------------------------------------------------------------------- */
.form-card {
  padding: clamp(1.5rem, 3vw, 2.75rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 640px) {
  .form-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field--full {
  grid-column: 1 / -1;
}

.label {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink-800);
}
.label .req {
  color: var(--danger);
}
.hint {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  font-family: inherit;
  font-size: var(--fs-base);
  color: var(--ink-900);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color var(--t-fast), box-shadow var(--t-fast),
    background-color var(--t-fast);
}
.textarea {
  min-height: 148px;
  resize: vertical;
  line-height: 1.6;
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%2314261d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.75rem;
}
.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--ink-400);
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 4px rgba(2, 194, 36, 0.16);
}
.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--danger);
  background: #fff7f6;
}
.input::placeholder,
.textarea::placeholder {
  color: #8ba295;
}

.error-msg {
  min-height: 0;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--danger);
}
.error-msg:empty {
  display: none;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  cursor: pointer;
}
.checkbox input {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 0.1em;
  accent-color: var(--green-600);
  cursor: pointer;
}

/* Anti-spam : champ leurre invisible pour les humains */
.hp-field {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Retours du formulaire */
.form-status {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.form-status[hidden] {
  display: none;
}
.form-status--success {
  background: var(--green-050);
  border: 1px solid var(--green-100);
  color: #0b4f16;
}
.form-status--error {
  background: #fdf1f0;
  border: 1px solid #f5d5d2;
  color: #8c1f18;
}
.form-status svg {
  flex: none;
  margin-top: 0.15em;
}

/* Spinner du bouton d'envoi */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(7, 16, 12, 0.25);
  border-top-color: var(--ink-900);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.btn[data-loading="true"] .btn__label {
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   16. BLOCS CONTACT
   -------------------------------------------------------------------------- */
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-5);
}
.contact-list li {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.contact-list__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: var(--green-050);
  color: var(--green-700);
}
.section--dark .contact-list__icon {
  background: rgba(2, 194, 36, 0.14);
  color: var(--green);
}
.contact-list__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}
.contact-list__value {
  margin: 0;
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--ink-900);
}
.contact-list__value a {
  color: inherit;
  text-decoration: none;
}
.contact-list__value a:hover {
  color: var(--green-700);
}
.section--dark .contact-list__value {
  color: #fff;
}

/* --------------------------------------------------------------------------
   17. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--ink-900);
  color: var(--text-invert-muted);
  padding-block: clamp(3rem, 6vw, 5rem) var(--space-6);
  font-size: var(--fs-sm);
}
.footer a {
  color: var(--text-invert-muted);
  text-decoration: none;
}
.footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer__grid {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  padding-bottom: var(--space-7);
  border-bottom: 1px solid var(--line-invert);
}
.footer__brand {
  max-width: 34ch;
}
.footer .brand {
  color: #fff;
  margin-bottom: var(--space-4);
}
.footer__signature {
  margin-top: -0.25rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--green);
}

.footer__title {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--space-4);
}
.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-5);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.55);
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------------------------------
   18. BARRE CTA MOBILE
   -------------------------------------------------------------------------- */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform var(--t);
}
.mobile-bar.is-visible {
  transform: translateY(0);
}
.mobile-bar .btn {
  min-height: 48px;
  padding-inline: 1rem;
  font-size: var(--fs-sm);
}
@media (min-width: 900px) {
  .mobile-bar {
    display: none;
  }
}
@media (max-width: 899px) {
  body {
    padding-bottom: 0;
  }
  .footer {
    padding-bottom: 5.5rem;
  }
}

/* --------------------------------------------------------------------------
   19. PAGES LÉGALES / CONTENU LONG
   -------------------------------------------------------------------------- */
.page-header {
  background: var(--ink-900);
  color: var(--text-invert-muted);
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(2.5rem, 5vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    80% 100% at 85% 0%,
    rgba(2, 194, 36, 0.18),
    transparent 60%
  );
}
.page-header .container {
  position: relative;
}
.page-header h1 {
  color: #fff;
  max-width: 20ch;
}
.page-header .lead {
  max-width: 60ch;
  margin-bottom: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.6);
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: #fff;
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: rgba(255, 255, 255, 0.35);
}

.prose {
  max-width: 74ch;
}
.prose h2 {
  font-size: var(--fs-lg);
  margin-top: var(--space-7);
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  font-weight: 700;
  margin-top: var(--space-6);
}
.prose ul {
  margin: 0 0 var(--space-4);
  padding-left: 1.2em;
  color: var(--text-muted);
}
.prose li {
  margin-bottom: 0.4rem;
}
.prose p {
  color: var(--text-muted);
}
.prose dl {
  display: grid;
  gap: 0.35rem 1.5rem;
  margin: 0 0 var(--space-5);
}
@media (min-width: 640px) {
  .prose dl {
    grid-template-columns: minmax(180px, auto) 1fr;
  }
}
.prose dt {
  font-weight: 700;
  color: var(--ink-900);
}
.prose dd {
  margin: 0;
  color: var(--text-muted);
}

/* Marqueur d'information à fournir par le client */
.todo {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fffbe9;
  color: #7a5a00;
  font-size: 0.85em;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   20. PAGE 404
   -------------------------------------------------------------------------- */
.error-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-h));
  text-align: center;
  padding-block: var(--space-8);
}
.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 11rem);
  line-height: 0.9;
  color: var(--green);
  margin-bottom: var(--space-4);
}

/* --------------------------------------------------------------------------
   21. UTILITAIRES
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.text-center {
  text-align: center;
}
.mt-0 {
  margin-top: 0;
}
.mb-0 {
  margin-bottom: 0;
}
.mt-5 {
  margin-top: var(--space-5);
}
.mt-6 {
  margin-top: var(--space-6);
}
.mx-auto {
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   22. ANIMATIONS AU SCROLL
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--t-slow), transform var(--t-slow);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
html.no-js [data-reveal] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .btn:hover,
  .card:hover {
    transform: none;
  }
}

@media print {
  .header,
  .mobile-bar,
  .mobile-nav,
  .cta-band,
  .footer {
    display: none !important;
  }
  body {
    color: #000;
  }
}
