/* Meilleur Anim' — pages de contenu du site. Même charte que l'appli : aplats pop, contours épais, ombres dures. */
:root {
  color-scheme: light;
  --creme: #FFF6E5;
  --papier: #FFFDF8;
  --ink: #1C1A24;
  --ink-soft: #5B5666;
  --tomate: #FF6B4A;
  --soleil: #FFC93C;
  --menthe: #3DD6B5;
  --lilas: #A98BFF;
  --ciel: #4DA3FF;
  --pomme: #8BDB5A;
  --bonbon: #FF8FC7;
  --font-display: 'Fredoka', 'Arial Rounded MT Bold', 'Trebuchet MS', sans-serif;
  --font-body: 'Nunito', 'Segoe UI', Roboto, Arial, sans-serif;
  --bord: 3px solid var(--ink);
  --ombre: 5px 5px 0 var(--ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--creme); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--tomate); }
:focus-visible { outline: 3px solid var(--ciel); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; }
.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 20px; }
.etroit { max-width: 780px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); font-weight: 700; margin-top: 40px; margin-bottom: 12px; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 12px; }
ul, ol { padding-left: 22px; margin: 0 0 12px; }
li { margin-block: 4px; }
.lede { font-size: 1.12rem; max-width: 40em; }
.muted { color: var(--ink-soft); }
.petit { font-size: .88rem; }

/* En-tête */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--creme); border-bottom: var(--bord); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 8px; }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; white-space: nowrap; }
.marque img { width: 44px; height: 44px; }
.nav { display: flex; gap: 18px; font-weight: 800; font-size: .92rem; flex-wrap: wrap; }
.nav a { text-decoration: none; }
.nav a[aria-current="page"], .nav a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; text-decoration-color: var(--tomate); }
@media (max-width: 960px) { .nav { display: none; } }

.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; color: var(--ink); border: var(--bord); border-radius: 14px; box-shadow: var(--ombre); background: var(--soleil); padding: 10px 18px; transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.btn.sombre { background: var(--ink); color: var(--creme); box-shadow: 5px 5px 0 var(--tomate); }
.top .btn { padding: 7px 13px; font-size: .88rem; box-shadow: 3px 3px 0 var(--ink); }

/* Fil d'Ariane */
.ariane { font-size: .86rem; font-weight: 700; padding-top: 22px; }
.ariane ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ariane li { margin: 0; }
.ariane li + li::before { content: "›"; margin-right: 6px; color: var(--ink-soft); }

/* Tête de page */
.tete { padding-block: 18px 30px; display: flex; flex-direction: column; gap: 14px; }
.pastilles { display: flex; flex-wrap: wrap; gap: 8px; }
.pastille { border: 2px solid var(--ink); border-radius: 999px; padding: 2px 11px; font-weight: 800; font-size: .82rem; background: var(--papier); }

/* Cartes */
.carte { background: var(--papier); border: var(--bord); border-radius: 20px; box-shadow: var(--ombre); padding: 18px 20px; min-width: 0; }
.carte > :last-child { margin-bottom: 0; }
.grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grille.deux { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grille { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grille, .grille.deux { grid-template-columns: 1fr; } }
a.carte { text-decoration: none; display: flex; flex-direction: column; gap: 6px; transition: transform .12s, box-shadow .12s; }
a.carte:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
a.carte h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: transparent; }
a.carte:hover h3 { text-decoration-color: var(--tomate); }
.carte .meta { font-size: .82rem; font-weight: 700; color: var(--ink-soft); }

.fiche { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.fiche aside { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 860px) { .fiche { grid-template-columns: 1fr; } .fiche aside { position: static; } }
.fiche section { min-width: 0; }
.accroche { border: 2px dashed var(--ink); border-radius: 16px; background: var(--soleil); padding: 14px 16px; font-size: 1.05rem; font-style: italic; }
.etapes { counter-reset: e; list-style: none; padding: 0; }
.etapes li { counter-increment: e; display: grid; grid-template-columns: 34px 1fr; gap: 12px; margin-bottom: 12px; }
.etapes li::before { content: counter(e); font-family: var(--font-display); font-weight: 700; width: 30px; height: 30px; border: 2px solid var(--ink); border-radius: 50%; display: grid; place-items: center; background: var(--menthe); }
dl.faits { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: .95rem; }
dl.faits dt { font-weight: 800; }
dl.faits dd { margin: 0; }
.alerte { border: var(--bord); border-radius: 16px; background: var(--tomate); padding: 12px 16px; font-weight: 700; }
.cta-app { background: var(--lilas); }
.cta-app h3 { margin-bottom: 6px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; background: var(--papier); }
th, td { border: 2px solid var(--ink); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--ciel); font-family: var(--font-display); font-weight: 600; }
.table-wrap { overflow-x: auto; margin-bottom: 14px; }
.sources { font-size: .88rem; }
.sources a { word-break: break-word; }

/* Formulaires des calculateurs */
.calc { display: flex; flex-direction: column; gap: 14px; }
.champ { display: flex; flex-direction: column; gap: 4px; font-weight: 800; font-size: .92rem; }
.champ input, .champ select { font: inherit; font-weight: 600; border: var(--bord); border-radius: 12px; padding: 9px 12px; background: var(--papier); color: var(--ink); max-width: 100%; }
.champs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 520px) { .champs { grid-template-columns: 1fr; } }
.resultat { border: var(--bord); border-radius: 18px; background: var(--pomme); padding: 16px 18px; box-shadow: var(--ombre); }
.resultat.ko { background: var(--tomate); }
.resultat .gros { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; line-height: 1; font-variant-numeric: tabular-nums; }

/* FAQ */
details { border: var(--bord); border-radius: 16px; background: var(--papier); padding: 12px 16px; margin-bottom: 12px; }
details[open] { box-shadow: var(--ombre); }
summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
details p { margin-top: 8px; }

/* Pied */
footer { margin-top: 64px; background: var(--ink); color: var(--creme); padding-block: 40px 30px; }
footer .wrap { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 28px; }
footer h2 { font-size: 1rem; margin: 0 0 8px; color: var(--soleil); }
footer ul { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
footer .bas { grid-column: 1 / -1; font-size: .8rem; opacity: .75; }
footer .marque img { background: var(--creme); border-radius: 10px; padding: 3px; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr 1fr; } footer .wrap > :first-child { grid-column: 1 / -1; } }
