/**------- BENIA.CA v1 — loading page (mesures maquette 2880x1620) + scene -------*/

@font-face {
  font-family: 'Urban Spray';
  src: url('../assets/fonts/urban_spray.ttf') format('truetype');
  font-display: block;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: Verdana, Geneva, sans-serif;
  /* site interactif (drag 2.5D) : le texte ne doit jamais se sélectionner/surligner */
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/**------- LOADING OVERLAY — positions = % mesures sur la maquette -------*/
#loading {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 10;
  opacity: 1;
  transition: opacity .7s ease;
}
#loading.done { opacity: 0; pointer-events: none; }

#ld-logo {
  position: absolute;
  left: 42.99%;
  top: 20.79%;
  width: 15.24%;
}
#ld-bar {
  position: absolute;
  left: 43.84%;
  top: 63.3%;
  width: 13.46%;
  height: 2.37vh;
  background: #fff;
  border-radius: 3px;
  overflow: visible;
}
#ld-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  border-radius: 3px 0 0 3px;
  /* gradient mesure : rgb(235,34,136) -> rgb(129,66,149) -> rgb(71,83,157) -> extrapole */
  background: linear-gradient(90deg,
    rgb(235, 34, 136) 0%,
    rgb(129, 66, 149) 50%,
    rgb(71, 83, 157) 75%,
    rgb(13, 100, 166) 100%);
}
#ld-pct {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Urban Spray', Arial, sans-serif;
  font-size: 2.2vh;
  color: #000;
  white-space: nowrap;
}
#ld-file {
  position: absolute;
  top: 68.99%;
  left: 0;
  width: 100%;
  text-align: center;
  color: #cfcfcf;
  font-size: clamp(11px, 1.14vh, 16px);
  letter-spacing: .04em;
}
#ld-copy {
  position: absolute;
  right: 10px;
  bottom: 8px;
  color: #ddd;
  font-size: clamp(10px, 0.92vh, 15px);
}

/**------- LOADING en portrait (mobile) : mêmes éléments, échelle adaptée -------*/
@media (orientation: portrait) {
  #ld-logo { left: 50%; top: 24%; width: 62vw; transform: translateX(-50%); }
  #ld-bar { left: 50%; top: 65%; width: 61vw; transform: translateX(-50%); height: 1.76vh; }
  #ld-pct { font-size: 2vh; }
}

/**------- SCENE -------*/
/* touch-action:none → le drag parallaxe au doigt ne déclenche ni scroll ni pull-to-refresh */
#stage { position: fixed; inset: 0; touch-action: none; }

body.scene-ready {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

#three {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: block;
  /* la 3D passe DEVANT les labels ; les events souris traversent vers eux */
  pointer-events: none;
}

#hydrant {
  position: absolute;
  z-index: 1;
  transform: translate(-50%, -100%);  /* ancre = base du sprite */
  visibility: hidden;
}

#signature {
  position: absolute;
  z-index: 4;                          /* au-dessus des labels/objets, décoratif */
  width: auto;                         /* hauteur pilotée par le layout → ratio préservé */
  transform: translate(-50%, -50%);    /* ancre = centre */
  visibility: hidden;
  pointer-events: none;                /* ne bloque pas les clics de la scène */
}

