/* ============================================================
   easymaker.css — Custom uniquement.
   Bootstrap 5 gère : grilles, flex, spacing, responsive, boutons base.
   Ce fichier : tokens couleur, composants spécifiques EM, carousels,
                cartes, effets visuels, WCAG.
   ============================================================ */

a {
  color: inherit;          /* Hérite de la couleur du parent */
  text-decoration: none;   /* Retire le soulignement */
}

a:hover,
a:focus,
a:active {
  color: inherit;          /* Pas de changement de couleur */
  text-decoration: none;   /* Pas de soulignement au hover */
  outline: none;           /* Retire le contour focus (optionnel) */
}


img {
  -webkit-user-drag: none;
  user-select: none;
}



/* ============================================================
   1. TOKENS & VARIABLES
   ============================================================ */
:root {
  --em-yellow:        #f5c518;
  --em-purple:        #7c3aed;
  --em-blue:          #4298bf;
  --em-violet:        #bc68e6;

  --em-bg:            #0d0d0d;
  --em-bg-blue:       #013146;
  --em-surface:       #1a1a1a;
  --em-surface-alt:   #222222;
  --em-border:        #2e2e2e;

  --em-text:          #f7f7f7;
  --em-text-muted:    #b8b8b8;

  --em-navbar-height: 64px;
  --em-radius:        16px;
  --em-radius-btn:    10px;

  /* ── Layout carousels & grilles — SEULE SOURCE DE VÉRITÉ ──────────────
     Modifier une valeur ici suffit : le CSS et le JS lisent ces variables.
     ────────────────────────────────────────────────────────────────────── */

  /* S1 — Carousel vedette (grandes cartes en haut de page) */
  --carousel-featured-cols:   4;
  --carousel-featured-gap:    20px;
  --carousel-featured-height: 255px;

  /* S2 — Mini carousel (section split, cartes carrées) */
  --carousel-mini-cols:       5;
  --carousel-mini-gap:        12px;

  /* S3 — Carousel interne des blocs Local Apps */
  --carousel-local-cols:      2.5;
  --carousel-local-gap:       12px;

  /* S3 — Grille des blocs Local Apps (nombre de blocs côte à côte) */
  --grid-local-apps-cols:     4;

  /* S4 — Grille Rubrique (nombre de cartes par ligne) */
  --grid-rubrique-cols:       4;
}

@media (max-width: 991px) {
  :root {
    --em-navbar-height: 60px;

    --carousel-featured-cols:   3;   --carousel-featured-gap: 16px;  --carousel-featured-height: 220px;
    --carousel-mini-cols:       3;   --carousel-mini-gap:     12px;
    --carousel-local-cols:      2.5; --carousel-local-gap:    10px;

    --grid-local-apps-cols:     2;   /* 2 blocs côte à côte en tablette */
    --grid-rubrique-cols:       3;   /* 3 cartes par ligne en tablette   */
  }
}

@media (max-width: 767px) {
  :root {
    --em-navbar-height: 56px;

    --carousel-featured-cols:   2;   --carousel-featured-gap: 12px;  --carousel-featured-height: 200px;
    --carousel-mini-cols:       2.5; --carousel-mini-gap:     10px;
    --carousel-local-cols:      2;   --carousel-local-gap:    8px;

    --grid-local-apps-cols:     1;   /* 1 bloc par ligne sur mobile large */
    --grid-rubrique-cols:       2;   /* 2 cartes par ligne sur mobile large */
  }
}

@media (max-width: 575px) {
  :root {
    --em-navbar-height: 52px;

    --carousel-featured-cols:   1.2; --carousel-featured-gap: 10px;  --carousel-featured-height: 180px;
    --carousel-mini-cols:       2;   --carousel-mini-gap:     8px;
    --carousel-local-cols:      1.8; --carousel-local-gap:    8px;

    --grid-local-apps-cols:     1;   /* 1 bloc par ligne sur petit mobile */
    --grid-rubrique-cols:       2;   /* 2 cartes par ligne sur petit mobile */
  }
}


