:root {
  --fond: #f8f7f4; --carte: #ffffff; --encre: #1c1a2e; --doux: #5f5b72; --trait: #e7e4ee;
  --nuit: #1e1b4b; --nuit-2: #312e81; --accent: #e11d48; --accent-doux: #ffe4e8; --or: #f59e0b;
  --ombre: 0 1px 2px rgb(20 16 60 / .06), 0 8px 24px rgb(20 16 60 / .07);
  --rayon: 16px; color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --fond: #0f0e1a; --carte: #1a1829; --encre: #f1effa; --doux: #aaa5c2; --trait: #2c2942;
    --accent: #fb7185; --accent-doux: #3a1823; --ombre: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px rgb(0 0 0 / .35); color-scheme: dark; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--encre);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
svg { fill: currentColor; }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); margin: 0 0 10px; }
h2 { font-size: 1.35rem; margin: 0 0 14px; }
.cadre { max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
.petit { font-size: .82rem; color: var(--doux); }

/* En-tête */
.haut { position: sticky; top: 0; z-index: 10; background: rgb(255 255 255 / .85); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--trait); }
@media (prefers-color-scheme: dark) { .haut { background: rgb(15 14 26 / .85); } }
.haut .cadre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 12px; }
.marque { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--encre); text-decoration: none; letter-spacing: -0.02em; }
.logo { width: 34px; height: 34px; border-radius: 10px; background: var(--nuit); color: #fb7185; display: grid; place-items: center; }
.logo svg { width: 22px; height: 22px; }
.menu { display: flex; gap: 6px; flex-wrap: wrap; }
.menu a { color: var(--doux); text-decoration: none; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.menu a:hover { color: var(--encre); background: var(--trait); }
main { padding-block: 24px 64px; }
.fil { font-size: .85rem; color: var(--doux); margin: 4px 0 18px; }
.fil a { color: var(--doux); text-decoration: none; } .fil a:hover { color: var(--accent); }
.fil span { margin-inline: 4px; }

/* Héros */
.heros { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center;
  background: radial-gradient(120% 140% at 0% 0%, #4338ca 0%, var(--nuit) 55%, #120f33 100%);
  color: #fff; border-radius: 28px; padding: clamp(28px, 5vw, 56px); margin-top: 8px; overflow: hidden; }
.surtitre { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: #fda4af; margin: 0 0 12px; }
.heros h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.3rem); }
.heros h1 span { color: #fda4af; }
.heros-texte > p { color: #d6d3f0; font-size: 1.08rem; max-width: 34em; }
.recherche { position: relative; margin-top: 22px; max-width: 560px; }
.recherche input { width: 100%; font: inherit; font-size: 1.08rem; padding: 16px 20px; border-radius: 14px; border: 0;
  background: #fff; color: #1c1a2e; box-shadow: 0 10px 30px rgb(0 0 0 / .25); }
.recherche input:focus { outline: 3px solid #fda4af; }
#res { list-style: none; margin: 8px 0 0; padding: 0; background: #fff; border-radius: 12px; overflow: hidden; position: absolute; inset-inline: 0; z-index: 5; box-shadow: var(--ombre); }
#res a, #res .vide { display: block; padding: 11px 18px; text-decoration: none; color: #1c1a2e; }
#res a:hover, #res a:focus { background: #ffe4e8; }
#res small { color: #6b6785; }
.raccourcis { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.raccourcis a { color: #fff; text-decoration: none; font-size: .88rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .18); }
.raccourcis a:hover { background: rgb(255 255 255 / .22); }
.heros-mosaique { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; transform: rotate(-4deg); }
.heros-mosaique img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; box-shadow: 0 12px 30px rgb(0 0 0 / .35); }
.heros-mosaique img:nth-child(3n+2) { transform: translateY(18px); }

/* Chiffres */
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0 8px; }
.chiffres div { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 16px 18px; }
.chiffres strong { display: block; font-size: 1.6rem; letter-spacing: -0.03em; }
.chiffres span { color: var(--doux); font-size: .9rem; }

/* Rayons et cartes */
.rayon { margin-top: 44px; }
.rayon-tete { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.rayon-tete h2 { margin: 0; } .rayon-tete p { margin: 4px 0 0; color: var(--doux); }
.rayon-tete a { font-weight: 700; text-decoration: none; white-space: nowrap; }
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.carte { display: flex; flex-direction: column; background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon);
  overflow: hidden; text-decoration: none; color: var(--encre); box-shadow: var(--ombre); transition: transform .18s, box-shadow .18s; }
.carte:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgb(20 16 60 / .08), 0 16px 36px rgb(20 16 60 / .14); }
.visuel { position: relative; aspect-ratio: 4 / 3; background: var(--trait); overflow: hidden; }
.visuel img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--or); color: #1c1a2e; font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em; padding: 4px 9px; border-radius: 999px; box-shadow: 0 2px 8px rgb(0 0 0 / .2); }
.couv { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 16px; color: #fff;
  background: linear-gradient(150deg, hsl(var(--t) 70% 52%), hsl(calc(var(--t) + 40) 65% 30%)); position: relative; }
.couv svg { position: absolute; top: 14px; right: 14px; width: 38%; height: auto; opacity: .22; }
.couv span { font-weight: 800; font-size: 1.15rem; line-height: 1.15; letter-spacing: -0.01em; text-shadow: 0 1px 8px rgb(0 0 0 / .25); }
.carte .txt { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.carte strong { line-height: 1.25; }
.carte em { font-style: normal; font-size: .8rem; color: var(--accent); font-weight: 600; }
.faits { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: auto; }
.fait { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--doux); }
.fait svg { width: 15px; height: 15px; opacity: .8; }
.faits.grands .fait { font-size: .95rem; background: var(--carte); border: 1px solid var(--trait); padding: 6px 12px; border-radius: 999px; color: var(--encre); }

/* Étapes */
.etapes { margin-top: 48px; background: var(--carte); border: 1px solid var(--trait); border-radius: 24px; padding: 28px; }
.etapes ol { list-style: none; counter-reset: e; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0; margin: 0; }
.etapes li { counter-increment: e; display: flex; flex-direction: column; gap: 4px; }
.etapes li::before { content: counter(e); width: 34px; height: 34px; border-radius: 10px; background: var(--accent-doux); color: var(--accent);
  font-weight: 800; display: grid; place-items: center; margin-bottom: 6px; }
.etapes span { color: var(--doux); }

/* Fiche */
.fiche .entete { display: grid; grid-template-columns: minmax(0, 480px) 1fr; gap: 36px; align-items: start; }
.visuel.grand { border-radius: 22px; aspect-ratio: 4 / 3; box-shadow: var(--ombre); }
.visuel.grand .couv span { font-size: 2rem; }
.etiquettes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.etiquettes a { font-size: .78rem; font-weight: 700; text-decoration: none; color: var(--accent); background: var(--accent-doux); padding: 4px 10px; border-radius: 999px; }
.par { color: var(--doux); margin: 0 0 14px; } .par a { color: inherit; }
.acheter { margin-top: 24px; background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 18px; box-shadow: var(--ombre); }
.acheter h2 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin-bottom: 12px; }
.acheter h2 svg { width: 20px; height: 20px; color: var(--accent); }
.boutiques { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.boutiques a { display: flex; flex-direction: column; padding: 12px 16px; border-radius: 12px; background: var(--nuit); color: #fff; text-decoration: none; transition: background .15s; }
.boutiques a:hover { background: var(--nuit-2); }
.boutiques a span { font-size: .8rem; color: #c7c4ea; }
.acheter .petit { margin: 10px 0 0; }
.colonnes { display: grid; grid-template-columns: 1fr 320px; gap: 36px; margin-top: 40px; }
.presentation p { margin: 0 0 14px; }
aside dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; background: var(--carte);
  border: 1px solid var(--trait); border-radius: var(--rayon); padding: 18px 20px; }
aside dt { color: var(--doux); } aside dd { margin: 0; font-weight: 600; } aside dd a { color: inherit; }
.source { font-size: .8rem; color: var(--doux); border-top: 1px solid var(--trait); padding-top: 12px; }
.source a { color: inherit; }
.proches { margin-top: 48px; }
.sous-titre { color: var(--doux); margin: -8px 0 16px; }

/* Pages de liste */
.tete-page { margin-bottom: 22px; } .tete-page p { color: var(--doux); margin: 0; }
.tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tuile { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 20px; color: #fff; text-decoration: none; min-height: 150px;
  background: linear-gradient(145deg, hsl(var(--t) 65% 50%), hsl(calc(var(--t) + 40) 60% 28%)); box-shadow: var(--ombre); transition: transform .18s; }
.tuile:hover { transform: translateY(-3px); }
.tuile strong { font-size: 1.3rem; } .tuile span { opacity: .9; } .tuile em { font-style: normal; margin-top: auto; font-weight: 700; opacity: .85; }
.liste { columns: 3 240px; padding-left: 18px; } .liste li { margin-bottom: 4px; } small { color: var(--doux); }
.texte { max-width: 760px; } .texte h2 { margin-top: 28px; }

/* Pied */
.bas { border-top: 1px solid var(--trait); background: var(--carte); color: var(--doux); font-size: .92rem; }
.colonnes-bas { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; padding-block: 36px 20px; }
.colonnes-bas h3 { color: var(--encre); font-size: .95rem; margin: 6px 0 10px; }
.colonnes-bas a:not(.marque) { display: block; color: var(--doux); text-decoration: none; margin-bottom: 6px; }
.colonnes-bas a:hover { color: var(--accent); }
.copyright { border-top: 1px solid var(--trait); padding-block: 14px 24px; font-size: .82rem; }

@media (max-width: 900px) {
  .heros { grid-template-columns: 1fr; } .heros-mosaique { display: none; }
  .chiffres { grid-template-columns: repeat(2, 1fr); }
  .etapes ol { grid-template-columns: 1fr; }
  .fiche .entete, .colonnes { grid-template-columns: 1fr; }
  .colonnes-bas { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .haut { position: static; } .menu { width: 100%; flex-wrap: nowrap; overflow-x: auto; margin-inline: -8px; } .menu a { padding: 4px 8px; font-size: .9rem; white-space: nowrap; } .grille { grid-template-columns: repeat(2, 1fr); gap: 12px; } .couv span { font-size: 1rem; } .colonnes-bas { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
