/* ============================================================
   Mouaid — système de design (Yaruki Studio)
   Direction artistique : éditorial, chaleureux, terracotta sur papier.
   Aucune couleur violet/bleu générique. Icônes vectorielles, pas d'emoji.
   ============================================================ */

:root {
  /* Palette */
  --paper:      #F7F2E9;   /* fond principal, papier chaud */
  --paper-2:    #FFFDF8;   /* surfaces claires */
  --sand:       #EFE6D5;   /* surfaces alternées */
  --ink:        #17242B;   /* texte principal / sections sombres */
  --ink-soft:   #2A3A42;
  --muted:      #766B5B;   /* texte secondaire, chaud */
  --line:       #E3D9C6;   /* bordures */
  --line-strong:#D3C6AD;
  --clay:       #BE5B3C;   /* accent terracotta */
  --clay-deep:  #9E4429;
  --clay-tint:  #F3E4DA;
  --green:      #3B7A5E;   /* succès uniquement */
  --green-tint: #E4EFE7;
  --amber:      #B7791F;

  /* Typo */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Rayons */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;

  /* Ombres — discrètes, teintées chaud */
  --sh-sm: 0 1px 2px rgba(23,36,43,.06);
  --sh-md: 0 6px 24px -12px rgba(23,36,43,.18);

  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 460;
  font-optical-sizing: auto;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 .4em;
  color: var(--ink);
}
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* Étiquette / surétitre */
.eyebrow {
  font-family: var(--font-sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clay-deep);
  display: inline-flex;
  align-items: center;
  gap: .55em;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1.5px;
  background: var(--clay);
  display: inline-block;
}

/* Boutons */
.btn {
  --bg: var(--clay);
  --fg: var(--paper-2);
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-sans);
  font-weight: 550;
  font-size: .98rem;
  padding: .82em 1.35em;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
  transition: background .18s ease, transform .12s ease, border-color .18s ease;
  line-height: 1;
}
.btn:hover { background: var(--clay-deep); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn--ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: var(--sand); border-color: var(--line-strong); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: #0d171d; }
.btn--block { width: 100%; justify-content: center; }
.btn--lg { padding: 1em 1.6em; font-size: 1.05rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Puce / pill */
.pill {
  display: inline-flex; align-items: center; gap: .4em;
  font-size: .78rem; font-weight: 550;
  padding: .3em .7em; border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted); background: var(--paper-2);
}
.pill--green { color: var(--green); background: var(--green-tint); border-color: transparent; }
.pill--clay { color: var(--clay-deep); background: var(--clay-tint); border-color: transparent; }
.pill--muted { color: var(--muted); background: var(--sand); border-color: transparent; }

/* Icônes inline */
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Champs de formulaire */
.field { margin-bottom: 1.05rem; }
.field label {
  display: block; font-size: .82rem; font-weight: 600;
  color: var(--ink-soft); margin-bottom: .4rem; letter-spacing: .01em;
}
.input, textarea.input, select.input {
  width: 100%; font-family: var(--font-sans); font-size: 1rem;
  padding: .75em .9em; color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, textarea.input:focus, select.input:focus {
  outline: none; border-color: var(--clay);
  box-shadow: 0 0 0 3px var(--clay-tint);
}
textarea.input { min-height: 84px; resize: vertical; }

/* Utilitaires */
.muted { color: var(--muted); }
.center { text-align: center; }
.hidden { display: none !important; }
.stack > * + * { margin-top: var(--stack, 1rem); }