/* COOKIES — modal bloquant à l'ouverture (blanc + bord rose #EB2288, boutons rose/bleu du site) */
#cookieOverlay {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 18px; background: rgba(0, 0, 0, .5);
}
#cookieOverlay.show { display: flex; }
#cookiePanel {
  box-sizing: border-box; width: min(600px, 94vw);
  background: #fff; border: 1.5px solid #EB2288; border-radius: 14px;
  padding: 30px 34px 24px; text-align: center;
  font-family: Verdana, Geneva, sans-serif;
  box-shadow: 0 16px 50px rgba(0, 0, 0, .45);
}
#cookieImg { width: clamp(130px, 26vw, 200px); height: auto; display: block; margin: 0 auto 20px; }
#cookieText { font-size: clamp(15px, 2.1vh, 19px); line-height: 1.5; color: #4a4a4a; margin: 0 0 26px; }
#cookieBtns { display: flex; justify-content: space-between; gap: 14px; }
#cookieReject, #cookieAccept {
  border: 0; border-radius: 6px; color: #fff; cursor: pointer;
  font: 700 clamp(14px, 1.9vh, 17px)/1 Arial, sans-serif; letter-spacing: .5px; padding: 13px 30px;
}
#cookieReject { background: #EB2288; }   /* refuser */
#cookieAccept { background: #1D5FA1; }   /* accepter */
#cookieReject:hover, #cookieAccept:hover { filter: brightness(1.1); }
@media (orientation: portrait) {
  /* mobile : popup ~2× plus grand (image, texte, boutons, marges) */
  #cookiePanel { width: 96vw; padding: 46px 32px 36px; border-radius: 18px; }
  #cookieImg { width: min(330px, 64vw); margin-bottom: 36px; }
  #cookieText { font-size: clamp(22px, 4.6vh, 36px); line-height: 1.5; margin-bottom: 48px; }
  #cookieReject, #cookieAccept { padding: 22px 34px; font-size: clamp(20px, 4vh, 28px); border-radius: 10px; }
}

.spray-label {
  position: absolute;
  z-index: 1;
  transition: opacity .25s ease;
  font-family: 'Urban Spray', Arial, sans-serif;
  color: #fff;
  text-shadow: 0 0 6px rgba(0, 0, 0, .55);
  white-space: nowrap;
  transform-origin: center center;
  visibility: hidden;
}
.spray-label:hover { opacity: 1 !important; }

.audio-btn {
  position: absolute;
  z-index: 4;
  height: 6.5vh;
  min-height: 39px;
  bottom: 3.2vh;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#btnMusic { left: 2.7vw; }
#btnMute { right: 2.7vw; }

/**------- BULLE "NOW PLAYING" — déroule à droite du walkman à chaque piste -------*/
/* Position (left/top) posée en JS d'après le rect réel du walkman : robuste quelle
   que soit la largeur de l'icône. Ouverture = height 0 -> cible + fondu ; fermeture
   symétrique. translateY(-50%) → la bulle grandit centrée sur le bouton. */
#npBubble {
  position: absolute;
  z-index: 4;
  left: 12vw;                 /* secours avant le 1er calcul JS */
  bottom: 4.3vh;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  max-width: 62vw;
  height: 0;                  /* replié au repos */
  padding: 8px 14px;
  overflow: hidden;
  opacity: 0;
  white-space: nowrap;
  background: rgba(255, 255, 255, .8);   /* blanc — transparence 80% */
  border: 2px solid #EB2288;             /* contour opaque, épaisseur 2 */
  border-radius: 5px;                    /* arrondis des angles = 5 */
  color: #17171c;
  font-family: Verdana, Geneva, sans-serif;
  font-weight: 700;
  font-size: clamp(13px, 1.9vh, 22px);
  letter-spacing: .01em;
  pointer-events: none;                  /* purement informatif */
  transition: height .35s ease, opacity .35s ease, padding .35s ease;
}
#npBubble.show { opacity: 1; }
#npTitle { line-height: 1.15; }

/**------- CONTACT : vitre cassée (visuel) + panneau carré (style bulle now-playing) -------*/
/* La vitre est en premier plan mais pointer-events:none → les clics passent au panneau/X.
   Le panneau est un CARRÉ centré (la scène reste visible autour), même habillage que la bulle. */
#glassOverlay {
  position: fixed;
  width: 170vmax;              /* grand : l'éclat rayonne autour de l'impact ; left/top posés en JS */
  height: auto;
  z-index: 24;                 /* SOUS les popups (25) : le popup CONTACT passe devant la vitre cassée */
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s ease;
}
#glassOverlay.show { opacity: 1; visibility: visible; }

/* SERVICES : gouttes d'eau (splash+coulure) ; PRODUCTS : éclairs + écran carbonisé -- même canvas plein écran */
#waterDrops, #thunderFx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 30;
  pointer-events: none;
  display: none;
}
#waterDrops.show, #thunderFx.show { display: block; }
/* PRODUCTS : le canvas passe SOUS le popup (z-index 24 < 25) → le voile d'orage assombrit
   la scène derrière le panneau, qui reste lisible au-dessus. */
