/* FUSION TV — site officiel. Couleurs reprises de l'application (noir profond, anthracite, blanc, or). */
:root {
  --fond: #08090c;
  --fond-eleve: #0d0f13;
  --surface: #121418;
  --surface-haute: #191c21;
  --contour: #24272d;
  --or: #e0a81e;
  --or-clair: #f6c64a;
  --or-sombre: #9a6c0c;
  --texte: #f5f5f5;
  --texte-2: #b4b8bf;
  --texte-3: #8d929a;
  --rayon: 18px;
  --largeur: 1180px;
  --halo: 0 0 0 1px rgba(224, 168, 30, 0.55), 0 0 22px rgba(224, 168, 30, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { color: var(--or-clair); }
a:focus-visible, button:focus-visible, .galerie:focus-visible { outline: 3px solid var(--or-clair); outline-offset: 3px; border-radius: 8px; }

.lien-evitement {
  position: absolute; left: -999px; top: 8px; background: var(--or); color: var(--fond); padding: 8px 14px; border-radius: 8px; z-index: 20;
}
.lien-evitement:focus { left: 8px; }

.conteneur { width: min(var(--largeur), 100% - 32px); margin-inline: auto; }
.or { color: var(--or-clair); white-space: nowrap; }

/* --- En-tête --- */
.entete {
  position: sticky; top: 0; z-index: 10;
  background: rgba(8, 9, 12, 0.88);
  border-bottom: 1px solid rgba(224, 168, 30, 0.18);
  backdrop-filter: blur(10px);
}
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.entete .logo img { height: 44px; width: auto; }
.navigation ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.navigation a {
  position: relative; display: block; padding: 10px 14px; color: var(--texte); text-decoration: none; font-weight: 500; font-size: 0.97rem;
}
.navigation a:hover { color: var(--or-clair); }
.navigation a[aria-current="page"] { color: var(--or-clair); }
.navigation a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--or-clair); box-shadow: 0 0 10px var(--or);
}
.bouton-menu { display: none; }

/* --- Boutons --- */
.bouton {
  display: inline-flex; align-items: center; gap: 12px; padding: 15px 22px 15px 20px; border-radius: 14px;
  font-weight: 700; font-size: 1.05rem; text-decoration: none; color: #1a1204;
  background: linear-gradient(180deg, #ffd666 0%, var(--or) 55%, #c98c10 100%);
  box-shadow: 0 0 0 1px rgba(255, 214, 102, 0.6) inset, 0 10px 30px rgba(224, 168, 30, 0.28);
  transition: transform 0.15s, box-shadow 0.15s;
}
.bouton:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 230, 150, 0.8) inset, 0 12px 36px rgba(224, 168, 30, 0.4); }
.bouton svg { width: 20px; height: 20px; flex: none; }
.bouton .chevron { width: 18px; height: 18px; margin-left: 4px; }
.bouton-contour { color: var(--texte); background: rgba(18, 20, 24, 0.9); box-shadow: var(--halo); }
.bouton-contour svg { color: var(--or-clair); }
.bouton-contour:hover { box-shadow: 0 0 0 1px var(--or-clair), 0 0 30px rgba(224, 168, 30, 0.3); }