/* ============================================================
   2. BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  background-color: var(--em-bg);
  color: var(--em-text);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 15px;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }

/* Override Bootstrap text-secondary pour notre thème sombre */
.text-secondary { color: var(--em-text-muted) !important; }


/* ============================================================
   3. WCAG
   ============================================================ */

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%; left: 16px;
  z-index: 9999;
  background: var(--em-yellow); color: #000;
  font-size: 14px; font-weight: 700;
  padding: 10px 20px;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; outline: 3px solid #000; outline-offset: 2px; }

/* Focus visible global */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--em-yellow);
  outline-offset: 3px;
  border-radius: 4px;
}
.em-carousel-btn:focus-visible { border-radius: 50%; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .em-carousel-track { transition: none !important; }
  .em-hero-banner__parallax,
  .em-tags-section__bg { transform: none !important; will-change: auto; }
}


/* ============================================================
   4. BOUTONS CUSTOM (surcharge Bootstrap)
   ============================================================ */
.btn {
  min-height: 44px;
  border-radius: var(--em-radius-btn);
  font-weight: 600;
  font-size: 14px;
  transition: opacity 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
/* translateY uniquement hors navbar — évite débordement sur navbar height fixe */
main .btn:hover,
.em-drawer .btn:hover,
.em-footer .btn:hover {
  opacity: 0.88;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.btn:active { transform: translateY(0); box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover { transform: none !important; box-shadow: none !important; }
}

/* Surcharge des variables Bootstrap 5 pour nos boutons custom */
.em-btn-premium {
  /* Tes styles existants */
  --bs-btn-bg:           var(--em-yellow);
  --bs-btn-color:        #000;
  --bs-btn-border-color: var(--em-yellow);
  --bs-btn-hover-bg:     #d4a800;
  --bs-btn-hover-color:  #000;
  --bs-btn-hover-border-color: #d4a800;
  --bs-btn-active-bg:    #b89000;
  --bs-btn-active-color: #000;
  --bs-btn-focus-shadow-rgb: 245, 197, 24;

  background-color: var(--em-yellow);
  color: #000;
  border: none;
  gap: 2px;

  /* Centrage vertical + horizontal */
  display: flex;
  align-items: center;
  justify-content: center;

}


.em-btn-login {
  --bs-btn-bg:           var(--em-purple);
  --bs-btn-color:        #fff;
  --bs-btn-border-color: var(--em-purple);
  --bs-btn-hover-bg:     #6d28d9;
  --bs-btn-hover-color:  #fff;
  --bs-btn-hover-border-color: #6d28d9;
  --bs-btn-active-bg:    #5b21b6;
  --bs-btn-active-color: #fff;
  --bs-btn-focus-shadow-rgb: 124, 58, 237;
  background-color: var(--em-purple);
  color: #fff;
  border: none;
}

.em-btn-icon { width: 44px; padding: 0; justify-content: center; }
.em-btn-cta  { font-size: 1.1rem; font-weight: 700; min-height: 56px; }

/* Boutons d'action S3 (Télécharger / Infos) — à styler librement
   Géométrie : carré, même hauteur que .btn (44px min), largeur fixe.
   Le style visuel (couleur, fond, border…) est intentionnellement vide. */


.em-btn-local--launch  {
  background: #11475d; 
  color: var(--em-text);
  cursor: pointer;
  transition: 0.25s;
  opacity: 0.95;
  padding-right: 16px;
}

.em-btn-local--launch:hover,.em-btn-dl-sm:hover {   background: var(--em-yellow); color: #000; }




.em-btn-info-sm i, .em-btn-dl-sm i {
  font-size: 16px;
}

.em-btn-dl-sm , .em-btn-info-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  padding: 0;
  opacity: 95%;

}

.em-btn-dl-sm {
  color: var(--em-bg);
  background: var(--em-yellow);
 }

 {
  transition: 0.25s;
  border: solid 2px rgba(255, 255, 255, .9);
}

.em-btn-info-sm {
  color: var(--em-text);
  background: rgba(255, 255, 255, .1);
}

.em-btn-info-sm:hover {
  color: var(--em-yellow);
  background: #000000; 
}



/* ============================================================
   5. NAVBAR
   ============================================================ */
.em-navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  height: var(--em-navbar-height);
  z-index: 1000;
  background: var(--em-bg);
}
.em-navbar a { text-decoration: none; }
.em-navbar__logo { height: 44px; width: auto; }

@media (max-width: 991px) { .em-navbar__logo { height: 36px; } }
@media (max-width: 575px) { .em-navbar__logo { height: 28px; } }

/* Nav items desktop */
.nav-item { position: static; }

.nav-item__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  background: none; border: none;
  color: var(--em-text-muted);
  font-size: 14px; font-weight: 600;
  border-radius: var(--em-radius-btn);
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
}
.nav-item__btn:hover,
.nav-item--open .nav-item__btn {
  color: var(--em-text);
  background: rgba(255,255,255,0.07);
}
.nav-item__btn .nav-item__chevron {
  font-size: 10px; opacity: 0.6;
  transition: transform 0.2s;
}
.nav-item--open .nav-item__btn .nav-item__chevron {
  transform: rotate(180deg); opacity: 1;
}