#thunderFx { z-index: 24; }

#contactPanel, #servicesPanel, #productsPanel, #storyPanel {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.7);
  width: min(64vw, 64vh);
  height: min(64vw, 64vh);   /* carré : on voit la scène autour */
  z-index: 25;
  box-sizing: border-box;
  padding: 26px;
  background: rgba(255, 255, 255, .8);   /* même style que la bulle "now playing" */
  border: 2px solid #EB2288;
  border-radius: 5px;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, transform .25s ease;
  font-family: Verdana, Geneva, sans-serif;
  color: #17171c;
}
#contactPanel.show, #servicesPanel.show, #productsPanel.show, #storyPanel.show { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
#contactBody h2, #servicesBody h2, #productsBody h2, #storyBody h2 {
  font-family: 'Urban Spray', Arial, sans-serif;
  font-size: clamp(20px, 3.4vh, 40px);
  margin-bottom: 12px;
  color: #17171c;
}
#contactBody p, #servicesBody p, #productsBody p, #storyBody p { font-size: clamp(13px, 1.9vh, 18px); line-height: 1.5; }

/**------- CONTACT : ligne téléphone (icône + numéro EN FACE) en haut, juste sous le titre.
   Numéro FR/EN piloté par scene.js apply(). Même bleu que le formulaire, hover rose. -------*/
#contactBody .cf-phone {
  display: inline-flex; align-items: center; gap: clamp(8px, 1.4vh, 14px);
  margin-bottom: clamp(4px, 1.2vh, 12px); text-decoration: none;
  align-self: flex-start;
}
#contactBody .cf-phone img { width: clamp(28px, 3.8vh, 40px); height: auto; flex: none; display: block; }
#contactBody .cf-phone span {
  color: #1D5FA1; font-size: clamp(17px, 2.5vh, 22px); font-weight: 600; letter-spacing: .5px;
}
#contactBody .cf-phone:hover span { color: #EB2288; }
@media (orientation: portrait) {
  #contactBody .cf-phone { gap: clamp(10px, 2.6vw, 16px); margin-bottom: clamp(8px, 1.8vh, 16px); }
  #contactBody .cf-phone img { width: clamp(42px, 10vw, 58px); }
  #contactBody .cf-phone span { font-size: clamp(20px, 5vw, 26px); }
}

/* bouton fermer : carré bleu (#1D5FA1 fourni par Redha), X blanc */
#contactClose, #servicesClose, #productsClose, #storyClose {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  background: #1D5FA1;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
#contactClose:hover, #servicesClose:hover, #productsClose:hover, #storyClose:hover { filter: brightness(1.12); }

/* MOBILE : panneaux CONTACT/SERVICES quasi plein écran (le carré était illisible en portrait) */
@media (orientation: portrait) {
  #contactPanel, #servicesPanel, #productsPanel, #storyPanel { width: 94vw; height: 86vh; padding: 20px; }
  #contactClose, #servicesClose, #productsClose, #storyClose { width: 64px; height: 64px; font-size: 38px; border-radius: 8px; top: 12px; right: 12px; }
  #contactBody h2, #servicesBody h2, #productsBody h2, #storyBody h2 { font-size: clamp(24px, 5vw, 44px); }
  #contactBody p, #servicesBody p, #productsBody p, #storyBody p { font-size: clamp(15px, 3.6vw, 20px); }
}

/**------- CONTACT : formulaire (First/Last optionnels, Email + Message obligatoires, SEND).
   Champs soulignés bleu, labels bleus, texte saisi entre le label et la ligne (design Contact.png). -------*/
