/* ============================================================================
   BETKIFF — Design system du site vitrine (refonte complète)
   Palette officielle : fond #140B07 · panneaux #241611 · rouge #E31B23
   or #F2B705 · crème #F5EBDD — Baloo Bhai 2 (titres) · Nunito (textes)
   ========================================================================== */

/* ---------- 1. Fondations ---------- */
:root {
  --fond: #140B07;
  --panneau: #241611;
  --panneau-2: #2E1B12;
  --rouge: #E31B23;
  --rouge-fonce: #8E1218;
  --or: #F2B705;
  --or-clair: #F6D77B;
  --creme: #F5EBDD;
  --creme-60: rgba(245, 235, 221, .62);
  --bordure: rgba(242, 183, 5, .22);
  --ombre: 0 18px 50px rgba(0, 0, 0, .55);
  --rayon: 20px;
  --rayon-s: 12px;
  --titres: "Baloo Bhai 2", system-ui, sans-serif;
  --textes: "Nunito", system-ui, sans-serif;
  --transition: .28s cubic-bezier(.2, .7, .3, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--textes);
  color: var(--creme);
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(227, 27, 35, .16), transparent 60%),
    radial-gradient(900px 460px at -10% 30%, rgba(242, 183, 5, .10), transparent 55%),
    var(--fond);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--or-clair); text-decoration: none; }
::selection { background: var(--rouge); color: #fff; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; border-radius: 6px; }

.conteneur { width: min(1160px, 92vw); margin-inline: auto; }
.section { padding: clamp(56px, 9vw, 104px) 0; position: relative; }
.eyebrow {
  display: inline-block; font-weight: 800; letter-spacing: .22em;
  text-transform: uppercase; font-size: .78rem; color: var(--or);
}
h1, h2, h3 { font-family: var(--titres); line-height: 1.12; margin: .35em 0 .45em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.18rem; }
p  { margin: .4em 0 1em; color: var(--creme-60); }
p.grand { font-size: 1.08rem; }

.lien-evitement {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--or); color: #241505; padding: 10px 16px;
  border-radius: 10px; font-weight: 800; transition: top .2s;
}
.lien-evitement:focus { top: 12px; }