/* ============================================================
   6. MEGA MENU
   ============================================================ */
.mega-menu {
  position: fixed;
  top: calc(var(--em-navbar-height) - 0.5rem); left: 50%;
  min-width: 480px; max-width: 760px;
  background: rgba(22, 22, 26, 0.97);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--em-border);
  border-radius: 16px;
  padding: 16px;
  z-index: 1100;
  opacity: 0; pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.mega-menu--visible {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega-menu__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 24px;
}
.mega-menu__item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 10px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s;
}
.mega-menu__item:hover { background: rgba(255,255,255,0.07); }

.mega-menu__icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--em-surface-alt);
  border: 1px solid var(--em-border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 17px; color: var(--em-text-muted);
  transition: background 0.15s, color 0.15s;
}
.mega-menu__item:hover .mega-menu__icon {
  background: var(--em-surface); color: var(--em-yellow);
}
.mega-menu__label {
  font-size: 13.5px; font-weight: 700; color: var(--em-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mega-menu__subtitle {
  font-size: 11.5px; color: var(--em-text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}


/* ============================================================
   7. DRAWER MOBILE
   ============================================================ */
.em-burger {
  width: 44px; height: 44px;
  border-radius: 10px; border: none;
  background: rgba(255,255,255,0.08);
  color: var(--em-text);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  transition: opacity 0.2s;
}
.em-burger:hover { opacity: 0.75; }

.em-drawer-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1098;
  backdrop-filter: blur(2px);
}
.em-drawer-overlay--visible { display: block; }

.em-drawer {
  position: fixed; top: 0; left: 0;
  width: min(320px, 85vw);
  height: 100dvh;
  background: var(--em-surface);
  border-right: 1px solid var(--em-border);
  z-index: 1099;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.em-drawer--open { transform: translateX(0); }

.em-drawer__close {
  width: 36px; height: 36px;
  border-radius: 8px; border: none;
  background: rgba(255,255,255,0.06);
  color: var(--em-text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: background 0.15s, color 0.15s;
}
.em-drawer__close:hover { background: rgba(255,255,255,0.12); color: var(--em-text); }

/* Accordéon drawer */
.drawer-cat__btn {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: none; border: none;
  color: var(--em-text);
  font-size: 14px; font-weight: 700;
  text-align: left;
  transition: background 0.2s, color 0.2s;
}
.drawer-cat__btn:hover {
  background: rgba(255,255,255,0.05);
  color: var(--em-yellow);
}
.drawer-cat__icon { color: var(--em-yellow); width: 18px; text-align: center; }
.drawer-cat__chevron {
  margin-left: auto; font-size: 11px;
  color: var(--em-text-muted);
  transition: transform 0.2s;
}
.drawer-cat--open .drawer-cat__chevron { transform: rotate(180deg); }

.drawer-cat__items { display: none; padding: 2px 0 6px 44px; }
.drawer-cat--open .drawer-cat__items { display: block; }

.drawer-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 0;
  text-decoration: none; border-radius: 8px;
  transition: background 0.15s;
}
.drawer-item:hover { background: rgba(255,255,255,0.05); }

.drawer-item__icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--em-surface-alt);
  border: 1px solid var(--em-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--em-text-muted);
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.drawer-item:hover .drawer-item__icon {
  background: var(--em-surface);
  color: var(--em-yellow);
}
.drawer-item__label { font-size: 13px; font-weight: 600; color: var(--em-text); }


/* ============================================================
   8. CAROUSEL — mécanique commune
   ============================================================ */

.em-carousel-btn-right {
  right:24px;
}


.em-carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
  cursor: grab;
  user-select: none;
}
.em-carousel-track.is-dragging { cursor: grabbing; }
.em-carousel-track img { pointer-events: none; -webkit-user-drag: none; }

.em-carousel-btn {
  width: 50px; height: 50px;
  border-radius: 50%; border: none;
  background: var(--em-yellow);
  color: #fff; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  transition: background 0.2s, transform 0.15s, opacity 0.15s;
  margin-left: 24px;
  margin-right: 24px;
  color: var(--em-bg);
}
.em-carousel-btn:hover  { background: rgba(255,255,255,0.2); }
.em-carousel-btn:active { transform: scale(0.92); }
.em-carousel-btn * { pointer-events: none; }
.em-carousel-btn:disabled,
.em-carousel-btn[aria-disabled="true"] {
  opacity: 0;
  pointer-events: none;
}


/* ============================================================
   9. SECTION 1 — FEATURED CAROUSEL
   ============================================================ */
.em-featured {
  padding-top: var(--em-navbar-height);
  background-color: var(--em-bg);
}
/* Boutons S1 : centrés verticalement sur la hauteur de l'image */
.em-featured .em-carousel-btn {
  position: absolute;
  top: calc(var(--em-navbar-height) + var(--carousel-featured-height) / 2);
  transform: translateY(-50%);
}

/* Tool Card */
.tool-card {
  flex: 0 0 auto;
  cursor: pointer;
  position: relative;
}
.tool-card__image {
  position: relative;
  width: 100%;
  height: var(--carousel-featured-height);
  overflow: hidden;
  border-radius: var(--em-radius);
  border: 1px solid #0f202c;
}
.tool-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.tool-card:hover .tool-card__image img { transform: scale(1.04); }

.tool-card__image video.hover-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1; pointer-events: none;
}
.tool-card__image video.hover-video.is-playing { opacity: 1; }
.tool-card__image.has-video:hover img { transform: none; }