#contactBody { display: flex; flex-direction: column; height: 100%; }
#contactForm {
  display: flex; flex-direction: column; flex: 1; min-height: 0;
  gap: clamp(14px, 2.6vh, 26px); margin-top: 6px;
}
#contactForm .cf-row { display: flex; gap: clamp(24px, 5vw, 56px); }
#contactForm .cf-row .cf-field { flex: 1 1 0; min-width: 0; }
#contactForm .cf-field { display: flex; flex-direction: column; }
#contactForm .cf-msg { flex: 1; min-height: 90px; }
#contactForm label {
  color: #1D5FA1; font-size: clamp(17px, 2.5vh, 22px); font-weight: 500;
  margin-bottom: 4px; letter-spacing: .3px;
}
#contactForm .cf-star { color: #1D5FA1; font-size: .78em; vertical-align: super; }
#contactForm input, #contactForm textarea {
  width: 100%; box-sizing: border-box; border: 0; border-bottom: 2px solid #1D5FA1;
  background: transparent; color: #17171c; font-family: inherit;
  font-size: clamp(17px, 2.5vh, 22px); padding: 3px 2px; outline: none;
}
#contactForm textarea { resize: none; flex: 1; min-height: 80px; line-height: 1.5; }
#contactForm input:focus, #contactForm textarea:focus { border-bottom-color: #EB2288; }
#contactForm .cf-hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; opacity: 0; }
#contactForm .cf-foot { display: flex; align-items: center; gap: 14px; margin-top: 2px; }
#contactForm .cf-status { flex: 1; font-size: clamp(12px, 1.6vh, 15px); }
#contactForm .cf-status.ok { color: #1DB954; }
#contactForm .cf-status.err { color: #EB2288; }
#cfSend {
  flex: none; background: #1D5FA1; color: #fff; border: 0; border-radius: 5px;
  padding: 11px 34px; font-size: clamp(14px, 1.8vh, 17px); font-weight: 600;
  letter-spacing: 1px; cursor: pointer;
}
#cfSend:hover { filter: brightness(1.1); }
#cfSend:disabled { opacity: .5; cursor: default; }
@media (orientation: portrait) {
  /* mobile LISIBLE : First/Last empilés (pleine largeur), texte dimensionné en vw (écran étroit),
     champs aérés, gros SEND. Même style (labels bleus, champs soulignés, contour rose). */
  #contactForm { gap: clamp(16px, 2.6vh, 26px); margin-top: 10px; }
  #contactForm .cf-row { flex-direction: column; gap: clamp(16px, 2.6vh, 26px); }
  #contactForm label { font-size: clamp(20px, 5vw, 26px); margin-bottom: 7px; }
  #contactForm .cf-star { font-size: .72em; }
  #contactForm input, #contactForm textarea { font-size: clamp(20px, 5vw, 26px); padding: 8px 3px; }
  #contactForm .cf-msg { min-height: 150px; }
  #contactForm textarea { min-height: 140px; }
  #contactForm .cf-foot { flex-wrap: wrap; gap: 10px; }
  #contactForm .cf-status { flex: 1 1 100%; font-size: clamp(14px, 3.6vw, 17px); order: 2; }
  #cfSend { padding: 15px 48px; font-size: clamp(18px, 4.4vw, 22px); order: 1; margin-left: auto; }
}

/**------- CONTACT : petit popup de confirmation après envoi (même style, bouton OK bleu). -------*/
#contactThanks {
  position: fixed; left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(.85);
  width: min(380px, 84vw); z-index: 26; box-sizing: border-box;
  padding: 30px 28px; text-align: center;
  background: rgba(255, 255, 255, .96);
  border: 2px solid #EB2288; border-radius: 5px;
  opacity: 0; visibility: hidden;
  transition: opacity .2s ease, transform .2s ease;
  font-family: Verdana, Geneva, sans-serif; color: #17171c;
}
#contactThanks.show { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
#contactThanks .ct-msg { color: #1D5FA1; font-size: clamp(16px, 2.2vh, 20px); line-height: 1.5; margin: 0 0 24px; }
#ctOk {
  background: #1D5FA1; color: #fff; border: 0; border-radius: 5px;
  padding: 11px 46px; font-size: 16px; font-weight: 600; letter-spacing: 1px; cursor: pointer;
}
#ctOk:hover { filter: brightness(1.1); }
@media (orientation: portrait) {
  #contactThanks { width: min(82vw, 540px); padding: 36px 30px; }
  #contactThanks .ct-msg { font-size: clamp(21px, 5vw, 27px); margin-bottom: 30px; }
  #ctOk { padding: 16px 58px; font-size: clamp(19px, 4.8vw, 23px); }
}

