/* ===========================================================================
   Quiz cafetière — thème chats / tricot / rose
   ---------------------------------------------------------------------------
   Mobile-first : elle ouvrira ce site sur son téléphone. Tout ce qui est
   au-delà de 640 px est un enrichissement, jamais un prérequis.

   Contrastes vérifiés sur fond crème (#FFF8F3) :
     --cafe        #4A2E23  ~11,2:1  AAA
     --rose-fonce  #B03A5B  ~5,9:1   AA  (titres, liens)
     --framboise   #D23A66  ~4,6:1   AA  (bouton plein, texte blanc dessus)
     --sauge       #4F7D5E  ~4,8:1   AA
     --terracotta  #A8542F  ~4,7:1   AA
   Le rose vif #E8577F (~3,6:1) ne sert QUE d'aplat décoratif, jamais de texte.
   =========================================================================== */

:root {
  /* Palette */
  --creme: #FFF8F3;
  --creme-carte: #FFFDFB;
  --cafe: #4A2E23;
  --cafe-doux: #6B4A3C;
  --rose-poudre: #F9DDE4;
  --rose-pale: #FDEFF3;
  --rose-fonce: #B03A5B;
  --framboise: #D23A66;
  --rose-vif: #E8577F;
  --lavande: #C9A7EB;
  --sauge: #4F7D5E;
  --sauge-clair: #8FBF9F;
  --terracotta: #A8542F;
  --or: #E0A93C;

  /* Couleurs des illustrations */
  --ill-metal: #C3C7CC;
  --ill-metal-dark: #9AA0A7;
  --ill-glass: #E4EDF2;
  --ill-glass-dark: #BFD0DA;
  --ill-coffee: #6F4230;
  --ill-cat: #F6C9D6;
  --ill-cat-inner: #E8909F;

  /* Rythme */
  --esp-1: 0.25rem;
  --esp-2: 0.5rem;
  --esp-3: 0.75rem;
  --esp-4: 1rem;
  --esp-5: 1.5rem;
  --esp-6: 2rem;
  --esp-7: 3rem;

  --rayon: 24px;
  --rayon-s: 14px;
  --rayon-pilule: 999px;

  --ombre: 0 2px 4px rgba(74, 46, 35, 0.05), 0 8px 24px rgba(176, 58, 91, 0.09);
  --ombre-forte: 0 4px 8px rgba(74, 46, 35, 0.07), 0 14px 36px rgba(176, 58, 91, 0.16);

  /* Une pile arrondie et chaleureuse, sans aucun appel réseau : une police
     distante serait un point de défaillance de plus le jour J, pour un gain
     esthétique que ces polices système couvrent déjà correctement. */
  --police: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display",
    "Segoe UI", Nunito, "Trebuchet MS", system-ui, -apple-system, sans-serif;

  --transition: 180ms cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* --- Reset mesuré ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  /* 18 px plancher : c'est un site pour être lu confortablement, pas pour
     caser un maximum d'information. */
  font: 400 1.125rem/1.65 var(--police);
  color: var(--cafe);
  background: var(--creme);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* La maille tricotée : deux trames de fils fins croisées à 60°, comme un point
   de jersey. Angle volontairement raide et traits fins (2 px sur une période de
   10) : à 45° avec des bandes épaisses, les croisements forment des carrés
   pleins et le motif se lit comme des pois, pas comme du tricot.
   Sur ::before en position fixed plutôt qu'en background-image du body, pour que
   le motif ne défile pas avec le contenu — un fond qui bouge donne le tournis. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    repeating-linear-gradient(62deg, var(--rose-poudre) 0 2px, transparent 2px 10px),
    repeating-linear-gradient(-62deg, var(--rose-poudre) 0 2px, transparent 2px 10px);
  opacity: 0.45;
}

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

button, input, select { font: inherit; color: inherit; }

h1, h2, h3 { line-height: 1.22; text-wrap: balance; font-weight: 800; }
h1 { font-size: clamp(1.75rem, 6vw, 2.75rem); color: var(--rose-fonce); }
h2 { font-size: clamp(1.35rem, 4.5vw, 1.85rem); color: var(--rose-fonce); }
h3 { font-size: 1.2rem; color: var(--cafe); }
p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--framboise);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Utilitaires -------------------------------------------------------- */

