/* =====================================================================
   SOREVYN — feuille de style

   CSS écrit à la main, sans framework ni étape de compilation : le fichier
   déposé sur le serveur est celui que le navigateur reçoit. Sur un
   hébergement mutualisé, c'est décisif — aucune commande à lancer pour
   mettre à jour le style.

   Le site est sombre par choix, pas par mode : les photos de sneakers,
   souvent détourées sur fond clair, ressortent davantage.
   ===================================================================== */

:root {
    /* Fonds, du plus profond au plus clair. */
    --ink: #0a0a0a;
    --surface: #121212;
    --surface-2: #1a1a1a;
    --surface-3: #232323;

    /* Textes, du plus lisible au plus discret. */
    --fg: #f5f5f5;
    --fg-muted: #a3a3a3;
    --fg-subtle: #6b6b6b;

    --line: #2a2a2a;
    --line-strong: #3d3d3d;

    --accent: #d4a94f;
    --success: #4ade80;
    --warning: #fbbf24;
    --danger: #f87171;

    --radius: 2px;
    --radius-lg: 4px;

    --font-display: 'Archivo', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    --page: 1280px;
    --header-height: 64px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img,
picture,
video {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
}

p {
    margin: 0;
}

/* Accessibilité --------------------------------------------------------- */

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: var(--fg);
    color: var(--ink);
    padding: 0.75rem 1.25rem;
    font-weight: 600;
}

.skip-link:focus {
    left: 0;
}

/* Le contour de focus n'est jamais supprimé : sans lui, la navigation au
   clavier devient impossible à suivre. */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Bandeau d'annonces ---------------------------------------------------- */

.announce {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fg-muted);
}

.announce__track {
    display: flex;
    gap: 3rem;
    padding: 0.5rem 0;
    width: max-content;
    animation: defile 40s linear infinite;
}

.announce__item {
    white-space: nowrap;
}

.announce:hover .announce__track {
    animation-play-state: paused;
}

@keyframes defile {
    from { transform: translateX(0); }
    /* -50 % : le contenu étant dupliqué, la boucle est invisible. */
    to { transform: translateX(-50%); }
}

/* En-tête --------------------------------------------------------------- */

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.header__bar {
    max-width: var(--page);
    margin: 0 auto;
    padding: 0 1rem;
    height: var(--header-height);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0.22em;
    white-space: nowrap;
}

.nav {
    display: none;
    gap: 1.5rem;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fg-muted);
}

.nav a {
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.2s var(--ease);
}

.nav a:hover {
    color: var(--fg);
}

/* Soulignement qui se déploie depuis la gauche. */
.nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
    width: 100%;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}

.nav a:hover::after {
    transform: scaleX(1);
}

.search {
    flex: 1;
    min-width: 0;
    display: none;
}

.search input {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--fg);
    padding: 0.55rem 0.9rem;
    font: inherit;
    font-size: 14px;
}

.search input::placeholder {
    color: var(--fg-subtle);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.icon-link {
    position: relative;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    color: var(--fg-muted);
    font-size: 17px;
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.icon-link:hover {
    color: var(--fg);
    background: var(--surface-2);
}

.badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--fg);
    color: var(--ink);
    font-size: 10px;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.header__burger {
    display: grid;
    gap: 4px;
    width: 38px;
    height: 38px;
    padding: 10px 8px;
    background: none;
    border: 0;
    cursor: pointer;
}

.header__burger span {
    display: block;
    height: 1.5px;
    background: var(--fg);
    transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.header__burger[aria-expanded='true'] span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
}

.header__burger[aria-expanded='true'] span:nth-child(2) {
    opacity: 0;
}

.header__burger[aria-expanded='true'] span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
}

.menu-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 1rem 1.25rem;
    border-top: 1px solid var(--line);
    background: var(--ink);
}

.menu-mobile[hidden] {
    display: none;
}

.menu-mobile a {
    padding: 0.6rem 0;
    font-size: 14px;
    color: var(--fg-muted);
}

.menu-mobile a:hover {
    color: var(--fg);
}

.menu-mobile hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 0.5rem 0;
}

@media (min-width: 900px) {
    .nav,
    .search {
        display: flex;
    }

    .header__burger {
        display: none;
    }

    .menu-mobile {
        display: none !important;
    }
}

/* Messages -------------------------------------------------------------- */