/**------- PRODUCTS : intro + 3 logos vedettes + carousel logos clients.
   Carousel : défile auto ; souris à DROITE = accélère (avant), à GAUCHE = marche arrière. -------*/
#productsPanel { width: min(880px, 94vw); height: auto; max-height: 90vh; overflow-x: hidden; }
#productsBody .pr-p { font-size: clamp(14px, 1.9vh, 18px); line-height: 1.5; color: #333; margin: 14px 0; }
/* rangée VEDETTES : grille 3 colonnes égales → le logo du milieu (Jolly Rider) est au centre exact
   du popup, GCC et ZerZoom équidistants. Pas de fond blanc (plus joli sur le panneau, demande Redha). */
#productsBody .pr-featured {
  display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; justify-items: center;
  margin: 18px 0 8px;
}
#productsBody .pr-featured img { height: clamp(70px, 12vh, 108px); width: auto; max-width: 92%; object-fit: contain; }
/* bande carousel : fond BLANC plein, pleine largeur, sans transparence (plus de fondu aux bords) */
.pr-carousel {
  position: relative; overflow: hidden;
  margin: 10px -26px 4px; padding: 12px 0; background: #fff;
}
.pr-track { display: flex; align-items: center; width: max-content; will-change: transform; }
.pr-track img { height: clamp(48px, 7vh, 64px); width: auto; margin: 0 26px; object-fit: contain; flex: none; pointer-events: none; user-select: none; }
@media (orientation: portrait) {
  #productsBody .pr-p { font-size: clamp(20px, 5.2vw, 26px); margin: 16px 0; }
  #productsBody .pr-featured img { height: clamp(64px, 20vw, 110px); }
  .pr-carousel { margin-left: -20px; margin-right: -20px; }
  .pr-track img { height: clamp(54px, 14vw, 78px); margin: 0 20px; }
}

/**------- Bascule de langue EN/FR : drapeau en haut à droite (FR affiché = clic → français). -------*/
#langFlag {
  position: fixed; top: 14px; right: 16px; z-index: 210;   /* au-dessus du cookie (200) → cliquable même pendant */
  width: 46px; height: 31px; padding: 0; line-height: 0; cursor: pointer;
  background: none; border: 2px solid rgba(255, 255, 255, .85); border-radius: 5px;
  overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}
#langFlag svg { width: 100%; height: 100%; display: block; }
#langFlag:hover { filter: brightness(1.08); }
@media (orientation: portrait) {
  #langFlag { width: 45px; height: 30px; top: 16px; right: 16px;   /* -30% (64x43 -> 45x30) */
    z-index: 24; }                                     /* SOUS les popups (25) en mobile */
  #loading:not(.done) ~ #langFlag { visibility: hidden; }   /* invisible tant que le loading tourne */
}

/**------- Poubelle (PC only) : zone cliquable transparente sur le bidon (placée en JS) + overlay
   qui affiche delete_soft.png centrée, SANS cadre, avec un X pour fermer. -------*/
#trashHotspot { position: fixed; z-index: 4; cursor: pointer; transform: translate(-50%, -100%); visibility: hidden; }
#deleteOverlay {
  position: fixed; inset: 0; z-index: 150; display: none;
  align-items: center; justify-content: center;
}
#deleteOverlay.show { display: flex; }
#deleteInner { position: relative; max-width: 92vw; max-height: 86vh; }
#deleteInner img { display: block; max-width: 92vw; max-height: 86vh; width: auto; height: auto; box-shadow: 0 12px 44px rgba(0, 0, 0, .55); }
/* l'image (fenêtre XP) a déjà sa croix X rouge en haut à droite → on la rend cliquable pour fermer
   (zone transparente par-dessus, pas de bouton bleu en doublon). Zone LARGE (tout le coin) pour ne
   jamais la rater. Filets : clic hors image + Échap ferment aussi (JS). */
