/*
 * Feuille de Vroumi, chargée JUSTE APRÈS main.css (jamais modifiée).
 * Bleu électrique de l'appli #2B5CFF (texte BLANC dessus : 5,2:1), encre bleu nuit #0E1B3D,
 * fond bleu pâle #EAF0FF, corail #FF6A3D (le point du i). Thème clair imposé.
 * Composants maison préfixés .vr- : une classe Tailwind absente de main.css ne fait RIEN.
 */
:root {
  /* python3 palette.py "#2B5CFF" */
  --color-primary-50: #f4f7ff;
  --color-primary-100: #e6ebff;
  --color-primary-200: #cad6ff;
  --color-primary-300: #a6bbff;
  --color-primary-400: #6f90ff;
  --color-primary-500: #2b5cff;
  --color-primary-600: #254fdb;
  --color-primary-700: #1f42b8;
  --color-primary-800: #193594;
  --color-primary-900: #132870;
  /* L'encre du modèle (#1a1a1c) devient le bleu nuit de l'appli : titres, textes, boutons foncés. */
  --color-secondary: #0e1b3d;
  /* Les barres des étapes (cyan du modèle). */
  --color-ns-cyan: #2b5cff;
  /* La police de la marque, celle des applis : la feuille compilée passe tout par cette variable. */
  --font-inter-tight: "Poppins", sans-serif;
}

@layer base {
  /* Le texte courant du pack est l'encre à 60 % (4,3:1 sur les fonds gris) : remonté à 70 %. */
  p { color: color-mix(in oklab, var(--color-secondary) 70%, transparent); }
}

@layer utilities {
  /* Le pack met les boutons et badges en minuscules : on garde la casse écrite. */
  .btn, .badge { text-transform: none; }
  /* Le sous-menu Produits s'ouvre aussi au clavier : main.css l'affiche au focus mais le laisse caché. */
  .nav-item:focus-within .dropdown-menu { visibility: visible; }
}