.flash { padding: 14px 18px; border-radius: var(--rayon-s); margin: 14px auto; width: min(720px, 92vw); font-weight: 700; }
.flash-success { background: rgba(35, 122, 63, .25); border: 1px solid #3fae6a; }
.flash-error, .flash-danger { background: rgba(227, 27, 35, .18); border: 1px solid var(--rouge); }

/* ---------- 2. Boutons & badges ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: .5em;
  padding: 13px 26px; border-radius: 999px; font-weight: 800;
  font-family: var(--titres); letter-spacing: .02em; border: 0;
  cursor: pointer; overflow: hidden; transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s;
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-or   { background: linear-gradient(180deg, var(--or-clair), var(--or)); color: #241505; box-shadow: 0 10px 26px rgba(242,183,5,.35); }
.btn-rouge{ background: linear-gradient(180deg, #ff4a52, var(--rouge)); color: #fff; box-shadow: 0 10px 26px rgba(227,27,35,.4); }
.btn-contour { background: transparent; color: var(--creme); border: 1.6px solid var(--bordure); }
.btn-contour:hover { border-color: var(--or); color: var(--or-clair); }
.btn-disabled { background: #3a2a1e; color: var(--creme-60); cursor: default; padding: 13px 26px; border-radius: 999px; display: inline-flex; font-weight: 800; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  font-size: .74rem; font-weight: 800; letter-spacing: .04em;
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--bordure);
  background: rgba(0, 0, 0, .35); color: var(--creme-60);
}
.badge-available { color: #6fe39a; border-color: rgba(111, 227, 154, .5); }
.badge-preparing { color: var(--or-clair); border-color: rgba(242, 183, 5, .5); }
.badge-announced { color: var(--creme); }

/* ---------- 3. Entête & navigation ---------- */
.entete {
  position: sticky; top: 0; z-index: 100;
  background: rgba(20, 11, 7, .72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
.entete.est-scrolle { border-bottom-color: var(--bordure); background: rgba(20, 11, 7, .92); }
.entete-int { display: flex; align-items: center; gap: 20px; min-height: 74px; }
.marque img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-lien {
  position: relative; padding: 10px 14px; color: var(--creme);
  font-weight: 700; border-radius: 10px; transition: color var(--transition);
}
.nav-lien::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px;
  height: 2px; background: var(--or); transform: scaleX(0);
  transform-origin: left; transition: transform var(--transition);
}
.nav-lien:hover, .nav-lien.actif { color: var(--or-clair); }
.nav-lien:hover::after, .nav-lien.actif::after { transform: scaleX(1); }
.nav-app { margin-left: 10px; }
.basculer-menu { display: none; }
.burger { display: none; }

/* ---------- 4. HERO accueil : téléphone vivant ---------- */
.hero { padding: clamp(40px, 7vw, 90px) 0 clamp(48px, 8vw, 96px); overflow: hidden; }
.hero-grille { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 .accent { color: var(--or); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.hero-note { font-size: .86rem; color: var(--creme-60); margin-top: 14px; }

.scene-telephone { position: relative; display: grid; place-items: center; min-height: 460px; }
.halo {
  position: absolute; width: min(560px, 90%); aspect-ratio: 1;
  border-radius: 50%; filter: blur(60px); opacity: .55;
  background: radial-gradient(circle at 40% 35%, rgba(227,27,35,.55), transparent 60%),
              radial-gradient(circle at 65% 70%, rgba(242,183,5,.45), transparent 55%);
  animation: halo-vie 9s ease-in-out infinite alternate;
}
@keyframes halo-vie { from { transform: scale(.92) rotate(-4deg); } to { transform: scale(1.06) rotate(5deg); } }

.jeton-flottant {
  position: absolute; font-size: 30px; filter: drop-shadow(0 8px 14px rgba(0,0,0,.5));
  animation: flotter 6s ease-in-out infinite;
}
.jeton-flottant.j1 { top: 8%; left: 6%; animation-delay: 0s; }
.jeton-flottant.j2 { bottom: 12%; left: 12%; animation-delay: 1.4s; font-size: 26px; }
.jeton-flottant.j3 { top: 16%; right: 8%; animation-delay: .7s; font-size: 34px; }
.jeton-flottant.j4 { bottom: 6%; right: 14%; animation-delay: 2s; }
@keyframes flotter { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-16px) rotate(4deg); } }

.telephone {
  position: relative; width: min(300px, 74vw); aspect-ratio: 9 / 19;
  border-radius: 40px; padding: 12px;
  background: linear-gradient(160deg, #3a2416, #170c06);
  box-shadow: var(--ombre), inset 0 0 0 2px rgba(242,183,5,.35);
  transform: rotate(-4deg);
  animation: tel-flotte 7s ease-in-out infinite;
}
@keyframes tel-flotte { 0%,100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-2.5deg) translateY(-10px); } }
.telephone::before {
  content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 22px; background: #170c06; border-radius: 0 0 14px 14px; z-index: 5;
}
.tel-ecran {
  position: relative; width: 100%; height: 100%; border-radius: 30px; overflow: hidden;
  background: var(--fond);
}
.tel-scene {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; padding: 26px 18px;
  opacity: 0; transform: translateX(26px) scale(.98);
  transition: opacity .5s, transform .5s;
}
.tel-scene.active { opacity: 1; transform: none; z-index: 2; }
.tel-scene.sort { opacity: 0; transform: translateX(-26px) scale(.98); }
.tel-logo { width: 72%; }
.tel-titre { font-family: var(--titres); font-size: 1.02rem; color: var(--creme); text-align: center; }
.tel-champ {
  width: 100%; padding: 11px 14px; border-radius: 12px;
  background: rgba(255,255,255,.06); border: 1px solid var(--bordure);
  color: var(--creme-60); font-size: .82rem; text-align: left;
}
.tel-btn {
  width: 100%; padding: 12px; border-radius: 999px; text-align: center;
  font-family: var(--titres); font-weight: 800; font-size: .9rem;
  background: linear-gradient(180deg, var(--or-clair), var(--or)); color: #241505;
}
.tel-btn.rouge { background: linear-gradient(180deg, #ff4a52, var(--rouge)); color: #fff; }
.tel-grille-jeux { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.tel-jeu {
  border-radius: 14px; padding: 10px 8px 12px; text-align: center;
  background: linear-gradient(180deg, var(--panneau-2), var(--panneau));
  border: 1px solid var(--bordure); transition: transform .3s, border-color .3s;
}
.tel-jeu img { width: 74%; margin: 0 auto 6px; border-radius: 10px; }
.tel-jeu span { font-size: .72rem; font-weight: 800; }
.tel-jeu.cible { border-color: var(--or); transform: scale(1.06); box-shadow: 0 0 0 3px rgba(242,183,5,.25); }
.tel-apercu img { width: 100%; border-radius: 14px; border: 1px solid var(--bordure); }
.tel-solde {
  display: flex; align-items: center; gap: 8px; font-size: .8rem;
  background: rgba(0,0,0,.4); padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--bordure);
}
.doigt {
  position: absolute; z-index: 8; font-size: 30px; left: 50%; top: 60%;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.6));
  transition: left .55s cubic-bezier(.4,.1,.2,1), top .55s cubic-bezier(.4,.1,.2,1), transform .18s;
  pointer-events: none;
}
.doigt.appuie { transform: scale(.82); }

/* ---------- 5. Cartes de jeux ---------- */
.grille-jeux {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(16px, 3vw, 28px);
}
.carte-jeu {
  position: relative; border-radius: var(--rayon);
  background: linear-gradient(180deg, var(--panneau-2), var(--panneau));
  border: 1px solid var(--bordure);
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s, border-color .35s;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  will-change: transform;
}
.carte-jeu:hover { border-color: var(--or); box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(242,183,5,.25); }
.carte-jeu-lien { display: block; color: inherit; }
.carte-jeu-visuel { position: relative; border-radius: var(--rayon) var(--rayon) 0 0; overflow: hidden; aspect-ratio: 4/3; }
.carte-jeu-visuel img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.carte-jeu:hover .carte-jeu-visuel img { transform: scale(1.08) rotate(.6deg); }
.carte-jeu-lueur {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20,11,7,.9));
}
.carte-jeu-corps { padding: 18px 18px 64px; }
.carte-jeu-titre { margin: 0 0 4px; }
.carte-jeu-desc { font-size: .92rem; min-height: 3.2em; }
.carte-jeu-essai {
  position: absolute; left: 16px; right: 16px; bottom: 14px;
  justify-content: center; opacity: 0; transform: translateY(10px);
  transition: opacity .3s, transform .3s;
}
.carte-jeu:hover .carte-jeu-essai, .carte-jeu:focus-within .carte-jeu-essai { opacity: 1; transform: none; }
@media (hover: none) { .carte-jeu-essai { opacity: 1; transform: none; } }