.tool-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.55) 100%);
  z-index: 2;
}

/* ============================================================
   BOUTON LAUNCH
   Architecture : flux flex normal sur .tool-card__info
   .btn-launch     = position absolute, hors du flux, zéro impact layout
   .tool-card__content = dans le flux, padding-left animé au survol
   → line-clamp recalcule naturellement, zéro débordement
   ============================================================ */

/* ---- BASE COMMUNE S1 + S4 ---- */
.tool-card__info {
  position: relative;
  display: flex;
  align-items: flex-start;
  overflow-x: hidden;   /* clip horizontal uniquement — tooltip passe en Y */
  --launch-size: 55px;
  --launch-gap:  10px;
}

.tool-card .tool-card__icon { width: 55px; height: 55px; }

/* Calque bouton : hors du flux, ancré à gauche */
.btn-launch {
  position: absolute;
  left: 0; top: 12px;
  width: var(--launch-size);
  height: var(--launch-size);
  border-radius: 12px; border: none;
  background: var(--em-yellow); color: #000;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, background 0.2s, color 0.2s;
}
.btn-launch i { pointer-events: none; }
.btn-launch:hover { background: #5629a6; color: var(--em-text); }

/* Calque contenu : dans le flux, padding-left = 0 → animé au survol */
.tool-card__content {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1; min-width: 0;
  padding-left: 0;
  transition: padding-left 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.tool-card__content > div { flex: 1; min-width: 0; }

.tool-card__icon     { flex-shrink: 0; }
.tool-card__title    { font-size: 14px; font-weight: 700; color: var(--em-text); margin-bottom: 3px; }
.tool-card__subtitle {
  font-size: 13px; color: var(--em-text-muted); line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
}

/* Tooltip global — injecté dans <body> par JS, échappe à tous les overflow:hidden */
#em-tooltip {
  position: fixed;
  background: var(--em-surface-alt); color: var(--em-text);
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  padding: 5px 12px; border-radius: 8px;
  white-space: nowrap; pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s, transform 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  border: 1px solid var(--em-border);
  z-index: 9999;
}
#em-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- S1 : tool-card — info sous l'image ---- */
.tool-card .tool-card__info {
  padding: 12px 0 8px;
  gap: 10px;
}


.tool-card:hover     .tool-card__content,
.tool-card:focus-within .tool-card__content {
  padding-left: calc(var(--launch-size) + var(--launch-gap));
}
.tool-card:hover     .btn-launch,
.tool-card:focus-within .btn-launch { opacity: 1; pointer-events: auto; }


/* ---- S4 : rubrique-card — info dans la carte avec padding ---- */
.rubrique-card__info {
  /* Classe CSS dédiée — indépendante de tool-card__info */
  position: relative;
  display: flex;
  align-items: flex-start;
  overflow-x: hidden;
  padding: 10px 12px 12px;
  gap: 8px;
  background: var(--em-surface);
  --launch-size: 50px;
  --launch-gap:  8px;
}
.rubrique-card__info .btn-launch { top: 10px; left: 12px; }
.rubrique-card__info .tool-card__content { gap: 8px; }
.rubrique-card__info .tool-card__icon   { width: 50px; height: 50px; }
.rubrique-card__info .tool-card__title  { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rubrique-card__info .tool-card__subtitle { font-size: 11px; }

.rubrique-card:hover     .rubrique-card__info .tool-card__content,
.rubrique-card:focus-within .rubrique-card__info .tool-card__content {
  padding-left: calc(var(--launch-size) + var(--launch-gap));
}
.rubrique-card:hover     .rubrique-card__info .btn-launch,
.rubrique-card:focus-within .rubrique-card__info .btn-launch { opacity: 1; pointer-events: auto; }


/* ============================================================
   10. SECTION 2 — HERO BANNER + SPLIT
   ============================================================ */
.em-hero-banner {
  position: relative;
  height: 295px;
  border-radius: 16px 16px 0 0;
}

.em-hero-banner__parallax {
  position: absolute; inset: 0;
  height: calc(100% + 360px);
  margin-top: -180px;
  will-change: transform;
}

.em-hero-banner__fade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, var(--em-bg) 100%);
}

