/* ============================================================
   d-solution — feuille de style
   Mobile-first · contrastes AA · tokens centralisés
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Couleurs de marque */
  --bleu: #264653;
  --bleu-fonce: #1B3440;
  --terracotta: #E76F51;        /* surfaces, gros titres uniquement */
  --terracotta-action: #B34526;  /* boutons : 5.1:1 avec texte blanc */
  --terracotta-texte: #A03D20;   /* petit texte accent : 6:1 sur creme */
  --abricot-pale: #F9E8D4;
  --abricot-texte: #6E4218;     /* texte sur abricot pâle : AA */
  --sauge: #8AB6A7;
  --sauge-claire: #BCD8CC;      /* texte secondaire sur bleu : 6.8:1 */
  --sauge-pale: #DCEAE3;
  --sauge-texte: #2E5446;
  --creme: #FAF6F0;
  --blanc: #FFFFFF;
  --encre: #2B2926;
  --texte-secondaire: #5C564C;  /* 7:1 sur crème */
  --bord: #EAE1D3;

  /* Typo */
  --police-titre: 'Outfit', sans-serif;
  --police-texte: 'DM Sans', system-ui, sans-serif;

  /* Espacements & formes */
  --espace-section: 3.5rem;
  --radius: 18px;
  --radius-pill: 999px;
  --largeur-max: 1080px;
}

@media (min-width: 768px) {
  :root { --espace-section: 5rem; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--police-texte);
  background: var(--creme);
  color: var(--encre);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--police-titre);
  letter-spacing: -0.02em;
  color: var(--bleu);
  text-wrap: balance;
}
h1 { font-weight: 600; font-size: clamp(2rem, 6vw, 3.1rem); line-height: 1.12; }
h2 { font-weight: 600; font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.2; }
h3 { font-weight: 500; font-size: 1.12rem; }

a { color: var(--terracotta-texte); }

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

.wrap {
  max-width: var(--largeur-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ---------- Texte pour lecteurs d'écran ---------- */
.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;
}

/* ---------- Lien d'évitement ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--bleu);
  color: var(--creme);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius) 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- Utilitaires ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta-texte);
  margin-bottom: 0.875rem;
}

.accent { color: var(--terracotta); font-style: normal; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bord);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: var(--largeur-max);
  margin-inline: auto;
  padding: 0.875rem 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.brand-nom {
  font-family: var(--police-titre);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--bleu);
}

.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.375rem;
  color: var(--bleu);
}

.nav-links {
  display: none;
  list-style: none;
  width: 100%;
  flex-direction: column;
  text-align: center;
  padding-block: 0.5rem;
}
.nav-links.ouvert { display: flex; }
.nav-links a:not(.btn) {
  display: block;
  padding: 0.8rem;
  text-decoration: none;
  color: var(--bleu);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a[aria-current="page"] {
  color: var(--terracotta-texte);
}
.nav-links .btn { margin-block: 0.625rem; }

@media (min-width: 768px) {
  .nav { flex-wrap: nowrap; }
  .nav-toggle { display: none; }
  .nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.6rem;
    width: auto;
    padding-block: 0;
  }
  .nav-links a:not(.btn) {
    padding: 0.125rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.18s;
  }
  .nav-links a:not(.btn):hover { border-color: var(--terracotta); }
  .nav-links a[aria-current="page"] {
    color: var(--bleu);
    border-color: var(--terracotta);
  }
  .nav-links .btn { margin-block: 0; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  font-family: var(--police-titre);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, background 0.15s, color 0.15s;
}
.btn-primary { background: var(--terracotta-action); color: var(--blanc); }
.btn-primary:hover { background: var(--terracotta-texte); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--bleu);
  border: 1.5px solid var(--bleu);
}
.btn-outline:hover { background: var(--bleu); color: var(--creme); }

/* ---------- Hero ---------- */
.hero {
  padding-block: 3.5rem 2.75rem;
  text-align: center;
}
.hero .badge {
  display: inline-block;
  background: var(--abricot-pale);
  color: var(--abricot-texte);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.375rem;
}
.hero h1 { max-width: 660px; margin-inline: auto; margin-bottom: 1.125rem; }
.hero .lead {
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: 2rem;
  color: var(--texte-secondaire);
  font-size: 1.08rem;
}
.hero-ctas {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .hero { padding-block: 5.25rem 4rem; }
}

/* ---------- Flux signature ---------- */
.flux { padding-block: 1.5rem 3.5rem; }
.flux svg {
  width: 100%;
  max-width: 760px;
  display: block;
  margin-inline: auto;
  height: auto;
}

/* ---------- Bandeau chiffres ---------- */
.stats {
  border-block: 1px solid var(--bord);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.stats > div {
  padding: 1.5rem 1rem;
  text-align: center;
  border: 0 solid var(--bord);
}
.stats > div:nth-child(even) { border-left-width: 1px; }
.stats > div:nth-child(n+3) { border-top-width: 1px; }
.stats strong {
  display: block;
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--bleu);
}
.stats small { color: var(--texte-secondaire); font-size: 0.85rem; }

@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stats > div { border-width: 0; }
  .stats > div + div { border-left-width: 1px; }
}