/* Visible pour les lecteurs d'écran, invisible à l'œil. `clip-path` seul ne
   suffit pas : certains lecteurs ignorent un élément de taille nulle. */
.visuellement-cache {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.saut-contenu {
  position: absolute;
  top: -100px;
  left: var(--esp-4);
  z-index: 100;
  padding: var(--esp-3) var(--esp-4);
  background: var(--framboise);
  color: #fff;
  border-radius: var(--rayon-pilule);
  text-decoration: none;
  font-weight: 700;
  transition: top var(--transition);
}
.saut-contenu:focus { top: var(--esp-4); }

/* --- Décor de fond ------------------------------------------------------ */
.decor { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.decor-item {
  position: absolute;
  fill: var(--rose-poudre);
  color: var(--rose-poudre);
  opacity: 0.7;
  animation: flotter 9s ease-in-out infinite;
}
.decor-item .pelote-fil { stroke: var(--rose-pale); stroke-width: 1.1; }
.decor-1 { width: 52px; height: 52px; top: 12%; left: 4%;  rotate: -18deg; animation-delay: 0s; }
.decor-2 { width: 66px; height: 66px; top: 62%; left: 2%;  rotate: 12deg;  animation-delay: -2.5s; }
.decor-3 { width: 44px; height: 44px; top: 28%; right: 5%; rotate: 24deg;  animation-delay: -5s; }
.decor-4 { width: 74px; height: 74px; top: 76%; right: 3%; rotate: -8deg;  animation-delay: -1.2s; }
.decor-5 { width: 38px; height: 38px; top: 46%; right: 9%; rotate: -30deg; animation-delay: -6.5s; }
@media (max-width: 900px) { .decor-3, .decor-5 { display: none; } }

@keyframes flotter {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

/* --- Mise en page ------------------------------------------------------- */
main {
  flex: 1;
  width: 100%;
  max-width: 46rem;
  margin-inline: auto;
  padding: var(--esp-5) var(--esp-4) var(--esp-7);
}
main:focus { outline: none; }

.vue { animation: apparaitre 320ms ease-out both; }
@keyframes apparaitre {
  from { opacity: 0; translate: 0 12px; }
  to { opacity: 1; translate: 0 0; }
}

.carte {
  background: var(--creme-carte);
  border: 2px solid var(--rose-poudre);
  border-radius: var(--rayon);
  padding: var(--esp-5);
  box-shadow: var(--ombre);
}

/* --- Boutons ------------------------------------------------------------ */
.btn {
  /* 48 px minimum : cible tactile confortable, y compris avec des mains qui
     tremblent un peu. */
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--esp-2);
  padding: var(--esp-3) var(--esp-5);
  border: 2px solid transparent;
  border-radius: var(--rayon-pilule);
  font-weight: 800;
  font-size: 1.0625rem;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              scale var(--transition), box-shadow var(--transition);
}
.btn:active { scale: 0.97; }

.btn-primaire {
  background: var(--framboise);
  color: #fff;
  box-shadow: 0 4px 0 #A32A4E, var(--ombre);
}
.btn-primaire:hover { background: #BF3159; }
.btn-primaire:active { box-shadow: 0 1px 0 #A32A4E, var(--ombre); }

.btn-secondaire {
  background: var(--creme-carte);
  color: var(--rose-fonce);
  border-color: var(--rose-poudre);
}
.btn-secondaire:hover { background: var(--rose-pale); border-color: var(--rose-vif); }

.btn-discret {
  background: none;
  color: var(--cafe-doux);
  padding-inline: var(--esp-3);
  font-weight: 700;
}
.btn-discret:hover { color: var(--rose-fonce); }

.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:disabled:active { scale: 1; }

.barre-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--esp-3);
  align-items: center;
  margin-top: var(--esp-5);
}
.barre-actions .pousse { margin-left: auto; }
@media (max-width: 480px) {
  .barre-actions { flex-direction: column-reverse; align-items: stretch; }
  .barre-actions .btn { width: 100%; }
  .barre-actions .pousse { margin-left: 0; }
}

/* --- Accueil ------------------------------------------------------------ */
.accueil { text-align: center; }
.accueil-chat { width: min(190px, 46vw); margin: 0 auto var(--esp-4); }
.accueil-chat .ill-cat { fill: var(--ill-cat); }
.accueil-sous-titre {
  font-size: 1.2rem;
  color: var(--cafe-doux);
  max-width: 34rem;
  margin: var(--esp-4) auto 0;
}
.rassurance {
  margin: var(--esp-5) auto 0;
  max-width: 34rem;
  padding: var(--esp-4);
  background: var(--rose-pale);
  border-radius: var(--rayon-s);
  font-size: 1.0625rem;
  color: var(--cafe-doux);
}
.accueil .barre-actions { justify-content: center; flex-direction: column; align-items: center; }
.accueil .barre-actions .btn-primaire { font-size: 1.2rem; padding: var(--esp-4) var(--esp-6); }

/* --- Progression : la pelote qui se déroule ----------------------------- */
.progression { margin-bottom: var(--esp-5); }
.progression-texte {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 700;
  color: var(--rose-fonce);
  margin-bottom: var(--esp-2);
  font-size: 1rem;
}
.progression-piste {
  position: relative;
  height: 12px;
  background: var(--rose-poudre);
  border-radius: var(--rayon-pilule);
  /* Marge à droite pour que la pelote, qui dépasse de la piste, ne soit jamais
     coupée en fin de parcours. */
  margin-right: 22px;
}
.progression-fil {
  height: 100%;
  border-radius: var(--rayon-pilule);
  background: linear-gradient(90deg, var(--lavande), var(--rose-vif) 60%, var(--framboise));
  transition: width 420ms cubic-bezier(0.34, 1.2, 0.64, 1);
}
.progression-pelote {
  position: absolute;
  top: 50%;
  width: 34px; height: 34px;
  translate: -50% -50%;
  fill: var(--framboise);
  transition: left 420ms cubic-bezier(0.34, 1.2, 0.64, 1);
}
/* Fil clair sur pelote foncée : sans contraste suffisant la pelote se lit comme
   un simple rond plein, et le clin d'œil tricot est perdu. */
.progression-pelote .pelote-fil { stroke: rgba(255, 255, 255, 0.8); stroke-width: 1.6; }
.progression-reste { color: var(--cafe-doux); font-weight: 700; font-size: 0.9375rem; }
.progression-patte {
  position: absolute;
  right: -24px;
  top: 50%;
  width: 20px; height: 20px;
  translate: 0 -50%;
  fill: var(--rose-vif);
  rotate: 14deg;
}

/* Le chat qui se réveille au fil du quiz. */
.chat-humeur {
  width: 74px; height: 74px;
  margin: 0 auto var(--esp-3);
}
.chat-humeur .ill-cat { fill: var(--ill-cat); }

/* --- Question ----------------------------------------------------------- */
.question-bloc { border: 0; padding: 0; margin: 0; }
.question-titre {
  font-size: clamp(1.35rem, 5vw, 1.75rem);
  color: var(--rose-fonce);
  font-weight: 800;
  line-height: 1.25;
  text-wrap: balance;
}
.question-titre:focus { outline: none; }
.question-sous-titre {
  margin-top: var(--esp-3);
  color: var(--cafe-doux);
  font-size: 1.0625rem;
  font-style: italic;
}

.reponses {
  display: grid;
  gap: var(--esp-3);
  margin-top: var(--esp-5);
}

.reponse {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--esp-4);
  min-height: 64px;
  padding: var(--esp-4);
  background: var(--creme-carte);
  border: 2px solid var(--rose-poudre);
  border-radius: var(--rayon-s);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition),
              scale var(--transition), box-shadow var(--transition);
}
.reponse:hover {
  border-color: var(--rose-vif);
  background: var(--rose-pale);
  /* Bordure « point de couture » au survol : le clin d'œil tricot. */
  border-style: dashed;
}
.reponse:active { scale: 0.99; }