.em-split {
  border-radius: 0 0 24px 24px;
  background: radial-gradient(circle at 33% -460%, #4298bf 0%, #141618 80%);
}
.em-split__title, .em-section-title {
  font-size: clamp(20px, 3.5vw, 36px);
  font-weight: 500; line-height: 1.15;
  text-transform: uppercase;
  color: var(--em-text);
}

/* Mini Card */
.mini-card {
  flex: 0 0 auto;
  aspect-ratio: 3 / 4;
  border-radius: var(--em-radius);
  overflow: hidden;
  background: var(--em-surface);
  cursor: pointer;
  position: relative;
}

/* Image container */
.mini-card__image {
  width: 100%;
  height: 100%;
}

/* Image par défaut (noir & blanc) */
.mini-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: grayscale(100%);
}

/* Hover : zoom + retour couleur */
.mini-card:hover .mini-card__image img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.mini-card:hover > .mini-card__footer{
  color: var(--em-yellow);
}

.mini-card:hover > .mini-card__footer span  {
  color: var(--em-yellow);
}




/* Vidéo hover */
.mini-card__image video.hover-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
  pointer-events: none;
}

.mini-card__image video.hover-video.is-playing {
  opacity: 1;
}

/* Si vidéo active : pas de zoom sur l'image */
.mini-card__image.has-video:hover img {
  transform: none;
}

