/* Site public de Rebond : mêmes tokens que l'app (CLAUDE.md, section 5). */

@font-face {
  font-family: Fredoka;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/Fredoka_600SemiBold.ttf) format('truetype');
}
@font-face {
  font-family: Fredoka;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/Fredoka_700Bold.ttf) format('truetype');
}
@font-face {
  font-family: Nunito;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/Nunito_400Regular.ttf) format('truetype');
}
@font-face {
  font-family: Nunito;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/Nunito_600SemiBold.ttf) format('truetype');
}
@font-face {
  font-family: Nunito;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/Nunito_700Bold.ttf) format('truetype');
}
@font-face {
  font-family: Nunito;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/Nunito_800ExtraBold.ttf) format('truetype');
}

:root {
  --fond: #f2f3fa;
  --fond-parent: #f7f7fb;
  --surface: #ffffff;
  --texte: #1b1a3a;
  --texte-2: #5b5a78;
  --primaire: #4b39ef;
  --primaire-fonce: #2e1fb8;
  --primaire-clair: #e6e3ff;
  --primaire-halo: #5d4df2;
  --accent: #ff8a1f;
  --accent-fonce: #c2410c;
  --accent-clair: #ffe8d2;
  --accent-ombre: #e06a00;
  --succes: #0b7a6b;
  --succes-texte: #0b6457;
  --succes-clair: #d7f3ee;
  --erreur: #b42318;
  --bordure: #e2e1ee;
  --piste: #ecebf5;
  --rayon: 22px;
  --titre: Fredoka, ui-rounded, system-ui, sans-serif;
  --corps: Nunito, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--corps);
  font-size: 17px;
  line-height: 1.55;
}
h1,
h2,
h3 {
  font-family: var(--titre);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}
p {
  margin: 0;
}
a {
  color: var(--primaire-fonce);
  font-weight: 700;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.conteneur {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.visuellement-cache {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Logo « reb●nd » : le « o » est une balle orange décalée vers le haut. */
.logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--titre);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.5px;
  color: var(--texte);
  text-decoration: none;
}
.logo .balle {
  display: inline-block;
  width: 0.66em;
  height: 0.66em;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 0.04em;
  transform: translateY(-0.26em);
}
.logo.blanc {
  color: #fff;
}

/* Boutons en pilule, avec relief plein (ombre décalée de 4 px). */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font-family: var(--corps);
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease;
}
.bouton:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--ombre, transparent);
}
.bouton.accent {
  background: var(--accent);
  color: var(--texte);
  --ombre: var(--accent-fonce);
  box-shadow: 0 4px 0 var(--accent-fonce);
}
.bouton.primaire {
  background: var(--primaire);
  color: #fff;
  --ombre: var(--primaire-fonce);
  box-shadow: 0 4px 0 var(--primaire-fonce);
}
.bouton.blanc {
  background: #fff;
  color: var(--primaire-fonce);
}
.bouton[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* Pages de texte (mentions légales, confidentialité). */
.page-texte {
  background: var(--fond-parent);
}
.page-texte header.barre {
  background: var(--surface);
  border-bottom: 1px solid var(--bordure);
}
.page-texte header.barre .conteneur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.texte-legal {
  max-width: 760px;
  margin: 40px auto 64px;
  background: var(--surface);
  border-radius: 28px;
  padding: 40px 32px;
}
.texte-legal h1 {
  font-size: 34px;
  margin-bottom: 8px;
}
.texte-legal h2 {
  font-size: 22px;
  margin: 32px 0 10px;
}
.texte-legal p,
.texte-legal li {
  color: #3d3c5c;
}
.texte-legal p + p {
  margin-top: 10px;
}
.texte-legal ul {
  padding-left: 22px;
  margin: 8px 0;
}
.texte-legal li + li {
  margin-top: 6px;
}
.texte-legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 15px;
}
.texte-legal th,
.texte-legal td {
  text-align: left;
  vertical-align: top;
  padding: 10px 8px;
  border-bottom: 1px solid var(--bordure);
}
.texte-legal th {
  font-weight: 800;
  color: var(--texte);
}
.maj {
  color: var(--texte-2);
  font-weight: 600;
}
.a-completer {
  background: var(--accent-clair);
  color: var(--accent-fonce);
  border-radius: 6px;
  padding: 0 6px;
  font-weight: 800;
}

footer.pied {
  padding: 32px 0 48px;
  color: var(--texte-2);
  font-size: 15px;
}
footer.pied .conteneur {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}
footer.pied nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
footer.pied a {
  color: var(--texte-2);
  font-weight: 700;
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  .texte-legal {
    margin: 16px;
    padding: 28px 20px;
    border-radius: 22px;
  }
  .texte-legal h1 {
    font-size: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