/* :has() plutôt qu'une classe posée en JS : l'état visuel suit l'état réel de
   l'input, donc il ne peut pas se désynchroniser. */
.reponse:has(input:checked) {
  border-color: var(--framboise);
  border-style: solid;
  background: var(--rose-pale);
  box-shadow: var(--ombre);
}
.reponse:has(input:focus-visible) {
  outline: 3px solid var(--framboise);
  outline-offset: 3px;
}

.reponse-emoji { font-size: 1.75rem; line-height: 1; }
.reponse-label { font-size: 1.0625rem; font-weight: 600; }

.reponse-coche {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid var(--rose-poudre);
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
}
.reponse:has(input:checked) .reponse-coche {
  background: var(--framboise);
  border-color: var(--framboise);
}
.reponse-coche svg { width: 15px; height: 15px; opacity: 0; transition: opacity var(--transition); }
.reponse:has(input:checked) .reponse-coche svg { opacity: 1; }

.aide-choix {
  margin-top: var(--esp-4);
  color: var(--cafe-doux);
  font-size: 1rem;
}

/* --- Résultat ----------------------------------------------------------- */
.resultat-entete { text-align: center; margin-bottom: var(--esp-5); }
.resultat-pretitre {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--rose-vif);
}
.resultat-titre { margin-top: var(--esp-2); }
.resultat-pct {
  display: inline-flex;
  align-items: center;
  gap: var(--esp-2);
  margin-top: var(--esp-3);
  padding: var(--esp-2) var(--esp-4);
  background: var(--rose-poudre);
  color: var(--rose-fonce);
  border-radius: var(--rayon-pilule);
  font-weight: 800;
}