/* Footer */
.mini-card__footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
  transition: color 0.2s;
}

.mini-card__footer span {
  transition: color 0.2s;
}

.mini-card__footer:hover,
.mini-card__footer:hover span {
  color: var(--em-yellow);
}

.mini-card__title {
  font-size: 12px;
  font-weight: 600;
  color: var(--em-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* S3 mini-cards : thumbnails paysage */
.local-app-block__carousel .mini-card { aspect-ratio: 16 / 9; }


/* ============================================================
   11. SECTION 3 — LOCAL APPS
   ============================================================ */
.em-local-apps {
  background-color: var(--em-bg-blue);
  position: relative;
}
.em-local-apps::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 80% at 15% 50%, rgba(66,152,191,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 85% 50%, rgba(124,58,237,0.15)  0%, transparent 70%);
}
.em-local-apps > * { position: relative; z-index: 1; }

.local-app-block {
  display: flex; flex-direction: column;
  overflow: hidden; border-radius: var(--em-radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.55), 0 2px 8px rgba(0,0,0,0.35);
  transition: box-shadow 0.25s ease;
}
.local-app-block:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 4px 12px rgba(0,0,0,0.4);
}

.local-app-block__banner {
  position: relative;
  width: 100%; height: 200px;
  overflow: hidden;
  border-radius: var(--em-radius) var(--em-radius) 0 0;
}
.local-app-block__banner-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform 0.4s ease;
}
.local-app-block:hover .local-app-block__banner-img { transform: scale(1.04); }

.local-app-block__banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 20%, var(--em-bg) 100%);
  opacity: 0.2;
  z-index: 2;
}
.local-app-block__banner video.hover-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1; pointer-events: none;
}
.local-app-block__banner video.hover-video.is-playing { opacity: 1; }
.local-app-block__banner.has-video:hover img { transform: none; }

.local-app-block__body {
  flex: 1;
  display: flex; flex-direction: column; gap: 10px;
  padding: 12px;
  background: radial-gradient(circle at 33% -460%, #4298bf 0%, #141618 80%);
  border-radius: 0 0 var(--em-radius) var(--em-radius);
}
.local-app-block--right .local-app-block__body {
  background: radial-gradient(circle at 50% -300%, #1e1a2e 0%, var(--em-bg) 70%);
}

.local-app-block__info {
  display: flex; align-items: flex-start; gap: 16px;
}
.local-app-block__info-logo {
  width: 60px; height: 60px; flex-shrink: 0;
  object-fit: contain; opacity: 0.85;
}
.local-app-block__title {
  font-size: 16px; font-weight: 700; color: var(--em-text);
  margin-bottom: 2px;
}
.local-app-block__desc {
  font-size: 13px; color: var(--em-text-muted); line-height: 1.6;
}

.local-app-block__carousel {
  position: relative;
}
/* Boutons carousel S3 */
.local-app-block__carousel .em-carousel-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
}
.local-app-block__carousel .em-carousel-btn:first-child { left: -16px; }
.local-app-block__carousel .em-carousel-btn:last-child  { right: -16px; }


/* ============================================================
   12. SECTION 4 — RUBRIQUE GRILLE
   Gestion nombre impair via data-count (logique grid spans)
   ============================================================ */

.em-section-logo {
  width: 85px; height: auto;
  object-fit: contain; opacity: 0.9; flex-shrink: 0;
}

/* Rubrique card */
.rubrique-card {
  border-radius: var(--em-radius);
  background: var(--em-surface);
  cursor: pointer;
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
  transition: box-shadow 0.25s ease;
}
.rubrique-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.rubrique-card__img-wrapper {
  position: relative; width: 100%;
  height: var(--carousel-featured-height); /* même hauteur que les cartes S1 */
  overflow: hidden;
  border-radius: var(--em-radius) var(--em-radius) 0 0;
  flex-shrink: 0;
}
.rubrique-card__img-wrapper img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.4s;
}
.rubrique-card:hover .rubrique-card__img-wrapper img { transform: scale(1.04); }
.rubrique-card__img-wrapper.has-video:hover img { transform: none; }