/* --- Section principale --- */
.principale {
  position: relative; overflow: hidden; padding-block: 0;
  background:
    radial-gradient(ellipse 55% 60% at 74% 48%, rgba(224, 168, 30, 0.13), transparent 70%),
    linear-gradient(90deg, rgba(8, 9, 12, 0.97) 0%, rgba(8, 9, 12, 0.82) 50%, rgba(8, 9, 12, 0.7) 100%),
    url("../img/background.jpg") center / cover no-repeat;
}
.principale .conteneur {
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 40px; align-items: center; padding-block: 56px 40px;
}
.principale-logo { margin: 0 0 0 -14px; line-height: 0; }
.principale-logo img { width: min(560px, 100%); filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.6)); }
.sous-titre { margin: 18px 0 12px; font-size: 0.98rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; text-wrap: balance; }
.sous-titre::after { content: ""; display: block; width: 160px; height: 2px; margin-top: 16px; background: linear-gradient(90deg, var(--or-clair), transparent); }
.description { margin: 0 0 28px; color: var(--texte-2); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-bottom: 26px; }
.pastille {
  display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 10px 18px 10px 14px; border-radius: 999px;
  color: var(--or-clair); font-weight: 800; font-size: 0.88rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(8, 9, 12, 0.7); box-shadow: var(--halo);
}
.pastille svg { width: 22px; height: 22px; }
.plateformes { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.plateformes li {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 14px; border-radius: 14px;
  background: rgba(14, 16, 20, 0.85); box-shadow: 0 0 0 1px rgba(224, 168, 30, 0.4);
  color: var(--texte); font-weight: 600; line-height: 1.25; font-size: 0.93rem;
}
.plateformes svg { width: 28px; height: 28px; color: var(--or-clair); flex: none; }

/* Téléviseur : le cadre PNG reçoit une vraie capture dans sa zone d'écran (mesurée sur l'image). */
.televiseur { position: relative; margin: 0; }
.televiseur-cadre { position: relative; }
.televiseur-cadre::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -4%; height: 16%; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(224, 168, 30, 0.38), transparent 70%); filter: blur(8px);
}
.televiseur-ecran {
  position: absolute; left: 3.12%; top: 4.83%; width: 93.9%; height: 78.2%; overflow: hidden; background: #000;
}
.televiseur-ecran img { width: 100%; height: 100%; object-fit: contain; }
.televiseur-ecran::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(118deg, transparent 38%, rgba(255, 255, 255, 0.07) 46%, transparent 58%);
}
.clap { position: absolute; right: -4%; bottom: 8%; width: 22%; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6)); }
.televiseur figcaption { margin-top: 8px; text-align: center; color: var(--texte-3); font-size: 0.85rem; }

.separateur {
  height: 90px; margin: -10px 0 -40px; background: url("../img/trait-lumineux.webp") center / min(1400px, 140%) auto no-repeat;
  mix-blend-mode: screen; opacity: 0.85;
}

/* --- Sections --- */
section { padding-block: 72px; }
.titre-section { display: flex; align-items: center; gap: 22px; margin: 0 0 14px; font-size: clamp(1.6rem, 3vw, 2.25rem); text-align: center; }
.titre-section::before, .titre-section::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, transparent, var(--or)); }
.titre-section::after { background: linear-gradient(90deg, var(--or), transparent); }
.chapeau { margin: 0 auto 40px; max-width: 46em; text-align: center; color: var(--texte-2); }

.cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.carte {
  position: relative; overflow: hidden; padding: 28px 24px 26px; text-align: center; border-radius: var(--rayon);
  background: linear-gradient(160deg, #1a1c21 0%, #0e1013 60%);
  box-shadow: 0 0 0 1px rgba(224, 168, 30, 0.35), 0 14px 30px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.2s, transform 0.2s;
}
.carte::after {
  content: ""; position: absolute; left: 10%; right: 10%; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--or-clair), transparent); opacity: 0.7;
}
.carte:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(246, 198, 74, 0.8), 0 0 28px rgba(224, 168, 30, 0.2); }
.carte img { width: 72px; height: 72px; margin: 0 auto 6px; filter: drop-shadow(0 0 10px rgba(224, 168, 30, 0.35)); }
.carte h3 { margin: 10px 0 6px; font-size: 1.2rem; }
.carte p { margin: 0; color: var(--texte-2); font-size: 0.96rem; }

.telecommande {
  display: grid; grid-template-columns: 240px 1fr; align-items: center; gap: 32px; margin-top: 36px; padding: 0 40px 0 10px;
  border-radius: var(--rayon); background: radial-gradient(ellipse 40% 90% at 12% 50%, rgba(224, 168, 30, 0.12), transparent 70%), var(--fond-eleve);
  box-shadow: 0 0 0 1px var(--contour); overflow: hidden;
}
.telecommande img { width: 240px; height: 220px; object-fit: cover; object-position: 50% 30%; mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 55%, transparent 100%); -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 55%, transparent 100%); }
.telecommande h3 { margin: 0 0 8px; font-size: 1.4rem; }
.telecommande p { margin: 0; color: var(--texte-2); max-width: 40em; }

