/* Lingo Rivals, la landing page. Mêmes couleurs et polices que le jeu (docs/04, prototype/index.html) */
:root {
  --nuit: #0F1030;
  --nuit-2: #17183F;
  --nuit-3: #24255A;
  --bleu: #2F6BFF;
  --corail: #FF5A6E;
  --or: #FFC93C;
  --or-fonce: #C98A0B;
  --texte: #FFFFFF;
  --doux: #B9B7E3;
  --bord: rgba(255, 255, 255, .11);
  --carte: rgba(255, 255, 255, .055);
  --titre: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --ui: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --large: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--nuit); color: var(--texte); font: 400 17px/1.55 var(--ui); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--titre); font-weight: 400; letter-spacing: .3px; line-height: 1.08; margin: 0; }
p { margin: 0; }

.bloc { width: 100%; max-width: var(--large); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.etiquette { font: 700 13px var(--ui); letter-spacing: 1.6px; text-transform: uppercase; color: var(--or); margin-bottom: 12px; }
.section h2 { font-size: clamp(34px, 7vw, 52px); }
.chapeau { color: var(--doux); font-size: 18px; max-width: 620px; margin-top: 14px; }
.tete-section { margin-bottom: 36px; }
.tete-section.centre { text-align: center; }
.tete-section.centre .chapeau { margin-inline: auto; }

/* Le logo : « Lingo » en bleu, « Rivals » en corail (docs/04) */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 23px/1 var(--titre); letter-spacing: .3px; }
.logo img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.logo .l { color: #6E97FF; }
.logo .r { color: var(--corail); }

/* L'en-tête */
.entete { position: sticky; top: 0; z-index: 10; background: rgba(15, 16, 48, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--bord); }
.entete .bloc { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.entete .droite { display: flex; align-items: center; gap: 10px; }
.langues { display: flex; padding: 3px; border-radius: 12px; background: var(--carte); border: 1px solid var(--bord); font: 700 13px var(--ui); }
.langues a { padding: 6px 9px; border-radius: 9px; text-decoration: none; color: var(--doux); }
.langues a[aria-current] { background: var(--nuit-3); color: var(--texte); }
.btn-mini { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 12px; text-decoration: none; white-space: nowrap;
  background: var(--or); color: #3A2200; font: 400 16px var(--titre); letter-spacing: .4px; box-shadow: 0 3px 0 var(--or-fonce); }
.btn-mini:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--or-fonce); }

/* Le bandeau qui propose l'autre langue (affiché par le script si la langue du téléphone ne correspond pas) */
.autre-langue { display: none; background: var(--nuit-3); text-align: center; font-size: 15px; padding: 9px 16px; }
.autre-langue.visible { display: block; }
.autre-langue a { color: var(--or); font-weight: 700; }

/* Le héros */
.heros { position: relative; padding: 18px 0 64px; overflow: hidden; }
.heros::before { content: ""; position: absolute; inset: -120px 0 auto; height: 620px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 201, 60, .13), transparent 72%) 50% 0 / 760px 620px no-repeat; }
.heros .bloc { position: relative; display: grid; gap: 4px; justify-items: center; text-align: center; }
.heros-visuel { height: clamp(240px, 40svh, 380px); width: auto; margin-bottom: -6px;
  -webkit-mask-image: radial-gradient(ellipse 50% 52% at 50% 48%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 50% 52% at 50% 48%, #000 62%, transparent 100%); }
.heros h1 { font-size: clamp(36px, 9.6vw, 56px); max-width: 17ch; margin-inline: auto; }
.sans-coupure { white-space: nowrap; }
.heros h1 em { font-style: normal; color: var(--or); }
.heros .chapeau { margin: 14px auto 0; font-size: 18px; }
.mini-infos { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: 16px; color: var(--doux); font-size: 14px; font-weight: 500; }
.mini-infos span::before { content: "●"; color: var(--or); font-size: 9px; vertical-align: 3px; margin-right: 7px; }

/* Les boutons des stores, en « bientôt » tant que l'app n'est pas publiée */
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.store { position: relative; display: inline-flex; align-items: center; gap: 10px; min-width: 186px; padding: 9px 18px 9px 14px; border-radius: 14px; text-align: left; text-decoration: none;
  background: #000; border: 1.5px solid rgba(255,255,255,.55); color: #fff; }
.store svg { width: 28px; height: 28px; flex: none; fill: #fff; }
.store small { display: block; font: 500 11.5px/1.2 var(--ui); letter-spacing: .3px; color: rgba(255,255,255,.75); }
.store b { display: block; font: 600 20px/1.15 var(--ui); letter-spacing: -.2px; }
.store .pastille { position: absolute; top: -10px; right: -8px; padding: 3px 8px; border-radius: 999px; background: var(--or); color: #3A2200; font: 700 11px/1.3 var(--ui); letter-spacing: .4px; text-transform: uppercase; box-shadow: 0 2px 0 var(--or-fonce); }

/* Le duel : « le premier à 3 » */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.etape { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; padding: 18px; border-radius: 22px; background: var(--carte); border: 1px solid var(--bord); }
.numero { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; font: 400 26px var(--titre); color: #3A2200;
  background: linear-gradient(180deg, #FFE38A, var(--or) 50%, #F5B21C); box-shadow: inset 0 2px 0 rgba(255,255,255,.6), 0 3px 0 var(--or-fonce); }
.etape h3 { font-size: 24px; margin-bottom: 4px; }
.etape p { color: var(--doux); font-size: 16px; }
figure { margin: 0; }

/* Les captures d'écran du jeu, dans un cadre de téléphone */
.telephone { display: block; padding: 7px; border-radius: 34px; background: linear-gradient(160deg, #34366E, #14153A);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 22px 44px rgba(0,0,0,.45); }
.telephone img { width: 100%; height: auto; border-radius: 27px; }
.ecrans { display: grid; grid-auto-flow: column; grid-auto-columns: min(64vw, 250px); gap: 16px; list-style: none; margin: 34px -20px 0; padding: 4px 20px 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ecrans::-webkit-scrollbar { display: none; }
.ecrans li { scroll-snap-align: center; }
.ecrans figcaption { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 12px; font-weight: 600; font-size: 15px; line-height: 1.3; text-align: left; }
.ecrans figcaption b { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--or); color: #3A2200; font: 400 14px var(--titre); }
.ecran-seul { width: min(68vw, 280px); margin: 0 auto; }

/* Les jokers du duel */
.jokers { margin: 28px auto 0; max-width: 820px; padding: 20px 18px; border-radius: 22px; background: var(--carte); border: 1px solid var(--bord); text-align: center; }
.jokers-titre { font: 400 22px var(--titre); }
.jokers ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; text-align: left; }
.jokers li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; line-height: 1.35; color: var(--doux); }
.jokers li b { color: var(--texte); }
.pastille-joker { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; border: 2px solid var(--or);
  background: radial-gradient(circle at 50% 35%, #3B3D86, #1B1C4A); color: #fff; font: 700 17px var(--ui); }
.jokers-note { margin-top: 12px; font-size: 14px; color: var(--doux); }

/* Deux colonnes : un texte et un écran du jeu */
.deux-col { display: grid; gap: 36px; align-items: center; }
.socle-icone { display: grid; place-items: center; width: 56px; height: 56px; }
.socle-icone::before { content: ""; width: 50px; height: 18px; border-radius: 50%; background: linear-gradient(180deg, #FFE38A, var(--or) 45%, #C98A0B); box-shadow: 0 5px 0 #7A5512; }

/* Les 6 mini-jeux */
.jeux { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; list-style: none; margin: 0; padding: 0; }
.jeu { --c: var(--or); position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 16px 18px; border-radius: 22px; background: var(--carte); border: 1px solid var(--bord); }
.jeu img { width: 64px; height: 64px; margin-bottom: 4px; }
.jeu h3 { font-size: 22px; }
.jeu p { color: var(--doux); font-size: 15px; line-height: 1.45; }
.jeu .savoir { align-self: flex-start; margin-top: auto; padding-top: 8px; font: 700 12px var(--ui); letter-spacing: 1px; text-transform: uppercase; color: var(--c); }
.jeu.finale { background: linear-gradient(160deg, rgba(232,118,44,.16), rgba(255,255,255,.04)); border-color: rgba(232,118,44,.45); }

/* Les Rivaux */
.rivaux { display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 12px; list-style: none; margin: 0 -20px; padding: 6px 20px 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rivaux::-webkit-scrollbar { display: none; }
.rival { --c: #2E9B78; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 16px 20px; border-radius: 24px;
  background: radial-gradient(120% 70% at 50% 30%, color-mix(in srgb, var(--c) 34%, transparent), transparent 70%), var(--nuit-2); border: 1px solid var(--bord); }
.rival img { width: 170px; height: 170px; object-fit: contain; filter: drop-shadow(0 12px 14px rgba(0,0,0,.45)); }
.rival h3 { font-size: 28px; margin-top: 4px; }
.rival .trait { font: 700 12.5px var(--ui); letter-spacing: 1px; text-transform: uppercase; color: var(--or); margin-top: 2px; }
.bulle { position: relative; margin-top: 14px; padding: 10px 14px; border-radius: 16px; background: #fff; color: #1A1A3A; font-weight: 600; font-size: 16px; line-height: 1.3; }
.bulle::before { content: ""; position: absolute; top: -7px; left: 50%; margin-left: -7px; border: 7px solid transparent; border-top: 0; border-bottom-color: #fff; }
.bulle small { display: block; font-weight: 400; font-size: 13.5px; color: #5B5A86; margin-top: 2px; }
.astuce-defile { color: var(--doux); font-size: 14px; text-align: center; margin-top: 6px; }

/* Apprendre : leçons, répétition espacée, mots à venger */
.apprendre { display: grid; gap: 32px; align-items: center; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.point { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; }
.point img { width: 56px; height: 56px; }
.point h3 { font-size: 23px; margin-bottom: 3px; }
.point p { color: var(--doux); font-size: 16px; }
.mots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 420px; margin: 0 auto; width: 100%; }
.mot { display: flex; flex-direction: column; align-items: center; padding: 14px 10px 14px; border-radius: 20px; background: #fff; color: #1A1A3A; box-shadow: 0 6px 0 rgba(0,0,0,.25); }
.mot img { width: 96px; height: 96px; }
.mot b { font: 400 24px var(--titre); margin-top: 6px; }
.mot span { font-size: 14px; color: #5B5A86; }
.mot:nth-child(odd) { transform: rotate(-2deg); }
.mot:nth-child(even) { transform: rotate(2deg) translateY(8px); }

/* Les coffres */
.raretes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; list-style: none; margin: 22px 0 0; padding: 0; }
.rarete { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 12px; border-radius: 18px; background: var(--carte); border: 1px solid var(--bord); text-align: center; }
.rarete img { width: 64px; height: 64px; }
.rarete span { font: 700 12.5px var(--ui); }
.rarete:nth-child(1) span { color: #E0A86A; }
.rarete:nth-child(2) span { color: #7EA6FF; }
.rarete:nth-child(3) span { color: #C59BFF; }
.rarete:nth-child(4) span { color: var(--or); }
.honnete { display: flex; gap: 12px; align-items: center; margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: rgba(61,220,132,.08); border: 1px solid rgba(61,220,132,.3); font-size: 15.5px; }
.honnete img { width: 36px; height: 36px; flex: none; }

/* Le dernier appel */
.final { text-align: center; }
.final-carte { position: relative; padding: 40px 22px 44px; border-radius: 32px; overflow: hidden; border: 1px solid rgba(255,201,60,.35);
  background: radial-gradient(80% 60% at 50% 0%, rgba(255,201,60,.16), transparent 70%), var(--nuit-2); }
.final-carte .icone { width: 112px; height: 112px; margin: 0 auto 20px; border-radius: 26px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.final h2 { font-size: clamp(32px, 7vw, 50px); max-width: 16ch; margin: 0 auto; }
.final .chapeau { margin: 14px auto 0; }

/* Le pied de page */
.pied { padding: 34px 0 44px; border-top: 1px solid var(--bord); color: var(--doux); font-size: 14px; }
.pied .bloc { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.pied nav { display: flex; gap: 18px; }
.pied a { text-decoration: none; }
.pied a:hover { color: var(--texte); }

/* Un peu de vie, sans en faire trop */
@media (prefers-reduced-motion: no-preference) {
  .heros-visuel { animation: flotte 5s ease-in-out infinite; }
  @keyframes flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
  .jeu, .rival, .etape, .ecrans figure { transition: transform .2s cubic-bezier(.3,1.6,.6,1); }
  .jeu:hover, .rival:hover, .etape:hover, .ecrans figure:hover { transform: translateY(-4px); }
}

/* Les petits téléphones : un en-tête plus serré pour que le nom, la langue et le bouton tiennent sur une ligne */
@media (max-width: 420px) {
  .entete .bloc { padding: 0 14px; gap: 8px; }
  .entete .droite { gap: 7px; }
  .logo { gap: 7px; font-size: 19px; }
  .logo img { width: 34px; height: 34px; border-radius: 9px; }
  .langues { font-size: 12px; }
  .langues a { padding: 6px 7px; }
  .btn-mini { min-height: 36px; padding: 0 10px; font-size: 14px; }
}
@media (max-width: 350px) {
  .entete .btn-mini { display: none; }
}

/* Tablette et ordinateur */
@media (min-width: 720px) {
  .section { padding: 96px 0; }
  .jeux { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .jeu { padding: 22px 20px; }
  .rivaux { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 6px 0 0; overflow: visible; }
  .rival img { width: 100%; height: auto; max-width: 170px; }
  .astuce-defile { display: none; }
  .mots { grid-template-columns: repeat(2, 180px); justify-content: center; }
  .etapes-ligne { grid-template-columns: repeat(3, 1fr); }
  .ecrans { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 250px)); justify-content: center; gap: 40px 36px; margin: 44px 0 0; padding: 0; overflow: visible; }
  .jokers ul { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .heros { padding: 40px 0 90px; }
  .heros .bloc { grid-template-columns: 1.15fr .85fr; text-align: left; justify-items: start; align-items: center; gap: 24px; }
  .heros-visuel { order: 2; height: auto; width: 100%; max-width: 430px; justify-self: center; }
  .heros h1, .heros .chapeau { margin-left: 0; }
  .heros .stores, .heros .mini-infos { justify-content: flex-start; }
  .deux-col { grid-template-columns: 1.1fr .9fr; gap: 64px; }
  .deux-col.inverse { grid-template-columns: .9fr 1.1fr; }
  .deux-col.inverse .ecran-seul { order: -1; }
  .apprendre { grid-template-columns: 1fr 1fr; gap: 56px; }
}
