/* Fontes de marque auto-hébergées pour les pages statiques du portail.
   Fichiers copiés dans /fonts/ par scripts/build.mjs (RGPD-safe, pas de CDN). */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/fraunces-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/instrument-sans-latin-600-normal.woff2") format("woff2");
}

/**
 * Charte graphique Max'Sens Conseil — tokens & composants partagés.
 * Repris du site coach.max-sens-conseil.fr (OrthesIA).
 * Ne contient PAS de @font-face : les fontes sont chargées par chaque app
 * (via @fontsource côté apps buildées, via @font-face côté portail statique).
 */
:root {
  --navy: #14263a;
  --navy-dark: #0e1b29;
  --navy-mid: #2b4763;
  --amber: #d99a4e;
  --amber-dark: #c4832f;
  /* Palette « papier » chaleureuse (crème du logo) plutôt que gris SaaS froid */
  --bg: #f6f1e8;
  --paper: #fbf7f0;
  --card: #ffffff;
  --text: #22303f;
  --muted: #6a6459;
  --border: #e7ddcd;
  --radius: 14px;
  --maxw: 1080px;
  --font-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--navy-mid); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }

h1, h2, h3 {
  font-family: var(--font-display); color: var(--navy); line-height: 1.12;
  margin: 0 0 0.5em; font-weight: 600; letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.35rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.lead { font-size: 1.2rem; color: var(--muted); line-height: 1.55; max-width: 62ch; }
.muted { color: var(--muted); }

/* Surtitre éditorial (kicker) */
.kicker {
  display: inline-block; font-family: var(--font-sans); font-weight: 600;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber-dark); margin-bottom: 14px;
}
.kicker::before { content: "— "; opacity: .6; }

/* Boutons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; cursor: pointer; border: 2px solid transparent;
  transition: all .15s; font-family: inherit; font-size: 1rem;
}
.btn-primary { background: var(--amber); color: var(--navy-dark); }
.btn-primary:hover { background: var(--amber-dark); text-decoration: none; }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; text-decoration: none; }
.btn:disabled { opacity: .6; cursor: progress; }

/* Marque (logo + nom) */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); }
.brand img { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.08; }
.brand-name { font-weight: 700; font-size: 1.05rem; }
.brand-tag {
  font-family: var(--font-sans); font-weight: 500; font-size: .68rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}

/* Cartes */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  box-shadow: 0 1px 2px rgba(20, 38, 58, .04), 0 10px 28px rgba(20, 38, 58, .045);
  transition: transform .18s ease, box-shadow .18s ease;
}

/* Champs de formulaire */
.field { margin-bottom: 16px; }
.field label, .field > span { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 10px; font-family: inherit; font-size: 1rem;
  background: var(--card); color: var(--text);
}
.field input:focus { outline: 2px solid var(--amber); border-color: transparent; }

/* Hero éditorial crème */
.hero { position: relative; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--border); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(58% 78% at 88% -12%, rgba(217, 154, 78, .20), transparent 60%),
    radial-gradient(48% 68% at 6% 116%, rgba(20, 38, 58, .07), transparent 60%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: var(--navy); }
.hero .lead { color: var(--muted); }

/* Footer navy */
.footer { background: var(--navy); color: #cdd6e0; margin-top: 40px; }
.footer a { color: #cdd6e0; }
.footer h4 { color: #fff; margin: 0 0 10px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-bottom .container {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 8px; padding: 14px 20px; font-size: .8rem; color: #9fb0c0;
}

.center { text-align: center; }
.mt { margin-top: 22px; }
