/* Site de Fawazir : mêmes couleurs, polices, reliefs et décor de scène que l'app (nuit, or, cartes à bord épais). */

@font-face { font-family: 'Lilita One'; src: url('fonts/lilita-one.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('fonts/nunito-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('fonts/nunito-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('fonts/nunito-900.woff2') format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Lalezar'; src: url('fonts/lalezar-fawazir.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --night: #22177A;
  --stage: #2A1C8C;
  --deep: #1A1160;
  --panel: #30249A;
  --ink: #120B4A;
  --gold: #FFC83D;
  --gold-soft: #FFE9A8;
  --cyan: #2EE6F0;
  --pink: #FF7AB6;
  --mint: #7CF29A;
  --orange: #FF8A3D;
  --text: #FFFFFF;
  --muted: #CFCAF5;
  --dim: #9F98D6;
  --edge: rgba(255, 255, 255, 0.16);
  --title: 'Lilita One', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 26px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: var(--stage); scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  color: var(--text);
  font-family: var(--body);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.55;
  /* Scène de l'app : halo clair en haut, puis le semis d'étincelles, de points, d'étoiles à huit branches et de croissants. */
  background-color: var(--stage);
  background-image:
    radial-gradient(1100px 620px at 50% 0, rgba(255, 255, 255, 0.13), transparent 70%),
    url('img/fond.svg');
  background-size: auto, 560px 560px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--gold-soft); }

img { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 10; background: rgba(26, 17, 96, 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 2px solid var(--edge); }
.top .wrap { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; border: 2px solid var(--ink); }
.brand b { font-family: var(--title); font-weight: 400; font-size: 24px; letter-spacing: 0.5px; text-transform: uppercase; text-shadow: 0 2px 0 var(--ink); }
.brand i { font-family: 'Lalezar', serif; font-style: normal; color: var(--gold); font-size: 22px; line-height: 1; margin-top: 4px; }
.top nav { margin-left: auto; display: flex; gap: 22px; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 800; font-size: 15px; }
.top nav a:hover, .top nav a[aria-current='page'] { color: var(--gold); }

/* Titres */
h1, h2, h3 { font-family: var(--title); font-weight: 400; text-transform: uppercase; line-height: 1.05; margin: 0; text-shadow: 0 3px 0 var(--ink); }
h1 { font-size: clamp(42px, 7.5vw, 76px); }
h2 { font-size: clamp(32px, 5vw, 48px); }
h3 { font-size: 24px; text-shadow: 0 2px 0 var(--ink); }
.accent { color: var(--gold); }
.lead { color: var(--muted); font-size: 19px; font-weight: 800; max-width: 36ch; margin: 18px 0 0; }
.kicker { display: inline-block; font-weight: 900; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink); background: var(--gold); border: 2px solid var(--ink); border-radius: 12px; padding: 3px 10px; margin-bottom: 14px; }

/* Téléphones : les vrais écrans de l'app dans un cadre */
.phone { position: relative; width: 280px; border-radius: 40px; border: 7px solid var(--ink); background: var(--ink); overflow: hidden; box-shadow: 0 10px 0 var(--ink), 0 30px 60px rgba(0, 0, 0, 0.35); }
.phone img { width: 100%; }
.phone-wide { width: 100%; max-width: 560px; border-radius: 34px; }
.tilt-r { transform: rotate(2.5deg); }
.tilt-l { transform: rotate(-2.5deg); }

/* Boutons */
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 26px; border-radius: 28px; font-family: var(--title); font-size: 20px; text-transform: uppercase; text-decoration: none; border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); transition: transform 0.12s ease, box-shadow 0.12s ease; }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { color: var(--ink); background: #FFD45F; }
.btn-soft { background: var(--deep); color: var(--text); border-color: var(--edge); box-shadow: 0 5px 0 var(--ink); }
.btn-soft:hover { color: var(--gold); }
.soon { font-family: var(--body); font-weight: 900; font-size: 13px; text-transform: none; background: var(--ink); color: var(--gold); border-radius: 12px; padding: 3px 9px; }

/* Héros */
.hero { padding: 56px 0 28px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.hero .phone { justify-self: center; width: 300px; }

/* Points forts */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.perk { background: var(--deep); border: 3px solid var(--edge); border-radius: 22px; padding: 16px; box-shadow: 0 5px 0 var(--ink); display: flex; gap: 12px; align-items: center; }
.perk svg { flex: none; width: 40px; height: 40px; }
.perk span { font-weight: 900; font-size: 16px; line-height: 1.25; }

/* Sections */
section { padding: 56px 0; }
.section-head { max-width: 640px; margin-bottom: 30px; }
.section-head p { margin: 12px 0 0; color: var(--muted); font-weight: 800; font-size: 18px; }
.center { text-align: center; margin-left: auto; margin-right: auto; max-width: 820px; }

/* Comment on joue */
.how { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
.how .phone { justify-self: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.steps li { position: relative; background: var(--deep); border: 3px solid var(--edge); border-radius: var(--radius); padding: 18px 20px 18px 84px; box-shadow: 0 5px 0 var(--ink); counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; display: grid; place-items: center;
  font-family: var(--title); font-size: 26px; color: var(--ink);
  /* Étoile à huit branches dorée, comme les numéros de l'app. */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 52'%3E%3Cpath d='M26 3l6.4 7.5 9.8-.7-.7 9.8L49 26l-7.5 6.4.7 9.8-9.8-.7L26 49l-6.4-7.5-9.8.7.7-9.8L3 26l7.5-6.4-.7-9.8 9.8.7z' fill='%23FFC83D' stroke='%23120B4A' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.steps h3 { font-size: 21px; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); }

/* Jeux mis en avant : écran d'un côté, texte de l'autre */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 26px 0; }
.feature + .feature { border-top: 2px dashed var(--edge); }
.feature .shot { justify-self: center; }
.feature.reverse .shot { order: 2; }
.feature-title { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.feature-title img { width: 72px; height: 72px; flex: none; }
.feature-title h3 { font-size: clamp(28px, 4vw, 38px); }
.feature p { color: var(--muted); margin: 0 0 12px; max-width: 46ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tag { font-size: 13.5px; font-weight: 900; background: var(--deep); color: var(--muted); border: 2px solid var(--edge); border-radius: 12px; padding: 4px 11px; }
.tag-gold { background: var(--gold); color: var(--ink); border-color: var(--ink); }

/* Cartes de jeux */
.games { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.game { background: var(--deep); border: 3px solid var(--edge); border-radius: var(--radius); padding: 18px; box-shadow: 0 6px 0 var(--ink); display: flex; gap: 16px; align-items: flex-start; }
.game img { width: 72px; height: 72px; flex: none; margin-top: -2px; }
.game h3 { font-size: 21px; margin-bottom: 4px; }
.game p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.45; }
.game .tags { margin-top: 10px; }

.solo { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 40px; align-items: center; }
.solo .phone { justify-self: center; width: 260px; }

/* Chaque jour */
.daily { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { background: var(--deep); border: 3px solid var(--edge); border-radius: var(--radius); padding: 24px; box-shadow: 0 6px 0 var(--ink); }
.panel-gold { border-color: var(--gold); }
.panel h3 { margin-bottom: 8px; }
.panel p { margin: 0; color: var(--muted); }
.panel .phone { width: 210px; margin: 22px auto 0; border-width: 6px; border-radius: 32px; }

/* Contenu vérifié et formule */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.check { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.check li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.check li::before { content: ''; flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23120B4A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; border: 2px solid var(--ink); }

/* Bandeau final */
.band { background: var(--gold); color: var(--ink); border: 4px solid var(--ink); border-radius: 34px; box-shadow: 0 8px 0 var(--ink); padding: 32px; display: flex; align-items: center; gap: 26px; }
.band img { width: 110px; height: 110px; border-radius: 26px; border: 4px solid var(--ink); flex: none; }
.band h2 { color: var(--ink); text-shadow: 0 3px 0 rgba(255, 255, 255, 0.5); font-size: clamp(28px, 4vw, 40px); }
.band p { margin: 8px 0 0; font-weight: 800; }

/* Pages de texte (confidentialité, support, mentions) */
.doc { padding: 48px 0 24px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(34px, 6vw, 52px); margin-bottom: 10px; }
.doc .updated { color: var(--dim); font-size: 15px; margin: 0 0 26px; }
.doc h2 { font-size: 26px; margin: 34px 0 10px; text-shadow: 0 2px 0 var(--ink); }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--text); font-weight: 900; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.summary { background: var(--deep); border: 3px solid var(--gold); border-radius: 22px; padding: 18px 20px; box-shadow: 0 5px 0 var(--ink); }
.summary p { color: var(--text); margin: 0; }
details { background: var(--deep); border: 3px solid var(--edge); border-radius: 20px; padding: 0 18px; margin: 12px 0; box-shadow: 0 4px 0 var(--ink); }
details[open] { padding-bottom: 14px; }
summary { cursor: pointer; font-weight: 900; color: var(--text); padding: 15px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-family: var(--title); color: var(--gold); font-size: 24px; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { margin: 0 0 8px; }
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 18px 0; }

/* Pied de page */
footer { margin-top: 40px; border-top: 2px solid var(--edge); background: rgba(18, 11, 74, 0.55); }
footer .wrap { padding-top: 28px; padding-bottom: 36px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--muted); text-decoration: none; font-weight: 800; }
footer a:hover { color: var(--gold); }
footer small { color: var(--dim); font-size: 14px; }

@media (max-width: 900px) {
  .hero .wrap, .how, .feature, .solo, .daily, .split { grid-template-columns: 1fr; }
  .hero .phone { width: 250px; }
  .how .phone, .solo .phone { display: none; }
  .feature { gap: 22px; }
  .feature .shot, .feature.reverse .shot { order: 2; }
  .feature .phone { width: 250px; }
  .feature .phone-wide { width: 100%; max-width: 520px; }
  .perks { grid-template-columns: 1fr 1fr; }
  .games { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  section { padding: 40px 0; }
  .hero { padding-top: 30px; }
  .top nav { gap: 14px; }
  .top nav .hide-sm { display: none; }
  .perks { grid-template-columns: 1fr; }
  .btn { height: 52px; font-size: 18px; padding: 0 20px; }
  .steps li { padding-left: 76px; }
  .steps li::before { width: 46px; height: 46px; font-size: 22px; }
  .band { flex-direction: column; text-align: center; padding: 26px 20px; }
  .band img { width: 90px; height: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
