/* Police Host Grotesk hébergée sur le site (licence libre SIL OFL) : aucune requête vers Google, aucune adresse IP de visiteur transmise */
@font-face { font-family: "Host Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/host-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Host Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/host-grotesk-latin.woff2") format("woff2");
  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; }
/* Base commune aux pages du site : accueil, showreel, projet */
:root {
  color-scheme: dark;
  --bg: #0b0b0a; --ink: #f3f1ec; --muted: #9c9590; --accent: #e8432a;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --m: 40px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font-family: "Host Grotesk", sans-serif; font-size: 17px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
/* v2 : une seule police ; les petites étiquettes sont en texte normal, lisible (14px), plus de capitales espacées */
.mono { font-size: 14px; letter-spacing: 0; }
/* v2 : courbes d’Emil Kowalski, sortie franche */
:root { --ease-out: cubic-bezier(0.23, 1, 0.32, 1); }
::selection { background: var(--accent); color: #0b0b0a; }

/* focus clavier : un contour visible sur le fond noir */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* barre du haut */
.bar { position: absolute; z-index: 5; left: var(--m); right: var(--m); top: 28px; display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.bar nav { display: flex; gap: 28px; align-items: center; }
.bar a { transition: opacity .24s var(--ease); }
.bar a:hover { opacity: .6; }

/* boutons pastilles */
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; font-size: 15px; font-weight: 500; transition: background .3s var(--ease), color .3s var(--ease), transform .14s var(--ease); }
.pill:active { transform: scale(.97); }
.pill.light { background: var(--ink); color: var(--bg); }
.pill.dark { background: #1a1917; color: var(--ink); }
@media (hover: hover) { .pill.dark:hover { background: #262522; } }
.pill svg { width: 18px; height: 18px; flex: none; }

/* bouton son : une pastille avec icône, qui passe à l'orange quand le son est coupé pour attirer l'œil */
.sound { position: relative; }
.sound .on-ico { display: none; }
.sound[aria-pressed="true"] .on-ico { display: block; }
.sound[aria-pressed="true"] .off-ico { display: none; }
.sound[aria-pressed="false"] { background: var(--accent); color: #0b0b0a; }
.sound[aria-pressed="false"]::after { content: ""; position: absolute; inset: -4px; border-radius: 999px; border: 2px solid var(--accent); animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.18); } }

@media (max-width: 860px) { :root { --m: 20px; } }
/* v2 : mouvement réduit = on garde les fondus (ils aident à comprendre), on retire les déplacements */
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transform: none !important; } }

/* Mentions légales : petit encadré noir replié tout en bas ; le contenu n’apparaît qu’au clic */
.legal { --red: #ff2a1a; display: flex; justify-content: flex-start; padding: 16px; background: #000; scroll-snap-align: end; }
.legal details { background: #000; border-radius: 4px; padding: 10px 14px; max-width: 100%; }
.legal summary { color: var(--red); font-size: 13px; cursor: pointer; list-style: none; }
.legal summary::-webkit-details-marker { display: none; }
.legal summary::after { content: " +"; }
.legal details[open] summary::after { content: " −"; }
.legal dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px 32px; margin-top: 16px; width: min(900px, calc(100vw - 60px)); }
.legal dt { color: var(--red); font-size: 13px; margin-bottom: 6px; }
.legal dd { font-size: 14px; line-height: 1.5; color: #cfcac3; }
.legal .todo { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }

/* toucher : pas de zoom au double-tap ; sur téléphone, zones de toucher agrandies sans bouger la mise en page */
a, button, summary { touch-action: manipulation; }
@media (max-width: 860px) { .bar a:not(.chip) { padding: 12px 8px; margin: -12px -8px; } .legal summary { padding: 14px 0; } }
