/* Maquette accueil v2 — CARD IPTV. Vivante : vraies photos, animations en CSS seul (aucun JavaScript).
   Charte : #081b95, #47b0e0, #3d3d3d, #627D47, #b20000 (PRD § 2) ; nuances dérivées.
   Gammes : Standard = couleurs du logo ; Advanced = rouge et cuivre (relevés sur ses boîtes produits) ; VIP = or. */

:root {
  --bleu-nuit: #081b95;   /* principale (charte) */
  --ciel: #47b0e0;        /* secondaire (charte) */
  --texte: #3d3d3d;       /* texte de base (charte) */
  --alerte: #b20000;      /* charte : pastille « En direct » */
  --succes: #627d47;      /* charte : cadenas du paiement sécurisé */
  --encre: #071060;       /* dérivée : bleu nuit assombri */
  --scene: #050a33;       /* dérivée : fond des parties sombres */
  --lavande: #707ed6;     /* dérivée : carte lavande du logo */
  --brume: #f2f5fc;
  --ciel-pale: #e6f4fb;
  --trait: #d5dcf0;
  --blanc: #fff;
  --pale: #e3e8ff;        /* texte clair sur fond sombre */
  --focus: var(--bleu-nuit); /* contour de focus : bleu-nuit sur fond clair, blanc sur fond sombre (07/11) */

  --adv-cuivre: #c07b70;  /* boîte Advanced, face claire (relevé au pixel) */
  --adv-brique: #8f534a;  /* boîte Advanced, face sombre (relevé au pixel) */
  --adv-rouge: #5e241c;   /* dérivée : brique assombrie */
  --or: #d4af37;          /* VIP */
  --or-clair: #f3d98b;
  --or-nuit: #17120a;

  --titre: "Unbounded", system-ui, sans-serif;
  --corps: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gouttiere: 16px;
  --largeur: 1180px;
  --rayon-bouton: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--brume); color: var(--texte); font: 17px/1.55 var(--corps); }
img, svg { display: block; max-width: 100%; }
a { color: var(--bleu-nuit); text-underline-offset: 3px; }
/* Contour de focus (clavier) : couleur selon le fond, voir « Contour de focus » en fin de feuille. Le ciel tombait à 2,45:1 sur fond clair. */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--titre); color: var(--encre); line-height: 1.12; letter-spacing: -0.015em; margin: 0; }
h2 { font-size: 28px; font-weight: 700; }
p { margin: 0; }
p > a:only-child { display: inline-flex; align-items: center; min-height: 44px; }
.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); }

/* ——— Boutons ——— */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px;
  border-radius: var(--rayon-bouton); border: 2px solid transparent; font: 600 17px/1.2 var(--corps);
  text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.bouton:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(3, 8, 60, .25); }
.bouton--plein { background: var(--bleu-nuit); color: var(--blanc); }
.bouton--ciel { background: var(--ciel); color: var(--encre); }
.bouton--contour { border-color: var(--blanc); color: var(--blanc); }
.bouton--petit { min-height: 44px; padding: 0 14px; font-size: 16px; background: var(--bleu-nuit); color: var(--blanc); white-space: nowrap; }

/* ——— Barre du haut : claire, le logo se lit ——— */
.barre {
  position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--trait);
}
.barre .conteneur { display: flex; align-items: center; gap: 4px; min-height: 64px; }
.barre__logo { display: flex; align-items: center; min-height: 48px; margin-right: auto; }
.barre__logo img { height: 46px; width: auto; }
.barre__lien { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-weight: 600; text-decoration: none; font-size: 16px; color: var(--encre); }
.barre .barre__large { display: none; }
.icone-bouton { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; color: var(--encre); }
.icone-bouton svg { width: 24px; height: 24px; }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu__panneau { position: absolute; right: 0; top: 52px; z-index: 10; width: 240px; padding: 8px; background: var(--blanc); border-radius: 14px; box-shadow: 0 18px 40px rgba(7, 16, 96, .25); }
.menu__panneau a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--encre); text-decoration: none; border-radius: 8px; }
.menu__panneau a:hover { background: var(--brume); }

