/* Centre Jean Piaget — tokens du design system (CLAUDE.md §6).
   Chargé par toutes les pages. Ne contient que des variables et les polices. */

/* Polices auto-hébergées (sous-ensemble latin, licences OFL dans /fonts). */
@font-face {
  font-family: "Unbounded";
  src: url("/fonts/unbounded-latin.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Nunito : uniquement les lettres du mot-symbole « centre JEAN PIAGET ». */
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-logo.woff2") format("woff2");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+20, U+41, U+45, U+47, U+49-4A, U+4E, U+50, U+54, U+63, U+65, U+6E, U+72, U+74;
}

:root {
  /* Couleurs de la marque */
  --sage: #7FA38A;
  --ochre: #E3B25C;
  --blue: #2E4A5C;
  --ink: #1E3341;
  --cream: #F4F5EF;
  --line: #D7DFD8;
  --muted: #53646F;
  --white: #FFFFFF;
  /* Teintes de cadre photo */
  --tint-ochre: #F3E8D2;
  --tint-sage: #E1EBE4;
  --tint-blue: #DEE6EC;
  /* Dérivées (contraste AA) : sauge lisible sur clair, texte secondaire sur sombre */
  --sage-deep: #4F6E58;
  --on-dark-muted: #C3D0D8;
  --on-dark-line: rgb(255 255 255 / .18);

  /* Typographie */
  /* Pas de repli local() : sa recherche de police coûtait ~1 s de tâches longues (CPU ÷ 4). */
  --font-title: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-text: "Figtree", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-logo: "Nunito", "Figtree", system-ui, sans-serif;

  --fs-display: clamp(2.5rem, 11.2vw, 5.5rem);          /* titre du hero (mobile) */
  --fs-h2: clamp(1.75rem, 1rem + 3.4vw, 4.5rem);         /* titre de section */
  --fs-h2-l: clamp(1.6rem, .9rem + 2.6vw, 3.6rem);       /* titre de section long */
  --fs-h2-xl: clamp(1.5rem, 7.6vw, 3.6rem);              /* appel final (« CONNAISSANCE ? » = 11,3 em) */
  --fs-page: clamp(1.55rem, 7.6vw, 3.5rem);              /* titre des pages intérieures (« CONFIDENTIALITÉ » = 11,3 em) */
  --fs-h3: clamp(1.3rem, 1.1rem + .8vw, 1.75rem);
  --fs-lead: clamp(1.125rem, 1.02rem + .45vw, 1.4rem);
  --fs-body: clamp(1rem, .97rem + .15vw, 1.0625rem);
  --fs-small: .875rem;
  --fs-overline: .78rem;
  --tracking-title: -.025em;
  --tracking-overline: .16em;
  --lh-title: 1.02;

  /* Espacements */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;
  --section-y: clamp(5rem, 3rem + 7vw, 10rem);
  --gutter: clamp(1rem, .4rem + 2.6vw, 2.5rem);
  --grid-gap: clamp(1rem, .5rem + 1.6vw, 2rem);
  --max: 1320px;
  --max-wide: 1560px;
  --header-h: 4.25rem;

  /* Rayons */
  --radius-s: .5rem;
  --radius-m: 1rem;
  --radius-l: 1.75rem;
  --radius-pill: 999px;

  /* Animation : durées et courbes */
  --dur-fast: 180ms;
  --dur-base: 420ms;
  --dur-slow: 900ms;
  --dur-reveal: 1000ms;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-soft: cubic-bezier(.2, .7, .2, 1);
  --stagger: 80ms;
}

@media (min-width: 1024px) {
  :root { --header-h: 5rem; --fs-h2-xl: clamp(2.75rem, 4.3vw, 4rem); --fs-page: clamp(2.4rem, 4.8vw, 4.25rem); }
}
