/*
  VOICE   : un maquis la nuit — chaleureux, direct, sûr de lui.
  IDEA    : le comptoir du maquis à la tombée du jour, éclairé par l'ambre ; le ticket de caisse comme preuve.
  PICTURE : trois téléphones qui flottent, avec les vrais écrans de MAQUISA, et des notifications qui arrivent.
  COLOUR  : nuit #0C0F11, ambre #F2B400 (marque), vert ok #3CC47F en accent rare.
  TYPE    : Barlow Semi Condensed 900 en capitales pour les titres, 500 pour le texte.
  LAYOUT  : bandes pleine largeur, contenu ≤ 1200px, tout s'empile sous 760px.
*/
:root {
  color-scheme: dark;
  --fond: #0C0F11; --surface: #101416; --carte: #171C1F; --fumee: #202729; --brume: #2B3438;
  --texte: #F2F5F4; --texte2: #A9B8BC; --ambre: #F2B400; --sur-ambre: #11181C;
  --ok: #3CC47F; --ok-fond: rgba(30, 122, 76, .22); --ko: #F0685E; --ko-fond: rgba(200, 55, 45, .18);
  --ambre-fond: rgba(242, 180, 0, .14);
}
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; overflow-x: clip; }
body {
  margin: 0; background: var(--fond); color: var(--texte); overflow-x: clip;
  font-family: 'Barlow Semi Condensed', system-ui, sans-serif; font-weight: 500; font-size: 18px; line-height: 1.5;
}
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
img, svg { display: block; }
a { color: var(--ambre); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ambre); outline-offset: 3px; border-radius: 8px; }