/* ---------- 6. Sections accueil ---------- */
.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: etape; }
.etape {
  position: relative; padding: 26px 22px 22px; border-radius: var(--rayon);
  background: var(--panneau); border: 1px solid var(--bordure);
  transition: transform var(--transition), border-color var(--transition);
}
.etape:hover { transform: translateY(-6px); border-color: var(--or); }
.etape::before {
  counter-increment: etape; content: counter(etape);
  position: absolute; top: -18px; left: 20px;
  width: 42px; height: 42px; display: grid; place-items: center;
  font-family: var(--titres); font-weight: 800; font-size: 1.2rem; color: #241505;
  background: linear-gradient(180deg, var(--or-clair), var(--or));
  border-radius: 50%; box-shadow: 0 8px 18px rgba(242,183,5,.4);
}
.bandeau-app {
  text-align: center; padding: clamp(40px, 7vw, 70px) 24px;
  border-radius: var(--rayon); border: 1px solid var(--bordure);
  background:
    radial-gradient(600px 240px at 50% 0%, rgba(227,27,35,.22), transparent 70%),
    linear-gradient(180deg, var(--panneau-2), var(--panneau));
}
.galerie { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.galerie img { border-radius: var(--rayon-s); border: 1px solid var(--bordure); }
.actus { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.actu {
  padding: 20px; border-radius: var(--rayon); background: var(--panneau);
  border: 1px solid var(--bordure); transition: transform var(--transition), border-color var(--transition);
}
.actu:hover { transform: translateY(-5px); border-color: var(--or); }
.actu time { font-size: .78rem; color: var(--or); font-weight: 800; letter-spacing: .06em; }

/* FAQ — <details> animés */
.faq-liste { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq {
  border: 1px solid var(--bordure); border-radius: var(--rayon-s);
  background: var(--panneau); overflow: hidden; transition: border-color var(--transition);
}
.faq[open] { border-color: var(--or); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 18px;
  font-weight: 800; position: relative; font-family: var(--titres);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%;
  transform: translateY(-50%); font-size: 1.4rem; color: var(--or);
  transition: transform .3s;
}
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-corps { padding: 0 18px; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.faq[open] .faq-corps { grid-template-rows: 1fr; padding-bottom: 16px; }
.faq-corps > div { overflow: hidden; }

/* ---------- 7. Fiche jeu & DÉMO ---------- */
.hero-jeu { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.hero-jeu-visuel { border-radius: var(--rayon); overflow: hidden; border: 1px solid var(--bordure); box-shadow: var(--ombre); }
.panneau {
  background: var(--panneau); border: 1px solid var(--bordure);
  border-radius: var(--rayon); padding: clamp(20px, 3.4vw, 32px);
}
.regles { white-space: pre-line; }

.demo-cadre {
  border: 1px solid var(--bordure); border-radius: var(--rayon);
  background:
    radial-gradient(500px 200px at 50% 0%, rgba(242,183,5,.10), transparent 70%),
    linear-gradient(180deg, #1B0E08, var(--fond));
  padding: clamp(14px, 3vw, 26px); box-shadow: var(--ombre);
}
.demo-banniere {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 14px;
}
.demo-etiquette {
  font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  color: #241505; background: linear-gradient(180deg, var(--or-clair), var(--or));
  padding: 7px 14px; border-radius: 999px;
}
.demo-statut { font-weight: 800; color: var(--creme); min-height: 1.4em; }
.demo-statut.gagne { color: #6fe39a; }
.demo-statut.perd { color: #ff7d84; }
.demo-plateau { display: grid; place-items: center; }
.demo-plateau canvas {
  width: 100%; max-width: 560px; height: auto; border-radius: var(--rayon-s);
  touch-action: manipulation;
}
.demo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; justify-content: center; }
.demo-note { text-align: center; font-size: .82rem; color: var(--creme-60); margin-top: 10px; }
.demo-sans-js { text-align: center; padding: 26px; }

/* Folies (cartes DOM) */
.folies-table { width: 100%; max-width: 560px; display: grid; gap: 14px; }
.folies-rangee { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; min-height: 92px; align-items: center; }
.carte-mini {
  width: 58px; height: 84px; border-radius: 8px; display: grid; place-items: center;
  font-weight: 800; font-size: 1.05rem; position: relative;
  background: linear-gradient(160deg, #fffdf6, #efe3c8);
  color: #22150a; border: 1px solid #cbb289;
  box-shadow: 0 3px 0 #9c7c4c, 0 6px 10px rgba(0,0,0,.35);
  transition: transform .22s, box-shadow .22s; cursor: default;
}
.carte-mini.rougec { color: var(--rouge); }
.carte-mini.dos {
  background: repeating-linear-gradient(45deg, #6d1116, #6d1116 6px, #8E1218 6px, #8E1218 12px);
  border-color: #3c0a0d; color: transparent;
}
.carte-mini.jouable { cursor: pointer; }
.carte-mini.jouable:hover { transform: translateY(-10px); box-shadow: 0 3px 0 #9c7c4c, 0 14px 20px rgba(0,0,0,.45); }
.carte-mini.pop { animation: carte-pop .28s cubic-bezier(.3,1.4,.5,1); }
@keyframes carte-pop { from { transform: scale(.55); } to { transform: scale(1); } }
.folies-centre { display: flex; gap: 18px; justify-content: center; align-items: center; }
.pioche-compteur { font-size: .78rem; text-align: center; color: var(--creme-60); margin-top: 4px; }

/* Lettres */
.lettres-zone { width: 100%; max-width: 560px; }
.lettres-grille { display: grid; grid-template-columns: repeat(11, 1fr); gap: 3px; }
.lcase {
  aspect-ratio: 1; display: grid; place-items: center; border-radius: 5px;
  background: #EDE0C4; color: #22150a; font-weight: 800; font-size: clamp(.6rem, 2.2vw, .95rem);
  border: 1px solid #cbb289; cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.lcase.bonus-mt { background: #D6452F; color: #fff; font-size: .55rem; }
.lcase.bonus-lt { background: #2E6FB2; color: #fff; font-size: .55rem; }
.lcase.centre { background: var(--or); }
.lcase.posee { background: linear-gradient(160deg, #F8C25B, #DD9430); box-shadow: 0 2px 0 #8a5a22; }
.lcase.provisoire { background: linear-gradient(160deg, #ffd98a, #e8a93c); box-shadow: 0 0 0 2px var(--rouge); animation: carte-pop .25s; }
.lcase.selection { outline: 3px solid var(--rouge); }
.lettres-chevalet {
  margin-top: 14px; padding: 10px 8px 12px; border-radius: 12px;
  background: linear-gradient(180deg, #5C3413, #351D09);
  border-top: 2px solid #C9962E; display: flex; gap: 8px; justify-content: center;
}
.ltuile {
  width: 44px; height: 48px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(160deg, #fffdf6, #efe3c8); color: #22150a;
  font-weight: 800; font-size: 1.1rem; border: 1px solid #cbb289;
  box-shadow: 0 3px 0 #9c7c4c; cursor: pointer; position: relative;
  transition: transform .18s;
}
.ltuile small { position: absolute; right: 3px; bottom: 1px; font-size: .55rem; }
.ltuile.selection { transform: translateY(-8px); outline: 3px solid var(--rouge); }
.ltuile.epuisee { opacity: .28; pointer-events: none; }

/* ---------- 8. Pages internes ---------- */
.page-hero { padding: clamp(48px, 8vw, 84px) 0 8px; text-align: center; }
.page-hero p { max-width: 640px; margin-inline: auto; }
.release-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.qr-bloc { text-align: center; }
.qr-bloc img { margin-inline: auto; border-radius: var(--rayon-s); border: 6px solid #fff; }

form .champ { margin-bottom: 16px; }
form label { display: block; font-weight: 800; margin-bottom: 6px; font-size: .92rem; }
form input, form select, form textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--rayon-s);
  background: rgba(0,0,0,.35); border: 1px solid var(--bordure);
  color: var(--creme); font-family: var(--textes); font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
form input:focus, form select:focus, form textarea:focus {
  outline: none; border-color: var(--or); box-shadow: 0 0 0 3px rgba(242,183,5,.18);
}
form textarea { min-height: 150px; resize: vertical; }
.form-erreurs { color: #ff7d84; font-size: .86rem; font-weight: 700; margin-top: 4px; }

.erreur-page { text-align: center; padding: 90px 20px; }
.erreur-page .code { font-family: var(--titres); font-size: clamp(4rem, 16vw, 8rem); color: var(--or); line-height: 1; }

/* ---------- 9. Pied de page ---------- */
.pied { border-top: 1px solid var(--bordure); margin-top: 40px; background: #100804; }
.pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding: 48px 0 28px; }
.pied-col { display: grid; gap: 8px; align-content: start; }
.pied-col h3 { font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; color: var(--or); margin: 0 0 4px; }
.pied-col a { color: var(--creme-60); font-size: .95rem; transition: color var(--transition); }
.pied-col a:hover { color: var(--or-clair); }
.pied-slogan { font-family: var(--titres); color: var(--creme); font-weight: 800; margin: 10px 0 4px; }
.pied-note { font-size: .82rem; }
.pied-bas {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  padding: 16px 0 22px; border-top: 1px solid rgba(242,183,5,.12);
  font-size: .8rem; color: var(--creme-60);
}

/* ---------- 10. Apparitions & mouvement ---------- */
.apparait { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.apparait.visible { opacity: 1; transform: none; }
.apparait.retard-1 { transition-delay: .08s; }
.apparait.retard-2 { transition-delay: .16s; }
.apparait.retard-3 { transition-delay: .24s; }
.parallaxe { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .apparait { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 11. Responsive ---------- */
@media (max-width: 980px) {
  .hero-grille, .hero-jeu { grid-template-columns: 1fr; }
  .scene-telephone { min-height: 0; order: -1; }
  .telephone { width: min(240px, 62vw); }
  .etapes { grid-template-columns: 1fr; }
  .pied-grille { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .burger {
    display: grid; gap: 5px; margin-left: auto; cursor: pointer;
    padding: 10px; border-radius: 10px; z-index: 130;
  }
  .burger span { width: 26px; height: 3px; background: var(--creme); border-radius: 2px; transition: transform .3s, opacity .3s; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(330px, 84vw);
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #1B0E08; border-left: 1px solid var(--bordure);
    padding: 96px 22px 22px; transform: translateX(105%);
    transition: transform .35s cubic-bezier(.2,.7,.3,1); z-index: 120;
    box-shadow: -30px 0 60px rgba(0,0,0,.55);
  }
  .nav-lien { padding: 14px; font-size: 1.05rem; }
  .nav-app { margin: 12px 0 0; justify-content: center; }
  .basculer-menu:checked ~ .nav { transform: none; }
  .basculer-menu:checked ~ .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .basculer-menu:checked ~ .burger span:nth-child(2) { opacity: 0; }
  .basculer-menu:checked ~ .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
@media (max-width: 620px) {
  .pied-grille { grid-template-columns: 1fr; }
  .carte-mini { width: 48px; height: 70px; font-size: .92rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ============================================================================
   SUPPLÉMENT « VIVANT » — preloader, téléphone géant, agent, effets ambiants
   ========================================================================== */

/* ---------- Preloader de marque ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 999; display: grid; place-items: center;
  background:
    radial-gradient(700px 400px at 50% 30%, rgba(227,27,35,.25), transparent 65%),
    var(--fond);
  transition: opacity .55s ease, visibility .55s;
}
.preloader.part { opacity: 0; visibility: hidden; }
.preloader-int { display: grid; place-items: center; gap: 18px; }
.preloader-logo { width: min(230px, 60vw); animation: prel-pulse 1.6s ease-in-out infinite; }
@keyframes prel-pulse { 0%,100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(242,183,5,0)); } 50% { transform: scale(1.05); filter: drop-shadow(0 0 26px rgba(242,183,5,.45)); } }
.preloader-de {
  width: 46px; height: 46px; border-radius: 10px;
  background: linear-gradient(145deg, #fff, #e8e0d0);
  box-shadow: inset -4px -4px 8px rgba(0,0,0,.2), 0 10px 24px rgba(0,0,0,.5);
  position: relative; animation: prel-de 1.1s cubic-bezier(.5,-.3,.4,1.4) infinite;
}
.preloader-de::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 10px; height: 10px;
  border-radius: 50%; background: var(--rouge);
}
@keyframes prel-de { 0% { transform: rotate(0) translateY(0); } 50% { transform: rotate(180deg) translateY(-22px); } 100% { transform: rotate(360deg) translateY(0); } }
.preloader-barre { width: min(240px, 55vw); height: 5px; border-radius: 99px; overflow: hidden; background: rgba(245,235,221,.14); }
.preloader-barre i { display: block; height: 100%; width: 40%; border-radius: 99px; background: linear-gradient(90deg, var(--rouge), var(--or)); animation: prel-barre 1.2s ease-in-out infinite; }
@keyframes prel-barre { 0% { transform: translateX(-110%); } 100% { transform: translateX(280%); } }

/* ---------- Fond & titres vivants ---------- */
body::before {
  content: ""; position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 340px at 20% 15%, rgba(227,27,35,.12), transparent 60%),
    radial-gradient(700px 380px at 80% 80%, rgba(242,183,5,.09), transparent 60%);
  animation: fond-vie 22s ease-in-out infinite alternate;
}
@keyframes fond-vie { from { transform: translate(-2%, -1%) scale(1); } to { transform: translate(2%, 2%) scale(1.06); } }
.hero h1 .accent {
  background: linear-gradient(90deg, var(--or), #ffdf7e, var(--or), var(--rouge));
  background-size: 280% 100%; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: accent-flux 5.5s linear infinite;
}
@keyframes accent-flux { to { background-position: 280% 0; } }
.btn-rouge.pulse { animation: cta-pulse 2.4s ease-in-out infinite; }
@keyframes cta-pulse {
  0%,100% { box-shadow: 0 10px 26px rgba(227,27,35,.4); }
  50% { box-shadow: 0 10px 26px rgba(227,27,35,.4), 0 0 0 12px rgba(227,27,35,.12); }
}
.carte-jeu::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(120deg, transparent 30%, rgba(242,183,5,.7), transparent 70%);
  background-size: 250% 100%; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s; animation: bord-flux 3.2s linear infinite; pointer-events: none;
}
.carte-jeu:hover::after { opacity: 1; }
@keyframes bord-flux { to { background-position: 250% 0; } }

/* ---------- Téléphone GÉANT & scènes lisibles ---------- */
.telephone { width: min(370px, 88vw); padding: 13px; }
.tel-scene { padding: 30px 20px; gap: 14px; }
.tel-titre { font-size: 1.22rem; }
.tel-champ { font-size: .95rem; padding: 13px 15px; }
.tel-btn { font-size: 1.02rem; padding: 14px; animation: tel-btn-brille 2.6s ease-in-out infinite; }
@keyframes tel-btn-brille { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.16); } }
.tel-jeu span { font-size: .85rem; }
.tel-solde { font-size: .92rem; padding: 9px 15px; }
.tel-solde b { color: var(--or); }
.tel-scene.active .tel-jeu { animation: jeu-entre .5s cubic-bezier(.2,1.2,.4,1) backwards; }
.tel-scene.active .tel-jeu:nth-child(1) { animation-delay: .05s; }
.tel-scene.active .tel-jeu:nth-child(2) { animation-delay: .15s; }
.tel-scene.active .tel-jeu:nth-child(3) { animation-delay: .25s; }
.tel-scene.active .tel-jeu:nth-child(4) { animation-delay: .35s; }
@keyframes jeu-entre { from { opacity: 0; transform: translateY(18px) scale(.9); } }
.tel-scene.active .tel-champ, .tel-scene.active .tel-btn, .tel-scene.active .tel-solde {
  animation: ligne-entre .45s ease backwards;
}
.tel-scene.active > :nth-child(2) { animation-delay: .08s; }
.tel-scene.active > :nth-child(3) { animation-delay: .18s; }
.tel-scene.active > :nth-child(4) { animation-delay: .28s; }
@keyframes ligne-entre { from { opacity: 0; transform: translateX(20px); } }
.tel-apercu { position: relative; overflow: hidden; border-radius: 14px; }
.tel-apercu::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%);
  transform: translateX(-120%); animation: apercu-brille 2.2s .3s infinite;
}
@keyframes apercu-brille { to { transform: translateX(130%); } }
@media (max-width: 980px) { .telephone { width: min(300px, 80vw); } }

/* ---------- Agent BETKIFF (chat local) ---------- */
.agent-bouton {
  position: fixed; right: 18px; bottom: 18px; z-index: 300;
  width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer;
  font-size: 1.6rem; display: grid; place-items: center; color: #241505;
  background: linear-gradient(160deg, var(--or-clair), var(--or));
  box-shadow: 0 14px 34px rgba(242,183,5,.45); transition: transform .25s;
  animation: cta-pulse 3s ease-in-out infinite;
}
.agent-bouton:hover { transform: scale(1.08) rotate(-6deg); }
.agent-panneau {
  position: fixed; right: 18px; bottom: 92px; z-index: 300;
  width: min(370px, calc(100vw - 28px)); max-height: min(560px, 74vh);
  display: flex; flex-direction: column; border-radius: 18px; overflow: hidden;
  background: var(--panneau); border: 1px solid var(--or);
  box-shadow: 0 30px 80px rgba(0,0,0,.65);
  opacity: 0; transform: translateY(24px) scale(.96); pointer-events: none;
  transition: opacity .3s, transform .3s cubic-bezier(.2,1.1,.4,1);
}
.agent-panneau.ouvert { opacity: 1; transform: none; pointer-events: auto; }
.agent-entete {
  display: flex; align-items: center; gap: 10px; padding: 13px 16px;
  background: linear-gradient(120deg, #2E1B12, #1B0E08); border-bottom: 1px solid var(--bordure);
}
.agent-entete img { width: 34px; height: 34px; }
.agent-entete b { font-family: var(--titres); }
.agent-entete small { display: block; color: #6fe39a; font-size: .72rem; }
.agent-fermer { margin-left: auto; background: none; border: 0; color: var(--creme-60); font-size: 1.3rem; cursor: pointer; }
.agent-fil { flex: 1; overflow-y: auto; padding: 14px; display: grid; gap: 10px; align-content: start; }
.bulle { max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: .92rem; line-height: 1.5; white-space: pre-line; animation: bulle-pop .3s cubic-bezier(.3,1.3,.5,1); }
@keyframes bulle-pop { from { opacity: 0; transform: translateY(10px) scale(.95); } }
.bulle.agent { background: #34201400; background: #342014; border: 1px solid var(--bordure); border-radius: 14px 14px 14px 4px; }
.bulle.moi { background: linear-gradient(160deg, var(--or-clair), var(--or)); color: #241505; font-weight: 700; justify-self: end; border-radius: 14px 14px 4px 14px; }
.bulle.pense i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--or); margin-right: 4px; animation: pense 1s infinite; }
.bulle.pense i:nth-child(2) { animation-delay: .18s; }
.bulle.pense i:nth-child(3) { animation-delay: .36s; }
@keyframes pense { 0%,100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }
.agent-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.agent-suggestions button {
  border: 1px solid var(--bordure); background: rgba(0,0,0,.3); color: var(--creme);
  border-radius: 999px; padding: 6px 12px; font-size: .78rem; cursor: pointer; transition: border-color .2s, color .2s;
}
.agent-suggestions button:hover { border-color: var(--or); color: var(--or-clair); }
.agent-saisie { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--bordure); }
.agent-saisie input { flex: 1; padding: 11px 14px; border-radius: 999px; }
.agent-saisie button { border: 0; border-radius: 50%; width: 46px; height: 46px; font-size: 1.1rem; cursor: pointer; background: linear-gradient(160deg, #ff4a52, var(--rouge)); color: #fff; }

/* ---------- Page démos ---------- */
.demos-grille { display: grid; gap: clamp(22px, 4vw, 40px); }
.demo-cadre h2 { margin-top: 0; }
.demo-onglets { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 22px; }
.demo-onglets a { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--bordure); font-weight: 800; color: var(--creme); transition: border-color .2s, color .2s, transform .2s; }
.demo-onglets a:hover { border-color: var(--or); color: var(--or-clair); transform: translateY(-2px); }
