/* DEA en poche — QCM du jour. Aucune ressource externe : polices système, icônes SVG en ligne. */

:root {
  --police: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --police-ronde: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --fond: #eef3fa;
  --encre: #0b1f3a;
  --encre-2: #33465f;
  --encre-3: #55657c;
  --verre: rgba(255, 255, 255, 0.66);
  --verre-fort: rgba(255, 255, 255, 0.9);
  --liseré: rgba(255, 255, 255, 0.85);
  --trait: rgba(11, 42, 94, 0.11);
  --reflet: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --ombre: 0 1px 2px rgba(11, 31, 58, 0.05), 0 18px 40px -18px rgba(14, 52, 112, 0.28);
  --ombre-btn: 0 1px 1px rgba(11, 31, 58, 0.08), 0 8px 20px -8px rgba(14, 52, 112, 0.45);

  --bleu: #1f6cc0;
  --bleu-fonce: #134f98;
  --bleu-encre: #0f4f96;
  --bleu-doux: rgba(31, 108, 192, 0.1);
  --ciel: #3192dc;
  --rouge: #d92638;
  --or: #e3b23c;

  --ok: #11673a;
  --ok-fond: #e3f5ea;
  --ok-trait: #2fb565;
  --ok-plein: #1e9150;
  --ko: #a3172a;
  --ko-fond: #fde9eb;
  --ko-trait: #e8394a;
  --expl-fond: rgba(31, 108, 192, 0.07);

  --store-fond: linear-gradient(180deg, #1d3152 0%, #071127 100%);
  --store-encre: #ffffff;
  --store-trait: rgba(255, 255, 255, 0.14);

  --rayon: 26px;
  --rayon-moyen: 18px;
  --marge: 16px;
  --largeur: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #050f22;
    --encre: #eef4ff;
    --encre-2: #c3cfe1;
    --encre-3: #9aabc4;
    --verre: rgba(17, 33, 62, 0.6);
    --verre-fort: rgba(26, 45, 80, 0.82);
    --liseré: rgba(255, 255, 255, 0.1);
    --trait: rgba(255, 255, 255, 0.1);
    --reflet: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    --ombre: 0 1px 2px rgba(0, 0, 0, 0.3), 0 24px 48px -20px rgba(0, 0, 0, 0.7);
    --ombre-btn: 0 1px 1px rgba(0, 0, 0, 0.3), 0 10px 24px -10px rgba(0, 0, 0, 0.8);

    --bleu-encre: #8cc4ff;
    --bleu-doux: rgba(96, 170, 255, 0.16);

    --ok: #86e8ac;
    --ok-fond: rgba(47, 181, 101, 0.16);
    --ok-trait: #3ccb76;
    --ko: #ffa3ad;
    --ko-fond: rgba(232, 57, 74, 0.17);
    --ko-trait: #f0566a;
    --expl-fond: rgba(96, 170, 255, 0.1);

    --store-fond: linear-gradient(180deg, #ffffff 0%, #e4ebf5 100%);
    --store-encre: #071127;
    --store-trait: rgba(255, 255, 255, 0.6);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  background: var(--fond);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--police);
  font-size: 17px;
  line-height: 1.5;
  color: var(--encre);
  background: transparent; /* le fond (couleur + halos) est porté par html et .fond */
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

a { color: var(--bleu-encre); }

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

.evitement {
  position: absolute;
  left: var(--marge);
  top: -60px;
  z-index: 50;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--bleu);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.evitement:focus { top: 12px; }

/* ---------- Fond vivant ---------- */
.fond {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 0% 0%, rgba(49, 146, 220, 0.30), transparent 70%),
    radial-gradient(50% 45% at 100% 35%, rgba(94, 169, 220, 0.26), transparent 70%),
    radial-gradient(55% 45% at 85% 100%, rgba(232, 57, 74, 0.12), transparent 70%),
    linear-gradient(180deg, #f3f7fd 0%, var(--fond) 55%, #e8eff9 100%);
}
.halo {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.halo-1 {
  width: 46vmax; height: 46vmax; left: -14vmax; top: -16vmax;
  background: radial-gradient(closest-side, rgba(49, 146, 220, 0.45), rgba(49, 146, 220, 0));
  animation: derive-1 26s ease-in-out infinite alternate;
}
.halo-2 {
  width: 40vmax; height: 40vmax; right: -14vmax; top: 22vh;
  background: radial-gradient(closest-side, rgba(36, 119, 203, 0.32), rgba(36, 119, 203, 0));
  animation: derive-2 32s ease-in-out infinite alternate;
}
.halo-3 {
  width: 36vmax; height: 36vmax; left: -8vmax; bottom: -14vmax;
  background: radial-gradient(closest-side, rgba(232, 57, 74, 0.16), rgba(232, 57, 74, 0));
  animation: derive-1 38s ease-in-out infinite alternate-reverse;
}
@media (prefers-color-scheme: dark) {
  .fond {
    background:
      radial-gradient(60% 50% at 0% 0%, rgba(36, 119, 203, 0.42), transparent 70%),
      radial-gradient(50% 50% at 100% 40%, rgba(49, 146, 220, 0.22), transparent 70%),
      radial-gradient(55% 45% at 90% 100%, rgba(232, 57, 74, 0.16), transparent 70%),
      linear-gradient(180deg, #081a3a 0%, var(--fond) 60%, #040b1a 100%);
  }
  .halo-1 { background: radial-gradient(closest-side, rgba(49, 146, 220, 0.38), rgba(49, 146, 220, 0)); }
  .halo-2 { background: radial-gradient(closest-side, rgba(36, 119, 203, 0.3), rgba(36, 119, 203, 0)); }
  .halo-3 { background: radial-gradient(closest-side, rgba(232, 57, 74, 0.18), rgba(232, 57, 74, 0)); }
}
@keyframes derive-1 { to { transform: translate3d(5vmax, 4vmax, 0) scale(1.1); } }
@keyframes derive-2 { to { transform: translate3d(-4vmax, 6vmax, 0) scale(0.92); } }

/* ---------- Barre du haut ---------- */
.barre {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top);
  background: color-mix(in srgb, var(--fond) 62%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--trait);
}
.barre-dedans {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 10px max(var(--marge), env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.marque {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--encre);
  text-decoration: none;
}
.marque img { border-radius: 9px; box-shadow: 0 2px 8px rgba(14, 52, 112, 0.25); }
.marque-texte { display: flex; flex-direction: column; line-height: 1.15; }
.marque-texte strong { font-family: var(--police-ronde); font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.marque-texte small { font-size: 13px; color: var(--encre-3); font-weight: 500; }

/* ---------- Mise en page ---------- */
main {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 8px max(var(--marge), env(safe-area-inset-left)) 24px;
  display: grid;
  gap: 20px;
}

/* ---------- Intro ---------- */
.intro { position: relative; padding: 22px 4px 4px; }
.intro-icone { display: none; }
.date-pastille {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: var(--verre);
  border: 1px solid var(--liseré);
  box-shadow: var(--reflet), 0 6px 18px -10px rgba(14, 52, 112, 0.35);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  font-size: 14px;
  font-weight: 600;
  color: var(--encre-2);
}
.ecg { width: 40px; height: 12px; color: var(--rouge); }
.ecg path { stroke-dasharray: 90; stroke-dashoffset: 90; animation: trace 1.6s 0.2s ease-out forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }

h1 {
  margin: 0;
  font-family: var(--police-ronde);
  font-size: clamp(34px, 8.6vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.titre-suite {
  display: block;
  margin-top: 4px;
  background: linear-gradient(100deg, #1a62b3 0%, var(--bleu) 45%, #2b84d6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
}
@media (prefers-color-scheme: dark) {
  .titre-suite { background-image: linear-gradient(100deg, #6fb4ff 0%, #9fd0ff 60%, #ffffff 100%); }
}
.chapeau {
  margin: 14px 0 0;
  font-size: 18px;
  color: var(--encre-2);
  max-width: 36em;
}
.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.dispo {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--encre-2);
}

/* ---------- Boutons ---------- */
.btn, .btn-store {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 17px/1.2 var(--police);
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn::after, .btn-store::after {
  content: "";
  position: absolute;
  inset: 0 0 50% 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.btn .ico, .btn-store .ico { width: 20px; height: 20px; flex: none; }
.btn:hover, .btn-store:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:active, .btn-store:active { transform: translateY(1px) scale(0.985); }

.btn-principal {
  color: #fff;
  background: linear-gradient(180deg, var(--bleu) 0%, var(--bleu-fonce) 100%);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: var(--ombre-btn), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-secondaire {
  color: var(--bleu-encre);
  background: var(--verre-fort);
  border-color: var(--trait);
  box-shadow: var(--reflet), 0 6px 16px -10px rgba(14, 52, 112, 0.35);
}
.btn-secondaire::after { display: none; }

.btn-store {
  color: var(--store-encre);
  background: var(--store-fond);
  border-color: var(--store-trait);
  box-shadow: var(--ombre-btn);
}
@media (prefers-color-scheme: dark) {
  .btn-store::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0)); }
}
.btn-store-mini {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 15px;
}
.btn-store-mini .ico { width: 18px; height: 18px; }
.btn-store-large { width: 100%; min-height: 56px; font-size: 18px; }

/* ---------- Cartes en verre ---------- */
.carte {
  position: relative;
  padding: 22px;
  border-radius: var(--rayon);
  background: var(--verre);
  border: 1px solid var(--liseré);
  box-shadow: var(--reflet), var(--ombre);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  scroll-margin-top: 80px;
}
.carte:focus { outline: none; }
.carte:focus-visible { outline: 3px solid var(--ciel); outline-offset: 4px; border-radius: var(--rayon); }

.carte-tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 14px;
}
.carte h2 {
  margin: 0;
  font-family: var(--police-ronde);
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.015em;
}
.titre-precision { color: var(--encre-3); font-weight: 600; }
.pastille {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bleu-doux);
  color: var(--bleu-encre);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
}
.pastille[hidden] { display: none; }
.pastille-compteur { font-variant-numeric: tabular-nums; }

.chargement { margin: 8px 0; color: var(--encre-3); }
.erreur {
  margin: 8px 0;
  padding: 14px 16px;
  border-radius: var(--rayon-moyen);
  background: var(--ko-fond);
  color: var(--ko);
  font-weight: 600;
}

/* ---------- Question ---------- */
.zone { position: relative; }
.question { animation: entree 0.35s ease-out both; }
@keyframes entree { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.enonce {
  margin: 0 0 16px;
  font-size: 19px;
  line-height: 1.42;
  font-weight: 650;
  letter-spacing: -0.005em;
}
.options {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.option {
  width: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 12px;
  padding: 11px 16px 11px 12px;
  border-radius: var(--rayon-moyen);
  border: 1.5px solid var(--trait);
  background: var(--verre-fort);
  box-shadow: var(--reflet), 0 4px 14px -10px rgba(14, 52, 112, 0.4);
  color: var(--encre);
  font: 500 16.5px/1.38 var(--police);
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.option:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--bleu) 45%, transparent);
  box-shadow: var(--reflet), 0 10px 22px -12px rgba(14, 52, 112, 0.5);
}
.option:active:not(:disabled) { transform: scale(0.99); }
.option:disabled { cursor: default; }
.lettre {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--bleu-doux);
  color: var(--bleu-encre);
  font: 700 15px/1 var(--police-ronde);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.lettre .ico { width: 18px; height: 18px; }
.option-texte { min-width: 0; overflow-wrap: anywhere; }

.option.est-bonne {
  border-color: var(--ok-trait);
  background: var(--ok-fond);
  color: var(--encre);
}
.option.est-bonne .lettre { background: var(--ok-plein); color: #fff; }
.option.est-fausse {
  border-color: var(--ko-trait);
  background: var(--ko-fond);
}
.option.est-fausse .lettre { background: var(--ko-trait); color: #fff; }
.option.est-eteinte { color: var(--encre-3); box-shadow: none; }
.option.est-eteinte .lettre { opacity: 0.7; }
.option.est-bonne, .option.est-fausse { animation: pouls 0.4s ease-out; }
@keyframes pouls { 40% { transform: scale(1.012); } }

.mention-lecteur {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Correction ---------- */
.correction {
  margin-top: 16px;
  animation: entree 0.35s ease-out both;
}
.correction:focus { outline: none; }
.correction:focus-visible { outline: 3px solid var(--ciel); outline-offset: 4px; border-radius: var(--rayon-moyen); }
.verdict {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--police-ronde);
  font-size: 17px;
  line-height: 1.3;
  font-weight: 750;
}
.verdict .rond {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  flex: none;
}
.verdict .rond .ico { width: 18px; height: 18px; }
.verdict.ok { color: var(--ok); }
.verdict.ok .rond { background: var(--ok-plein); }
.verdict.ko { color: var(--ko); }
.verdict.ko .rond { background: var(--ko-trait); }

.explication {
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--rayon-moyen);
  background: var(--expl-fond);
  border: 1px solid var(--trait);
  color: var(--encre-2);
  font-size: 16px;
  line-height: 1.55;
}
.explication-titre {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  color: var(--bleu-encre);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.explication-titre .ico { width: 18px; height: 18px; }

.suite {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.suite .note { margin: 0; color: var(--encre-3); font-size: 15px; }

/* ---------- Progression du mini-quiz ---------- */
.progression {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: -2px 0 18px;
  padding: 0;
}
.progression[hidden] { display: none; }
.progression li {
  height: 6px;
  border-radius: 999px;
  background: var(--trait);
  transition: background-color 0.3s ease;
}
.progression li.en-cours { background: linear-gradient(90deg, var(--bleu), var(--ciel)); }
.progression li.juste { background: var(--ok-trait); }
.progression li.faux { background: var(--ko-trait); }

/* ---------- Score ---------- */
.score { text-align: center; animation: entree 0.4s ease-out both; }
.score:focus { outline: none; }
.anneau { position: relative; width: 148px; height: 148px; margin: 6px auto 10px; }
.anneau svg { width: 148px; height: 148px; transform: rotate(-90deg); }
.anneau .piste { stroke: var(--trait); }
.anneau .jauge { stroke: url(#degrade-score); stroke-dasharray: 339.3; stroke-dashoffset: 339.3; transition: stroke-dashoffset 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s; }
.anneau-texte {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  font-family: var(--police-ronde);
  line-height: 1;
}
.anneau-texte strong { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.anneau-texte span { margin-top: 4px; font-size: 15px; color: var(--encre-3); font-weight: 600; }
.score h3 {
  margin: 4px 0 6px;
  font-family: var(--police-ronde);
  font-size: 22px;
  font-weight: 750;
}
.score .message { margin: 0 auto; max-width: 30em; color: var(--encre-2); }
.recap {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  text-align: left;
}
.recap li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--verre-fort);
  border: 1px solid var(--trait);
  font-size: 15px;
  line-height: 1.4;
  color: var(--encre-2);
}
.recap-texte {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recap .rond {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  margin-top: 1px;
}
.recap .rond .ico { width: 14px; height: 14px; }
.recap .juste .rond { background: var(--ok-plein); }
.recap .faux .rond { background: var(--ko-trait); }
.score-actions {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.score-app {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--trait);
  text-align: center;
}
.score-app p { margin: 0 auto 14px; max-width: 30em; color: var(--encre-2); font-size: 16px; }
.score-app .btn-store { width: 100%; font-size: 17px; min-height: 54px; }
.score-app .dispo { margin: 12px auto 0; font-size: 14px; }

/* ---------- Carte de l'app ---------- */
.carte-app {
  overflow: hidden;
}
.carte-app::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(49, 146, 220, 0.25), transparent);
  pointer-events: none;
  z-index: -1;
}
.app-tete { display: flex; align-items: center; gap: 16px; }
.app-icone {
  width: 72px;
  height: 72px;
  border-radius: 17px;
  box-shadow: 0 10px 24px -8px rgba(14, 52, 112, 0.45);
  flex: none;
}
.app-sous-titre { margin: 2px 0 0; color: var(--encre-2); font-size: 16px; }
.auteur {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 4px;
  font-size: 16px;
  color: var(--encre-2);
}
.auteur strong { color: var(--encre); font-weight: 650; }
.auteur-initiale {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(160deg, #f0566a, #c81e30);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 10px -4px rgba(200, 30, 48, 0.6);
  color: #fff;
  font: 700 15px/1 var(--police-ronde);
  flex: none;
}
.atouts {
  list-style: none;
  margin: 16px 0 20px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  border-radius: var(--rayon-moyen);
  background: var(--verre-fort);
  border: 1px solid var(--trait);
  box-shadow: var(--reflet);
  overflow: hidden;
}
.atouts li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 8px 14px;
  font-size: 16px;
  line-height: 1.3;
  color: var(--encre-2);
}
.atouts li + li { border-top: 1px solid var(--trait); }
.atouts strong { color: var(--encre); font-weight: 650; }
.atout-puce {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex: none;
  color: #fff;
  background: linear-gradient(160deg, #3d9be6, #1659a8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.atout-puce .ico { width: 18px; height: 18px; }
.atouts li:nth-child(5) .atout-puce, .atouts li:nth-child(6) .atout-puce { background: linear-gradient(160deg, #f0566a, #c81e30); }
.atouts li:nth-child(4) .atout-puce { background: linear-gradient(160deg, #f2c14e, #d39a1c); }
.carte-app .dispo { text-align: center; }

/* ---------- Pied de page ---------- */
.pied {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 8px max(var(--marge), env(safe-area-inset-left)) calc(32px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 14px;
  color: var(--encre-3);
}
.pied p { margin: 6px 0; }
.pied .avertissement { color: var(--encre-2); font-weight: 600; }
.pied-liens {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 8px 0;
}
.pied-liens a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  font-weight: 600;
}
.copyright { opacity: 0.9; }

.pied-carte {
  margin: 4px 0 18px;
  padding: 22px 18px 12px;
  border-radius: var(--rayon);
  background: var(--verre);
  border: 1px solid var(--liseré);
  box-shadow: var(--ombre), var(--reflet);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
}
.pied-marque {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  text-decoration: none;
  color: var(--encre);
}
.pied-marque img { border-radius: 11px; box-shadow: var(--ombre-btn); }
.pied-marque strong { display: block; font-family: var(--police-ronde); font-size: 18px; }
.pied-marque small { display: block; font-size: 13px; color: var(--encre-3); }
.pied .pied-suivre { margin: 18px 0 10px; font-weight: 700; color: var(--encre-2); }
.reseaux {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.reseau {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 16px;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--ombre-btn), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.18s ease, filter 0.18s ease;
}
.reseau .ico { width: 22px; height: 22px; }
.reseau:hover { transform: translateY(-2px); filter: brightness(1.08); }
.reseau:active { transform: translateY(0) scale(0.98); }
.reseau-tiktok { background: linear-gradient(160deg, #25344d, #05080f); }
.reseau-instagram { background: linear-gradient(135deg, #f9a03f 0%, #e1306c 48%, #7b3fd1 100%); }
.reseau-youtube { background: linear-gradient(160deg, #ff4b4b, #c4161c); }
.reseau-facebook { background: linear-gradient(160deg, #3b8bf5, #1558c7); }
@media (min-width: 560px) { .reseaux { grid-template-columns: repeat(4, 1fr); } }
@media (prefers-reduced-motion: reduce) { .reseau { transition: none; } .reseau:hover { transform: none; } }

/* ---------- Écrans larges ---------- */
@media (min-width: 560px) {
  .atouts { grid-template-columns: 1fr 1fr; }
  .atouts li + li { border-top: 0; }
  .atouts li:nth-child(n + 3) { border-top: 1px solid var(--trait); }
  .atouts li:nth-child(even) { border-left: 1px solid var(--trait); }
}
@media (min-width: 720px) {
  .intro { padding-top: 44px; }
  .carte { padding: 28px; }
  .enonce { font-size: 20px; }
  .score-actions { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .intro-icone {
    display: block;
    position: absolute;
    right: 0;
    top: 58px;
    width: 168px;
    height: 168px;
    border-radius: 38px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 30px 60px -22px rgba(14, 52, 112, 0.55), 0 12px 24px -12px rgba(14, 52, 112, 0.35);
    transform: rotate(6deg);
    animation: flotte 7s ease-in-out infinite alternate;
  }
  .intro h1, .intro .chapeau { max-width: calc(100% - 200px); }
}
@keyframes flotte { to { transform: rotate(3deg) translateY(-8px); } }
@media (max-width: 480px) {
  .btn-repondre { display: none; }
  .intro-actions .btn-store { width: 100%; }
  .marque-texte small { display: none; }
  .chapeau { font-size: 17px; }
}
@media (max-width: 380px) {
  .carte { padding: 18px 16px; }
  .option { grid-template-columns: 32px 1fr; gap: 10px; padding-right: 12px; }
  .lettre { width: 32px; height: 32px; }
}

/* ---------- Sans animation ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .halo { animation: none !important; }
  .ecg path { stroke-dashoffset: 0; }
}

/* ---------- Navigateurs sans backdrop-filter ---------- */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --verre: rgba(255, 255, 255, 0.92); }
  .barre { background: var(--fond); }
}
@media (prefers-color-scheme: dark) {
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    :root { --verre: rgba(17, 33, 62, 0.95); }
  }
}
