/* Moderncraft France — site vitrine et boutique (v3 : thème coloré, images du pack) */
:root {
  --fond: #17123a;
  --fond-2: #1f1850;
  --carte: #241c5a;
  --carte-2: #2e2470;
  --bord: #44379a;
  --texte: #f6f3ff;
  --doux: #c3bbeb;
  --or: #f7b733;
  --or-2: #ffd75e;
  --rose: #ff5fa2;
  --bleu: #4f8bff;
  --vert: #4ade80;
  --rouge: #ff5468;
  --rayon: 18px;
  --ombre: 0 18px 50px rgba(8, 4, 30, .55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  color: var(--texte);
  background: var(--fond);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--or-2); }
img { max-width: 100%; display: block; }
img.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }
code { font-family: ui-monospace, "Cascadia Code", Menlo, monospace; }
.conteneur { width: min(1140px, 100% - 32px); margin-inline: auto; }
.doux { color: var(--doux); }

/* ------------------------------------------------------------------ en-tête */
.entete {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: rgba(30, 22, 80, .72);
  border-bottom: 3px solid rgba(0, 0, 0, .25);
}
.entete .conteneur { display: flex; align-items: center; gap: 16px; height: 64px; }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--texte); font-weight: 900; letter-spacing: .5px; }
.marque img { width: 40px; height: 40px; }
.marque span small { display: block; font-size: 10px; letter-spacing: 3px; color: var(--or); font-weight: 800; margin-top: -4px; }
.nav { margin-left: auto; display: flex; gap: 4px; }
.nav a { color: var(--doux); text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { color: var(--texte); background: rgba(255, 255, 255, .08); }
.nav a.cta { color: #2a1800; background: linear-gradient(180deg, var(--or-2), var(--or)); box-shadow: 0 3px 0 #b07a0c; }
@media (max-width: 820px) { .nav a:not(.cta) { display: none; } }

/* ------------------------------------------------------------------ boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 800; cursor: pointer; text-decoration: none;
  border: 0; border-radius: 12px; padding: 12px 20px; color: #2a1800;
  background: linear-gradient(180deg, var(--or-2), var(--or));
  box-shadow: 0 4px 0 #b07a0c, 0 10px 24px rgba(247, 183, 51, .25);
  transition: transform .08s, box-shadow .08s, filter .15s;
}
.bouton:hover { filter: brightness(1.07); }
.bouton:active { transform: translateY(3px); box-shadow: 0 1px 0 #b07a0c; }
.bouton:disabled { filter: grayscale(.8) brightness(.7); cursor: not-allowed; transform: none; }
.bouton.secondaire { color: var(--texte); background: var(--carte-2); box-shadow: 0 4px 0 #120d33; border: 1px solid var(--bord); }

/* ------------------------------------------------------------------ héros (ciel de jour + rendu du vrai spawn) */
.heros { position: relative; text-align: center; padding: 30px 0 70px; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #4f86e8 0%, #77a6f5 38%, #a9c8fb 70%, #cfe0fb 100%); }
.heros::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .9;
  background: url("/assets/img/nuages.png") 0 40px / 720px auto repeat-x, url("/assets/img/nuages.png") 300px 230px / 520px auto repeat-x;
  image-rendering: pixelated; animation: nuages 140s linear infinite; }
@keyframes nuages { to { background-position: 720px 40px, 820px 230px; } }
.heros-grille { width: min(1280px, 100% - 32px); display: grid; grid-template-columns: minmax(440px, 1fr) minmax(0, 1.3fr); gap: 10px; align-items: center; }
.heros-contenu { position: relative; z-index: 1; }
.vitrine { margin: 0 -40px 0 0; position: relative; }
.vitrine img { width: 100%; height: auto; filter: drop-shadow(0 30px 28px rgba(20, 40, 90, .45)); animation: flotte 8s ease-in-out infinite; }
.vitrine figcaption { font-size: 13px; font-weight: 700; color: #1d2c5c; background: rgba(255, 255, 255, .7); border-radius: 999px; padding: 4px 12px; width: fit-content; margin: 6px auto 0; }
@media (max-width: 980px) {
  .heros-grille { grid-template-columns: 1fr; }
  .vitrine { margin: 10px -12px 0; }
}
.heros .logo { width: min(230px, 52vw); height: auto; aspect-ratio: 1; margin: 0 auto; filter: drop-shadow(0 6px 0 rgba(20, 40, 90, .25)) drop-shadow(0 16px 22px rgba(20, 40, 90, .35)); animation: flotte 6s ease-in-out infinite; }
@media (max-width: 980px) { .heros .logo { width: min(170px, 46vw); } }
@keyframes flotte { 50% { transform: translateY(-10px); } }
.heros h1 { font-size: clamp(28px, 3.8vw, 46px); line-height: 1.1; margin: 14px 0 10px; font-weight: 900; text-shadow: 0 3px 0 rgba(20, 40, 100, .55), 0 8px 24px rgba(20, 40, 100, .45); }
.tricolore { background: linear-gradient(90deg, #2453e0 0 33%, #fff 33% 66%, #ef3a4b 66%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 1px #16224f) drop-shadow(0 3px 0 rgba(20, 30, 80, .7)); }
.heros p.accroche { color: #fff; font-size: 19px; font-weight: 700; max-width: 560px; margin: 0 auto 24px; text-shadow: 0 2px 0 rgba(20, 40, 100, .45), 0 2px 12px rgba(20, 40, 100, .6); }
.ip {
  display: inline-flex; align-items: stretch; border-radius: 16px; overflow: hidden; max-width: 100%;
  background: rgba(20, 14, 54, .82); border: 3px solid rgba(255, 255, 255, .18); box-shadow: 0 6px 0 rgba(10, 5, 30, .6), var(--ombre);
}
.ip img { width: 34px; height: 34px; margin: auto 0 auto 14px; }
.ip code { font-weight: 800; font-size: clamp(15px, 3.6vw, 21px); padding: 15px 16px; color: var(--or-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ip button { border: 0; font: inherit; font-weight: 900; padding: 0 20px; cursor: pointer; color: #062b14; background: linear-gradient(180deg, #7cf0a6, var(--vert)); }
.ip button:hover { filter: brightness(1.08); }
@media (max-width: 520px) {
  .ip { display: flex; flex-wrap: wrap; width: 100%; }
  .ip img { margin-left: 12px; }
  .ip code { flex: 1; text-align: left; font-size: 16px; padding: 14px 10px; }
  .ip button { width: 100%; padding: 12px; }
}
.en-ligne { margin: 16px auto 0; width: fit-content; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(20, 14, 54, .6); }
.point { width: 10px; height: 10px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: pouls 2s infinite; }
.point.hors { background: #8a83a8; animation: none; }
@keyframes pouls { 70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.badge { font-size: 14px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(22, 30, 80, .55); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(4px); }
/* bordure d'herbe en escalier entre le héros et la suite */
.herbe { position: absolute; left: 0; right: 0; bottom: 0; height: 24px;
  background:
    linear-gradient(90deg, #6abe30 0 12.5%, #5aa828 12.5% 25%, #6abe30 25% 37.5%, #4f9a24 37.5% 50%, #6abe30 50% 62.5%, #5aa828 62.5% 75%, #6abe30 75% 87.5%, #4f9a24 87.5%) top / 128px 10px repeat-x,
    linear-gradient(180deg, transparent 10px, #8a5a36 10px); }
@media (prefers-reduced-motion: reduce) { .heros::before, .vitrine img, .heros .logo, .atout .bloc, .caisses-ligne img.grande { animation: none; } html { scroll-behavior: auto; } }

/* ------------------------------------------------------------------ fonds de section (couches du monde) */
section { padding: 72px 0; position: relative; }
.sol-terre { background: linear-gradient(180deg, #8a5a36 0, #5c3a26 120px, #2a1c3e 360px, var(--fond) 100%); }
.sol-pierre { background:
  radial-gradient(600px 300px at 10% 10%, rgba(255, 95, 162, .12), transparent 70%),
  radial-gradient(700px 400px at 90% 60%, rgba(79, 139, 255, .14), transparent 70%),
  var(--fond); }
.sol-nuit { background:
  radial-gradient(900px 420px at 50% 0, rgba(247, 183, 51, .16), transparent 70%),
  radial-gradient(600px 400px at 0 100%, rgba(168, 85, 247, .18), transparent 70%),
  #120e30; }
.titre { text-align: center; margin-bottom: 40px; }
.titre .sur { display: inline-block; color: #2a1800; background: var(--or-2); font-weight: 900; letter-spacing: 2px; font-size: 12px; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; box-shadow: 0 3px 0 #b07a0c; }
.titre h2 { font-size: clamp(28px, 3.8vw, 40px); margin: 12px 0 8px; font-weight: 900; text-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.titre p { color: var(--doux); margin: 0 auto; max-width: 660px; font-size: 17px; }

/* ------------------------------------------------------------------ mondes */
.grille { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.monde {
  position: relative; border-radius: var(--rayon); padding: 24px 22px 22px; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 30%, #241c5a), color-mix(in srgb, var(--c2) 55%, #17123a));
  border: 2px solid color-mix(in srgb, var(--c) 55%, transparent);
  box-shadow: 0 6px 0 color-mix(in srgb, var(--c2) 70%, #000), var(--ombre);
  transition: transform .2s;
}
.monde:hover { transform: translateY(-6px) rotate(-.5deg); }
.monde .apercu { display: block; width: calc(100% + 44px); max-width: none; margin: -24px -22px 14px; height: 170px; object-fit: cover; object-position: center 40%;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--c) 35%, #9cc4ff), color-mix(in srgb, var(--c2) 40%, #4f86e8)); border-bottom: 2px solid color-mix(in srgb, var(--c) 55%, transparent); }
.monde .apercu.contenir { object-fit: contain; padding: 10px; }
.monde .apercu.icone-grande { object-fit: contain; padding: 38px; image-rendering: pixelated; }
.monde .titre-monde { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.monde .titre-monde img { width: 32px; height: 32px; }
.monde .titre-monde h3 { margin: 0; }
.monde::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 30px; transform: rotate(20deg); background: color-mix(in srgb, var(--c) 18%, transparent); }
.monde .icone { width: 64px; height: 64px; padding: 8px; border-radius: 14px; background: rgba(0, 0, 0, .25); margin-bottom: 14px; }
.monde h3 { margin: 0 0 4px; font-size: 24px; color: var(--c); text-shadow: 0 2px 0 rgba(0, 0, 0, .4); }
.monde p { margin: 0; color: #e8e3ff; }
.monde ul { margin: 12px 0 0; padding: 0; list-style: none; color: #e8e3ff; }
.monde li { padding-left: 22px; position: relative; margin: 4px 0; }
.monde li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 9px; height: 9px; background: var(--c); box-shadow: 2px 2px 0 rgba(0, 0, 0, .35); }

/* ------------------------------------------------------------------ atouts du jeu */
.atout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; margin: 0 0 56px; }
.atout:last-child { margin-bottom: 0; }
.atout.inverse .visuels { order: 2; }
.atout .visuels {
  position: relative; min-height: 280px; border-radius: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 28px;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--c) 45%, transparent), transparent 65%), linear-gradient(160deg, #2e2470, #1a1446);
  border: 2px solid color-mix(in srgb, var(--c) 45%, transparent);
  box-shadow: 0 8px 0 rgba(0, 0, 0, .3), var(--ombre);
}
.atout .bloc { width: min(190px, 60%); filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .5)); animation: flotte 5s ease-in-out infinite; }
.atout .objets { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.atout .objets img, .nourriture img {
  width: 64px; height: 64px; padding: 8px; border-radius: 12px; background: rgba(0, 0, 0, .28); border: 2px solid rgba(255, 255, 255, .08);
  transition: transform .2s;
}
.atout .objets img:hover, .nourriture img:hover { transform: translateY(-4px) scale(1.08); }
.atout .visuels.nourriture { display: grid; grid-template-columns: repeat(4, 64px); gap: 12px; align-content: center; justify-content: center; }
.atout .visuels.caisses-ligne { flex-direction: row; gap: 0; }
.caisses-ligne img { width: 30%; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .5)); }
.caisses-ligne img.grande { width: 40%; margin: 0 -2%; position: relative; z-index: 1; animation: flotte 5s ease-in-out infinite; }
.atout .etiquette { display: inline-block; font-weight: 900; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); padding: 4px 10px; border-radius: 999px; }
.atout h3 { font-size: clamp(24px, 3vw, 32px); line-height: 1.15; margin: 12px 0 10px; }
.atout p { color: var(--doux); font-size: 17px; margin: 0; }
.atout strong { color: var(--c); }
.puces { list-style: none; padding: 0; margin: 14px 0 0; }
.puces li { padding-left: 24px; position: relative; margin: 6px 0; color: #e8e3ff; }
.puces li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 10px; background: var(--c); box-shadow: 2px 2px 0 rgba(0, 0, 0, .35); }
.puces code { background: rgba(255, 255, 255, .1); padding: 1px 6px; border-radius: 5px; color: var(--or-2); }
@media (max-width: 820px) {
  .atout { grid-template-columns: 1fr; gap: 22px; }
  .atout.inverse .visuels { order: 0; }
  .atout .visuels { min-height: 220px; }
  .atout .visuels.nourriture { grid-template-columns: repeat(4, 56px); }
  .nourriture img { width: 56px; height: 56px; }
}

/* ------------------------------------------------------------------ boutique */
.bandeau { border-radius: 14px; padding: 14px 18px; margin: 0 auto 26px; max-width: 760px; text-align: center; font-weight: 700; }
.bandeau.alerte { background: rgba(247, 183, 51, .14); border: 2px dashed rgba(247, 183, 51, .6); }
.produits { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.vide, .note { text-align: center; color: var(--doux); }
.note { font-size: 14px; margin-top: 26px; }
.produit {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--rayon); padding: 20px;
  background: linear-gradient(170deg, color-mix(in srgb, var(--c) 22%, #2a2168), #1a1446 70%);
  border: 2px solid color-mix(in srgb, var(--c) 50%, transparent);
  box-shadow: 0 6px 0 color-mix(in srgb, var(--c) 35%, #0a0720), var(--ombre);
  transition: transform .2s;
}
.produit:hover { transform: translateY(-6px); }
.produit .visuel {
  position: relative; height: 170px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px;
  background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--c) 55%, transparent), transparent 62%), rgba(0, 0, 0, .25);
}
.produit .visuel .caisse { position: absolute; width: 150px; transition: opacity .25s, transform .3s; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--c) 70%, transparent)) drop-shadow(0 12px 14px rgba(0, 0, 0, .5)); }
.produit .visuel .ouverte { opacity: 0; transform: scale(.95); }
.produit:hover .visuel .fermee { opacity: 0; }
.produit:hover .visuel .ouverte { opacity: 1; transform: scale(1.04); }
.produit .visuel .cle { position: absolute; right: 10px; bottom: 8px; width: 52px; height: 52px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .6)); transform: rotate(-15deg); }
.produit h3 { margin: 0; font-size: 22px; color: var(--c); text-shadow: 0 2px 0 rgba(0, 0, 0, .4); }
.produit p { color: var(--doux); margin: 6px 0 14px; flex: 1; }
.produit .bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.prix { font-size: 23px; font-weight: 900; white-space: nowrap; }
.prix small { font-size: 13px; color: var(--doux); font-weight: 600; }
.lien-contenu { background: none; border: 0; color: var(--doux); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; padding: 0; margin-bottom: 14px; align-self: flex-start; text-align: left; }
.lien-contenu:hover { color: var(--texte); }

/* ------------------------------------------------------------------ PNJ */
.pnjs { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 820px) { .pnjs { grid-template-columns: repeat(2, 1fr); } }
.pnj {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 20px 14px 18px; border-radius: var(--rayon);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 25%, #2a2168), #1d1650);
  border: 2px solid color-mix(in srgb, var(--c) 45%, transparent);
  box-shadow: 0 5px 0 rgba(0, 0, 0, .3);
  transition: transform .2s;
}
.pnj:hover { transform: translateY(-5px); }
.pnj img { width: 80px; height: 80px; border-radius: 8px; border: 3px solid var(--c); box-shadow: 0 6px 0 rgba(0, 0, 0, .35); margin-bottom: 10px; background: #000; }
.pnj b { font-size: 18px; color: var(--c); }
.pnj span { color: var(--doux); font-size: 14px; }

/* ------------------------------------------------------------------ rejoindre */
.etapes { counter-reset: e; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.etape {
  position: relative; padding: 26px 22px 22px; border-radius: var(--rayon);
  background: linear-gradient(170deg, color-mix(in srgb, var(--c) 20%, #2a2168), #1d1650);
  border: 2px solid color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 6px 0 rgba(0, 0, 0, .3);
}
.etape::before { counter-increment: e; content: counter(e); position: absolute; top: -18px; right: 20px; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; font-weight: 900; font-size: 20px; color: #1a1446; background: var(--c); box-shadow: 0 4px 0 rgba(0, 0, 0, .35); }
.etape img { width: 48px; height: 48px; margin-bottom: 10px; }
.etape h3 { margin: 0 0 6px; color: var(--c); }
.etape p { margin: 0; color: var(--doux); }

/* ------------------------------------------------------------------ pied (couche de bedrock) */
.pied { position: relative; padding: 46px 0 40px; color: var(--doux); font-size: 14px;
  background: repeating-linear-gradient(90deg, #26203e 0 16px, #1e1934 16px 32px), #1e1934; }
.pied::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: repeating-linear-gradient(90deg, #6abe30 0 16px, #5aa828 16px 32px); }
.pied .conteneur { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.pied nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.pied a { color: var(--doux); }
.pied .mention { width: 100%; font-size: 12px; opacity: .75; }

/* ------------------------------------------------------------------ fenêtres */
dialog {
  width: min(540px, 100% - 24px); max-height: calc(100% - 24px); padding: 0; border: 2px solid var(--bord); border-radius: 22px;
  background: linear-gradient(180deg, #2a2168, var(--fond-2) 40%); color: var(--texte); box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
dialog::backdrop { background: rgba(10, 6, 30, .72); backdrop-filter: blur(3px); }
.fenetre { padding: 24px; }
.fenetre h3 { margin: 0 0 4px; font-size: 22px; }
.fenetre .sous { color: var(--doux); margin: 0 0 18px; }
.achat-entete { display: flex; align-items: center; gap: 16px; padding-right: 36px; }
.achat-entete img { width: 92px; flex: none; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .5)); }
.achat-entete img:not([src]), .achat-entete img[src=""] { display: none; }
.achat-entete .sous { margin-bottom: 6px; }
.fermer { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .08); color: var(--texte); font-size: 20px; cursor: pointer; }
.fermer:hover { background: rgba(255, 255, 255, .16); }
label.champ { display: block; font-weight: 700; margin: 14px 0 6px; }
.saisie { display: flex; gap: 8px; }
.saisie input {
  flex: 1; min-width: 0; font: inherit; font-weight: 700; color: var(--texte); background: var(--carte); border: 2px solid var(--bord);
  border-radius: 12px; padding: 12px 14px; outline: none;
}
.saisie input:focus { border-color: var(--or); box-shadow: 0 0 0 3px rgba(247, 183, 51, .25); }
.joueur { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--carte); min-height: 60px; }
.joueur img { width: 40px; height: 40px; border-radius: 6px; image-rendering: pixelated; background: var(--carte-2); }
.joueur .ok { color: var(--vert); font-weight: 800; }
.joueur .ko { color: #ff8a9a; font-weight: 700; }
.joueur small { display: block; color: var(--doux); font-weight: 500; }
.quantite { display: inline-flex; align-items: center; border: 2px solid var(--bord); border-radius: 12px; overflow: hidden; }
.quantite button { width: 42px; height: 42px; border: 0; background: var(--carte-2); color: var(--texte); font-size: 20px; font-weight: 800; cursor: pointer; }
.quantite output { width: 48px; text-align: center; font-weight: 900; font-size: 18px; }
.ligne-total { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 6px; padding-top: 16px; border-top: 1px solid var(--bord); font-weight: 800; font-size: 18px; }
.ligne-total .prix { font-size: 26px; color: var(--or-2); }
.cgv { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--doux); margin: 14px 0 18px; }
.cgv input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--or); flex: none; }
.erreur { color: #ff8a9a; font-weight: 700; min-height: 1.2em; margin: 0 0 10px; font-size: 14px; }
.fenetre .bouton.large { width: 100%; padding: 15px; font-size: 17px; }
.securise { text-align: center; color: var(--doux); font-size: 12px; margin: 12px 0 0; }
.chances { width: 100%; border-collapse: collapse; font-size: 14px; }
.chances td { padding: 8px 4px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.chances td:last-child { text-align: right; font-weight: 800; white-space: nowrap; }
.chances .barre { height: 5px; border-radius: 4px; background: var(--c, var(--or)); margin-top: 4px; opacity: .85; }
.defile { max-height: 52vh; overflow: auto; margin: 0 -6px; padding: 0 6px; }

/* ------------------------------------------------------------------ pages texte (CGV, mentions) */
.carte { background: linear-gradient(180deg, var(--carte-2), var(--carte)); border: 2px solid var(--bord); border-radius: var(--rayon); padding: 26px; box-shadow: 0 6px 0 rgba(0, 0, 0, .3), var(--ombre); }
.page { padding: 40px 0 70px; background: radial-gradient(800px 400px at 50% 0, rgba(255, 95, 162, .14), transparent 70%); }
.page .carte { max-width: 820px; margin: 0 auto; }
.page h1 { margin-top: 0; }
.page h2 { margin-top: 28px; font-size: 20px; color: var(--or-2); }
.page p, .page li { color: #e0dafa; }
.a-completer { background: rgba(247, 183, 51, .15); color: var(--or-2); padding: 0 4px; border-radius: 4px; }

/* ------------------------------------------------------------------ merci */
.merci { text-align: center; padding: 50px 0 80px; background: radial-gradient(800px 400px at 50% 0, rgba(74, 222, 128, .14), transparent 70%); }
.merci .carte { max-width: 560px; margin: 0 auto; }
.merci .grand { font-size: 56px; margin: 0; }
.merci .etat { font-weight: 800; font-size: 18px; margin: 12px 0; }
.charge { width: 28px; height: 28px; border: 3px solid var(--bord); border-top-color: var(--or); border-radius: 50%; animation: tourne 1s linear infinite; margin: 10px auto; }
@keyframes tourne { to { transform: rotate(360deg); } }

.notif { visibility: hidden; position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--vert); color: #04210f; font-weight: 800; padding: 12px 20px; border-radius: 12px; box-shadow: 0 4px 0 #1f8a4a; transition: transform .25s; z-index: 50; }
.notif.visible { visibility: visible; transform: translate(-50%, 0); }