/* --- Galerie --- */
.decouvrir { background: linear-gradient(180deg, transparent, var(--fond-eleve) 30%, var(--fond-eleve) 70%, transparent); }
.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.galerie figure {
  margin: 0; padding: 8px; border-radius: var(--rayon); background: #050608;
  box-shadow: 0 0 0 1px rgba(224, 168, 30, 0.3), 0 18px 40px rgba(0, 0, 0, 0.45);
}
.galerie img { border-radius: 11px; aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.galerie figcaption { padding: 12px 6px 4px; text-align: center; color: var(--texte-2); font-size: 0.92rem; }
.galerie-aide { display: none; }

/* --- Bêta --- */
.beta-carte {
  position: relative; display: grid; grid-template-columns: 340px 1fr; align-items: center; gap: 24px; padding: 20px 44px 20px 20px;
  border-radius: 26px; background: linear-gradient(100deg, rgba(224, 168, 30, 0.1), var(--surface) 40%);
  box-shadow: 0 0 0 1.5px rgba(224, 168, 30, 0.7), 0 0 50px rgba(224, 168, 30, 0.12);
}
.beta-visuel { width: 340px; mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 71%); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 71%); }
.beta-surtitre { margin: 0 0 6px; color: var(--or-clair); font-weight: 800; font-size: 0.88rem; letter-spacing: 0.12em; text-transform: uppercase; }
.beta-texte h2 { margin: 0 0 12px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.beta-texte > p { margin: 0 0 22px; color: var(--texte-2); }
.points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.points li { position: relative; padding-left: 32px; }
.points li::before {
  content: ""; position: absolute; left: 3px; top: 0.42em; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(224, 168, 30, 0.16); box-shadow: 0 0 0 1px rgba(224, 168, 30, 0.6);
}
.points li::after {
  content: ""; position: absolute; left: 9px; top: 0.66em; width: 7px; height: 4px;
  border-left: 2px solid var(--or-clair); border-bottom: 2px solid var(--or-clair); transform: rotate(-45deg);
}

/* --- À propos, TMDB --- */
.apropos-bloc { display: grid; grid-template-columns: 1.25fr 1fr; border-radius: var(--rayon); background: var(--surface); box-shadow: 0 0 0 1px var(--contour); }
.apropos-bloc > div { padding: 32px 36px; }
.apropos-bloc > div + div { border-left: 1px solid var(--contour); }
.apropos-bloc h2 { margin: 0 0 14px; font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.apropos p { color: var(--texte-2); margin: 0 0 14px; }
.avertissement {
  padding: 18px 20px; border-left: 3px solid var(--or); background: var(--surface-haute); border-radius: 0 12px 12px 0; color: var(--texte) !important;
}
.attribution { padding-top: 34px !important; }
.attribution-titre { color: var(--texte) !important; font-weight: 600; margin-bottom: 12px !important; }
.attribution img { width: 160px; margin-bottom: 14px; }
.attribution p { font-size: 0.93rem; }
.attribution .petit { font-size: 0.85rem; color: var(--texte-3) !important; }

.contact { text-align: center; padding-bottom: 80px; }
.contact .chapeau { margin-bottom: 20px; }

/* --- Pied de page --- */
.pied-page { border-top: 1px solid rgba(224, 168, 30, 0.2); background: var(--fond-eleve); padding-block: 32px; color: var(--texte-3); font-size: 0.92rem; }
.pied-page .conteneur { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.pied-page img { height: 32px; width: auto; }
.pied-page ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 0; padding: 0; }
.pied-page a { color: var(--texte-2); }
.ligne-pied { margin: 0; color: var(--texte-2); }

.onglets { display: none; }

/* --- Pages de texte (mentions, confidentialité) --- */
.document { padding-block: 56px 72px; }
.document .conteneur { max-width: 820px; }
.document h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 0 0 8px; }
.document h2 { margin: 36px 0 10px; font-size: 1.25rem; color: var(--or-clair); }
.document p, .document li { color: var(--texte-2); }
.document .maj { color: var(--texte-3); font-size: 0.9rem; }
.document code { padding: 2px 6px; border-radius: 6px; background: var(--surface-haute); color: var(--texte); font-size: 0.88em; overflow-wrap: anywhere; }
.etapes { list-style: none; counter-reset: etape; margin: 32px 0; padding: 0; display: grid; gap: 18px; }
.etapes > li { counter-increment: etape; position: relative; padding: 22px 24px 22px 76px; border-radius: var(--rayon); background: var(--surface); box-shadow: 0 0 0 1px var(--contour); }
.etapes > li::before {
  content: counter(etape); position: absolute; left: 22px; top: 20px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  color: var(--or-clair); font-weight: 800; box-shadow: 0 0 0 1.5px rgba(224, 168, 30, 0.7); background: rgba(224, 168, 30, 0.1);
}
.etapes h2 { margin: 4px 0 8px !important; }
.etapes p { margin: 0 0 10px; }
.etapes ul { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 6px; }
@media (max-width: 720px) {
  .etapes > li { padding: 18px 16px 16px 62px; }
  .etapes > li::before { left: 14px; top: 16px; width: 34px; height: 34px; }
}

/* --- Accès « Télécharger » (en-tête, accueil mobile) --- */
.entete .navigation { margin-left: auto; }
.lien-telecharger {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  color: var(--or-clair); font-weight: 700; font-size: 0.93rem; text-decoration: none; box-shadow: var(--halo);
}
.lien-telecharger:hover { background: rgba(224, 168, 30, 0.12); }
.lien-telecharger svg { width: 18px; height: 18px; }
.lien-telecharger-mobile { display: none; }

/* --- Installer FUSION TV --- */
.installer { padding-top: 24px; }
.installer-carte {
  display: grid; grid-template-columns: auto 1fr minmax(260px, 340px); align-items: center; gap: 32px; padding: 34px 40px;
  border-radius: 26px; background: linear-gradient(100deg, var(--surface) 55%, rgba(224, 168, 30, 0.08));
  box-shadow: 0 0 0 1px rgba(224, 168, 30, 0.55), 0 18px 40px rgba(0, 0, 0, 0.4);
}
.installer-icone {
  display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; color: var(--or-clair);
  background: radial-gradient(circle, rgba(224, 168, 30, 0.2), rgba(224, 168, 30, 0.04) 70%); box-shadow: 0 0 0 1.5px rgba(224, 168, 30, 0.7), 0 0 30px rgba(224, 168, 30, 0.2);
}
.installer-icone svg { width: 46px; height: 46px; }
.installer-texte h2 { margin: 0 0 10px; font-size: clamp(1.4rem, 2.4vw, 1.85rem); line-height: 1.25; }
.installer-texte p { margin: 0 0 12px; color: var(--texte-2); }
.installer-texte .installer-mention { margin: 0; color: var(--or-clair); font-weight: 700; font-size: 0.92rem; letter-spacing: 0.04em; }
.installer-actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.installer-actions .bouton { justify-content: center; margin: 0; }
.bouton-inactif { cursor: not-allowed; color: var(--texte-2); background: var(--surface-haute); box-shadow: 0 0 0 1px var(--contour) inset; font-size: 0.98rem; }
.bouton-inactif:hover { transform: none; box-shadow: 0 0 0 1px var(--contour) inset; }
.apk-attente { margin: 0; color: var(--texte-3); font-size: 0.85rem; line-height: 1.45; }
.apk-infos { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 4px 14px; margin: 0; font-size: 0.88rem; }
.apk-infos dt { color: var(--texte-3); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.apk-infos dd { margin: 0; font-weight: 700; }
.apk-empreinte { margin: 0; color: var(--texte-3); font-size: 0.76rem; line-height: 1.4; overflow-wrap: anywhere; }
.apk-empreinte code { color: var(--texte-2); }
.apk-officiel { margin: 0; padding: 10px 12px; border-left: 3px solid var(--or); border-radius: 0 10px 10px 0; background: rgba(224, 168, 30, 0.08); color: var(--texte-2); font-size: 0.84rem; line-height: 1.45; }
.apk-officiel strong { color: var(--or-clair); }
.lien-guide { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; font-weight: 600; }
.lien-guide svg { width: 16px; height: 16px; }

/* --- Galerie cliquable et visionneuse --- */
.galerie-ouvrir { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 11px; }
.galerie-ouvrir:focus-visible { outline: 3px solid var(--or-clair); outline-offset: 3px; }
.visionneuse {
  width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0;
  background: rgba(4, 5, 7, 0.96); color: var(--texte); overscroll-behavior: contain;
}
.visionneuse::backdrop { background: rgba(0, 0, 0, 0.8); }
.visionneuse[open] { display: grid; place-items: center; }
.visionneuse figure { margin: 0; width: min(calc(100vw - 180px), calc((100dvh - 150px) * 16 / 9)); }
@media (max-height: 520px) and (orientation: landscape) {
  .visionneuse figure { width: min(calc(100vw - 150px), calc((100dvh - 44px) * 16 / 9)); }
  .visionneuse figcaption { margin-top: 6px; font-size: 0.9rem; }
  .visionneuse-compteur { display: none; }
}
.visionneuse img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 0 0 1px rgba(224, 168, 30, 0.4); touch-action: pan-y pinch-zoom; user-select: none; }
.visionneuse figcaption { margin-top: 14px; text-align: center; font-size: 1.05rem; font-weight: 600; }
.visionneuse button {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%;
  color: var(--texte); background: rgba(25, 28, 33, 0.9); box-shadow: 0 0 0 1px rgba(224, 168, 30, 0.5); cursor: pointer;
}
.visionneuse button:hover { color: var(--or-clair); }
.visionneuse button svg { width: 26px; height: 26px; }
.visionneuse-fermer { top: calc(16px + env(safe-area-inset-top)); right: 16px; }
.visionneuse-precedente { left: 16px; top: 50%; transform: translateY(-50%); }
.visionneuse-suivante { right: 16px; top: 50%; transform: translateY(-50%); }
.visionneuse-compteur { position: absolute; top: calc(28px + env(safe-area-inset-top)); left: 0; right: 0; margin: 0; text-align: center; color: var(--texte-3); font-size: 0.9rem; pointer-events: none; }

/* --- Tablette --- */
@media (max-width: 1000px) {
  .navigation a { padding-inline: 10px; font-size: 0.93rem; }
  .navigation a[aria-current="page"]::after { left: 10px; right: 10px; }
  .principale .conteneur { grid-template-columns: 1fr; gap: 28px; padding-block: 44px 24px; text-align: center; }
  .principale-logo { margin: 0; }
  .principale-logo img, .description { margin-inline: auto; }
  .sous-titre::after { margin-inline: auto; background: linear-gradient(90deg, transparent, var(--or-clair), transparent); }
  .actions, .plateformes { justify-content: center; }
  .televiseur { max-width: 760px; margin-inline: auto; width: 100%; }
  .cartes { grid-template-columns: repeat(2, 1fr); }
  .beta-carte { grid-template-columns: 240px 1fr; padding-right: 28px; }
  .beta-visuel { width: 240px; }
  .points { grid-template-columns: 1fr; }
  .apropos-bloc { grid-template-columns: 1fr; }
  .apropos-bloc > div + div { border-left: none; border-top: 1px solid var(--contour); }
  .lien-telecharger { padding: 9px; }
  .lien-telecharger span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .installer-carte { grid-template-columns: auto 1fr; padding: 30px; }
  .installer-actions { grid-column: 1 / -1; }
}

/* --- Mobile : mise en page propre au téléphone --- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  html { scroll-padding-top: 64px; }
  .entete .conteneur { min-height: 58px; justify-content: center; }
  .entete .logo img { height: 36px; }
  section { padding-block: 48px; }
  .titre-section { gap: 12px; font-size: 1.4rem; }
  .titre-section::before, .titre-section::after { flex: 0 0 28px; }
  .chapeau { margin-bottom: 26px; font-size: 0.95rem; }

  /* Pages légales : menu déroulant conservé. */
  body:not(.accueil) .entete .conteneur { justify-content: space-between; }
  .bouton-menu {
    display: inline-flex; align-items: center; padding: 8px 12px; background: transparent; color: var(--texte);
    border: 1px solid var(--contour); border-radius: 10px; font: inherit; cursor: pointer;
  }
  body:not(.accueil) .navigation ul { display: none; position: absolute; left: 0; right: 0; top: 58px; flex-direction: column; padding: 10px 16px 16px; background: var(--fond); border-bottom: 1px solid var(--contour); }
  body:not(.accueil) .navigation.ouverte ul { display: flex; }

  /* Accueil : barre d'onglets en bas d'écran, comme une application. */
  .accueil .entete { display: none; }
  html:has(body.accueil) { scroll-padding-top: 12px; }
  .accueil { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .onglets {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(10, 11, 14, 0.96);
    border-top: 1px solid rgba(224, 168, 30, 0.35); backdrop-filter: blur(10px);
  }
  .onglets a {
    display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; min-height: 52px;
    color: var(--texte-2); text-decoration: none; font-size: 0.72rem; font-weight: 600; border-radius: 10px;
  }
  .onglets svg { width: 24px; height: 24px; }
  .onglets a[aria-current="page"] { color: var(--or-clair); }
  .onglets a[aria-current="page"] svg { filter: drop-shadow(0 0 6px rgba(224, 168, 30, 0.7)); }

  /* Accueil mobile : logo, phrase clé, capture, bouton, puis le détail. */
  .principale .conteneur { display: flex; flex-direction: column; gap: 0; padding-block: 14px 4px; }
  .principale-texte { display: contents; }
  .principale-logo { order: 1; }
  .principale-logo img { width: min(340px, 92%); }
  .sous-titre { order: 2; margin: 2px 0 8px; font-size: 0.8rem; letter-spacing: 0.12em; }
  .sous-titre::after { width: 110px; margin-top: 8px; }
  .televiseur { order: 3; margin: 0 -8px; width: calc(100% + 16px); }
  .clap { display: none; }
  .televiseur figcaption { font-size: 0.75rem; margin-top: 0; line-height: 1.4; }
  .actions { order: 4; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 16px; }
  .actions .bouton { grid-column: 1 / -1; }
  .bouton { width: 100%; justify-content: center; padding-block: 15px; }
  .pastille, .lien-telecharger-mobile { justify-content: center; min-height: 46px; padding: 8px 10px; font-size: 0.76rem; letter-spacing: 0.04em; }
  .pastille svg { width: 18px; height: 18px; }
  .lien-telecharger-mobile { display: inline-flex; font-size: 0.9rem; }
  .lien-telecharger-mobile span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .pastille { text-transform: none; letter-spacing: 0.02em; font-size: 0.9rem; white-space: nowrap; }
  .description { order: 5; margin-bottom: 14px; font-size: 0.95rem; line-height: 1.55; }
  .plateformes { order: 6; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .plateformes li { padding: 9px 10px; gap: 8px; font-size: 0.82rem; justify-content: center; text-align: left; }
  .plateformes svg { width: 24px; height: 24px; }
  .separateur { height: 60px; margin: 0 0 -30px; background-size: 160% auto; }

  .cartes { grid-template-columns: 1fr; gap: 12px; }
  .carte { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 16px; padding: 16px 18px; text-align: left; }
  .carte img { width: 56px; height: 56px; margin: 0; }
  .carte h3 { margin: 0 0 2px; font-size: 1.05rem; }
  .carte p { font-size: 0.9rem; line-height: 1.45; }
  .telecommande { grid-template-columns: 110px 1fr; gap: 12px; padding: 0 16px 0 0; margin-top: 20px; }
  .telecommande img { width: 110px; height: 150px; }
  .telecommande h3 { font-size: 1.1rem; }
  .telecommande p { font-size: 0.9rem; line-height: 1.45; }

  /* Galerie : carrousel horizontal au toucher. */
  .galerie {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: -16px; padding: 4px 16px 10px; scrollbar-width: none;
  }
  .galerie::-webkit-scrollbar { display: none; }
  .galerie figure { flex: 0 0 86%; scroll-snap-align: center; padding: 6px; }
  .galerie-aide { display: block; margin: 8px 0 0; text-align: center; color: var(--texte-3); font-size: 0.82rem; }

  .beta-carte { grid-template-columns: 1fr; justify-items: center; gap: 0; padding: 8px 20px 24px; text-align: center; }
  .beta-visuel { width: 210px; margin-bottom: -6px; }
  .points { text-align: left; justify-self: stretch; }
  .apropos-bloc > div { padding: 24px 20px; }
  .bouton-contour { width: auto; font-size: 0.95rem; padding-inline: 16px; }
  .installer { padding-top: 8px; }
  .installer-carte { grid-template-columns: 1fr; justify-items: center; gap: 16px; padding: 26px 20px; text-align: center; }
  .installer-icone { width: 72px; height: 72px; }
  .installer-icone svg { width: 36px; height: 36px; }
  .installer-actions { width: 100%; }
  .installer-actions .bouton { font-size: 0.98rem; padding-inline: 14px; gap: 10px; }
  .installer-texte .installer-mention { font-size: 0.88rem; }
  .apk-infos { justify-content: space-around; text-align: center; }
  .visionneuse figure { width: 100vw; }
  @media (orientation: landscape) { .visionneuse figure { width: min(calc(100vw - 150px), calc((100dvh - 44px) * 16 / 9)); } .visionneuse-precedente, .visionneuse-suivante { top: 50%; bottom: auto; transform: translateY(-50%); } .visionneuse-precedente { left: 16px; } .visionneuse-suivante { right: 16px; } }
  .visionneuse img { border-radius: 0; }
  .visionneuse-precedente, .visionneuse-suivante { top: auto; bottom: calc(24px + env(safe-area-inset-bottom)); transform: none; }
  .visionneuse-precedente { left: calc(50% - 68px); }
  .visionneuse-suivante { right: calc(50% - 68px); }
}

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

.apk-officiel code { color: var(--texte); font-weight: 600; }