/* Le fond du héros : gris bleu du modèle, bleu pâle de l'appli ici. */
.vr-heros-fond { background-image: linear-gradient(180deg, #eef3ff 0%, #cddaff 100%); }
/* Texte courant du héros plus soutenu : l'encre à 60 % du modèle tombe sous 4,5:1 sur ce bleu. */
.vr-heros-fond p { color: color-mix(in oklab, var(--color-secondary) 82%, transparent); }

/* Le cadre de la formule : dégradé du modèle (ns-img-25) repeint en bleu. */
.vr-cadre-prix { background-image: url("../images/marque/decor-25.webp"); }

/* Logo (bleu sur fond clair) : jamais inversé. */
.vr-logo { display: block; width: 132px; height: auto; }
.vr-logo-pied { display: block; width: 150px; height: auto; }

/* Icônes concrètes (Lucide) à la place des formes abstraites du modèle. */
.vr-icone { display: block; width: 44px; height: 44px; color: var(--color-primary-500); }

/* En-tête : « Connexion » à côté du bouton de démo ; icônes du sous-menu Produits. */
.vr-actions { gap: 4px; }
.vr-icone-menu { display: block; width: 20px; height: 20px; color: var(--color-secondary); }
.dropdown-menu a[aria-current="page"] p:first-child { color: #1e40d9; }

/* La phrase sous un titre de section ajoutée à la démo. */
.vr-sous-titre { max-width: 640px; margin-inline: auto; }

/* Le lien écrit sous une carte : bleu texte de la marque (7:1 sur blanc), lisible sans survol. */
.vr-lien { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 500; color: #1e40d9; }
.vr-lien::after { content: "→"; transition: transform .2s; }
.vr-lien:hover { text-decoration: underline; text-underline-offset: 4px; }
.vr-lien:hover::after { transform: translateX(3px); }

/* Un mot composé qui ne se coupe pas au trait d'union (« super-appli » dans un titre). */
.vr-insecable { white-space: nowrap; }

/* Des boutons côte à côte (page d'erreur). */
.vr-boutons { display: flex; flex-wrap: wrap; gap: 12px; }

/* Le prix de la formule : le chiffre, puis ce qu'il comprend. */
.vr-prix { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 12px; }

/* La galerie des écrans de l'appli : deux colonnes sur téléphone, quatre sur ordinateur. */
.vr-galerie { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 12px; }
@media (min-width: 1024px) { .vr-galerie { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
.vr-ecran img { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto; }
.vr-ecran figcaption { margin-top: 4px; padding: 0 8px; text-align: center; font-size: 15px; line-height: 1.45;
  color: color-mix(in oklab, var(--color-secondary) 70%, transparent); }
.vr-ecran-titre { display: block; margin-bottom: 4px; font-size: 18px; font-weight: 500; color: var(--color-secondary); }

/* Les photos en paysage (couvertures des commerces) gardent leurs proportions, partout. */
.vr-offre-paysage { height: auto; aspect-ratio: 16 / 9; }

/* Les offres sur téléphone : la hauteur fixe du modèle (576 px) cède aux proportions de l'image. */
@media (max-width: 767.98px) {
  .vr-offre { height: auto; aspect-ratio: 629 / 576; }
  .vr-offre-large { aspect-ratio: 4 / 3; }
  .vr-offre-paysage { aspect-ratio: 16 / 9; }
  .vr-offre-carte { aspect-ratio: 555 / 576; }
}

/* Pages légales : listes à puces à la couleur du texte. */
.vr-legal li { color: color-mix(in oklab, var(--color-secondary) 70%, transparent); }

@media (prefers-reduced-motion: reduce) {
  .animate-pulse { animation: none; }
}

/* Le bouton d'achat (Cartflox) et la démo juste dessous, dans la carte du prix */
.vr-prix-demo { display: flex; justify-content: center; margin-top: 18px; }
.vr-prix-note { margin-top: 12px; font-size: 14px; line-height: 1.45; text-align: center; color: rgb(14 27 61 / 70%); }

/* Le tableau de bord : la vue d'ensemble en grand, trois écrans dessous, ce qu'on y fait */
.vr-tableau-image { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid #e3e8f2;
  box-shadow: 0 18px 40px rgb(14 27 61 / 12%); background: #fff; }
.vr-tableau-grand { max-width: 1080px; margin-inline: auto; }
.vr-tableau-grand figcaption { margin-top: 14px; text-align: center; font-size: 15px; line-height: 1.45; }
.vr-tableau-grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 768px) { .vr-tableau-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.vr-tableau-petit figcaption { margin-top: 12px; padding: 0 4px; text-align: center; font-size: 15px; line-height: 1.45; }
.vr-tableau-bas { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; max-width: 1080px; margin-inline: auto; }
@media (min-width: 1024px) { .vr-tableau-bas { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; } }
.vr-tableau-points { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 768px) { .vr-tableau-points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; } }
.vr-tableau-points li { position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.5; }
.vr-tableau-points li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px;
  border-radius: 999px; background: #2b5cff; box-shadow: 0 0 0 4px #eaf0ff; }
.vr-tableau-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; }

/* Le suivi en direct : la vidéo dans un téléphone, les points à côté */
.vr-suivi { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 1024px) { .vr-suivi { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 72px; } }
.vr-suivi-telephone { max-width: 340px; margin-inline: auto; }
.vr-video { display: block; width: 100%; height: auto; aspect-ratio: 400 / 870; border: 10px solid #0e1b3d;
  border-radius: 46px; background: #eef2f8; box-shadow: 0 24px 50px rgb(14 27 61 / 18%); }
.vr-suivi-telephone figcaption { margin-top: 14px; text-align: center; font-size: 14px; line-height: 1.45; }
.vr-suivi-points { margin-top: 8px; }
@media (min-width: 768px) { .vr-suivi-points { grid-template-columns: minmax(0, 1fr); } }
.vr-suivi-bouton { padding-top: 8px; }
.vr-tableau-demos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 16px;
  max-width: 340px; font-size: 15px; text-align: center; }
.vr-tableau-demos > span { flex-basis: 100%; }
.vr-tableau-note { max-width: 320px; font-size: 14px; line-height: 1.45; text-align: center; color: rgb(14 27 61 / 70%); }

/* Les APK de démonstration : une carte par appli */
.vr-applis-groupe { font-size: 20px; font-weight: 500; color: var(--color-secondary); text-align: center; }
.vr-applis { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 1024px) { .vr-applis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
.vr-appli { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 16px; align-items: start; padding: 22px;
  border: 1px solid #e3e8f2; border-radius: 20px; background: #fff; }
.vr-appli-icone { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 14px; background: #eaf0ff; color: #1e40d9; }
.vr-appli-icone .vr-icone { width: 26px; height: 26px; }
.vr-appli-nom { font-size: 19px; font-weight: 500; color: var(--color-secondary); }
.vr-appli-texte p { margin-top: 4px; font-size: 15px; line-height: 1.5; }
.vr-appli-detail { color: rgb(14 27 61 / 70%); }
.vr-appli-bouton { grid-column: 1 / -1; justify-self: stretch; text-align: center; }
@media (min-width: 640px) { .vr-appli-bouton { justify-self: start; } }
.vr-applis-note { max-width: 760px; margin-inline: auto; font-size: 14.5px; line-height: 1.55; text-align: center; color: rgb(14 27 61 / 70%); }

/* Le héros : « Demander une démo » et « Essayer la démo » côte à côte (empilés sur téléphone) */
.vr-heros-boutons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (min-width: 768px) { .vr-heros-boutons { justify-content: flex-start; } }

/* Le QR code d'un APK : sur ordinateur seulement (sur téléphone, on touche le bouton) */
.vr-appli-qr { display: none; margin: 0; text-align: center; }
.vr-appli-qr img { display: block; margin: 0 auto; border-radius: 8px; border: 1px solid #e3e8f2; background: #fff; }
.vr-appli-qr figcaption { margin-top: 6px; max-width: 120px; font-size: 12px; line-height: 1.35; color: rgb(14 27 61 / 70%); }
@media (min-width: 1024px) {
  .vr-appli { grid-template-columns: auto minmax(0, 1fr) auto; }
  .vr-appli .vr-appli-qr { display: block; grid-column: 3; grid-row: 1 / span 2; align-self: start; }
  .vr-appli-bouton { grid-column: 1 / 3; }
}

/* Une commande du début à la fin : des étapes numérotées, en mots */
.vr-deroule { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; counter-reset: none; }
.vr-deroule-etape { display: flex; flex-direction: column; gap: 14px; padding: 24px 22px; border: 1px solid #e3e8f2;
  border-radius: 20px; background: #fff; }
.vr-deroule-numero { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 999px; background: #2b5cff; color: #fff; font-size: 17px; font-weight: 600; }
.vr-deroule-titre { font-size: 18px; font-weight: 500; line-height: 1.35; color: var(--color-secondary); }
.vr-deroule-etape p { margin-top: 6px; font-size: 15px; line-height: 1.55; }

/* La page Démo */
.vr-demo-boutons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding-top: 6px; }
.vr-demo-grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 1024px) { .vr-demo-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.vr-demo-carte { display: flex; flex-direction: column; gap: 18px; padding: 26px; border: 1px solid #e3e8f2;
  border-radius: 24px; background: #fff; }
.vr-demo-tete { display: flex; align-items: center; gap: 14px; }
.vr-demo-nom { font-size: 22px; font-weight: 500; color: var(--color-secondary); }
.vr-demo-tete p { margin-top: 2px; font-size: 15px; line-height: 1.45; }
.vr-demo-lignes { display: flex; flex-direction: column; }
.vr-demo-ligne { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px 0; border-top: 1px solid #e3e8f2; }
@media (min-width: 640px) { .vr-demo-ligne { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; } }
.vr-demo-quoi { font-size: 16.5px; font-weight: 500; color: var(--color-secondary); }
.vr-demo-detail { margin-top: 2px; font-size: 14.5px; line-height: 1.45; color: rgb(14 27 61 / 70%); }
.vr-demo-action { display: flex; align-items: center; gap: 14px; }
.vr-demo-action .vr-appli-qr figcaption { display: none; }
@media (min-width: 1024px) { .vr-demo-action .vr-appli-qr { display: block; } }
.vr-demo-carte > .vr-lien { align-self: flex-start; }
.vr-demo-savoir { max-width: 900px; margin-inline: auto; display: flex; flex-direction: column; gap: 22px; }
.vr-demo-texte { min-width: 0; }

/* Sur téléphone : la barre d'achat en bas de l'écran, sous l'en-tête (z 50) et le menu (z 9999) ;
   marque.js la fait monter quand aucun autre bouton d'achat n'est à l'écran */
.vr-barre-achat { display: none; }
@media (max-width: 767px) {
  .vr-barre-achat { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center;
    justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid #e3e8f2; box-shadow: 0 -8px 24px rgb(14 27 61 / 8%);
    transform: translateY(110%); transition: transform 0.25s ease; }
  .vr-barre-achat.est-visible { transform: none; }
  .vr-barre-prix { font-size: 14px; line-height: 1.3; color: rgb(14 27 61 / 72%); }
  .vr-barre-prix strong { display: block; font-size: 19px; font-weight: 600; color: var(--color-secondary); }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) { .vr-barre-achat { transition: none; } }

/* La démo en vidéo : la course vue des deux côtés, cadre arrondi, bouton de lecture au centre (marque.js) */
.vr-video-demo { max-width: 1120px; margin-inline: auto; }
.vr-video-demo-cadre { position: relative; overflow: hidden; border-radius: 18px; background: #070b18;
  box-shadow: 0 24px 60px rgb(14 27 61 / 22%); aspect-ratio: 16 / 9; }
.vr-video-demo video { display: block; width: 100%; height: 100%; object-fit: cover; }
.vr-video-demo-lire { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex;
  align-items: center; gap: 14px; padding: 12px 24px 12px 12px; border-radius: 999px; background: #2b5cff; color: #fff;
  font-size: 17px; font-weight: 600; white-space: nowrap; box-shadow: 0 14px 34px rgb(7 11 24 / 45%); cursor: pointer; }
.vr-video-demo-lire:hover { background: #1f42b8; }
.vr-video-demo-lire:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.vr-video-demo-lire[hidden] { display: none; }
.vr-video-demo-rond { position: relative; width: 44px; height: 44px; border-radius: 999px; background: #fff; flex: none; }
.vr-video-demo-rond::after { content: ""; position: absolute; left: 17px; top: 13px; border-style: solid;
  border-width: 9px 0 9px 14px; border-color: transparent transparent transparent #2b5cff; }
@media (max-width: 767.98px) {
  .vr-video-demo-cadre { border-radius: 12px; }
  .vr-video-demo-lire { font-size: 15px; padding: 8px 18px 8px 8px; gap: 10px; }
  .vr-video-demo-rond { width: 36px; height: 36px; }
  .vr-video-demo-rond::after { left: 14px; top: 10px; border-width: 8px 0 8px 12px; }
}
.vr-video-demo figcaption { margin-top: 14px; text-align: center; font-size: 15px; line-height: 1.45;
  color: rgb(14 27 61 / 70%); }
.vr-video-demo-lien { margin-top: 10px; text-align: center; font-size: 15.5px; }

/* Tous les écrans, un rang par appli : défilement horizontal sur téléphone, grille sur ordinateur */
.vr-captures-aide { font-size: 14px; color: rgb(14 27 61 / 70%); }
@media (min-width: 1024px) { .vr-captures-aide { display: none; } }
.vr-captures-groupe { display: flex; flex-direction: column; gap: 18px; }
.vr-captures-titre { font-size: 22px; font-weight: 600; color: var(--color-secondary); }
.vr-captures-titre span { margin-left: 8px; font-size: 15px; font-weight: 500; color: rgb(14 27 61 / 70%); }
.vr-captures-rang { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px;
  -webkit-overflow-scrolling: touch; }
.vr-capture { flex: 0 0 150px; scroll-snap-align: start; }
.vr-captures-larges .vr-capture { flex-basis: 300px; }
.vr-capture a { display: block; border-radius: 14px; }
.vr-capture img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid #e3e8f2;
  background: #fff; box-shadow: 0 10px 26px rgb(14 27 61 / 10%); }
.vr-captures-larges .vr-capture img { border-radius: 10px; }
.vr-capture figcaption { margin-top: 10px; text-align: center; font-size: 14px; line-height: 1.4;
  color: rgb(14 27 61 / 80%); }
@media (min-width: 1024px) {
  .vr-captures-rang { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 28px 20px;
    overflow: visible; padding: 0; }
  .vr-captures-larges { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
}

/* La promotion : 199 $ au lieu de 600 $ (prix barré), l'équivalent en FCFA dessous */
.vr-promo span { display: inline-block; margin-bottom: 10px; padding: 3px 12px; border-radius: 999px; background: #fff1ec;
  color: #b23a12; font-size: 14px; font-weight: 600; }
.vr-prix-avant { color: rgb(14 27 61 / 60%); text-decoration-thickness: 2px; }
.vr-prix .vr-prix-avant { font-size: 22px; font-weight: 500; }
.vr-prix-fcfa { margin-top: 4px; font-size: 15px; color: rgb(14 27 61 / 72%); }

/* La personnalisation par l'équipe (21/10/2026) : pastille bleue à côté de la « Promotion » orange, lien sous l'appel */
.vr-promo-equipe span { background: #eef2ff; color: #1e40d9; }
.vr-appel-equipe { display: flex; justify-content: center; margin-top: 18px; }
.vr-ligne-equipe { color: rgb(14 27 61 / 78%); }

/* Page de la société (pages/societe.py) : le rond de chaque étape, un point bleu de la marque à la place de la
   vignette en dégradé du modèle. */
.vr-point-etape { display: block; width: 14px; height: 14px; border-radius: 9999px; background: var(--color-primary-500);
  box-shadow: 0 0 0 4px var(--color-primary-100); }
/* La liste du bloc « Qui est derrière Vroumi » : la grille du modèle déborde du cadre, la liste passe à la ligne avant. */
.vr-liste-fondateur { max-width: 440px; }
/* Les badges verts du modèle (Méthode, Questions, Contact) : bleu pâle de la marque. Seule la page de la société
   s'en sert. */
.badge-green { background-color: var(--color-primary-100); }
