/* ==========================================================================
   {{APP_NAME}} — feuille de style partagée
   Mobile d'abord · sombre/clair via prefers-color-scheme · variables sur :root
   ========================================================================== */

:root {
  color-scheme: light dark;

  /* Palette — mode clair */
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --text: #1a2230;
  --text-muted: #4d5a6e;
  --border: #d4dae3;
  --accent: #0b5cad;
  --accent-strong: #094a8c;
  --on-accent: #ffffff;
  --success: #1a6b3c;
  --danger: #a32626;
  --focus-ring: #0b5cad;

  --radius: 0.75rem;
  --maxw: 62rem;
  --shadow: 0 1px 3px rgba(15, 30, 50, 0.08), 0 4px 16px rgba(15, 30, 50, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161c;
    --surface: #1a2029;
    --surface-2: #232b36;
    --text: #e8ecf1;
    --text-muted: #a8b4c2;
    --border: #38424f;
    --accent: #7db3ea;
    --accent-strong: #9cc6f2;
    --on-accent: #0d1622;
    --success: #7fd0a0;
    --danger: #f0a0a0;
    --focus-ring: #7db3ea;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.35), 0 4px 16px rgba(0, 0, 0, 0.25);
  }
}

/* --- Base ----------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent-strong);
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(1.7rem, 4.5vw + 0.5rem, 2.6rem);
}

h2 {
  font-size: clamp(1.3rem, 2.5vw + 0.5rem, 1.7rem);
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1em;
}

.muted {
  color: var(--text-muted);
}

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

.center {
  text-align: center;
}

/* --- Lien d'évitement ----------------------------------------------------- */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--surface);
  color: var(--text);
  padding: 0.5rem 1rem;
  z-index: 10;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
}

/* --- En-tête et navigation ------------------------------------------------ */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.brand svg {
  flex: none;
  color: var(--accent);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.site-nav a {
  display: inline-block;
  padding: 0.6rem 0.25rem;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

/* --- Sections ------------------------------------------------------------- */

main {
  display: block;
}

.section {
  padding-block: 2.5rem;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.hero {
  padding-block: 3rem 2.5rem;
  text-align: center;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
}

.hero .lead {
  max-width: 40rem;
  margin-inline: auto;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* --- Cartes et grilles ---------------------------------------------------- */

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 40em) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* Étapes numérotées */

.steps {
  list-style: none;
  counter-reset: etape;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 40em) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps > li {
  counter-increment: etape;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.steps > li::before {
  content: counter(etape);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* --- Boutons -------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  background: var(--accent);
  color: var(--on-accent);
}

.btn:hover {
  background: var(--accent-strong);
  color: var(--on-accent);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--surface-2);
  color: var(--accent-strong);
}

/* --- Carte de tarif ------------------------------------------------------- */

.pricing-card {
  max-width: 26rem;
  margin-inline: auto;
  text-align: center;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  margin: 0.25rem 0 1rem;
}

/* Aucun prix fixé : la place du montant reste, mais elle ne prétend pas en
   annoncer un. Plus discret que le chiffre, pour que l'œil ne le lise pas
   comme un tarif. */
.price-a-venir {
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.pricing-card ul {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  text-align: left;
}

.pricing-card ul li {
  padding: 0.35rem 0 0.35rem 1.6rem;
  position: relative;
}

.pricing-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 0.9em;
  height: 0.45em;
  border-left: 2px solid var(--success);
  border-bottom: 2px solid var(--success);
  transform: rotate(-45deg);
}

.field {
  margin-bottom: 1rem;
  text-align: left;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.field input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.form-msg {
  min-height: 1.5em;
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--danger);
}

/* --- Contenu long (aide, légal) ------------------------------------------- */

.prose {
  max-width: 44rem;
}

.prose ol,
.prose ul {
  padding-left: 1.4rem;
}

.prose li {
  margin-bottom: 0.5em;
}

.prose code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 0.35rem;
  padding: 0.1em 0.4em;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.95em;
}

.notice {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0.5rem;
  padding: 0.9rem 1.1rem;
  margin: 1.25rem 0;
}

/* --- Pied de page --------------------------------------------------------- */

.site-footer {
  margin-top: 2.5rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.site-footer .wrap {
  padding-block: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.site-footer a {
  color: inherit;
}

/* --- Préférences de mouvement --------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