/* ---------- Sections ---------- */
.block { padding-block: var(--espace-section); }
.block-blanc { background: var(--blanc); }

.section-head {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 2.75rem;
}
.section-head p { color: var(--texte-secondaire); margin-top: 0.75rem; }

/* ---------- Cartes ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.card {
  background: var(--blanc);
  border-radius: var(--radius);
  padding: 1.75rem 1.625rem;
  border: 1px solid var(--bord);
}
.block-blanc .card { background: var(--creme); }
.card .ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--abricot-pale);
  color: var(--terracotta-texte);
  margin-bottom: 1rem;
}
.card .ico-vert { background: var(--sauge-pale); color: var(--sauge-texte); }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--texte-secondaire); font-size: 0.94rem; }
.card .btn { margin-top: 0.875rem; }

@media (min-width: 600px) {
  .cards { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
}

/* ---------- Étapes ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  counter-reset: etape;
  list-style: none;
}
.step {
  background: var(--blanc);
  border: 1px solid var(--bord);
  border-radius: var(--radius);
  padding: 1.625rem 1.5rem;
}
.step::before {
  counter-increment: etape;
  content: counter(etape);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bleu);
  color: var(--creme);
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.875rem;
}
.step h3 { margin-bottom: 0.375rem; }
.step p { color: var(--texte-secondaire); font-size: 0.92rem; }
.step .delai {
  display: block;
  margin-top: 0.625rem;
  color: var(--terracotta-texte);
  font-weight: 500;
  font-size: 0.82rem;
}

@media (min-width: 600px) {
  .steps { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
}

/* ---------- Citation ---------- */
.quote {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}
.quote blockquote {
  font-family: var(--police-titre);
  font-weight: 500;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  line-height: 1.4;
  color: var(--bleu);
}
.quote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  color: var(--texte-secondaire);
  font-size: 0.9rem;
}

/* ---------- CTA final ---------- */
.cta-final {
  background: var(--bleu);
  padding-block: 4rem;
  text-align: center;
}
.cta-final h2 { color: var(--creme); }
.cta-final p {
  color: var(--sauge-claire);
  margin: 0.75rem auto 1.75rem;
  max-width: 460px;
}

/* ---------- FAQ ---------- */
.faq { max-width: 720px; margin-inline: auto; }
.faq details {
  background: var(--blanc);
  border: 1px solid var(--bord);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 1.5rem;
  font-family: var(--police-titre);
  font-weight: 500;
  color: var(--bleu);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--terracotta-texte);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  padding: 0 1.5rem 1.25rem;
  color: var(--texte-secondaire);
  font-size: 0.95rem;
}

/* ---------- Formulaire ---------- */
.form-card {
  background: var(--blanc);
  border: 1px solid var(--bord);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  max-width: 720px;
  margin-inline: auto;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--bleu);
  margin-bottom: 0.375rem;
}
input, select, textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1.5px solid var(--bord);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--creme);
  color: var(--encre);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--terracotta-action);
}
.form-note {
  font-size: 0.82rem;
  color: var(--texte-secondaire);
  margin-top: 0.875rem;
}

@media (min-width: 600px) {
  .form-card { padding: 2.25rem; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .pleine-largeur { grid-column: 1 / -1; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--bord);
  padding-block: 2.25rem;
}
.foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.foot p, .foot a { font-size: 0.85rem; color: var(--texte-secondaire); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--terracotta-texte); text-decoration: underline; }
.foot .marque {
  font-family: var(--police-titre);
  font-weight: 500;
  color: var(--bleu);
}
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.125rem; }

@media (min-width: 768px) {
  .foot { flex-direction: row; justify-content: space-between; text-align: left; }
}