.flash-zone {
    max-width: var(--page);
    margin: 1rem auto 0;
    padding: 0 1rem;
    display: grid;
    gap: 0.5rem;
}

.flash {
    padding: 0.7rem 1rem;
    border-radius: var(--radius);
    border: 1px solid;
    font-size: 14px;
    animation: apparait 0.35s var(--ease) both;
}

.flash--success { border-color: rgba(74, 222, 128, 0.4); background: rgba(74, 222, 128, 0.08); color: var(--success); }
.flash--error   { border-color: rgba(248, 113, 113, 0.4); background: rgba(248, 113, 113, 0.08); color: var(--danger); }
.flash--info    { border-color: var(--line-strong); background: var(--surface); color: var(--fg-muted); }

@keyframes apparait {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}

/* Structure de page ----------------------------------------------------- */

.page {
    max-width: var(--page);
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

.page__head {
    margin-bottom: 2rem;
}

.page__head h1 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.muted { color: var(--fg-muted); }
.subtle { color: var(--fg-subtle); }
.tabular { font-variant-numeric: tabular-nums; }

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 12px;
    color: var(--fg-subtle);
    margin-bottom: 1.5rem;
    list-style: none;
    padding: 0;
}

.breadcrumb a:hover { color: var(--fg); }

/* Boutons --------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: var(--fg);
    color: var(--ink);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s var(--ease), transform 0.15s var(--ease), opacity 0.2s;
}

.btn:hover { background: #e0e0e0; }
.btn:active { transform: translateY(1px); }

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn--outline {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--fg);
}

.btn--outline:hover {
    background: var(--surface-2);
    border-color: var(--fg-subtle);
}

.btn--ghost {
    background: transparent;
    color: var(--fg-muted);
    padding: 0.5rem 0.75rem;
}

.btn--ghost:hover { color: var(--fg); background: var(--surface-2); }

.btn--sm { padding: 0.55rem 1rem; font-size: 11px; }
.btn--block { width: 100%; }
.btn--danger { background: var(--danger); color: #1a0505; }

/* Champs ---------------------------------------------------------------- */

.field { display: grid; gap: 0.35rem; margin-bottom: 1rem; }

.field label {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fg-muted);
}

.field .required { color: var(--danger); }

.field input,
.field select,
.field textarea {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--fg);
    padding: 0.7rem 0.85rem;
    font: inherit;
    font-size: 14px;
    transition: border-color 0.2s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--fg-subtle);
}

.field textarea { min-height: 120px; resize: vertical; }

.field__error {
    color: var(--danger);
    font-size: 12px;
}

.field-row { display: flex; gap: 0.5rem; }
.field-row input { flex: 1; }

.field-grid {
    display: grid;
    gap: 0 1rem;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 640px) {
    .field-grid { grid-template-columns: 1fr; }
}

/* Grille de produits ---------------------------------------------------- */

.grid-products {
    display: grid;
    gap: 1.5rem 1rem;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.card { position: relative; }

.card__media {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-2);
}

.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.card:hover .card__media img { transform: scale(1.05); }

.card__badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius);
    background: var(--fg);
    color: var(--ink);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.card__badge--sale { background: var(--danger); color: #1a0505; }
.card__badge--muted { background: var(--surface-3); color: var(--fg-muted); }

.card__body { padding-top: 0.6rem; }

.card__brand {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fg-subtle);
}

.card__name {
    font-size: 14px;
    font-weight: 500;
    margin-top: 0.1rem;
}

.card__price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 0.3rem;
    font-size: 14px;
}

.card__price del { color: var(--fg-subtle); font-size: 12px; }
.card__price .off { color: var(--danger); font-size: 12px; }

/* Fiche produit --------------------------------------------------------- */

.product {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .product { grid-template-columns: 1.1fr 1fr; gap: 3rem; }
}

.gallery__main {
    aspect-ratio: 1;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface-2);
}

.gallery__main img { width: 100%; height: 100%; object-fit: cover; }

.gallery__thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.gallery__thumb {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface-2);
    cursor: pointer;
    padding: 0;
    transition: border-color 0.2s var(--ease);
}

