/* Page d'accueil d'attente de h24roulette.com (maquettes : Exemples 4 et 5).
   Ordinateur (>= 1000 px) : textes posés sur l'arrière-plan img/fond.webp.
   Téléphone et tablette : blocs empilés, image img/fond-telephone.webp en tête. */

:root {
  --nuit: #040818;
  --or: #f7c948;
  --or-clair: #ffe27a;
  --rouge: #e8192c;
  --bleu: #2f86ff;
  --bleu-halo: rgba(47, 134, 255, .75);
  --police: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --marge: clamp(14px, 2.4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--nuit); color: #fff; font-family: var(--police); line-height: 1.3; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }

/* Textes or et argent */
.or, .argent { -webkit-background-clip: text; background-clip: text; color: transparent; }
.or { background-image: linear-gradient(180deg, #fff7c8 0%, #ffd94f 36%, #e09a10 56%, #ffcf45 78%, #fff1a6 100%); -webkit-text-stroke: 1px #4a2a00; }
.argent { background-image: linear-gradient(180deg, #fff 0%, #eef2f8 40%, #98a4b8 58%, #e9eef6 80%, #fff 100%); -webkit-text-stroke: 1px #20263a; }

/* ---------- Page ---------- */
.page { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
/* Partie haute (en-tête, menu, accroche, outils) ; les rubriques (rubriques.css) viennent dessous */
.haut { position: relative; display: flex; flex-direction: column; }

/* ---------- En-tête ---------- */
.entete { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px var(--marge) 10px; }
.marque { display: flex; align-items: center; gap: clamp(8px, 1.2vw, 18px); text-decoration: none; min-width: 0; }
.logo { width: clamp(60px, 7.6vw, 128px); height: auto; flex: none; filter: drop-shadow(0 0 14px rgba(47, 134, 255, .55)); }
.marque-texte { display: flex; flex-direction: column; min-width: 0; }
.nom {
  font-weight: 900; font-style: italic; line-height: 1.05; letter-spacing: -.01em;
  font-size: clamp(1.45rem, 3.7vw, 4.1rem); white-space: nowrap;
  filter: drop-shadow(0 3px 0 #0d0700) drop-shadow(0 0 12px rgba(255, 180, 40, .35));
}
.lame {
  display: block; height: 5px; margin: 4px 0 6px 3%; width: 97%; border-radius: 3px;
  background: linear-gradient(90deg, rgba(255, 40, 60, 0), #ff2a3d 12%, #ff7070 55%, #ff2a3d 90%, rgba(255, 40, 60, 0));
  box-shadow: 0 0 10px rgba(255, 40, 60, .9);
}
.devise {
  font-style: italic; font-weight: 800; white-space: nowrap; color: var(--or-clair);
  font-size: clamp(.7rem, 1.45vw, 1.55rem);
  text-shadow: 0 2px 0 #2b1800, 0 0 10px rgba(255, 190, 60, .35);
}
.devise b { color: var(--or); font-size: .6em; margin: 0 .45em; vertical-align: .2em; }
.devise .blanc { color: #fff; }
/* Titre en image (une par langue : img/titre-<langue>.webp) */
.marque-titre { display: block; width: clamp(220px, 30vw, 580px); height: auto; min-width: 0; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .55)); }

.actions { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.drapeaux { display: flex; gap: 8px; }
.drapeau {
  display: block; width: 44px; height: 30px; padding: 0; border: 0; border-radius: 5px; overflow: hidden;
  background: #222; box-shadow: 0 2px 6px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .25);
}
.drapeau svg { display: block; width: 100%; height: 100%; }
.drapeau[aria-current] { box-shadow: 0 0 0 2px var(--or), 0 0 12px rgba(247, 201, 72, .75); }
.compte { display: flex; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .6em 1.3em; border-radius: 12px; font-weight: 700; font-size: clamp(.95rem, 1.25vw, 1.3rem);
  text-decoration: none; white-space: nowrap;
}
.btn-inscr {
  background: linear-gradient(180deg, #ff3a4c, #c80d20); border: 2px solid #ff7b86;
  box-shadow: 0 0 16px rgba(255, 30, 50, .65), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-conn { background: rgba(5, 10, 30, .6); border: 2px solid rgba(255, 255, 255, .85); box-shadow: 0 0 12px rgba(120, 170, 255, .35); }
.btn-inscr:hover { filter: brightness(1.12); }
.btn-conn:hover { background: rgba(47, 134, 255, .2); }

/* ---------- Menu ---------- */
.menu { padding: 4px var(--marge) 0; }
.menu ul {
  display: flex; padding: 6px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(12, 26, 70, .94), rgba(4, 10, 34, .94));
  border: 2px solid var(--bleu);
  box-shadow: 0 0 16px var(--bleu-halo), inset 0 0 14px rgba(47, 134, 255, .25);
}
.menu li { flex: 1 1 auto; display: flex; }
.menu li + li { border-left: 1px solid rgba(120, 160, 255, .18); }
.menu a, .menu button {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em .5em; border: 2px solid transparent; border-radius: 12px; background: none;
  color: #fff; font-weight: 600; font-size: clamp(.86rem, 1.12vw, 1.2rem); text-decoration: none; white-space: nowrap;
}
.menu svg.i { width: 1.35em; height: 1.35em; color: #d6e4ff; }
.menu a:hover, .menu button:hover { background: rgba(47, 134, 255, .16); }
.menu [aria-current="page"] {
  color: var(--or); border-color: var(--or);
  background: radial-gradient(ellipse at 50% 120%, rgba(247, 201, 72, .28), rgba(247, 201, 72, .05));
  box-shadow: 0 0 12px rgba(247, 201, 72, .45);
}
.menu [aria-current="page"] svg.i { color: var(--or); }

/* ---------- Partie centrale ---------- */
.scene { flex: 1; display: grid; padding: 0 var(--marge); }
.titre { margin: 0; font-style: italic; font-weight: 900; line-height: 1.02; text-align: center; transform: rotate(-3deg); }
.titre .l1 { display: block; font-size: clamp(2.1rem, 4.4vw, 5rem); text-shadow: 0 3px 0 #1b2350, 0 6px 22px rgba(0, 0, 0, .9); }
.titre .l2 {
  display: block; font-size: clamp(1.55rem, 3.2vw, 3.6rem); margin-top: .1em;
  filter: drop-shadow(0 3px 0 #170c00) drop-shadow(0 0 16px rgba(0, 0, 0, .9));
}
.trait {
  display: block; width: 72%; height: 6px; margin: 12px auto 0; border-radius: 3px; transform: rotate(-3deg);
  background: linear-gradient(90deg, rgba(255, 30, 50, 0), #ff2438 25%, #ff5a66 60%, rgba(255, 30, 50, 0));
  box-shadow: 0 0 12px rgba(255, 30, 50, .9);
}
.appels { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cta {
  text-decoration: none; color: inherit;
  display: inline-flex; align-items: center; gap: .8em; padding: .5em 1.6em .5em .55em;
  border-radius: 999px; border: 2px solid #ff7080;
  background: linear-gradient(180deg, #ff4152 0%, #d4111f 55%, #a5070f 100%);
  box-shadow: 0 0 26px rgba(255, 30, 50, .75), inset 0 2px 0 rgba(255, 255, 255, .35);
}
.cta:hover { filter: brightness(1.1); }
.cta-rond {
  display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 40% 35%, #c3101c, #6e0007); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25);
  font-size: clamp(1.1rem, 1.6vw, 1.6rem);
}
.cta-rond svg.i { width: 1.5em; height: 1.5em; }
.cta-txt { display: flex; flex-direction: column; align-items: center; font-style: italic; text-shadow: 0 2px 0 rgba(80, 0, 0, .6); }
.cta-txt strong { font-weight: 800; font-size: clamp(1.3rem, 2.2vw, 2.4rem); line-height: 1.1; }
.cta-txt small { font-weight: 600; font-size: clamp(.85rem, 1.15vw, 1.25rem); }
.btn-x {
  display: inline-flex; align-items: center; gap: .55em; padding: .55em 1.1em; border-radius: 999px;
  background: rgba(0, 0, 0, .78); border: 1.5px solid rgba(255, 255, 255, .8); color: #fff;
  font-weight: 700; font-size: clamp(.92rem, 1.05vw, 1.1rem); text-decoration: none; white-space: nowrap;
}
.btn-x:hover { background: #000; border-color: #fff; }

/* Panneau « Main Betting Systems » */
.systemes {
  padding: 12px 12px 14px; border-radius: 18px; border: 2px solid var(--bleu);
  background: linear-gradient(180deg, rgba(8, 18, 52, .9), rgba(4, 9, 30, .9));
  box-shadow: 0 0 18px var(--bleu-halo), inset 0 0 16px rgba(47, 134, 255, .25);
}
.systemes h2 {
  margin: 0 0 10px; text-align: center; font-style: italic; font-weight: 800; color: #9fd0ff;
  font-size: clamp(1.15rem, 1.6vw, 1.7rem); text-shadow: 0 0 10px rgba(47, 134, 255, .8);
}
.systemes ul { display: flex; flex-direction: column; gap: 9px; }
.systemes button, .systemes a {
  width: 100%; display: flex; align-items: center; gap: .7em; padding: .55em .8em; text-align: left;
  border-radius: 12px; border: 1.5px solid rgba(70, 150, 255, .85); background: rgba(5, 12, 38, .9);
  box-shadow: 0 0 8px rgba(47, 134, 255, .45); font-style: italic; font-weight: 800; font-size: clamp(1.02rem, 1.45vw, 1.5rem);
  color: #fff; text-decoration: none;
}
.systemes button:hover, .systemes a:hover { background: rgba(47, 134, 255, .18); }
.systemes button span, .systemes a span { flex: 1; }
.systemes svg.i { width: 1.45em; height: 1.45em; color: var(--or); }
.systemes svg.chev { width: 1.05em; height: 1.05em; stroke-width: 2.6; }

/* ---------- Tuiles ---------- */
.tuiles { padding: 14px var(--marge) 8px; }
.tuiles ul { display: grid; gap: 12px; }
.tuiles button, .tuiles a {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45em;
  padding: .9em .4em; border-radius: 14px; border: 2px solid #e0a62a;
  background: linear-gradient(180deg, rgba(20, 16, 10, .9), rgba(6, 6, 16, .92));
  box-shadow: 0 0 12px rgba(240, 180, 50, .45), inset 0 0 10px rgba(240, 180, 50, .15);
  color: var(--or-clair); font-weight: 700; font-size: clamp(.92rem, 1.15vw, 1.2rem); line-height: 1.15; text-align: center;
  text-decoration: none; box-sizing: border-box;
}
.tuiles button:hover, .tuiles a:hover { filter: brightness(1.15); }
.tuiles svg.i { width: 2.4em; height: 2.4em; color: var(--or); stroke-width: 1.7; }

/* ---------- Newsletter ---------- */
.lettre {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 6px 22px; align-items: center;
  margin: 12px var(--marge) 6px; padding: 16px 18px; border-radius: 18px; border: 2px solid var(--bleu);
  background: linear-gradient(180deg, rgba(8, 18, 52, .92), rgba(4, 9, 30, .92));
  box-shadow: 0 0 18px var(--bleu-halo), inset 0 0 16px rgba(47, 134, 255, .25);
}
.lettre-texte { grid-row: span 3; }
.lettre-texte h2 {
  display: flex; align-items: center; gap: .45em; margin: 0 0 4px;
  font-style: italic; font-weight: 900; color: var(--or); font-size: clamp(1.15rem, 1.6vw, 1.6rem);
}
.lettre-texte h2 svg.i { width: 1.2em; height: 1.2em; }
.lettre-texte p { margin: 0; color: rgba(255, 255, 255, .88); font-size: .95rem; line-height: 1.4; }
.lettre-form { display: flex; gap: 10px; min-width: 0; }
.lettre-form input[type="email"] {
  flex: 1; min-width: 0; padding: .65em .9em; border-radius: 12px; border: 2px solid rgba(70, 150, 255, .85);
  background: rgba(3, 8, 26, .95); color: #fff; font: inherit; font-size: 1rem;
}
.lettre-form input[type="email"]::placeholder { color: rgba(255, 255, 255, .55); }
.lettre-form input[type="email"]:focus { outline: none; border-color: var(--or); box-shadow: 0 0 10px rgba(247, 201, 72, .5); }
.lettre-form .btn { font-size: 1rem; }
.lettre-form .btn[disabled] { opacity: .7; cursor: wait; }
.lettre-msg { margin: 0; font-weight: 700; color: #8ff0a4; line-height: 1.4; }
.lettre-msg.erreur { color: #ff8a94; }
.lettre-info { margin: 0; font-size: .8rem; color: rgba(255, 255, 255, .65); line-height: 1.4; }
.lettre-info a { color: #9fd0ff; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Bas de page ---------- */
.pied {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; padding: 8px var(--marge) 14px;
  font-size: .86rem; color: rgba(255, 255, 255, .78); text-align: center;
}
.pied p { margin: 0; }
.age {
  display: inline-grid; place-items: center; width: 2.1em; height: 2.1em; margin-right: .3em; border-radius: 50%;
  border: 2px solid var(--rouge); color: #fff; font-weight: 800; font-size: .8em; vertical-align: middle;
}

/* ---------- Fenêtre « Coming soon » ---------- */
.bientot {
  width: min(92vw, 430px); padding: 22px 22px 20px; border-radius: 18px; border: 2px solid var(--bleu); color: #fff;
  background: linear-gradient(180deg, #0c1a4a, #050a24); box-shadow: 0 0 30px var(--bleu-halo); text-align: center;
}
.bientot::backdrop { background: rgba(0, 0, 0, .72); }
.bientot h2 { margin: 0 0 10px; font-style: italic; font-weight: 900; font-size: 1.7rem; color: var(--or); }
.bientot p { margin: 0 0 8px; line-height: 1.45; }
.bientot strong { color: var(--or-clair); }
.bientot-boutons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 16px; }

/* =========================================================
   Ordinateur : textes posés sur l'arrière-plan
   ========================================================= */
@media (min-width: 1000px) {
  .page { background: radial-gradient(ellipse at 55% 0, #1b1f58 0, #060a1c 60%); }
  /* L'arrière-plan commence un peu plus bas que le haut de la page, pour que le visage
     ne passe pas sous le menu ; son haut se fond dans le bleu nuit de l'en-tête. */
  .haut { min-height: 100vh; }
  .haut::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; top: clamp(40px, 9vh, 110px); z-index: 0;
    background: url(img/fond.webp) 0 0 / cover no-repeat;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%);
    mask-image: linear-gradient(180deg, transparent 0, #000 16%);
  }
  .haut::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
    background:
      linear-gradient(180deg, rgba(3, 6, 20, .7) 0, rgba(3, 6, 20, .25) 22%, rgba(3, 6, 20, 0) 36%),
      linear-gradient(0deg, rgba(3, 6, 20, .85) 0, rgba(3, 6, 20, 0) 26%),
      linear-gradient(270deg, rgba(3, 6, 20, .5) 0, rgba(3, 6, 20, 0) 28%);
  }
  .page > *, .haut > * { position: relative; z-index: 2; }
  .scene { grid-template-columns: minmax(0, 38fr) minmax(0, 40fr) minmax(270px, 22fr); column-gap: 1.5vw; padding-top: 1.5vh; }
  .visuel-tel { display: none; }
  .accroche { grid-column: 2; display: flex; flex-direction: column; align-items: center; }
  .titre { white-space: nowrap; }
  .titre .l1 { font-size: clamp(2.1rem, 3.8vw, 4.6rem); }
  .titre .l2 { font-size: clamp(1.55rem, 2.6vw, 3.3rem); }
  /* Les titres des autres langues sont plus longs que l'anglais. */
  html:not([lang="en"]) .titre .l1 { font-size: clamp(1.9rem, 3.2vw, 3.9rem); }
  html:not([lang="en"]) .titre .l2 { font-size: clamp(1.35rem, 2.1vw, 2.7rem); }
  .appels { margin-top: auto; padding: 2vh 0 0; }
  .systemes { grid-column: 3; align-self: start; margin-top: 1vh; }
  .systemes button, .systemes a { font-size: clamp(.95rem, 1.3vw, 1.5rem); white-space: nowrap; }
  .tuiles ul { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-left: 34%; }
  .lettre { margin-left: calc(var(--marge) + (100% - 2 * var(--marge)) * .34); }
  .pied { justify-content: flex-end; }
}
@media (min-width: 1000px) and (max-width: 1279px) {
  .scene { grid-template-columns: minmax(0, 30fr) minmax(0, 48fr) minmax(270px, 22fr); }
  .haut::after { background-position: 30% 0; }
  html:not([lang="en"]) .titre .l1 { font-size: 1.75rem; }
  html:not([lang="en"]) .titre .l2 { font-size: 1.2rem; }
  .tuiles ul { margin-left: 20%; }
  .tuiles button, .tuiles a { font-size: .85rem; }
  .lettre { margin-left: calc(var(--marge) + (100% - 2 * var(--marge)) * .2); }
}

/* =========================================================
   Téléphone et tablette : blocs empilés
   ========================================================= */
@media (max-width: 999px) {
  .page { background: radial-gradient(ellipse at 50% 0, #14245e 0, #070c26 45%, var(--nuit) 80%); }
  .entete { flex-direction: column; align-items: stretch; gap: 12px; padding-top: 12px; }
  .marque { justify-content: center; }
  .marque-titre { width: min(64vw, 420px); }
  .actions { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 16px; }
  .drapeau { width: 34px; height: 23px; border-radius: 4px; }
  .drapeaux { gap: 6px; }
  .compte { gap: 10px; }
  .btn { padding: .5em 1em; }

  .menu { padding: 2px 0 0; }
  .menu ul {
    overflow-x: auto; scrollbar-width: none; border-radius: 0; border-left: 0; border-right: 0; padding: 6px 8px;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .menu ul::-webkit-scrollbar { display: none; }
  .menu li { flex: 0 0 auto; }
  .menu a, .menu button { flex-direction: column; gap: 3px; padding: .5em .75em; font-size: .8rem; }
  .menu li:last-child { padding-right: 34px; }

  .scene { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .visuel-tel {
    position: relative; aspect-ratio: 4 / 3; max-height: 70vh; width: 100%;
    background: url(img/fond-telephone.webp) 50% 30% / cover no-repeat;
  }
  .visuel-tel::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(0deg, var(--nuit) 0, rgba(4, 8, 24, .6) 22%, rgba(4, 8, 24, 0) 45%);
  }
  .accroche { position: relative; margin-top: -16vw; padding: 0 var(--marge); display: flex; flex-direction: column; align-items: center; }
  .appels { padding-top: 22px; width: 100%; }
  .cta { max-width: 100%; }
  .systemes { margin: 26px var(--marge) 0; }
  .tuiles { padding-top: 22px; }
  .tuiles ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lettre { grid-template-columns: minmax(0, 1fr); margin-top: 22px; }
  .lettre-texte { grid-row: auto; }
  .pied { padding-top: 14px; }
}

@media (max-width: 480px) {
  .tuiles ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .accroche { margin-top: -20vw; }
  .lettre { padding: 14px; }
  .lettre-form { flex-direction: column; }
}

@media (max-width: 360px) {
  .drapeau { width: 30px; height: 20px; }
  .btn { font-size: .9rem; padding: .45em .8em; }
  .cta { padding-right: 1.1em; }
}