.cadre { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.bande { background: var(--surface); border-block: 1px solid var(--brume); }
.section { padding: clamp(64px, 9vw, 112px) 0; display: flex; flex-direction: column; gap: 40px; }
.tete { display: flex; flex-direction: column; gap: 14px; max-width: 780px; }
.sur-titre { font-size: 15px; font-weight: 800; color: var(--ambre); }
.gros { font-size: clamp(42px, 6.4vw, 84px); font-weight: 900; line-height: .96; letter-spacing: -.02em; text-transform: uppercase; text-wrap: balance; }
.moyen { font-size: clamp(32px, 4.2vw, 52px); font-weight: 900; line-height: 1.02; letter-spacing: -.01em; text-transform: uppercase; text-wrap: balance; }
.surligne { color: var(--sur-ambre); background: var(--ambre); padding: 0 .12em; border-radius: .1em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.ambre { color: var(--ambre); }
.doux { color: var(--texte2); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 14px; border: 1px solid var(--brume); background: var(--fumee); color: var(--texte); font-family: inherit; font-weight: 800; font-size: 17px; line-height: 1; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-pri { background: linear-gradient(180deg, #F7C32E, #E0A600); border-color: #E0A600; color: var(--sur-ambre); box-shadow: 0 6px 22px rgba(242, 180, 0, .3); }
.btn-noir { background: #11181C; border-color: #11181C; color: #fff; }
.btn-ligne { background: transparent; border-color: #11181C; color: #11181C; }
.pulse { animation: pulse 2.4s ease-out infinite; }
.logo { width: 38px; height: 38px; border-radius: 10px; background: var(--ambre); color: var(--sur-ambre); display: grid; place-items: center; font-weight: 900; font-size: 21px; flex-shrink: 0; }

/* Navigation */
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 20px 0; }
.marque { display: flex; align-items: center; gap: 10px; color: var(--texte); text-decoration: none; font-size: 22px; font-weight: 900; letter-spacing: .1em; }
.marque .logo { box-shadow: 0 0 22px rgba(242, 180, 0, .5); }
.nav nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.nav nav a { color: var(--texte2); font-weight: 700; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav nav a:hover { color: var(--texte); }

/* Héros */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 32px; align-items: center; padding: 24px 0 88px; }
.hero-txt { display: flex; flex-direction: column; gap: 24px; position: relative; z-index: 2; }
.pastille { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 9999px; background: var(--ambre-fond); color: var(--ambre); font-weight: 800; font-size: 15px; }
.point { width: 8px; height: 8px; border-radius: 9999px; background: var(--ambre); box-shadow: 0 0 10px var(--ambre); flex-shrink: 0; }
.mentions { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 15px; color: var(--texte2); }
.mentions span { display: inline-flex; align-items: center; gap: 6px; }
.scene { position: relative; height: 720px; }
.lueur { position: absolute; width: 640px; height: 640px; left: 50%; top: 40px; margin-left: -320px; border-radius: 9999px; background: radial-gradient(circle, rgba(242, 180, 0, .3), rgba(242, 180, 0, 0) 66%); animation: lueur 6s ease-in-out infinite; pointer-events: none; }
.pos { position: absolute; }
.p-gauche { left: 0; top: 96px; transform: rotate(-8deg) scale(.86); }
.p-droite { right: 0; top: 104px; transform: rotate(8deg) scale(.86); }
.p-centre { left: 50%; margin-left: -150px; top: 16px; z-index: 2; }

/* Téléphone : l'écran est dessiné à 390px puis réduit */
.tel { width: 300px; height: 660px; border-radius: 46px; padding: 10px; background: #050607; box-shadow: 0 0 0 2px #2B3438, 0 40px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(242, 180, 0, .12); animation: flotte 6s ease-in-out infinite; }
.tel.lent { animation-duration: 7.5s; animation-delay: -2s; }
.tel.vite { animation-duration: 5s; animation-delay: -1s; }
.ecran { width: 280px; height: 640px; border-radius: 36px; overflow: hidden; position: relative; background: var(--fond); }
.ecran::before { content: ""; position: absolute; top: 8px; left: 50%; width: 90px; height: 24px; margin-left: -45px; border-radius: 9999px; background: #050607; z-index: 3; }
/* Captures réelles : 34px en haut pour l'encoche, puis l'écran de l'appli */
.ecran > img { position: absolute; top: 34px; left: 0; width: 280px; height: auto; }
.ecran > img.defile-ecran { animation: defile-ecran 16s ease-in-out infinite; }

/* Bulles de notification */
.bulle { position: absolute; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: rgba(23, 28, 31, .94); border: 1px solid var(--brume); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); font-size: 15px; font-weight: 700; white-space: nowrap; animation: bulle 9s ease-in-out infinite both; }
.bulle small { display: block; font-size: 13px; color: var(--texte2); font-weight: 600; }
.b1 { left: -8px; top: 150px; }
.b2 { right: -8px; top: 380px; animation-delay: 3s; }
.b3 { left: 24px; bottom: 44px; animation-delay: 6s; }
.rond { width: 34px; height: 34px; border-radius: 9999px; display: grid; place-items: center; flex-shrink: 0; }

/* Bandeau défilant */
.bandeau { background: var(--ambre); color: var(--sur-ambre); transform: rotate(-2deg); margin: 0 -40px; padding: 16px 0; overflow: hidden; }
.piste { display: flex; width: max-content; animation: defile 34s linear infinite; }
.bandeau .piste span { display: inline-flex; align-items: center; gap: 18px; padding-right: 18px; font-size: 24px; font-weight: 900; text-transform: uppercase; white-space: nowrap; }
.bandeau .piste i { width: 10px; height: 10px; border-radius: 9999px; background: var(--sur-ambre); }

/* Cartes et grilles */
.grille3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.carte { background: var(--carte); border: 1px solid var(--brume); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 10px; transition: transform .2s, border-color .2s; }
.carte:hover { transform: translateY(-4px); border-color: rgba(242, 180, 0, .6); }
.carte h3 { font-size: 24px; font-weight: 900; line-height: 1.1; }
.ico { width: 52px; height: 52px; border-radius: 14px; background: var(--ambre-fond); color: var(--ambre); display: grid; place-items: center; }
.num { width: 44px; height: 44px; border-radius: 12px; background: var(--ambre); color: var(--sur-ambre); display: grid; place-items: center; font-size: 22px; font-weight: 900; flex-shrink: 0; }
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; align-items: center; }
.scene-seule { position: relative; height: 690px; }
.etapes { display: flex; flex-direction: column; gap: 14px; }
.etape { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: 18px; background: var(--carte); border: 1px solid var(--brume); }
.etape b { font-size: 20px; display: block; }
.gros-num { font-size: 64px; font-weight: 900; line-height: 1; color: var(--ambre); }

/* Tarif */
.prix { border-radius: 28px; padding: clamp(26px, 4vw, 40px); background: var(--carte); border: 2px solid var(--ambre); box-shadow: 0 0 80px rgba(242, 180, 0, .15); display: flex; flex-direction: column; gap: 16px; }
.prix-montant { font-size: clamp(40px, 5vw, 60px); font-weight: 900; line-height: 1; }
.liste-ok { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.liste-ok li { display: flex; gap: 10px; align-items: flex-start; }
.liste-ok svg { flex-shrink: 0; margin-top: 3px; }

/* Appel final et pied de page */
.final { border-radius: 32px; background: var(--ambre); color: var(--sur-ambre); padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 48px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.final .sur-titre { color: var(--sur-ambre); }
.final p { max-width: 46ch; font-size: 20px; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.final .actions { justify-content: center; }
.pied { border-top: 1px solid var(--brume); }
.pied .cadre { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-top: 28px; padding-bottom: 28px; }
.pied nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.pied nav a { font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }

/* Apparition au défilement (activée par main.js) */
.js .revele { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .revele.vu { opacity: 1; transform: none; }
.monte { animation: monte .9s cubic-bezier(.2, .7, .2, 1) both; }
.d1 { animation-delay: .12s; } .d2 { animation-delay: .24s; } .d3 { animation-delay: .36s; }

@keyframes flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes lueur { 0%, 100% { opacity: .6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes monte { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes bulle { 0%, 4% { opacity: 0; transform: translateY(12px) scale(.96); } 10%, 38% { opacity: 1; transform: none; } 46%, 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(242, 180, 0, .55); } 100% { box-shadow: 0 0 0 18px rgba(242, 180, 0, 0); } }

@media (max-width: 760px) {
  .cadre { padding: 0 18px; }
  .scene { height: 600px; }
  .p-gauche, .p-droite { display: none; }
  .p-centre { transform: scale(.88); transform-origin: top center; }
  .lueur { width: 420px; height: 420px; margin-left: -210px; }
  .b1 { left: 0; top: 70px; } .b2 { right: 0; top: 300px; } .b3 { left: 0; bottom: 30px; }
  .bulle { font-size: 14px; padding: 10px 12px; }
  .scene-seule { height: 610px; }
  .scene-seule .pos { transform: scale(.88); transform-origin: top center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .revele { opacity: 1; transform: none; }
  .bulle { opacity: 1; }
}

/* ===== Version 2 : bouteilles, tour de l'appli, vidéo, chiffres en direct ===== */
.etagere { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.etagere .piste { gap: 18px; animation-duration: 40s; padding: 10px 0 24px; }
.etagere:hover .piste { animation-play-state: paused; }
.bouteille { width: 190px; flex-shrink: 0; background: var(--carte); border: 1px solid var(--brume); border-radius: 20px; overflow: hidden; transition: transform .25s; }
.bouteille:hover { transform: translateY(-8px) rotate(-2deg); }
.bouteille .photo { background: #fff; height: 210px; display: grid; place-items: center; }
.bouteille .photo img { height: 200px; width: auto; max-width: 100%; object-fit: contain; }
.bouteille .info { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.bouteille b { font-size: 20px; }
.fmt { align-self: flex-start; border-radius: 8px; padding: 3px 8px; font-size: 12px; font-weight: 900; white-space: nowrap; }
.fmt-p { background: #1D4ED8; color: #fff; } .fmt-g { background: #F2B400; color: #11181C; } .fmt-a { background: #6D28D9; color: #fff; }

.tour { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: center; }
.onglets-tour { display: flex; flex-wrap: wrap; gap: 8px; }
.onglet-tour { min-height: 48px; padding: 0 18px; border-radius: 9999px; border: 1px solid var(--brume); background: var(--carte); color: var(--texte); font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; }
.onglet-tour[aria-selected="true"] { background: var(--ambre); border-color: var(--ambre); color: var(--sur-ambre); }
.panneau { display: flex; flex-direction: column; gap: 14px; min-height: 230px; }
.panneau h3 { font-size: clamp(26px, 3vw, 36px); font-weight: 900; line-height: 1.05; text-transform: uppercase; }
.barre-temps { height: 4px; border-radius: 9999px; background: var(--brume); overflow: hidden; }
.barre-temps span { display: block; height: 100%; width: 0; background: var(--ambre); }
.barre-temps.court span { animation: temps 6s linear forwards; }
.scene-tour { position: relative; height: 720px; display: flex; justify-content: center; }
.scene-tour .tel { position: relative; z-index: 2; }
.ecran img.change { animation: fondu .45s ease both; }

.video { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 48px; align-items: center; }
.lecteur { position: relative; justify-self: center; width: 300px; height: 533px; border-radius: 28px; overflow: hidden; background: #050607; border: 1px solid var(--brume); box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 70px rgba(242, 180, 0, .14); }
.lecteur img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(1.1); transform: scale(1.04); }
.lecteur::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 15, 17, .1), rgba(12, 15, 17, .85)); }
.lecteur .play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 9999px; border: 0; background: var(--ambre); color: var(--sur-ambre); display: grid; place-items: center; cursor: pointer; animation: pulse 2.4s ease-out infinite; }
.lecteur .legende { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 4px; }
.lecteur .legende b { font-size: 26px; font-weight: 900; text-transform: uppercase; line-height: 1; }
.duree { position: absolute; z-index: 2; top: 14px; right: 14px; }

/* Bandeau « En direct » */
.direct { margin: 72px 0 8px; padding: clamp(22px, 3vw, 32px); border-radius: 26px; background: var(--carte); border: 1px solid var(--brume); display: flex; flex-direction: column; gap: 22px; box-shadow: 0 0 60px rgba(60, 196, 127, .07); }
.direct-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.ad-h { font-size: clamp(24px, 2.6vw, 30px); font-weight: 900; text-transform: uppercase; flex: 1 1 auto; }
.en-direct { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 9999px; background: var(--ok-fond); color: var(--ok); font-weight: 800; font-size: 14px; }
.point-live { width: 9px; height: 9px; border-radius: 9999px; background: var(--ok); animation: battement 1.6s ease-out infinite; }
.compteurs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.compteur { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 16px; background: var(--fumee); }
.compteur .valeur { font-size: clamp(36px, 4.4vw, 54px); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; color: var(--texte); }
.compteur:first-child .valeur { color: var(--ambre); }
@keyframes battement { 0% { box-shadow: 0 0 0 0 rgba(60, 196, 127, .6); } 100% { box-shadow: 0 0 0 10px rgba(60, 196, 127, 0); } }

@keyframes defile-ecran { 0%, 12% { transform: translateY(0); } 50%, 62% { transform: translateY(calc(-100% + 606px)); } 100% { transform: translateY(0); } }
@keyframes temps { to { width: 100%; } }
@keyframes fondu { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .scene-tour { height: 620px; }
  .scene-tour .tel { transform: scale(.88); transform-origin: top center; }
  .bouteille { width: 150px; } .bouteille .photo { height: 170px; } .bouteille .photo img { height: 160px; }
}
@media (prefers-reduced-motion: reduce) { .lecteur .play { animation: none; } }