/* --- Fiche machine ------------------------------------------------------ */
.fiche { display: grid; gap: var(--esp-5); }

.fiche-vedette {
  display: grid;
  gap: var(--esp-4);
  place-items: center;
  padding: var(--esp-5);
  background: linear-gradient(160deg, var(--rose-pale), var(--creme-carte));
  border: 2px solid var(--rose-poudre);
  border-radius: var(--rayon);
}
.fiche-illustration { width: min(240px, 62vw); height: auto; aspect-ratio: 1; }
.fiche-surnom {
  font-size: 1rem;
  font-weight: 800;
  color: var(--rose-vif);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.fiche-nom { text-align: center; }
.fiche-tagline {
  text-align: center;
  font-size: 1.1rem;
  color: var(--cafe-doux);
  max-width: 30rem;
}

.section-fiche > h3 {
  display: flex;
  align-items: center;
  gap: var(--esp-2);
  margin-bottom: var(--esp-3);
  color: var(--rose-fonce);
  font-size: 1.15rem;
}
.section-fiche + .section-fiche { margin-top: var(--esp-5); }

.encart-pourquoi {
  background: var(--rose-pale);
  border: 2px solid var(--rose-poudre);
  border-radius: var(--rayon);
  padding: var(--esp-5);
}
.encart-pourquoi h3 { color: var(--rose-fonce); }
.encart-pourquoi p { margin-top: var(--esp-3); }

/* Mode d'emploi : compteur CSS pour que les numéros restent des numéros et pas
   du texte à maintenir à la main. */
.mode-emploi { list-style: none; padding: 0; counter-reset: etape; display: grid; gap: var(--esp-3); }
.mode-emploi li {
  counter-increment: etape;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: var(--esp-3);
  align-items: start;
}
.mode-emploi li::before {
  content: counter(etape);
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  background: var(--framboise);
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1rem;
}

.liste-picto { list-style: none; padding: 0; display: grid; gap: var(--esp-2); }
.liste-picto li { display: grid; grid-template-columns: 24px 1fr; gap: var(--esp-3); align-items: start; }
.liste-picto svg { width: 22px; height: 22px; margin-top: 3px; }
.liste-avantages { color: var(--cafe); }
.liste-avantages svg { color: var(--sauge); }
.liste-inconvenients svg { color: var(--terracotta); }

.infos-pratiques {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: var(--esp-3);
  margin: 0;
}
.info-case {
  background: var(--creme-carte);
  border: 2px solid var(--rose-poudre);
  border-radius: var(--rayon-s);
  padding: var(--esp-3) var(--esp-4);
}
.info-case dt {
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rose-vif);
}
.info-case dd { margin: var(--esp-1) 0 0; font-weight: 600; }

