/* ==========================================================================
   Made in Pyrénées · Jetons de charte · Territoire A « Balisage sorbet »
   Réutilisable sur tout le site. Aucune règle de mise en page ici :
   seulement des variables et quelques bases communes (reset, focus, motion).
   Source : studio/identite-v2/planche-A-balisage-pastel.html + brief-creatif.md
   ========================================================================== */

:root {
  /* ---- Couleurs de base ---- */
  --c-creme: #fff8ec;          /* fond principal */
  --c-ciel: #e4effa;           /* blocs, fiches (ciel lavé) */
  --c-encre: #1e2a46;          /* texte, aplats sombres (encre marine) — 13,5:1 sur crème */
  --c-ardoise: #34485a;        /* logo (inchangé) */
  --c-gris: #545e76;           /* légendes — 6,1:1 sur crème */
  --c-trait: #d6dcea;          /* filets, bordures neutres */
  --c-blanc: #ffffff;

  /* ---- Couleurs de public (surfaces : on écrit dessus en encre, jamais en blanc) ---- */
  --c-citron: #ffeb85;         /* Scolaires — toujours avec contour encre sur crème */
  --c-citron-pale: #fff5c2;
  --c-peche: #ffb183;          /* Ados & CSE */
  --c-peche-pale: #ffe4d3;
  --c-lilas: #a98bec;          /* Treks adultes */
  --c-lilas-pale: #ece4fd;

  /* ---- Accent (boutons uniquement) ---- */
  --c-corail: #ff6a45;         /* encre sur corail : 5,0:1 */
  --c-corail-hover: #ff8a6b;
  --c-corail-profond: #b03a1e; /* texte d'accent sur fond clair : 5,7:1 sur crème */

  /* ---- Public courant (surchargé par [data-public]) ---- */
  --public: var(--c-citron);
  --public-pale: var(--c-citron-pale);
  --public-label: "Scolaires";

  /* ---- Typographies (Google Fonts, licence OFL, avec replis) ---- */
  --f-titre: "Big Shoulders Stencil", "Big Shoulders Stencil Display", Impact, "Arial Narrow Bold", "Franklin Gothic Bold", sans-serif;
  --f-texte: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-data: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --f-logo: "Stardos Stencil", "Stencil Std", Georgia, serif; /* logo uniquement, jamais de texte courant */

  /* ---- Échelle typographique (mobile d'abord, fluide) ---- */
  --t-h1: clamp(2.75rem, 1.6rem + 5.2vw, 5.5rem);    /* 44 → 88 px */
  --t-h2: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem);     /* 36 → 56 px */
  --t-h3: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);      /* 20 → 24 px */
  --t-chiffre: clamp(2.5rem, 2rem + 2.2vw, 3.75rem);
  --t-texte: 1.0625rem;                                /* 17 px */
  --t-lead: clamp(1.125rem, 1.05rem + .4vw, 1.3125rem);
  --t-petit: .9375rem;                                 /* 15 px */
  --t-legende: .875rem;                                /* 14 px, minimum pour les légendes */
  --lh-titre: .95;
  --lh-texte: 1.6;

  /* ---- Espacements (base 8 px) ---- */
  --s-1: 4px; --s-2: 8px; --s-3: 16px; --s-4: 24px; --s-5: 32px;
  --s-6: 48px; --s-7: 64px; --s-8: 96px; --s-9: 128px;
  --gouttiere: clamp(16px, 4vw, 48px);
  --conteneur: 1240px;

  /* ---- Rayons, coins, ombres ---- */
  --r-bloc: 6px;               /* cartes et blocs (cohérent avec le cadre du logo) */
  --r-pastel: 18px;            /* aplats pastel « sorbet » */
  --r-pilule: 999px;           /* étiquettes uniquement */
  --coin: 12px;                /* coin coupé à 45° (étiquette de bagage) */
  --clip-coin: polygon(0 0, calc(100% - var(--coin)) 0, 100% var(--coin), 100% 100%, 0 100%);
  --ombre-tampon: 3px 3px 0 var(--c-encre);
  --ombre-douce: 0 1px 2px rgba(30, 42, 70, .08), 0 8px 24px rgba(30, 42, 70, .08);
  --contour-citron: 1.5px solid var(--c-encre); /* remarque DA : le citron ressort mal sur la crème */

  /* ---- Mouvement ---- */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --d-ui: 180ms;
  --d-peint: 250ms;

  /* ---- Focus ---- */
  --focus: var(--c-encre);
  --focus-sur-sombre: var(--c-creme);

  /* ---- Patterns (tuiles SVG, ton sur ton ou plein) ---- */
  /* A1 Balise, citron sur encre (bande pleine) */
  --pat-balise-citron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 112 112'%3E%3Cg fill='%23ffeb85'%3E%3Crect x='4' y='8' width='48' height='20'/%3E%3Crect x='60' y='64' width='48' height='20'/%3E%3Crect x='4' y='36' width='48' height='20'/%3E%3Crect x='60' y='92' width='48' height='20'/%3E%3C/g%3E%3C/svg%3E");
  /* A1 Balise, ton sur ton sur citron pâle (fonds) */
  --pat-balise-ton: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='112' viewBox='0 0 112 112'%3E%3Cg fill='%23ffeb85' fill-opacity='.3'%3E%3Crect x='4' y='8' width='48' height='20'/%3E%3Crect x='60' y='64' width='48' height='20'/%3E%3C/g%3E%3C/svg%3E");
  /* A3 Sangle citron (séparateurs) */
  --pat-sangle-citron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='32' viewBox='0 0 16 32'%3E%3Crect y='2' width='16' height='24' fill='%23ffeb85'/%3E%3Cpath d='M0 4.5H16M0 23.5H16' stroke='%231e2a46' stroke-opacity='.35' stroke-width='1.5'/%3E%3Cpath d='M0 20L8 8L16 20' fill='none' stroke='%231e2a46' stroke-opacity='.22' stroke-width='2'/%3E%3C/svg%3E");
  /* Hachures « zone photo à fournir » */
  --pat-hachures: repeating-linear-gradient(45deg, var(--c-ciel) 0 12px, #d3dfee 12px 14px);
}

/* Variantes par public : changer data-public suffit */
[data-public="scolaires"] { --public: var(--c-citron); --public-pale: var(--c-citron-pale); --public-label: "Scolaires"; }
[data-public="ados"]      { --public: var(--c-peche);  --public-pale: var(--c-peche-pale);  --public-label: "Ados & CSE"; }
[data-public="treks"]     { --public: var(--c-lilas);  --public-pale: var(--c-lilas-pale);  --public-label: "Treks adultes"; }

/* ---- Bases communes ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; color-scheme: light; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--c-creme);
  color: var(--c-encre);
  font-family: var(--f-texte);
  font-size: var(--t-texte);
  line-height: var(--lh-texte);
  -webkit-font-smoothing: antialiased;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.sur-sombre :focus-visible { outline-color: var(--focus-sur-sombre); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
