/* koal-aac.com, le hub en cinq langues. Identité « l'onde » : canard, Soleil (seulement sur canard), Encre, Papier.
   Une seule police, Atkinson Hyperlegible Next, celle de l'app : lisible par tous, dans toutes les langues latines. */

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('fonts/atkinson-hyperlegible-next-latin-wght-italic.woff2') format('woff2');
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --canard: #07474D;
  --canard-fonce: #084A4F;
  --canard-voile: #E3EFEE;
  --soleil: #EEA700;
  --encre: #10282B;
  --encre-douce: #4E6366;
  --papier: #FFFBF3;
  --papier-fonce: #F6EBD1;
  --blanc: #FFFFFF;
  --trait: #DCE5E4;
  --rayon: 20px;
  --rayon-case: 16px;
  --police: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --marge: clamp(16px, 4vw, 40px);
  --ombre: 0 1px 2px rgba(16, 40, 43, .06), 0 8px 24px rgba(16, 40, 43, .08);
  --ombre-haute: 0 2px 4px rgba(16, 40, 43, .08), 0 18px 40px rgba(16, 40, 43, .14);
  --entree: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 400 1.0625rem/1.6 var(--police);
  font-feature-settings: 'kern';
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: .08em; }
h1, h2, h3 { margin: 0; line-height: 1.08; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--canard); outline-offset: 3px; border-radius: 6px; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.logo-koal { display: block; width: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* --- Racine : choix de la langue -------------------------------------------------------------- */
.racine { min-height: 100vh; display: grid; place-items: center; background: var(--canard); color: var(--blanc); }
.racine :focus-visible { outline-color: var(--soleil); }
.racine__corps { display: grid; justify-items: center; gap: 40px; padding: 40px var(--marge); width: 100%; max-width: 760px; }
.racine__corps .logo-koal { height: 69px; }
.racine__langues { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.racine__langues a { display: grid; gap: 4px; padding: 22px 24px; border-radius: var(--rayon); background: rgba(255, 255, 255, .1); text-decoration: none; transition: background-color .2s, transform .2s var(--entree); }
.racine__langues a:hover { background: rgba(255, 255, 255, .18); transform: translateY(-3px); }
.racine__langues b { font-size: clamp(1.4rem, 4vw, 1.9rem); letter-spacing: -.02em; color: var(--soleil); }
@media (max-width: 520px) { .racine__langues { grid-template-columns: 1fr; } }