/* --- Dauphines & catalogue ---------------------------------------------- */
/* 12,5 rem et non 15 : à 15 rem, trois colonnes ne tiennent pas dans les 46 rem
   de `main` et le catalogue de neuf machines retombe sur deux colonnes, soit
   cinq rangées à faire défiler. */
.grille-machines {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
  gap: var(--esp-4);
  margin-top: var(--esp-4);
}

/* Le catalogue respire mieux large : c'est la seule vue qui compare des choses
   entre elles, les autres sont de la lecture suivie et gardent 46 rem. */
.vue-large { width: 100%; }
main:has(.vue-large) { max-width: 62rem; }

.vignette {
  position: relative;
  display: grid;
  gap: var(--esp-2);
  padding: var(--esp-4);
  background: var(--creme-carte);
  border: 2px solid var(--rose-poudre);
  border-radius: var(--rayon);
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: border-color var(--transition), translate var(--transition),
              box-shadow var(--transition);
}
.vignette:hover {
  border-color: var(--rose-vif);
  translate: 0 -4px;
  box-shadow: var(--ombre-forte);
}
.vignette-illustration { width: 108px; height: 108px; margin: 0 auto; }
.vignette-nom { font-size: 1.0625rem; font-weight: 800; color: var(--rose-fonce); }
.vignette-surnom { font-size: 0.9375rem; color: var(--cafe-doux); font-style: italic; }
.vignette-pct { font-size: 0.9375rem; font-weight: 800; color: var(--framboise); }

.badge {
  position: absolute;
  top: -11px;
  left: 50%;
  translate: -50% 0;
  padding: 3px var(--esp-3);
  background: var(--framboise);
  color: #fff;
  border-radius: var(--rayon-pilule);
  font-size: 0.8125rem;
  font-weight: 800;
  white-space: nowrap;
}
.badge-dauphine { background: var(--lavande); color: #3F2352; }

/* --- Encart anniversaire ------------------------------------------------ */
.encart-anniversaire {
  margin-top: var(--esp-6);
  padding: var(--esp-5);
  background: linear-gradient(160deg, var(--rose-poudre), var(--rose-pale));
  border: 2px dashed var(--rose-vif);
  border-radius: var(--rayon);
  text-align: center;
}
.encart-anniversaire .chat-humeur { width: 88px; height: 88px; }
.encart-anniversaire p { font-size: 1.0625rem; }
.encart-anniversaire .signature {
  margin-top: var(--esp-3);
  font-style: italic;
  color: var(--cafe-doux);
  font-size: 1rem;
}

.pied { padding: var(--esp-5) var(--esp-4); text-align: center; }
.pied-signature { font-size: 0.9375rem; color: var(--cafe-doux); font-style: italic; }

.message-copie {
  margin-top: var(--esp-3);
  padding: var(--esp-3) var(--esp-4);
  background: var(--rose-pale);
  border-radius: var(--rayon-s);
  font-weight: 700;
  color: var(--sauge);
}
.message-copie code {
  display: block;
  margin-top: var(--esp-2);
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--cafe);
  overflow-wrap: anywhere;
}

/* --- Confettis ---------------------------------------------------------- */
.confettis { position: fixed; inset: 0; z-index: 50; pointer-events: none; overflow: hidden; }
.confetti {
  position: absolute;
  top: -8vh;
  width: 22px; height: 22px;
  animation: tomber linear forwards;
}
.confetti .pelote-fil { stroke: rgba(255, 255, 255, 0.7); stroke-width: 1.4; }
@keyframes tomber {
  from { translate: 0 0; rotate: 0deg; opacity: 1; }
  to { translate: var(--derive, 0) 112vh; rotate: var(--tour, 360deg); opacity: 0; }
}

/* --- Navigation secondaire --------------------------------------------- */
.nav-retour { margin-bottom: var(--esp-4); }

.intro-catalogue { text-align: center; margin-bottom: var(--esp-5); }
.intro-catalogue p { color: var(--cafe-doux); margin-top: var(--esp-3); }

