:root {
  --bg: #faf6ee;
  --ink: #14213d;
  --soft: #5b6478;
  --line: #e6e0d2;
  --accent: #e07a3f;
  --accent-text: #b4541c; /* orange assez foncé pour du petit texte sur le fond crème (contraste 4,6 : 1) */
  --card: #ffffff;
  --note: #fbf1e9;
  --ok: #eaf3ec;
  --logo: 'Unbounded', system-ui, sans-serif;
  --title: 'Sora', system-ui, sans-serif;
  --text: 'Sora', system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.65;
}

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.todo { color: var(--accent-text); font-weight: 600; }

/* Premier écran : toute la hauteur de la fenêtre, le pied de page vient après */
.ecran { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }

/* En-tête */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 22px;
}
.mark { font-family: var(--logo); font-weight: 700; font-size: 28px; letter-spacing: -0.5px; text-decoration: none; }
.top { display: flex; align-items: center; gap: 16px; }
.lang button,
.textlink {
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  background: none;
  border: 0;
  padding: 4px 6px;
  cursor: pointer;
  color: var(--soft);
  text-decoration: none;
}
.lang button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.textlink { color: var(--ink); }
.textlink:hover { text-decoration: underline; text-underline-offset: 5px; }

/* Boutons */
.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 14px 26px;
  cursor: pointer;
}
.btn--ghost { background: transparent; color: var(--ink); }
.btn--small { padding: 8px 16px; font-size: 15px; }
.btn--wide { width: 100%; text-align: center; }
.btn:focus-visible, .textlink:focus-visible, .lang button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Page d'accueil */
main { flex: 1; display: flex; align-items: center; }
.hero { padding-block: 40px 70px; }
.kicker {
  font-family: var(--title);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 18px;
}
h1 {
  font-family: var(--title);
  font-weight: 600;
  font-size: clamp(36px, 6.4vw, 84px);
  line-height: 1.04;
  letter-spacing: -1.8px;
  max-width: 13em;
  margin: 0 0 30px;
  text-wrap: balance;
}
.lead { font-size: clamp(19px, 1.7vw, 22px); color: var(--soft); max-width: 40em; margin: 0 0 36px; }
.lead--but { margin-bottom: 12px; }
.lead b { color: var(--ink); font-weight: 600; } /* « Notre but : » et « Notre méthode : » en gras, le reste en gris */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.after { font-size: 15px; color: var(--soft); margin: 14px 0 0; }
.mail {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 16px;
}
.mail a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--accent); }

/* Pied de page */
.site-footer .wrap {
  display: grid;
  gap: 6px;
  padding-block: 26px 36px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 13px;
}

/* Pied de page : l'adresse d'abord */
.footer-contact { font-size: 16px; color: var(--ink); margin-bottom: 4px; }
/* Les mentions légales et leurs liens, en petit (Romain, 19 novembre) */
.site-footer [data-h] { font-size: 11px; line-height: 1.5; }
.footer-contact a { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--accent); }

/* Page de connexion */
.login {
  flex: 1;
  display: grid;
  place-items: center;
  padding-block: 30px 60px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.card {
  width: min(440px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 34px 30px;
  box-shadow: 0 18px 50px rgba(20, 33, 61, 0.08);
}
.card h1 { font-size: 28px; letter-spacing: -0.6px; margin: 0 0 6px; }
.card .sub { color: var(--soft); font-size: 16px; margin: 0 0 24px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.field input {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid #d9d2c1;
  border-radius: 12px;
  padding: 13px 14px;
  width: 100%;
}
.field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.links .textlink { padding: 4px 0; font-size: 14px; }
.notice { margin: 20px 0 0; padding: 16px 18px; border-radius: 14px; background: var(--note); font-size: 15px; }
.notice p { margin: 0 0 6px; }
.notice p:last-child { margin: 0; }
.notice a { font-weight: 600; }
.notice--ok { background: var(--ok); }
.hint { font-size: 13px; color: var(--soft); margin: -8px 0 18px; }
.hint a { color: var(--soft); }
.error { font-size: 14px; color: #a23b2a; font-weight: 600; margin: -10px 0 14px; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.back { display: inline-block; margin-top: 22px; font-size: 14px; color: var(--soft); }

/* Pages juridiques : texte long, en une colonne */
main.texte { display: block; }
.juridique { max-width: 46em; padding-block: 30px 70px; }
.juridique h1 { font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -1px; margin: 0 0 12px; }
.juridique .maj { color: var(--soft); font-size: 15px; margin: 0 0 8px; }
.juridique h2 { font-family: var(--title); font-weight: 600; font-size: 20px; line-height: 1.3; margin: 36px 0 10px; }
.juridique p, .juridique ul, .juridique ol { margin: 0 0 12px; }
.juridique ul, .juridique ol { padding-left: 1.3em; }
.juridique li { margin-bottom: 6px; }
.juridique a { font-weight: 600; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.juridique .back { margin-top: 36px; }

@media (max-width: 640px) {
  .top { gap: 8px; }
  .lang, .top .textlink, .top .btn { white-space: nowrap; }
  .top .btn--small { padding: 8px 12px; }
  h1 { letter-spacing: -1px; }
}

@media (prefers-reduced-motion: no-preference) {
  .rise > * { animation: rise 0.8s ease both; }
  .rise > *:nth-child(2) { animation-delay: 0.08s; }
  .rise > *:nth-child(3) { animation-delay: 0.16s; }
  .rise > *:nth-child(4) { animation-delay: 0.24s; }
  .rise > *:nth-child(5) { animation-delay: 0.32s; }
  .rise > *:nth-child(6) { animation-delay: 0.4s; }
  .rise > .notice { animation: none; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