.rubrique-card__img-wrapper video.hover-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
  transition: opacity 0.3s; z-index: 1; pointer-events: none;
}
.rubrique-card__img-wrapper video.hover-video.is-playing { opacity: 1; }

/* rubrique-card__info est défini dans la section BOUTON LAUNCH */

/* Layout impair Section 4 — via data-count sur #rubrique-grid
   Bootstrap row g-3 gère le gap.
   On surcharge les col via des classes Bootstrap injectées par JS. */


/* ============================================================
   13. SECTION 5 — TAGS PARALLAX
   ============================================================ */
.em-tags-section {
  position: relative; overflow: hidden;
}
.em-tags-section__bg {
  position: absolute; inset: 0;
  height: calc(100% + 240px);
  margin-top: -120px;
  will-change: transform; z-index: 0;
}
.em-tags-section__bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.em-tags-section__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.45);
}

.tag-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; min-height: 44px;
  border-radius: 10px;
  background: var(--em-bg); color: var(--em-text-muted);
  font-size: 0.75rem; font-weight: 500;
  border: none; cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.tag-pill:hover {
  background: rgba(245,197,24,0.12);
  color: var(--em-yellow);
}
.tag-pill:focus-visible {
  outline: 3px solid var(--em-yellow);
  outline-offset: 2px;
}


/* ============================================================
   14. TESTIMONIALS
   ============================================================ */