.gallery__thumb[aria-current='true'] { border-color: var(--fg); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

.price-line {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin: 1rem 0 1.5rem;
}

.price-line .now { font-size: 1.5rem; font-weight: 600; }
.price-line del { color: var(--fg-subtle); }
.price-line .off { color: var(--danger); font-size: 13px; }

.option-group { margin-bottom: 1.5rem; }

.option-group__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.6rem;
}

.option-group__head h2 {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fg-muted);
    font-family: var(--font-body);
    font-weight: 600;
}

.swatches { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.swatch {
    position: relative;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface-2);
    cursor: pointer;
    transition: border-color 0.2s var(--ease), transform 0.15s var(--ease);
}

.swatch:hover { transform: translateY(-2px); }
[data-swatch]:checked + .swatch {
    border-color: var(--fg);
    box-shadow: 0 0 0 1px var(--fg);
}

/* Le contour de focus doit suivre l'étiquette : le bouton radio est masqué. */
[data-swatch]:focus-visible + .swatch {
    outline: 2px solid var(--fg);
    outline-offset: 2px;
}
.swatch img { width: 100%; height: 100%; object-fit: cover; }

/* Coloris épuisé : barre diagonale, plus lisible qu'un simple grisé. */
.swatch--out::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top right,
        transparent calc(50% - 1px), var(--fg-subtle) 50%, transparent calc(50% + 1px));
}

.sizes {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
}

.size {
    display: block;
    text-align: center;
    padding: 0.7rem 0.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-2);
    color: var(--fg);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

[data-size]:not(:disabled) + .size:hover { border-color: var(--fg-subtle); }
[data-size]:checked + .size {
    background: var(--fg);
    color: var(--ink);
    border-color: var(--fg);
}

[data-size]:focus-visible + .size {
    outline: 2px solid var(--fg);
    outline-offset: 2px;
}

/* Taille présente dans ce coloris mais épuisée : visible, non cliquable. */
[data-size]:disabled + .size,
.size--out {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
}


.reassurance {
    display: grid;
    gap: 0.4rem;
    margin-top: 1.25rem;
    font-size: 13px;
    color: var(--fg-muted);
}

.reassurance span::before { content: '✓ '; color: var(--success); }

.disclosure {
    border-top: 1px solid var(--line);
    padding: 1rem 0;
}

.disclosure summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    list-style: none;
}

.disclosure summary::-webkit-details-marker { display: none; }

.disclosure summary::after {
    content: '+';
    color: var(--fg-subtle);
    transition: transform 0.25s var(--ease);
}

.disclosure[open] summary::after { transform: rotate(45deg); }

.disclosure__body {
    margin-top: 0.75rem;
    color: var(--fg-muted);
    font-size: 14px;
    white-space: pre-line;
}

.notice-auth {
    border: 1px solid rgba(212, 169, 79, 0.3);
    background: rgba(212, 169, 79, 0.06);
    border-radius: var(--radius);
    padding: 1rem;
    margin: 1.5rem 0;
}

.notice-auth h2 {
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--accent);
    margin-bottom: 0.4rem;
}

/* Panier ---------------------------------------------------------------- */

.cart-layout {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    align-items: start;
}

@media (min-width: 900px) {
    .cart-layout { grid-template-columns: 1fr 360px; gap: 3rem; }
    .cart-summary { position: sticky; top: calc(var(--header-height) + 1rem); }
}

.cart-lines { list-style: none; margin: 0; padding: 0; }

.cart-line {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--line);
}

.cart-line__media {
    flex: 0 0 auto;
    width: 96px;
    height: 96px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface-2);
}

.cart-line__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cart-line__meta { font-size: 12px; color: var(--fg-muted); margin-top: 0.2rem; }

.cart-line__foot {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-top: auto;
    padding-top: 0.75rem;
}

.qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.qty button {
    width: 34px;
    height: 34px;
    background: none;
    border: 0;
    color: var(--fg-muted);
    font-size: 16px;
    cursor: pointer;
}

.qty button:hover { color: var(--fg); }
.qty button:disabled { opacity: 0.3; cursor: not-allowed; }
.qty span { min-width: 34px; text-align: center; font-size: 14px; }

.cart-summary__box {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 1.25rem;
}

.cart-summary__box h2 {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-family: var(--font-body);
    margin-bottom: 1rem;
}

.sum-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
    font-size: 14px;
}

.sum-row--total {
    border-top: 1px solid var(--line);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    font-weight: 600;
    font-size: 16px;
}

