/* Charte « vert menthe » — socle commun à toutes les pages.
   Règles : sur le vert, texte marine ; jamais de texte vert sur fond clair (le vert en texte seulement sur marine). */

:root {
  --brand-navy: #222A3F;
  --brand-mint: #74C9A5;
  --brand-cream: #F2F2E9;
  --brand-slate: #9AA9BE;
  --brand-navy-soft: #2A3350;   /* formes décoratives et cartes sur marine */
  --brand-navy-line: #4A5575;   /* bordures sur marine */
  --brand-mist: #C9D1DE;        /* texte secondaire sur marine */
  --brand-mist-light: #D5DBE6;  /* texte courant sur carte marine */
  --brand-sky: #DCE3EE;         /* carte bleu clair */
  --brand-sand: #EAE8DD;        /* fond clair chaud des sections */
  --brand-ink: #2E3650;         /* texte courant sur fond clair */
  --brand-ink-soft: #56627D;    /* petits titres sur fond clair */
  --brand-paper: #FBFBF6;       /* champs de formulaire */
  --brand-error: #B3261E;       /* erreurs de formulaire, sur fond clair */
  --wa-green: #25d366;          /* icône WhatsApp */
  --font-brand: 'Poppins', 'Helvetica Neue', sans-serif;
  --font-title: var(--font-brand);
  --font-body: var(--font-brand);
  --font-mono: var(--font-brand);
  --gutter: clamp(16px, 5.6vw, 80px);
  --transition: .18s ease;
  --focus: var(--brand-navy);   /* contour clavier : marine sur fond clair ; les surfaces marine le passent en menthe */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-brand);
  font-size: 15px;
  line-height: 1.5;
  color: var(--brand-navy);
  background: var(--brand-navy);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .85; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--brand-mint); color: var(--brand-navy); }
.icon--whatsapp { color: var(--wa-green); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Mise en page ---------- */
.wrap {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section--sand,
.section--navy { padding-block: 96px; }
.section--sand { background: var(--brand-sand); color: var(--brand-navy); }
.section--navy { background: var(--brand-navy); color: var(--brand-cream); --focus: var(--brand-mint); }

/* ---------- Titres ---------- */
.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand-ink-soft);
}
.section--navy .kicker { color: var(--brand-mist); }
.title {
  margin-top: 12px;
  font-size: clamp(28px, 1rem + 2.2vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--brand-navy);
}
.section--navy .title { color: var(--brand-cream); }
.highlight {
  background: var(--brand-mint);
  color: var(--brand-navy);
  padding: 0 .2em;
  border-radius: .2em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Boutons (pilule) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14.5px 26.5px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity var(--transition), background var(--transition);
}
.btn:hover { opacity: .85; }
.btn .icon { flex-shrink: 0; }
.btn--sm { gap: 8px; padding: 10.5px 18.5px; font-size: 15px; }
.btn--mint { background: var(--brand-mint); color: var(--brand-navy); }
.btn--navy { background: var(--brand-navy); border-color: var(--brand-navy); color: var(--brand-cream); }
.btn--navy .icon:not(.icon--whatsapp) { color: var(--brand-mint); }
/* contour sur fond marine */
.btn--outline { border-color: var(--brand-slate); color: var(--brand-cream); font-weight: 600; }
.btn--outline .icon { color: var(--brand-mint); }
/* contour sur fond clair */
.btn--outline-navy { border-color: var(--brand-navy); color: var(--brand-navy); }
.btn--outline-navy .icon--whatsapp { color: currentColor; } /* le vert WhatsApp est illisible sur le sable */
.btn--outline-navy:hover { background: rgba(34, 42, 63, .08); opacity: 1; }

/* ---------- Texte long (détail service, légal, à propos) ---------- */
.prose {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--brand-ink);
  overflow-wrap: break-word;
}
.prose > * + * { margin-top: 1em; }
.prose h2,
.prose h3 { font-weight: 800; line-height: 1.25; color: var(--brand-navy); }
.prose h2 { margin-top: 1.8em; font-size: clamp(22px, 1rem + 1vw, 28px); }
.prose h3 { margin-top: 1.5em; font-size: 20px; }
.prose ul,
.prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose strong { font-weight: 700; color: var(--brand-navy); }
.prose a {
  font-weight: 600;
  color: var(--brand-navy);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

/* ---------- Messages flash (sur le fond marine, sous la nav) ---------- */
.flash-messages { display: grid; gap: 8px; padding-block: 16px; }
.flash {
  padding: 12px 16px;
  border-left: 4px solid var(--brand-slate);
  border-radius: 12px;
  background: var(--brand-cream);
  color: var(--brand-navy);
  font-size: 15px;
  font-weight: 500;
}
.flash.success { background: var(--brand-mint); border-left-color: var(--brand-navy); }
.flash.error { border-left-color: var(--brand-error); }
.flash.warning { background: var(--brand-sand); }

@media (max-width: 900px) {
  .section--sand,
  .section--navy { padding-block: 64px; }
}

/* ---------- Apparition au défilement ---------- */
.reveal-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  .reveal-item { opacity: 1; transform: none; }
}

html.motion-off *,
html.motion-off *::before,
html.motion-off *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

html.motion-off .reveal-item {
  opacity: 1 !important;
  transform: none !important;
}