.testimonial-card {
  background: #000;
  border-radius: 40px;
  padding: 40px;
  display: flex; flex-direction: column; gap: 20px;
  position: relative;
  border: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.testimonial-card:hover {
  border-color: var(--em-border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.testimonial-card__quote-mark {
  position: absolute; top: 16px; right: 20px;
  font-size: 48px; line-height: 1;
  color: var(--em-yellow); opacity: 0.12;
  pointer-events: none; user-select: none;
}
.testimonial-card__text {
  font-size: 14px; color: var(--em-text-muted); line-height: 1.7;
  flex: 1; position: relative; z-index: 1;
}
.testimonial-card__text::before {
  font-family: 'Font Awesome 6 Free';
  content: '\f10d'; font-weight: 900;
  color: var(--em-yellow); font-size: 14px;
  margin-right: 5px; speak: never;
}
.testimonial-card__text::after {
  font-family: 'Font Awesome 6 Free';
  content: '\f10e'; font-weight: 900;
  color: var(--em-yellow); font-size: 14px;
  margin-left: 5px; speak: never;
}
.testimonial-card__author {
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid var(--em-border); padding-top: 16px;
}
.testimonial-card__avatar {
  width: 64px; height: 64px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  border: 2px solid var(--em-border);
  background: var(--em-surface-alt);
}
.testimonial-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-card__name  { font-size: 14px; font-weight: 700; color: var(--em-text); }
.testimonial-card__role  { font-size: 12px; color: var(--em-text-muted); margin-top: 2px; }
.testimonial-card__stars {
  color: var(--em-yellow); font-size: 11px;
  letter-spacing: 2px; margin-top: 3px;
}

@media (max-width: 767px) {
  .testimonial-card { padding: 28px 22px; border-radius: 28px; }
}
@media (max-width: 575px) {
  .testimonial-card { padding: 22px 18px; border-radius: 20px; }
}


/* ============================================================
   15. FOOTER
   ============================================================ */
.em-footer { background: #000; }

.footer__col-title {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--em-text); margin-bottom: 8px; display: block;
}
.footer__col a {
  font-size: 13px; color: var(--em-text-muted);
  text-decoration: none; transition: color 0.2s;
  display: block; line-height: 1.6;
}
.footer__col a:hover { color: var(--em-yellow); }

.footer__legal-links a {
  font-size: 12px; color: var(--em-text-muted);
  text-decoration: none; transition: color 0.2s;
}
.footer__legal-links a:hover { color: var(--em-yellow); }


/* ============================================================
   16. PRICING
   ============================================================ */
.pricing-hero {
  padding-top: calc(var(--em-navbar-height) + 3rem);
  text-align: center;
  background: var(--em-bg);
}
.pricing-hero__title {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--em-text);
}

.pricing-card {
  position: relative;
  background: var(--em-surface);
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius);
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 20px;
  transition: border-color 0.2s;
}
.pricing-card:hover { border-color: #444; }
.pricing-card--featured {
  border-color: var(--em-yellow);
  background: var(--em-surface-alt);
}
.pricing-card__badge {
  position: absolute; top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--em-yellow); color: #000;
  font-size: 11px; font-weight: 700;
  padding: 4px 14px; border-radius: 20px;
  white-space: nowrap;
}
.pricing-card__amount {
  font-size: 36px; font-weight: 700;
  color: var(--em-text); line-height: 1;
}
.pricing-card__period { font-size: 13px; color: var(--em-text-muted); }

.pricing-card__features {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.pricing-card__features li {
  font-size: 13px; color: var(--em-text-muted);
  display: flex; align-items: flex-start; gap: 8px; line-height: 1.4;
}
.pricing-card__features li i { margin-top: 2px; flex-shrink: 0; }
.pricing-card__features li i.fa-check { color: var(--em-yellow); }
.pricing-card__features li.muted { opacity: 0.4; }


/* ============================================================
   16b. SINGBOX BANNER — Bannière pleine largeur entre S1 et S2
   ============================================================ */
.em-singbox-banner {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

@media (max-width: 991px) { .em-singbox-banner { height: 200px; } }
@media (max-width: 767px) { .em-singbox-banner { height: 170px; } }
@media (max-width: 575px) { .em-singbox-banner { height: 140px; } }

/* Image de fond */
.em-singbox-banner__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.em-singbox-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.em-singbox-banner__overlay {
  position: absolute;
  inset: 0;
  /* Dégradé sombre à gauche pour lisibilité du texte, transparent à droite */
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.40) 45%,
    rgba(0, 0, 0, 0.10) 100%
  );
}

/* Lien cliquable — contient logo + texte */
.em-singbox-banner__content {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: 0 clamp(16px, 4vw, 48px);
  text-decoration: none;
  color: #fff;
  width: 100%;
  height: 100%;
  transition: opacity 0.3s;
  z-index: 1;
  opacity: 0.65;

}
.em-singbox-banner__content:hover,
.em-singbox-banner__content:focus {
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
}
.em-singbox-banner__content:focus-visible {
  outline: 3px solid var(--em-yellow);
  outline-offset: -4px;
  border-radius: 4px;
}

/* Logo carré arrondi (style app icon) */
.em-singbox-banner__logo-wrap {
  flex-shrink: 0;
  width: clamp(72px, 10vw, 140px);
  height: clamp(72px, 10vw, 140px);
  border-radius: 20%;
  overflow: hidden;
}

/* Texte titre + sous-titre */
.em-singbox-banner__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.em-singbox-banner__title {
  font-size: clamp(28px, 5.5vw, 72px);
  font-weight: 900;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.em-singbox-banner__subtitle {
  font-size: clamp(13px, 2.2vw, 26px);
  font-weight: 400;
  color: rgba(255,255,255,0.88);
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

@media (max-width: 575px) {
  .em-singbox-banner__logo-wrap {
    border-radius: 16%;
  }
  .em-singbox-banner__title  { letter-spacing: -0.02em; }
}



::-webkit-scrollbar        { width: 10px; height: 10px; }
::-webkit-scrollbar-track  { background: var(--em-surface); }
::-webkit-scrollbar-thumb  { background: #d4a800; border-radius: 4px;
                              border: 2px solid var(--em-surface); }
::-webkit-scrollbar-thumb:hover { background: var(--em-yellow); }


/* ============================================================
   18. UTILITAIRES
   ============================================================ */
.text-yellow { color: var(--em-yellow); }
.text-violet { color: var(--em-violet); }
.text-blue   { color: var(--em-blue); }

/* Alias utilisés dans les JSON (tagline footer, section subtitles…) */
.text-bleu  { color: var(--em-blue); }
.text-jaune { color: var(--em-yellow); }