/* ——— Écran d'accueil ——— */
.ecran { position: relative; overflow: hidden; background: var(--scene); color: var(--blanc); isolation: isolate; }
.diapos { position: absolute; inset: 0; z-index: -1; }
.diapo { position: absolute; inset: 0; margin: 0; opacity: 0; }
.diapo--foot { opacity: 1; --d: -1s; }
.diapo--f1 { --d: 5s; }
.diapo--ufc { --d: 11s; }
.diapo--cine { --d: 17s; }
.diapo__fond, .diapo__fond img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Voile : sombre en haut (texte), clair au milieu (photo), sombre en bas (programme) */
.diapo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 10, 51, .94) 0%, rgba(5, 10, 51, .82) 46%, rgba(5, 10, 51, .2) 72%, rgba(5, 10, 51, .7) 100%);
}
.diapo__star { position: absolute; z-index: 1; right: -4%; bottom: 0; height: 42%; }
.diapo__star img { height: 100%; width: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)); }
.programme {
  position: absolute; z-index: 2; left: var(--gouttiere); bottom: 16px; max-width: calc(100% - 104px); /* laisse la bulle WhatsApp libre */
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px;
  background: rgba(5, 10, 51, .62); border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.programme__heure { font: 700 18px/1 var(--titre); color: var(--ciel); white-space: nowrap; }
.programme__titre { display: grid; font-weight: 700; line-height: 1.25; }
.programme__titre small { font-weight: 400; font-size: 16px; color: var(--pale); }
.programme__titre { font-size: 16px; }
.programme__logo { display: none; height: 32px; width: auto; padding: 4px 6px; background: var(--blanc); border-radius: 8px; flex: none; }
/* Éventail d'affiches (tableau cinéma) */
.eventail { position: absolute; z-index: 1; right: 6%; bottom: 96px; height: 34%; aspect-ratio: 1.25; }
.eventail picture { position: absolute; bottom: 0; height: 100%; aspect-ratio: 2 / 3; }
.eventail img { width: 100%; height: 100%; border-radius: 10px; box-shadow: 0 18px 40px rgba(0, 0, 0, .6); }
.eventail picture:nth-child(1) { left: 0; rotate: -10deg; }
.eventail picture:nth-child(2) { right: 0; rotate: 9deg; }
.eventail picture:nth-child(3) { left: 50%; translate: -50% -6%; z-index: 1; }

/* Mobile : l'écran tient dans la hauteur du téléphone, le programme du soir reste visible sans défiler */
.ecran { min-height: max(600px, calc(100svh - 64px)); }
.ecran__texte { position: relative; z-index: 3; padding-top: 24px; padding-bottom: 112px; }
.ecran .bouton--contour { background: rgba(5, 10, 51, .55); }
.direct {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px 0 10px; border-radius: 999px;
  background: var(--alerte); font-weight: 700; font-size: 16px;
}
.direct__point { width: 10px; height: 10px; border-radius: 50%; background: var(--blanc); }
.ecran__surtitre { margin-top: 16px; color: var(--ciel); font-weight: 700; }
.ecran h1 { margin-top: 6px; color: var(--blanc); font-size: 33px; font-weight: 800; line-height: 1.08; max-width: 15ch; }
.ecran h1 em { font-style: normal; color: var(--ciel); }
.ecran__intro { margin-top: 14px; color: var(--pale); max-width: 34em; }
.ecran__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.ecran__actions .bouton { flex: 1 1 auto; }

/* Chiffres du catalogue */
.chiffres { background: var(--scene); color: var(--pale); padding: 22px 0 28px; border-top: 1px solid rgba(255, 255, 255, .1); }
.chiffres__liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.chiffres__liste li { display: grid; font-size: 16px; line-height: 1.3; }
.chiffres__liste b { font: 800 21px/1.15 var(--titre); color: var(--blanc); letter-spacing: -0.02em; }
.chiffres__source { margin-top: 12px; font-size: 16px; color: #aab3e8; }

/* ——— Mur de logos qui défile ——— */
.logos { background: var(--blanc); padding: 20px 0; display: grid; gap: 12px; overflow: hidden; }
.logos__rang { display: flex; overflow: hidden; }
.logos__piste { list-style: none; margin: 0; padding: 0 6px; display: flex; gap: 12px; flex: none; }
.logos__piste li { width: 112px; height: 60px; display: grid; place-items: center; padding: 8px 12px; border-radius: 12px; background: var(--brume); border: 1px solid var(--trait); }
.logos__piste img { max-height: 40px; width: auto; max-width: 100%; }

/* ——— En-têtes de section ——— */
.section { padding: 56px 0; }
.section--blanche { background: var(--blanc); }
.section__chapo { margin-top: 10px; max-width: 40em; }
.surtitre { font-weight: 700; color: var(--bleu-nuit); margin-bottom: 6px; }

/* ——— Ce soir ——— */
.soiree { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.match {
  position: relative; display: grid; gap: 2px; padding: 16px 18px; background: var(--blanc);
  border: 1px solid var(--trait); border-radius: 16px; border-left: 6px solid var(--ciel);
}
/* Mobile : une ligne compacte par rendez-vous (heure | match | chaîne) */
.match__heure { white-space: nowrap; }
.match { grid-template-columns: 74px minmax(0, 1fr) auto; grid-template-areas: "heure titre chaine" "heure compet chaine"; align-items: center; column-gap: 12px; padding: 12px 14px; }
.match__heure { grid-area: heure; font: 700 16px/1.3 var(--titre); color: var(--bleu-nuit); }
.match__titre { grid-area: titre; font: 700 17px/1.25 var(--corps); color: var(--encre); }
.match__compet { grid-area: compet; font-size: 16px; }
.match__chaine { grid-area: chaine; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.match--une { grid-template-columns: minmax(0, 1fr); grid-template-areas: "heure" "titre" "compet" "chaine"; align-content: start; padding: 16px 18px; }
.match--une .match__chaine { flex-direction: row; align-items: center; margin-top: 8px; }
.match__chaine img { height: 32px; width: auto; padding: 4px 6px; background: var(--brume); border-radius: 8px; }
/* Nom de la chaîne à côté d'un logo commun (Sky Sports, TNT Sports… des pages anglaises) : petit, sur deux lignes au plus */
.match__nom-chaine { max-width: 7.5em; font-size: 14px; line-height: 1.25; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.match--une .match__nom-chaine { max-width: none; text-align: left; }
.badge { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; font-weight: 700; font-size: 16px; line-height: 1; }
.badge--direct { background: var(--alerte); color: var(--blanc); }
.badge--4k { background: var(--encre); color: var(--or-clair); }
/* Le match de l'affiche, avec le joueur détouré */
.match--une { min-height: 220px; padding-right: 44%; overflow: hidden; border: 0; color: var(--pale);
  background: radial-gradient(circle at 85% 30%, rgba(71, 176, 224, .45), transparent 60%), linear-gradient(150deg, var(--bleu-nuit), var(--scene)); }
.match--une .match__heure { color: var(--blanc); }
.match--une .match__titre { color: var(--blanc); font-size: 22px; }
.match--une .match__chaine img { background: var(--blanc); }
.match__star { position: absolute; right: -10px; bottom: 0; height: 100%; }
.match__star img { height: 100%; width: auto; }

/* ——— Thèmes foot et combat ——— */
.theme { position: relative; overflow: hidden; padding: 56px 0 0; color: var(--pale); }
.theme h2 { color: var(--blanc); }
.theme .surtitre { color: var(--blanc); }
.theme--foot { background: radial-gradient(ellipse at 70% 100%, rgba(71, 176, 224, .45), transparent 60%), linear-gradient(170deg, var(--bleu-nuit), var(--scene)); }
.theme--combat { background: radial-gradient(ellipse at 30% 100%, rgba(178, 0, 0, .55), transparent 60%), linear-gradient(170deg, #12060a, #050307); }
.theme--combat .surtitre { color: #ff8a80; }
.theme__grille { display: grid; gap: 24px; }
.theme__rdv { margin-top: 18px; display: inline-grid; padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); }
.theme__rdv b { color: var(--blanc); }
.puces-logos { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.puces-logos li { height: 52px; padding: 8px 12px; background: var(--blanc); border-radius: 12px; display: grid; place-items: center; }
.puces-logos img { max-height: 36px; width: auto; }
/* Trois joueurs détourés, un grand mot en creux derrière */
.trio { position: relative; height: 380px; }
.trio__mot {
  position: absolute; left: 50%; top: 8%; translate: -50% 0; font: 800 120px/1 var(--titre); letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .22); white-space: nowrap;
}
.trio__joueur { position: absolute; bottom: 0; }
.trio__joueur img { height: 100%; width: auto; filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .5)); }
.trio__joueur--gauche { left: -4%; height: 74%; }
.trio__joueur--droite { right: -4%; height: 78%; }
.trio__joueur--centre { left: 50%; translate: -50% 0; height: 96%; z-index: 1; }

/* ——— Films et séries ——— */
.vod { background: var(--blanc); padding-bottom: 40px; }
.rail__titre { margin-top: 28px; font-size: 19px; }
.rail { list-style: none; margin: 12px 0 0; padding: 4px var(--gouttiere) 16px; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gouttiere); scrollbar-width: thin; }
.rail li { flex: 0 0 140px; scroll-snap-align: start; }
.rail figure { position: relative; margin: 0; }
.rail img { width: 100%; height: auto; aspect-ratio: 2 / 3; border-radius: 10px; box-shadow: 0 10px 22px rgba(7, 16, 96, .22); transition: transform .25s; }
.rail figure:hover img { transform: translateY(-4px) scale(1.02); }
.rail figcaption { margin-top: 8px; font-weight: 700; color: var(--encre); font-size: 16px; line-height: 1.3; }
.rail figcaption span { display: block; font-weight: 400; color: var(--texte); }
.rail .badge { position: absolute; top: 8px; left: 8px; }

/* ——— Les 3 gammes ——— */
.gammes__liste { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
.gamme-carte { position: relative; display: grid; gap: 6px; padding: 24px 22px; border-radius: 20px; color: var(--blanc); box-shadow: 0 18px 36px rgba(3, 8, 60, .22); }
.gamme-carte h3 { color: inherit; font-size: 24px; }
.gamme-carte__prix { font: 800 34px/1.1 var(--titre); }
.gamme-carte__prix small { font: 600 16px var(--corps); }
.gamme-carte__mois { font-weight: 600; }
.gamme-carte__bouton { margin-top: 12px; }
.gamme-carte__marque { position: absolute; top: -14px; left: 20px; padding: 2px 10px; border-radius: 999px; background: var(--ciel); color: var(--encre); font-weight: 700; font-size: 16px; }
.gamme-carte--standard { background: radial-gradient(circle at 100% 0%, rgba(112, 126, 214, .7), transparent 60%), linear-gradient(160deg, var(--bleu-nuit), var(--encre)); }
.gamme-carte--standard .gamme-carte__bouton { background: var(--ciel); color: var(--encre); }
.gamme-carte--advanced { background: radial-gradient(circle at 100% 0%, rgba(192, 123, 112, .4), transparent 58%), linear-gradient(160deg, var(--adv-brique), var(--adv-rouge)); }
.gamme-carte--advanced .gamme-carte__bouton { background: var(--blanc); color: var(--adv-rouge); }
.gamme-carte--vip { background: radial-gradient(circle at 100% 0%, rgba(212, 175, 55, .5), transparent 58%), linear-gradient(160deg, #2a210f, var(--or-nuit)); border: 1px solid var(--or); }
.gamme-carte--vip h3, .gamme-carte--vip .gamme-carte__prix { color: var(--or-clair); }
.gamme-carte--vip .gamme-carte__prix small { color: var(--blanc); }
.gamme-carte--vip .gamme-carte__bouton { background: var(--or); color: var(--or-nuit); }
.gammes__suite { margin-top: 18px; }

/* ——— Test, appareils, avis, questions (repris de la v1) ——— */
.test { background: var(--ciel-pale); border-radius: 22px; padding: 28px 20px; display: grid; gap: 20px; }
.test__prix { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.test__prix li { border-radius: 14px; padding: 12px 8px; text-align: center; color: var(--blanc); }
.test__prix b { display: block; font: 700 24px var(--titre); }
.test__prix--standard { background: var(--bleu-nuit); }
.test__prix--advanced { background: var(--adv-brique); }
.test__prix--vip { background: var(--or-nuit); color: var(--or-clair) !important; }
.appareils { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.appareils a { display: flex; flex-direction: column; gap: 8px; min-height: 104px; height: 100%; padding: 16px; background: var(--blanc); border: 1px solid var(--trait); border-radius: 14px; text-decoration: none; color: var(--encre); }
.appareils svg { width: 30px; height: 30px; color: var(--bleu-nuit); }
.appareils strong { font-size: 17px; }
.appareils span { font-size: 16px; color: var(--texte); }
.appareils li:last-child { grid-column: 1 / -1; }
.avis { display: grid; gap: 18px; margin-top: 28px; }
.avis figure { margin: 0; padding: 22px; background: var(--brume); border-radius: 16px; border-left: 6px solid var(--ciel); }
.avis blockquote { margin: 0; color: var(--encre); font-size: 18px; }
.avis figcaption { margin-top: 12px; font-size: 16px; }
.faq { margin-top: 24px; display: grid; gap: 10px; }
.faq details { background: var(--blanc); border: 1px solid var(--trait); border-radius: 14px; }
.faq summary { min-height: 56px; display: flex; align-items: center; padding: 12px 18px; font-weight: 600; color: var(--encre); cursor: pointer; }
.faq details p { padding: 0 18px 18px; }

/* ——— Bandeau d'appel (avant le pied) ——— */
.appel { position: relative; overflow: hidden; color: var(--pale);
  background: radial-gradient(ellipse at 85% 100%, rgba(112, 126, 214, .5), transparent 60%), linear-gradient(160deg, var(--bleu-nuit), var(--scene)); }
.appel__grille { display: grid; grid-template-columns: minmax(0, 1fr) 38%; align-items: end; gap: 8px; padding-top: 44px; }
.appel__texte { padding-bottom: 44px; }
.appel h2 { color: var(--blanc); }
.appel p { margin-top: 12px; }
.appel .ecran__actions { flex-direction: column; }
.appel .bouton--contour { background: rgba(5, 10, 51, .55); }
.appel__joueur { align-self: end; }
.appel__joueur img { width: 100%; height: auto; filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .5)); }

/* ——— Pied de page : clair, comme la barre du haut (le logo se lit) ——— */
.pied { background: var(--blanc); color: var(--texte); padding: 40px 0 96px; border-top: 1px solid var(--trait); }
.pied a { color: var(--encre); text-decoration: none; }
.pied a:hover { text-decoration: underline; }
.pied__haut { display: grid; gap: 22px; padding-bottom: 28px; border-bottom: 1px solid var(--trait); }
.pied__logo { display: inline-flex; min-height: 48px; }
.pied__logo img { height: 64px; width: auto; }
.pied__marque p { margin-top: 12px; max-width: 32em; }
.contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 16px; border-radius: 16px;
  background: var(--brume); border: 1px solid var(--trait); }
.pied .contact:hover { text-decoration: none; border-color: var(--ciel); }
.contact svg { width: 28px; height: 28px; flex: none; color: var(--bleu-nuit); }
.contact span { display: grid; line-height: 1.3; color: var(--texte); }
.contact b { color: var(--encre); }
.contact--whatsapp svg { color: #1a7a43; }
.pied__liens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; padding: 28px 0; border-bottom: 1px solid var(--trait); }
.pied h2 { font-size: 16px; margin-bottom: 6px; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied__liens a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.paiement { display: grid; gap: 10px; padding: 24px 0; }
.paiement__titre { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--encre); }
.paiement__titre svg { width: 20px; height: 20px; color: var(--succes); }
.paiement__moyens { display: flex; flex-wrap: wrap; gap: 8px; }
.paiement__moyens li { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 12px;
  background: var(--brume); border: 1px solid var(--trait); color: var(--encre); font-weight: 600; }
.paiement__moyens svg { width: 22px; height: 22px; color: var(--bleu-nuit); }
.pied__bas { padding-top: 20px; border-top: 1px solid var(--trait); font-size: 16px; }
.whatsapp { position: fixed; right: 16px; bottom: 16px; z-index: 20; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 56px; min-height: 56px; background: #1a7a43; color: var(--blanc); border-radius: 999px; text-decoration: none; font-weight: 600; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.whatsapp svg { width: 28px; height: 28px; }
.whatsapp__texte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ——— Animations : seulement si le visiteur ne les a pas désactivées ——— */
@media (prefers-reduced-motion: no-preference) {
  /* 4 tableaux de 6 s : fondu enchaîné, zoom lent sur la photo, entrée du joueur */
  .diapo { animation: diapo 24s var(--d) infinite both; }
  .diapo__fond img { animation: zoom 24s var(--d) infinite linear both; }
  .diapo__star, .eventail { animation: glisse 24s var(--d) infinite both; }
  @keyframes diapo { 0% { opacity: 0; } 4%, 25% { opacity: 1; } 29%, 100% { opacity: 0; } }
  @keyframes zoom { 0% { transform: scale(1.02); } 29%, 100% { transform: scale(1.14); } }
  @keyframes glisse { 0% { transform: translateX(14%); } 6%, 100% { transform: none; } }
  .direct__point { animation: pouls 1.4s ease-out infinite; }
  @keyframes pouls { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .8); } 100% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); } }
  .logos__piste { animation: defile 45s linear infinite; }
  .logos__rang--inverse .logos__piste { animation-direction: reverse; animation-duration: 55s; }
  @keyframes defile { to { transform: translateX(-100%); } }
  /* Apparition au défilement, là où le navigateur sait le faire (sinon : affiché tel quel) */
  @supports (animation-timeline: view()) {
    .trio__joueur, .gamme-carte, .match, .rail li {
      animation: monte linear both; animation-timeline: view(); animation-range: entry 0% entry 80%;
    }
    .trio__joueur--centre { animation-range: entry 10% entry 100%; }
    @keyframes monte { from { opacity: 0; transform: translateY(48px); } }
  }
}

/* ——— Ordinateur ——— */
@media (min-width: 768px) {
  :root { --gouttiere: 32px; }
  h2 { font-size: 38px; }
  .barre .barre__large { display: inline-flex; }
  .barre .barre__court { display: none; }
  .bouton--petit { margin-left: 8px; }
  .ecran { min-height: min(760px, calc(100svh - 64px)); display: grid; align-items: center; }
  .diapo::after { background: linear-gradient(90deg, rgba(5, 10, 51, .95) 0%, rgba(5, 10, 51, .78) 38%, rgba(5, 10, 51, .05) 68%), linear-gradient(0deg, rgba(5, 10, 51, .7), transparent 30%); }
  .diapo__star { right: 4%; height: 94%; }
  .diapo--ufc .diapo__star { right: -3%; }   /* photo d'origine coupée à droite : le bord sort de l'écran */
  .programme { left: auto; right: 32px; bottom: 32px; max-width: 420px; }
  .programme__titre { font-size: 17px; }
  .programme__logo { display: block; }
  .eventail { right: 3%; bottom: 110px; height: 44%; }
  .ecran__texte { padding-top: 64px; padding-bottom: 96px; }
  .ecran h1 { font-size: 62px; max-width: 13ch; }
  .ecran__intro { font-size: 19px; }
  .ecran__actions .bouton { flex: 0 0 auto; }
  .chiffres__liste b { font-size: 34px; }
  .chiffres__liste li { font-size: 17px; }
  .logos__piste li { width: 150px; height: 76px; }
  .logos__piste img { max-height: 48px; }
  .soiree { grid-template-columns: 1.25fr 1fr 1fr; }
  .match { grid-template-columns: minmax(0, 1fr); grid-template-areas: "heure" "titre" "compet" "chaine"; align-content: start; padding: 16px 18px; }
  .match__titre { font-size: 19px; }
  .match__chaine { flex-direction: row; align-items: center; margin-top: 8px; }
  .match__nom-chaine { max-width: none; text-align: left; }
  .match--une { grid-row: span 3; padding-right: 18px; padding-bottom: 260px; }
  .match__star { right: 10px; height: 290px; top: auto; }
  .theme { padding-top: 72px; }
  .theme__grille { grid-template-columns: 1fr 1.1fr; align-items: end; }
  .theme__grille--inverse .theme__texte { order: 2; }
  .theme__texte { padding-bottom: 72px; }
  .trio { height: 560px; }
  .trio__mot { font-size: 220px; }
  .rail { padding-left: max(var(--gouttiere), calc((100vw - var(--largeur)) / 2 + var(--gouttiere))); }
  .rail li { flex-basis: 180px; }
  .gammes__liste { grid-template-columns: repeat(3, 1fr); }
  .gamme-carte { padding: 30px 28px; }
  .whatsapp__texte { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .whatsapp { padding: 0 18px 0 14px; }
  .appareils { grid-template-columns: repeat(5, 1fr); }
  .appareils li:last-child { grid-column: auto; }
  .test { grid-template-columns: 1.2fr 1fr; align-items: center; padding: 40px; }
  .avis { grid-template-columns: repeat(3, 1fr); }
  .faq { max-width: 820px; }
  .appel__grille { grid-template-columns: 1.2fr 1fr; padding-top: 56px; }
  .appel__texte { padding-bottom: 72px; }
  .appel .ecran__actions { flex-direction: row; }
  .appel__joueur { justify-self: center; }
  .appel__joueur img { height: 420px; width: auto; }
  .pied { padding-bottom: 48px; }
  .pied__haut { grid-template-columns: 1fr auto; align-items: center; }
  .contacts { grid-template-columns: repeat(2, auto); }
  .pied__liens { grid-template-columns: repeat(4, 1fr); }
  .paiement { grid-template-columns: auto auto 1fr; align-items: center; gap: 16px; }
  .paiement__note { justify-self: end; }
}
@media (min-width: 1100px) {
  .eventail { right: 9%; bottom: 120px; height: 58%; }
}

/* ═════════ Page Offres v2 ═════════ */
.barre__lien[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--ciel); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* En-tête de page sombre, joueur détouré sur ordinateur */
.entete-offres { position: relative; overflow: hidden; color: var(--pale);
  background: radial-gradient(ellipse at 80% 100%, rgba(71, 176, 224, .45), transparent 60%), linear-gradient(160deg, var(--bleu-nuit), var(--scene)); }
.entete-offres__grille { display: grid; align-items: end; }
.entete-offres__texte { padding: 32px 0 36px; }
.entete-offres .surtitre { color: var(--blanc); }
.entete-offres h1 { color: var(--blanc); font-size: 32px; font-weight: 800; line-height: 1.08; max-width: 16ch; }
.entete-offres__intro { margin-top: 14px; max-width: 36em; }
.entete-offres__joueur { display: none; }
.puces-confiance { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }
.puces-confiance li { display: flex; align-items: center; gap: 10px; }
.puces-confiance svg { width: 22px; height: 22px; flex: none; color: var(--ciel); }

/* Sélecteurs durée et écrans (boutons radio, CSS seul) */
.choix { padding-top: 32px; }
.selecteurs { display: grid; gap: 18px; }
.segment { border: 0; margin: 0; padding: 0; min-width: 0; }
.segment legend { font-weight: 700; color: var(--encre); margin-bottom: 8px; padding: 0; }
.segment__choix { display: grid; gap: 4px; padding: 4px; background: var(--blanc); border: 1px solid var(--trait); border-radius: 14px; }
.segment__choix--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.segment__choix--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.segment input { position: absolute; opacity: 0; pointer-events: none; }
.segment label { display: grid; place-items: center; min-height: 48px; padding: 0 4px; border-radius: 10px; font-weight: 600; font-size: 16px;
  line-height: 1.1; text-align: center; color: var(--encre); cursor: pointer; }
.segment input:checked + label { background: var(--bleu-nuit); color: var(--blanc); }
.segment input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.segment__note { margin-top: 6px; font-size: 16px; }

/* Cartes des gammes sur la page Offres */
.gammes__liste--offres { margin-top: 30px; gap: 26px; }
.gamme-carte h2 { color: inherit; font-size: 26px; }
.gamme-carte__prix small { display: block; margin-top: 4px; }
.gamme-carte__eco { justify-self: start; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-weight: 700; font-size: 16px; }
.gamme-carte__points { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.gamme-carte__points li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.gamme-carte__points li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: rgba(255, 255, 255, .9)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23071060' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.gamme-carte--vip .gamme-carte__points li::before { background-color: var(--or); }
.gamme-carte__test { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; color: var(--blanc) !important; font-weight: 600; }
.gamme-carte--vip .gamme-carte__eco { background: rgba(212, 175, 55, .22); }
.choix__note { margin-top: 18px; font-size: 16px; }

/* Comparateur détaillé, têtes de colonne aux couleurs des gammes */
.comparateur-v2 { width: 100%; margin-top: 22px; border-collapse: separate; border-spacing: 0; }
.comparateur-v2 thead th { padding: 14px 10px; font: 700 17px/1.15 var(--titre); color: var(--blanc); text-align: left; }
.comparateur-v2 .col-standard { background: linear-gradient(160deg, var(--bleu-nuit), var(--encre)); border-radius: 14px 0 0 0; }
.comparateur-v2 .col-advanced { background: linear-gradient(160deg, var(--adv-brique), var(--adv-rouge)); }
.comparateur-v2 .col-vip { background: linear-gradient(160deg, #2a210f, var(--or-nuit)); color: var(--or-clair); border-radius: 0 14px 0 0; }
.comparateur-v2 tbody th { text-align: left; font-weight: 600; color: var(--encre); }
.comparateur-v2 tbody th, .comparateur-v2 td { padding: 12px 10px; border-bottom: 1px solid var(--trait); vertical-align: top; }
.comparateur-v2 tbody tr:nth-child(odd) > * { background: var(--brume); }
.a-venir { display: inline-block; padding: 0 8px; border-radius: 8px; background: #fff3cd; color: #5c4400; font-weight: 600; }

/* Revendeurs */
.revendeurs-v2 { padding: 48px 0; color: var(--pale);
  background: radial-gradient(ellipse at 90% 0%, rgba(212, 175, 55, .35), transparent 55%), linear-gradient(160deg, var(--encre), var(--scene)); }
.revendeurs-v2 h2 { color: var(--blanc); }
.revendeurs-v2 .surtitre { color: var(--or-clair); }
.revendeurs-v2 p:not(.surtitre) { margin-top: 10px; max-width: 40em; }
.revendeurs-v2__grille { display: grid; gap: 22px; align-items: center; }

/* Mobile : chaque ligne du comparateur = un intitulé sur toute la largeur, puis les 3 valeurs */
@media (max-width: 767px) {
  .comparateur-v2, .comparateur-v2 thead, .comparateur-v2 tbody { display: block; }
  .comparateur-v2 tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .comparateur-v2 thead td { display: none; }
  .comparateur-v2 thead th { padding: 12px 8px; font-size: 16px; }
  .comparateur-v2 tbody th { grid-column: 1 / -1; padding: 12px 8px 2px; border-bottom: 0; }
  .comparateur-v2 tbody td { padding: 2px 8px 12px; font-size: 16px; }
}

@media (min-width: 768px) {
  .entete-offres__grille { grid-template-columns: 1.3fr 1fr; }
  .entete-offres__texte { padding: 56px 0 64px; }
  .entete-offres h1 { font-size: 52px; }
  .puces-confiance { grid-auto-flow: column; justify-content: start; gap: 22px; }
  .entete-offres__joueur { display: block; justify-self: center; }
  .entete-offres__joueur img { height: 360px; width: auto; filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .5)); }
  .selecteurs { grid-template-columns: 1.6fr 1fr; gap: 28px; }
  .gammes__liste--offres { grid-template-columns: repeat(3, 1fr); }
  .comparateur-v2 { table-layout: fixed; }
  .comparateur-v2 thead td { width: 31%; }
  .comparateur-v2 thead th { padding: 16px 18px; font-size: 20px; }
  .comparateur-v2 tbody th, .comparateur-v2 td { padding: 14px 18px; }
  .revendeurs-v2__grille { grid-template-columns: 1fr auto; }
}

/* ═════════ Accueil : affiches qui défilent toutes seules (demande du client) ═════════ */
.defile { display: flex; overflow: hidden; margin-top: 12px; }
.defile .rail { margin: 0; overflow: visible; flex: none; scroll-snap-type: none; padding-right: 12px; }
.defile .rail li { scroll-snap-align: none; }
@media (min-width: 768px) { .defile .rail { padding-left: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .defile__piste { animation: defile 70s linear infinite; }
  .defile--inverse .defile__piste { animation-direction: reverse; animation-duration: 55s; }
  /* Pause au survol, au toucher ou au clavier : on peut lire un titre */
  .defile:hover .defile__piste, .defile:active .defile__piste, .defile:focus-within .defile__piste { animation-play-state: paused; }
  .defile .rail li { animation: none; }
}
/* Animations coupées : on revient à une rangée qu'on fait glisser soi-même */
@media (prefers-reduced-motion: reduce) {
  .defile { overflow-x: auto; }
  .defile .rail[aria-hidden="true"] { display: none; }
}

/* ═════════ Boîtes produits dans les cartes des gammes (demande du client) ═════════ */
.gamme-carte__boite { display: block; justify-self: center; margin: -6px 0 4px; }
.gamme-carte__boite img, .gamme-carte__boite .b img { height: 170px; width: auto; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .35)); }
.gamme-carte__boite .b { justify-content: center; }
@media (min-width: 768px) { .gamme-carte__boite img { height: 190px; } }

/* Sélecteur à 6 durées (offre 36 mois ajoutée) : 3 × 2 sur mobile, une ligne sur ordinateur */
.segment__choix--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 768px) { .segment__choix--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* ═════════ Écran d'accueil : 5 tableaux (ajout « tous vos écrans », permanent) — 6 s chacun, 30 s le tour ═════════ */
.diapo--foot { --d: -1s; }
.diapo--ecrans { --d: 5s; }
.diapo--f1 { --d: 11s; }
.diapo--ufc { --d: 17s; }
.diapo--cine { --d: 23s; }
@media (prefers-reduced-motion: no-preference) {
  .diapo { animation: diapo5 30s var(--d) infinite both; }
  .diapo__fond img { animation: zoom5 30s var(--d) infinite linear both; }
  .diapo__star, .eventail { animation: glisse5 30s var(--d) infinite both; }
  @keyframes diapo5 { 0% { opacity: 0; } 3.33%, 20% { opacity: 1; } 23.33%, 100% { opacity: 0; } }
  @keyframes zoom5 { 0% { transform: scale(1.02); } 23.33%, 100% { transform: scale(1.12); } }
  @keyframes glisse5 { 0% { transform: translateX(14%); } 5%, 100% { transform: none; } }
}

/* ═════════ Bande des logos officiels des appareils compatibles ═════════ */
.logos--appareils { border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
.logos__titre { font-weight: 700; color: var(--encre); text-align: center; }
.logos--appareils .logos__piste li { background: var(--blanc); width: 132px; }
.logos--appareils .logos__piste img { max-height: 36px; }
@media (min-width: 768px) {
  .logos--appareils .logos__piste li { width: 168px; }
  .logos--appareils .logos__piste img { max-height: 44px; }
}

/* ═════════ Logos qui défilent : même poids visuel pour tous (taille calculée par logo selon sa forme, --h en px) ═════════ */
.logos__piste img, .logos--appareils .logos__piste img { height: calc(var(--h, 30) * 1px); width: auto; max-height: none; max-width: 100%; }
@media (min-width: 768px) {
  .logos__piste img, .logos--appareils .logos__piste img { height: calc(var(--h, 30) * 1.25px); }
}

/* ═════════ Page Offres : mosaïque des photos de l'accueil en fond de l'en-tête (Doué retiré, demande du client) ═════════ */
.entete-offres { isolation: isolate; }
.entete-offres__mosaique { position: absolute; inset: 0; z-index: -2; }
.entete-offres__mosaique img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
/* Voile : sombre derrière le texte, la mosaïque se dévoile à droite */
.entete-offres::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(5, 10, 51, .8), rgba(5, 10, 51, .9)); }
.entete-offres__joueur { display: none !important; }
@media (prefers-reduced-motion: no-preference) {
  .entete-offres__mosaique img { animation: mosaique 40s ease-in-out infinite alternate; }
  @keyframes mosaique { from { transform: scale(1); } to { transform: scale(1.07); } }
}
@media (min-width: 768px) {
  .entete-offres__grille { grid-template-columns: minmax(0, 1fr); }
  .entete-offres__texte { max-width: 640px; }
  .entete-offres::before { background: linear-gradient(90deg, rgba(5, 10, 51, .97) 0%, rgba(5, 10, 51, .9) 38%,
    rgba(5, 10, 51, .35) 66%, rgba(5, 10, 51, .15) 100%), linear-gradient(0deg, rgba(5, 10, 51, .6), transparent 35%); }
}
@media (min-width: 768px) {
  /* En-tête Offres plus haut : la mosaïque se voit presque entière */
  .entete-offres { min-height: 560px; display: grid; align-items: center; }
  .entete-offres__mosaique img { object-position: center; }
}

/* Exposants (1er, 1re…) : posés sans écarter les lignes ; même rendu que sous Blocksy (02/11, construction P3) */
sup { position: relative; top: -0.5em; font-size: 75%; line-height: 0; vertical-align: baseline; }

/* En-têtes du comparateur : jamais de mot coupé (Blocksy autorise la coupure partout, « Advanced » passait sur 2 lignes) */
.comparateur-v2 thead th { overflow-wrap: normal; }

/* ——— Contour de focus (07/11) ———
   Bleu-nuit sur fond clair (13,1:1 sur blanc), blanc sur fond sombre (au moins 5,4:1, même au centre des halos, où le
   ciel tombait à 2,2:1). La bulle WhatsApp passe au-dessus des deux : double anneau, blanc au contact, bleu-nuit autour. */
.ecran, .chiffres, .theme, .match--une, .gamme-carte, .appel, .entete-offres, .revendeurs-v2,
.comparateur-v2 .col-standard, .comparateur-v2 .col-advanced, .comparateur-v2 .col-vip { --focus: var(--blanc); }
.whatsapp:focus-visible { outline-color: var(--bleu-nuit); box-shadow: 0 0 0 2px var(--blanc), 0 10px 24px rgba(0, 0, 0, .25); }

/* ——— Langue et devise (07/11) : menu déroulant de la barre du haut, carte proposée selon le pays (inc/devises.php) ——— */
.barre .conteneur { position: relative; }
.reglages > summary { display: inline-flex; align-items: center; gap: 4px; min-width: 44px; min-height: 44px; padding: 0 6px; border-radius: 10px;
  list-style: none; cursor: pointer; font-weight: 600; color: var(--encre); white-space: nowrap; }
.reglages > summary::-webkit-details-marker { display: none; }
.reglages > summary:hover { background: var(--brume); }
.reglages > summary svg { width: 10px; height: 6px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.reglages[open] > summary svg { transform: rotate(180deg); }
.reglages__langue { display: none; }
.reglages__panneau { position: absolute; right: var(--gouttiere); top: 60px; z-index: 10; width: 260px; padding: 8px; background: var(--blanc);
  border-radius: 14px; box-shadow: 0 18px 40px rgba(7, 16, 96, .25); }
.reglages__titre { margin: 8px 12px 4px; font-weight: 700; color: var(--texte); }
.reglages__titre ~ .reglages__titre { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--trait); }
.reglages__panneau a, .reglages__bientot { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 12px;
  border-radius: 8px; color: var(--encre); text-decoration: none; }
.reglages__panneau a:hover { background: var(--brume); }
.reglages__panneau a[aria-current] { background: var(--ciel-pale); font-weight: 700; }
.reglages__panneau small { font-size: 16px; color: #4f5670; }
.reglages__bientot { color: #4f5670; }
@media (max-width: 380px) { .barre .bouton--petit { padding: 0 10px; } }
@media (min-width: 768px) { .reglages__langue { display: inline; } }
.devise-proposee { position: fixed; z-index: 25; left: 16px; right: 88px; bottom: 16px; max-width: 420px; padding: 14px 16px;
  background: var(--blanc); color: var(--texte); border: 1px solid var(--trait); border-radius: 16px; box-shadow: 0 18px 40px rgba(7, 16, 96, .25); }
.devise-proposee p { margin: 0 0 10px; font-weight: 600; color: var(--encre); }
.devise-proposee div { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.devise-proposee__non { min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--bleu-nuit); font: 600 16px/1.2 var(--corps);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