.progress-note {
    margin-top: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius);
    background: var(--surface-2);
    font-size: 12px;
    color: var(--fg-muted);
}

/* États vides et erreurs ------------------------------------------------ */

.empty {
    text-align: center;
    padding: 4rem 1rem;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    color: var(--fg-muted);
}

.error-page {
    min-height: 60vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 3rem 1rem;
}

.error-page__code {
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--fg-subtle);
}

.reference {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: ui-monospace, monospace;
    font-size: 12px;
    color: var(--fg-subtle);
}

/* Bandeau d'accueil ----------------------------------------------------- */

.hero {
    position: relative;
    min-height: min(70vh, 560px);
    display: flex;
    align-items: flex-end;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

.hero__inner {
    position: relative;
    max-width: var(--page);
    margin: 0 auto;
    padding: 3rem 1rem;
    width: 100%;
}

.hero h1 {
    font-size: clamp(2rem, 7vw, 4rem);
    text-transform: uppercase;
    max-width: 12ch;
}

.hero p { color: var(--fg-muted); max-width: 46ch; margin: 1rem 0 1.75rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.section { margin-top: 3.5rem; }

.section__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.5rem;
}

.section__head h2 {
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.section__head a {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fg-muted);
}

.section__head a:hover { color: var(--fg); }

/* Filtres de catalogue -------------------------------------------------- */

.catalog { display: grid; gap: 2rem; grid-template-columns: 1fr; }

@media (min-width: 900px) {
    .catalog { grid-template-columns: 220px 1fr; gap: 2.5rem; }
}

.filters { display: grid; gap: 1.5rem; align-self: start; }

.filters fieldset {
    border: 0;
    border-top: 1px solid var(--line);
    padding: 1rem 0 0;
    margin: 0;
}

.filters legend {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fg-muted);
    padding: 0;
}

.filters label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    font-size: 13px;
    color: var(--fg-muted);
    cursor: pointer;
}

.filters label:hover { color: var(--fg); }

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    min-width: 38px;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-align: center;
    font-size: 13px;
    color: var(--fg-muted);
}

.pagination a:hover { border-color: var(--fg-subtle); color: var(--fg); }
.pagination [aria-current='page'] { background: var(--fg); color: var(--ink); border-color: var(--fg); }

/* Pied de page ---------------------------------------------------------- */

.footer {
    border-top: 1px solid var(--line);
    margin-top: 4rem;
    background: var(--surface);
}

.footer__inner {
    max-width: var(--page);
    margin: 0 auto;
    padding: 3rem 1rem 2rem;
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.footer h2 {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-family: var(--font-body);
    margin-bottom: 0.75rem;
}

.footer a {
    display: block;
    padding: 0.2rem 0;
    font-size: 13px;
    color: var(--fg-muted);
}

.footer a:hover { color: var(--fg); }
.footer__brand { grid-column: span 2; }
.footer__brand .muted { font-size: 13px; margin-top: 0.5rem; max-width: 34ch; }

.footer__legal {
    max-width: var(--page);
    margin: 0 auto;
    padding: 1.25rem 1rem 2rem;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--fg-subtle);
    text-align: center;
}

/* Bloc « TODO_CONFIGURE » ----------------------------------------------- */

.todo {
    display: flex;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(251, 191, 36, 0.4);
    background: rgba(251, 191, 36, 0.08);
    border-radius: var(--radius);
    color: var(--warning);
    font-size: 14px;
    margin: 1rem 0;
}

/* Apparition au défilement.
   Uniquement si le navigateur sait animer selon la position dans la page :
   sans ce support, le contenu reste simplement visible. Une animation qui
   échoue ne doit jamais laisser une page blanche. */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .reveal {
            animation: monte 0.6s var(--ease) both;
            animation-timeline: view();
            animation-range: entry 0% entry 45%;
        }
    }
}

@keyframes monte {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
}

/* Le mouvement est une préférence système : on la respecte partout. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/*
 * L'attribut hidden doit toujours l'emporter.
 *
 * Le navigateur le traduit en display: none, mais la moindre règle de
 * composant qui fixe un display — .size { display: block }, par exemple —
 * passe devant et laisse l'élément à l'écran. Le script masquait bien les
 * tailles des autres coloris : elles restaient simplement visibles.
 */
[hidden] {
    display: none !important;
}