#deleteClose {
  position: absolute; top: 0; right: 0; width: 12%; height: 10%;
  background: transparent; border: 0; padding: 0; cursor: pointer; font-size: 0; color: transparent;
}

/**------- SERVICES : panneau plus grand (plus de contenu) + mise en page scannable -------*/
/* landscape (PC) uniquement : sinon on écraserait le plein écran mobile de la media query. */
/* hauteur auto : le panneau épouse le contenu (jamais de chute coupée, jamais de vide) */
@media (orientation: landscape) { #servicesPanel { width: min(74vw, 66vh); height: auto; max-height: 92vh; } }
#servicesBody { color: #1a1e28; }
#servicesBody h2 { margin-bottom: 3px; }
#servicesBody .sv-lead { font-size: clamp(16px, 2.4vh, 26px); font-weight: 800; line-height: 1.08; color: #12202e; margin: 2px 0 0; }
/* collé sous l'accroche : aucun espace vertical entre "…build an app." et "Well… almost." */
#servicesBody .sv-wink { font-style: italic; color: #EB2288; font-weight: 700; font-size: clamp(13px, 1.85vh, 18px); margin: 0 0 9px; padding-left: 16px; }
#servicesBody .sv-p { font-size: clamp(12.5px, 1.6vh, 16px); line-height: 1.4; margin: 6px 0; color: #232936; }
#servicesBody em { font-style: normal; color: #1D5FA1; font-weight: 800; }
#servicesBody strong { color: #12202e; font-weight: 800; }
#servicesBody .sv-mut { color: #737b88; }
#servicesBody .sv-sm { font-size: clamp(11px, 1.35vh, 13.5px); }
#servicesBody .sv-sep { border: 0; height: 1px; margin: 9px 0; background: linear-gradient(90deg, transparent, rgba(235, 34, 136, .5), transparent); }
#servicesBody .sv-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 9px 0 5px; padding: 0; }
/* pastilles services : carrés arrondis radius 5 (house style), pas de pilules */
#servicesBody .sv-chips li { font-size: clamp(11px, 1.35vh, 13px); font-weight: 700; padding: 4px 11px; border-radius: 5px; background: rgba(29, 95, 161, .1); border: 1px solid rgba(29, 95, 161, .5); color: #0f5290; }
#servicesBody .sv-pairs { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 4px; }
/* radius 5 + texte centré (setup + chute alignés au milieu de la boîte) */
#servicesBody .sv-pair { flex: 1 1 44%; min-width: 145px; padding: 8px 12px; border-radius: 5px; background: rgba(255, 255, 255, .5); border: 1px solid rgba(235, 34, 136, .3); text-align: center; }
#servicesBody .sv-k { display: block; font-size: clamp(11.5px, 1.45vh, 14px); color: #737b88; }
/* Urban Spray = glyphes majuscules uniquement → text-transform force le rendu */
#servicesBody .sv-v { display: block; font-family: 'Urban Spray', Arial, sans-serif; text-transform: uppercase; color: #EB2288; font-size: clamp(16px, 2.2vh, 25px); line-height: 1.05; margin-top: 2px; }
#servicesBody .sv-close { margin-top: 9px; }
#servicesBody .sv-punch { font-family: 'Urban Spray', Arial, sans-serif; text-transform: uppercase; text-align: center; color: #1D5FA1; font-size: clamp(20px, 3vh, 34px); line-height: 1.05; margin: 8px 0 2px; }

/**------- SERVICES mobile (portrait) : texte dimensionné en vw (axe de lecture = largeur),
   sinon le vh donne un corps minuscule sur un écran haut+étroit. Panneau en hauteur auto
   (scroll si le contenu déborde) pour absorber les tailles plus grosses. -------*/
@media (orientation: portrait) {
  #servicesPanel { height: auto; max-height: 92vh; }
  /* Corps ramené à une échelle LISIBLE (~22px) : le "doublé" précédent (~45px) débordait et
     coupait les mots sur téléphone. Cohérent avec le texte STORY mobile. Scroll assumé. */
  #servicesBody h2 { font-size: clamp(30px, 8vw, 42px); line-height: 1; }
  #servicesBody .sv-lead { font-size: clamp(23px, 6.2vw, 30px); line-height: 1.12; }
  #servicesBody .sv-wink { font-size: clamp(18px, 4.8vw, 22px); }
  #servicesBody .sv-p { font-size: clamp(19px, 5vw, 24px); line-height: 1.4; margin: 12px 0; }
  #servicesBody .sv-sm { font-size: clamp(15px, 4vw, 18px); }
  #servicesBody .sv-chips { gap: 8px; }
  #servicesBody .sv-chips li { font-size: clamp(15px, 4vw, 18px); padding: 7px 14px; }
  #servicesBody .sv-k { font-size: clamp(15px, 4vw, 18px); }
  #servicesBody .sv-v { font-size: clamp(22px, 5.8vw, 28px); }
  #servicesBody .sv-pair { flex: 1 1 100%; }
  #servicesBody .sv-punch { font-size: clamp(26px, 7vw, 36px); }
}

/**------- STORY : lecteur vidéo (histoire BENIA) + texte scrollable. Panneau plus grand que le carré
   partagé. Contrôles bleus superposés sur la vidéo (play/pause, mute, plein écran). -------*/
#storyPanel {
  width: min(760px, 92vw); height: auto; max-height: 90vh;
  padding: 20px 22px; display: flex; flex-direction: column;
  background: rgba(255, 255, 255, .96);
}
#storyBody { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
#storyBody h2 { text-align: left; margin: 0 0 12px; }
#storyVideoWrap {
  position: relative; width: 100%; aspect-ratio: 16 / 9; flex: none;
  background: #000; border-radius: 6px; overflow: hidden;
}
#storyVideo { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
#storyCtrls {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px;
  display: flex; justify-content: space-between; align-items: flex-end; pointer-events: none;
}
#storyCtrls .st-ctrl-right { display: flex; gap: 8px; }
.st-vbtn {
  pointer-events: auto; width: 40px; height: 40px; padding: 0; cursor: pointer;
  background: #1D5FA1; border: 0; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
.st-vbtn:hover { filter: brightness(1.12); }
.st-vbtn svg { width: 22px; height: 22px; fill: #fff; }
.st-vbtn svg .st-stroke { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#storyText {
  margin-top: 16px; overflow-y: auto; min-height: 0; padding-right: 8px;
  color: #333; font-size: clamp(14px, 1.9vh, 17px); line-height: 1.55; text-align: left;
}
/* font-size sur #storyText p (pas #storyText) : bat la règle partagée #storyBody p qui cible
   directement les <p> ; l'héritage du conteneur, lui, perdait contre #storyBody p. */
#storyText p { margin: 0 0 14px; font-size: clamp(15px, 2vh, 18px); line-height: 1.55; }
#storyText .st-hi {
  font-family: 'Urban Spray', Arial, sans-serif; color: #EB2288;
  font-size: clamp(20px, 3vh, 30px); text-align: center; margin: 20px 0 12px;
}
#storyText::-webkit-scrollbar { width: 8px; }
#storyText::-webkit-scrollbar-thumb { background: #EB2288; border-radius: 4px; }
#storyText::-webkit-scrollbar-track { background: transparent; }
@media (orientation: portrait) {
  #storyPanel { width: 94vw; max-height: 92vh; padding: 16px 16px 18px; }
  #storyVideoWrap { margin-top: 38px; }                 /* écarte la vidéo du ✕ bleu en haut */
  .st-vbtn { width: 44px; height: 44px; }               /* -25% (58→44) demande Redha */
  .st-vbtn svg { width: 24px; height: 24px; }
  #storyText p { font-size: clamp(25px, 3.6vh, 34px); line-height: 1.6; }   /* cible les <p> pour battre #storyBody p (sinon ~15px) */
  #storyText .st-hi { font-size: clamp(41px, 6.2vh, 55px); }              /* +20% (34-46 → 41-55) */
}
