/* ============================================================
   Scolbox — espace FAMILLE (07/09/2026)
   ------------------------------------------------------------
   La charte des parents, distincte de l'admin : ivoire, orange
   Scolbox par touches, Space Grotesk pour les titres et DM Sans
   pour le texte. Aucune police à empattements (règle d'Arnaud).
   Seuils de lisibilité : texte courant 16 px, secondaire 15 px,
   rien sous 13 px.
   Première page à l'utiliser : famille/commande.php. Les autres
   pages famille (espace, confirmation, paiement) y passeront
   ensuite, une par une.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

:root {
  --ivory:   #FAF6EF;
  --white:   #FFFFFF;
  --ink:     #0D0D0D;
  --ink2:    #3A3A3A;
  --muted:   #6B655C;
  --border:  rgba(0,0,0,.08);
  --border2: rgba(0,0,0,.14);
  --orange:      #F26019;
  --orange-bg:   #FDF0E8;
  --orange-dark: #C94A0E;
  --green:    #2D6A4F; --green-bg: #EAF4EF;
  --amber:    #92600A; --amber-bg: #FEF3E2;
  --red:      #9B1C1C; --red-bg:   #FEF2F2;
  --blue:     #1E40AF; --blue-bg:  #EFF6FF;
  --sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --head: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.08);
  --print:  0 1px 2px rgba(0,0,0,.12), 0 6px 14px rgba(0,0,0,.14);
  --r: 16px; --r-md: 12px; --r-sm: 9px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); font-size: 16px; line-height: 1.5; color: var(--ink);
       background: var(--ivory); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; font-weight: 600; }
h2 { font-size: 22px; margin-bottom: 4px; }
.sous { font-size: 15px; color: var(--muted); margin-bottom: 14px; line-height: 1.45; }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 18px; }
section { margin-top: 34px; }

/* En-tête */
.top { height: 54px; background: var(--white); border-bottom: 1px solid var(--border);
       position: sticky; top: 0; z-index: 10; }
.top .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--head); font-weight: 600; font-size: 17px; display: flex; align-items: center; gap: 9px; }
.logo i { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
/* 10/09/2026 — le logo Scolbox partout dans l'espace famille, comme sur la page d'accueil. */
.logo img { height: 26px; width: auto; display: block; }
.logo span { padding-left: 10px; border-left: 1.5px solid var(--border2); color: var(--ink2); font-weight: 500; font-size: 15px; line-height: 1.2; }
.lien { font-size: 15px; color: var(--ink2); font-weight: 500; display: flex; align-items: center; gap: 6px; }

/* Boutons */
/* Libellé en 18 px gras, et ce n'est pas cosmétique : blanc sur l'orange
   #F26019 ne donne que 3,3 de contraste, sous le minimum AA de 4,5 pour du
   texte courant. À 18 px gras la règle AA descend à 3,0 et 3,3 passe. C'est
   ce qui permet de garder l'orange de marque. Ne pas redescendre sous 18 px. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
       height: 48px; padding: 0 20px; border-radius: 14px; font-weight: 700; font-size: 18px; }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 6px 16px rgba(242,96,25,.35); }
.btn-orange:hover { background: var(--orange-dark); }
.btn-noir { background: var(--ink); color: #fff; }

/* Champs */
.champ { margin-top: 16px; }
.champ label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.champ input { width: 100%; height: 46px; border: 1.5px solid var(--border2); border-radius: 12px;
               padding: 0 14px; font-size: 16px; background: var(--white); color: var(--ink); }
.champ input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,96,25,.15); }
.champ small { display: block; font-size: 14px; color: var(--muted); margin-top: 6px; }
.requis { color: var(--orange); }

/* Encarts */
.encart { border-radius: 12px; padding: 12px 14px; font-size: 15px; line-height: 1.45; margin-bottom: 14px; }
.encart-erreur { background: var(--red-bg); color: var(--red); border: 1px solid rgba(155,28,28,.15); }
.encart-ambre  { background: var(--amber-bg); color: var(--amber); border: 1px solid rgba(146,96,10,.15); }
.encart-info   { background: var(--blue-bg); color: var(--blue); border: 1px solid rgba(30,64,175,.15); }
.encart strong { font-weight: 700; }
.note { font-size: 14px; color: var(--muted); background: #F3EEE4; border-radius: 10px; padding: 8px 12px; margin-top: 12px; }

/* Anti-copie facile : pas d'« Enregistrer l'image » au clic droit ni à
   l'appui long (iPhone), pas de glisser-déposer. Une capture d'écran reste
   possible : c'est le filigrane qui la rend inutile. */
img { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none;
      -webkit-user-drag: none; pointer-events: none; }