/* --- Classes des illustrations ------------------------------------------ */
/* Centralisées ici : changer la palette du site change celle des dessins. */
.ill-pink       { fill: var(--rose-poudre); }
.ill-pink-dark  { fill: var(--rose-vif); }
.ill-cream      { fill: #FFFAF6; }
.ill-metal      { fill: var(--ill-metal); }
.ill-metal-dark { fill: var(--ill-metal-dark); }
.ill-glass      { fill: var(--ill-glass); }
.ill-glass-dark { fill: var(--ill-glass-dark); }
.ill-coffee     { fill: var(--ill-coffee); }
.ill-flame      { fill: var(--or); }
.ill-line-fill  { fill: var(--rose-vif); }

.ill-stroke       { stroke: var(--ill-metal-dark); stroke-width: 5; fill: none; stroke-linecap: round; }
.ill-stroke-thick { stroke: var(--ill-metal-dark); stroke-width: 6; fill: none; stroke-linecap: round; }
.ill-stroke-thin  { stroke: var(--ill-metal-dark); stroke-width: 1.6; fill: none; stroke-linecap: round; }
.ill-spiral       { stroke: var(--rose-vif); stroke-width: 2; fill: none; stroke-linecap: round; }
.ill-water        { stroke: var(--ill-glass-dark); stroke-width: 3; fill: none; stroke-linecap: round; }
.ill-arrow        { stroke: var(--rose-vif); stroke-width: 3.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ill-label        { fill: var(--cafe-doux); font: 700 11px var(--police); }

.ill-cat        { fill: var(--ill-cat); }
.ill-cat-inner  { fill: var(--ill-cat-inner); }
.ill-cat-eye    { fill: #FFFAF6; }
.ill-cat-pupil  { fill: var(--cafe); }
.ill-cat-shine  { fill: #fff; }
.ill-cat-nose   { fill: var(--ill-cat-inner); }
.ill-cat-blush  { fill: var(--ill-cat-inner); opacity: 0.55; }
.ill-cat-line       { stroke: var(--cafe); stroke-width: 2; fill: none; stroke-linecap: round; }
.ill-cat-line-thick { stroke: var(--cafe); stroke-width: 3; fill: none; stroke-linecap: round; }
/* La queue a sa propre classe : en brun comme les moustaches elle se lisait
   comme un gribouillis détaché du corps. En rose et bien épaisse, elle se
   rattache visuellement au chat. */
.ill-cat-tail       { stroke: var(--ill-cat); stroke-width: 9; fill: none; stroke-linecap: round; }
.ill-zzz        { fill: var(--cafe-doux); font: 700 16px var(--police); }

/* --- Écrans plus larges ------------------------------------------------- */
@media (min-width: 640px) {
  main { padding-inline: var(--esp-5); }
  .fiche-vedette { grid-template-columns: auto 1fr; place-items: center start; gap: var(--esp-5); }
  .fiche-vedette .fiche-nom, .fiche-vedette .fiche-tagline { text-align: left; }
  .fiche-illustration { width: 180px; }
}

/* --- Mouvement réduit --------------------------------------------------- */
/* Respecté sérieusement : on coupe le mouvement, on ne le ralentit pas. Les
   confettis disparaissent complètement, ils ne sont pas juste plus lents. */
@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;
  }
  .confettis { display: none; }
  .decor-item { animation: none; }
  .vignette:hover { translate: none; }
}

/* --- Impression --------------------------------------------------------- */
/* Pour qu'elle puisse imprimer la fiche et l'emmener en magasin. */
@media print {
  :root { --creme: #fff; --creme-carte: #fff; }
  body { background: #fff; font-size: 11pt; }
  body::before, .decor, .confettis, .saut-contenu, .pied { display: none !important; }
  .btn, .barre-actions, .nav-retour, .progression, .message-copie { display: none !important; }
  main { max-width: none; padding: 0; }
  .carte, .encart-pourquoi, .fiche-vedette, .info-case, .vignette {
    border: 1px solid #999;
    box-shadow: none;
    background: #fff;
    break-inside: avoid;
  }
  .encart-anniversaire { border: 1px dashed #999; background: #fff; }
  h1, h2, h3 { color: #000; }
  .section-fiche { break-inside: avoid; }
  .grille-machines { grid-template-columns: repeat(2, 1fr); }
}
