/* ==========================================================================
   YuguTech — thème unique « cube » (néon cyan / magenta)

   Un seul thème pour tout le site : fond nocturne, verre, grille technique,
   accents cyan et magenta, vitrines produit lumineuses.

   Cette feuille est chargée en dernier sur chaque page : elle remplace
   themes.css et theme-neon.css. Le sélecteur de thème est masqué.
   ========================================================================== */

/* ------------------------------------------------------------- variables -- */
:root {
  color-scheme: dark;

  --fond: #02050c;
  --panneau: #040b16;

  --surface: rgba(4, 10, 20, 0.84);
  --surface-2: rgba(6, 16, 30, 0.90);
  --surface-3: rgba(10, 24, 42, 0.94);

  --bordure: rgba(103, 232, 249, 0.14);
  --bordure-forte: rgba(103, 232, 249, 0.34);

  --texte: #d7e6f5;
  --texte-2: #9ab3ca;
  --muet: #647c95;

  --accent: #22d3ee;
  --accent-fonce: #67e8f9;
  --accent-doux: rgba(34, 211, 238, 0.06);
  --accent-bordure: rgba(34, 211, 238, 0.26);

  --vert: #4ade80;
  --vert-doux: rgba(74, 222, 128, 0.10);
  --vert-bordure: rgba(74, 222, 128, 0.28);

  --ambre: #fbbf24;
  --ambre-doux: rgba(251, 191, 36, 0.10);
  --ambre-bordure: rgba(251, 191, 36, 0.28);
  --ambre-fonce: #fcd34d;

  --magenta: #e879f9;
  --magenta-vif: #ff3ec8;

  --sur-accent: #041018;
  --survol: rgba(34, 211, 238, 0.06);
  --fond-image: #eef4fb;
  --icone: #647c95;
  --favori-fond: rgba(4, 12, 24, 0.72);
  --entete-fond: rgba(2, 6, 13, 0.94);
  --anneau: 0 0 0 3px rgba(34, 211, 238, 0.22);

  --grille: rgba(103, 232, 249, 0.03);

  --rayon: 16px;
  --rayon-petit: 10px;
  --ombre: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 20px 44px -34px rgba(0, 0, 0, 0.95);
  --ombre-haute: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 42px -18px rgba(34, 211, 238, 0.8);

  --largeur: 1320px;
}

html {
  color-scheme: dark !important;
}

/* --------------------------------------------------------------- ambiance -- */
body {
  background-color: #02050c !important;
  background-image:
    radial-gradient(80% 55% at 50% -12%, rgba(34, 211, 238, 0.10), transparent 70%),
    radial-gradient(55% 45% at 92% 6%, rgba(139, 92, 246, 0.06), transparent 72%),
    radial-gradient(50% 40% at 8% 62%, rgba(232, 121, 249, 0.04), transparent 72%),
    linear-gradient(to right, rgba(34, 211, 238, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34, 211, 238, 0.03) 1px, transparent 1px) !important;
  background-size: auto, auto, auto, 64px 64px, 64px 64px !important;
  background-attachment: fixed !important;
  color: var(--texte) !important;
}

::selection {
  background: rgba(34, 211, 238, 0.28);
  color: #fff;
}

h1, h2, h3 {
  color: #ecfeff;
}

a { color: var(--accent); }

/* Le sélecteur de thème disparaît : un seul thème. */
.themes {
  display: none !important;
}

/* ---------------------------------------------------------------- entête -- */
.entete,
.cfg-entete {
  background: linear-gradient(180deg, rgba(3, 8, 16, 0.97), rgba(2, 5, 11, 0.95)) !important;
  border-color: rgba(34, 211, 238, 0.18) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 44px -34px rgba(0, 0, 0, 0.95) !important;
  backdrop-filter: blur(14px) saturate(1.15);
}

.entete {
  border-bottom: 1px solid rgba(34, 211, 238, 0.12) !important;
}

.entete__outils,
.zone-nav,
.cfg-entete__int {
  gap: 8px;
}

.logo__texte {
  color: #f2fbff !important;
}

.logo__point {
  color: var(--magenta) !important;
}

/* Recherche, menus, sélecteurs */
.recherche {
  background: rgba(4, 12, 24, 0.62) !important;
  border-color: rgba(103, 232, 249, 0.20) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.recherche input {
  color: #d7e6f5 !important;
}

.recherche input::placeholder {
  color: rgba(185, 217, 239, 0.48) !important;
}

.recherche__raccourci {
  border-color: rgba(103, 232, 249, 0.22) !important;
  background: rgba(34, 211, 238, 0.06) !important;
  color: rgba(165, 243, 252, 0.6) !important;
}

.bouton-config,
.bouton-liste,
.menu-boutiques__bouton,
.devise-entete,
.zone-langue select,
.langue select,
.cfg-retour,
.bouton-market {
  border-color: rgba(34, 211, 238, 0.22) !important;
  background: rgba(6, 16, 30, 0.72) !important;
  color: #f5d0fe !important;
}

.bouton-config:hover,
.bouton-liste:hover,
.menu-boutiques__bouton:hover,
.menu-boutiques__bouton[aria-expanded="true"],
.cfg-retour:hover {
  border-color: rgba(103, 232, 249, 0.6) !important;
  color: #f5d0fe !important;
}

.bouton-zone {
  border-color: transparent !important;
  color: #fff !important;
  background-image: linear-gradient(100deg, #8b5cf6 0%, #22d3ee 52%, #c026d3 100%) !important;
  box-shadow:
    0 10px 28px -14px rgba(34, 211, 238, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
}

.bouton-liste[aria-pressed="true"] {
  background: rgba(34, 211, 238, 0.14) !important;
  border-color: rgba(34, 211, 238, 0.5) !important;
  color: #a5f3fc !important;
}

select {
  color-scheme: dark;
}

/* Menus déroulants */
.menu-boutiques__panneau,
.panneau,
.entete__panneau {
  background: #040b16 !important;
  border-color: rgba(34, 211, 238, 0.24) !important;
  color: var(--texte) !important;
}

.menu-boutiques__lien:hover {
  background: rgba(34, 211, 238, 0.04) !important;
}

/* ------------------------------------------------------------------ héros -- */
.hero {
  border: 1px solid rgba(34, 211, 238, 0.16) !important;
  border-radius: 22px !important;
  background:
    radial-gradient(95% 75% at 50% 0%, rgba(34, 211, 238, 0.09), transparent 72%),
    radial-gradient(60% 50% at 100% 100%, rgba(232, 121, 249, 0.04), transparent 70%),
    linear-gradient(180deg, rgba(3, 7, 15, 0.98), rgba(1, 4, 9, 1)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 70px -45px rgba(34, 211, 238, 0.35) !important;
}

.hero h1 {
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 800;
  color: #eaf9ff !important;
  -webkit-text-fill-color: #eaf9ff !important;
  background-image: none !important;
  text-shadow:
    0 0 16px rgba(34, 211, 238, 0.26),
    0 0 40px rgba(34, 211, 238, 0.10) !important;
}

.hero h1 .mot {
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  color: inherit !important;
}

.hero__surtitre {
  border: 1px solid rgba(34, 211, 238, 0.22) !important;
  background: rgba(34, 211, 238, 0.04) !important;
  color: #a5f3fc !important;
}

.hero__texte {
  color: rgba(207, 250, 254, 0.78) !important;
}

.hero__cta,
.bouton {
  background: linear-gradient(100deg, #8b5cf6, #22d3ee 55%, #8b5cf6) !important;
  border-color: transparent !important;
  color: #f0f9ff !important;
  box-shadow: 0 0 28px -16px rgba(34, 211, 238, 0.45) !important;
}

.hero__cta:hover,
.bouton:hover {
  filter: brightness(1.1);
}

.hero__cta--ghost {
  background: rgba(6, 16, 30, 0.7) !important;
  border-color: rgba(34, 211, 238, 0.32) !important;
  color: #f5d0fe !important;
}

.hero__vitrine::before {
  background: conic-gradient(
    from 0deg,
    rgba(34, 211, 238, 0.46),
    rgba(139, 92, 246, 0.32),
    rgba(232, 121, 249, 0.34),
    rgba(34, 211, 238, 0.46)
  ) !important;
}

/* Aurores cyan / magenta, comme la maquette cube. */
.hero__blob--1 {
  background: radial-gradient(circle, rgba(34, 211, 238, 0.52), transparent 70%) !important;
}

.hero__blob--2 {
  background: radial-gradient(circle, rgba(232, 121, 249, 0.42), transparent 70%) !important;
}

.hero__blob--3 {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.36), transparent 70%) !important;
}

/* Fiches du carrousel : cubes de verre avec vitrine claire */
.hero__vitrine .vitrine__carte {
  background: linear-gradient(160deg, rgba(22, 44, 72, 0.82), rgba(7, 15, 28, 0.94)) !important;
  border: 1px solid rgba(103, 232, 249, 0.34) !important;
  color: var(--texte) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 18px 40px -26px rgba(0, 0, 0, 0.95),
    0 0 28px -18px rgba(34, 211, 238, 0.9) !important;
}

.hero__vitrine .vitrine__carte:hover,
.hero__vitrine .vitrine__carte:focus-visible {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 22px 44px -22px rgba(34, 211, 238, 0.65) !important;
}

.hero__vitrine .vitrine__carte img {
  background: radial-gradient(120% 100% at 50% 0%, #fff, #e9f5ff);
  border-radius: 8px;
  padding: 5px;
}

.vitrine__nom {
  color: #eefaff !important;
}

.hero__vitrine .vitrine__prix {
  color: #f4fdff !important;
  text-shadow: 0 0 14px rgba(34, 211, 238, 0.35);
}

.vitrine__fleche {
  border-color: rgba(103, 232, 249, 0.28) !important;
  background: rgba(4, 12, 24, 0.7) !important;
}

/* -------------------------------------------------------------- surfaces -- */
.carte,
.vitrine__carte,
.fiche,
.panneau,
.config-carte,
.filtres {
  border: 1px solid rgba(34, 211, 238, 0.10) !important;
  border-radius: var(--rayon) !important;
  background:
    linear-gradient(180deg, rgba(6, 14, 28, 0.92), rgba(3, 8, 16, 0.97)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    5px 5px 0 -1px rgba(7, 18, 33, 0.92),
    6px 6px 0 0 rgba(34, 211, 238, 0.08),
    0 22px 44px -34px rgba(0, 0, 0, 0.95) !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.carte:hover,
.vitrine__carte:hover {
  border-color: rgba(103, 232, 249, 0.55) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    8px 8px 0 -1px rgba(7, 18, 33, 0.92),
    9px 9px 0 0 rgba(34, 211, 238, 0.22),
    0 0 34px -20px rgba(34, 211, 238, 0.45) !important;
  transform: translate(-2px, -2px);
}

/* Reflet de verre sur la carte */
.carte::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.035) 43%, transparent 56%);
}

/* Vitrine produit : plaque claire dans le cube */
.carte__visuel {
  background:
    radial-gradient(120% 100% at 50% 0%, #ffffff 0%, #eef4fb 55%, #e8f4ff 100%) !important;
  border-bottom: 1px solid rgba(34, 211, 238, 0.22) !important;
  box-shadow:
    inset 0 0 0 1px rgba(139, 92, 246, 0.10),
    inset 0 22px 34px -26px rgba(15, 23, 42, 0.35) !important;
}

.carte__visuel::after {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  opacity: 0.55;
  background:
    linear-gradient(rgba(192, 38, 211, 0.55), rgba(192, 38, 211, 0.55)) left top / 10px 1px no-repeat,
    linear-gradient(rgba(192, 38, 211, 0.55), rgba(192, 38, 211, 0.55)) left top / 1px 10px no-repeat,
    linear-gradient(rgba(192, 38, 211, 0.55), rgba(192, 38, 211, 0.55)) right bottom / 10px 1px no-repeat,
    linear-gradient(rgba(192, 38, 211, 0.55), rgba(192, 38, 211, 0.55)) right bottom / 1px 10px no-repeat;
}

.carte__visuel img {
  mix-blend-mode: multiply;
  filter: contrast(1.04) saturate(1.03);
}

.carte__corps {
  color: var(--texte);
}

.carte__titre {
  color: #f2fbff;
}

.carte__titre a:hover {
  color: var(--accent);
}

.carte__marque {
  color: rgba(165, 243, 252, 0.55) !important;
}

.prix {
  color: #f4fdff;
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.28);
}

.devise {
  color: var(--accent) !important;
}

.prix-barre {
  color: rgba(196, 226, 255, 0.42) !important;
}

.carte__boutique {
  color: var(--vert) !important;
}

.carte__autres {
  color: rgba(196, 226, 255, 0.48) !important;
}

/* Étiquettes */
.etiquette-promo {
  background: linear-gradient(100deg, rgba(255, 62, 200, 0.94), rgba(139, 92, 246, 0.92)) !important;
  border-color: rgba(165, 243, 252, 0.45) !important;
  color: #fff !important;
  box-shadow: 0 0 20px -7px rgba(255, 62, 200, 0.9);
}

.etiquette-promo--bf {
  background: linear-gradient(100deg, #f59e0b, #ef4444) !important;
  color: #fff !important;
  border-color: rgba(255, 220, 150, 0.5) !important;
}

.etiquette-eco {
  background: rgba(34, 211, 238, 0.12) !important;
  border-color: rgba(34, 211, 238, 0.38) !important;
  color: #a5f3fc !important;
}

.etiquette-bonplan {
  background: rgba(34, 211, 238, 0.06) !important;
  border-color: rgba(34, 211, 238, 0.32) !important;
  color: #a5f3fc !important;
}

.etiquette-rupture {
  background: rgba(232, 121, 249, 0.10) !important;
  border-color: rgba(232, 121, 249, 0.32) !important;
  color: #f5d0fe !important;
}

.favori {
  background: rgba(4, 12, 24, 0.72) !important;
  border-color: rgba(103, 232, 249, 0.24) !important;
  color: rgba(207, 250, 254, 0.6) !important;
}

.favori[aria-pressed="true"] {
  color: #fcd34d !important;
  background: rgba(251, 191, 36, 0.12) !important;
  border-color: rgba(251, 191, 36, 0.34) !important;
}

/* -------------------------------------------------------------- filtres -- */
.filtres {
  background: linear-gradient(170deg, rgba(11, 25, 44, 0.85), rgba(6, 14, 27, 0.92)) !important;
}

.filtres__entete h2,
.filtres__bloc h3,
.filtre-spec span {
  color: #dff4ff !important;
}

.filtres__bloc,
.filtre-spec {
  border-color: rgba(103, 232, 249, 0.10) !important;
}

.puce {
  background: rgba(6, 16, 30, 0.55) !important;
  border-color: rgba(103, 232, 249, 0.16) !important;
  color: rgba(219, 238, 255, 0.82) !important;
}

.puce:hover {
  border-color: rgba(103, 232, 249, 0.42) !important;
}

.puce[aria-pressed="true"] {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #041018 !important;
}

.puce__nombre {
  color: rgba(165, 243, 252, 0.55) !important;
}

.puce[aria-pressed="true"] .puce__nombre {
  color: rgba(4, 16, 24, 0.7) !important;
}

.filtres input,
.filtres select,
.filtre-spec select,
input[type="number"],
input[type="text"] {
  background: rgba(4, 12, 24, 0.6) !important;
  border-color: rgba(103, 232, 249, 0.18) !important;
  color: var(--texte) !important;
}

input[type="range"] {
  accent-color: var(--accent);
}

input::placeholder {
  color: rgba(185, 217, 239, 0.42) !important;
}

/* -------------------------------------------------------------- boutons -- */
.bouton--secondaire {
  background: rgba(6, 16, 30, 0.7) !important;
  border-color: rgba(103, 232, 249, 0.22) !important;
  color: #f5d0fe !important;
}

.bouton--secondaire:hover {
  border-color: rgba(103, 232, 249, 0.6) !important;
  color: #f5d0fe !important;
}

/* --------------------------------------------------------------- modales -- */
.modale__carte {
  background: linear-gradient(165deg, #0b1a2e, #07121f) !important;
  border: 1px solid rgba(34, 211, 238, 0.24) !important;
  color: var(--texte) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 40px 100px -40px rgba(0, 0, 0, 1),
    0 0 60px -30px rgba(34, 211, 238, 0.6) !important;
}

.modale__voile,
.bienvenue__voile {
  background: rgba(3, 7, 14, 0.74) !important;
  backdrop-filter: blur(7px);
}

.bienvenue__carte {
  background: linear-gradient(160deg, #0b1a2e 0%, #081422 55%, #060e1b 100%) !important;
  border: 1px solid rgba(34, 211, 238, 0.28) !important;
  color: var(--texte) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 40px 100px -30px rgba(0, 0, 0, 1),
    0 0 80px -40px rgba(232, 121, 249, 0.5) !important;
}

.bienvenue__titre {
  color: #f2fbff !important;
}

.bienvenue__texte {
  color: var(--texte-2) !important;
}

.bienvenue__points li {
  color: var(--texte-2) !important;
}

.bienvenue__points strong {
  color: #effbff !important;
}

.bienvenue__but {
  background: rgba(34, 211, 238, 0.04) !important;
  border-left: 3px solid var(--accent) !important;
  color: var(--texte-2) !important;
}

.bienvenue__fermer {
  background: rgba(6, 16, 30, 0.7) !important;
  border-color: rgba(103, 232, 249, 0.24) !important;
  color: var(--texte-2) !important;
}

.bienvenue__cta {
  background: linear-gradient(100deg, #8b5cf6, #22d3ee 55%, #c026d3) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 0 30px -12px rgba(34, 211, 238, 0.9);
}

.bienvenue__lien {
  color: var(--accent) !important;
}

/* Comparateur / fiches produit */
.produit__titre,
.fiche h1,
.fiche h2,
.fiche h3,
.config-carte h3 {
  color: #effbff !important;
}

.tableau,
.tableau th,
.tableau td,
.ligne-offre,
.offre {
  border-color: rgba(103, 232, 249, 0.12) !important;
}

/* Pied de page */
.pied {
  background: rgba(5, 12, 24, 0.6) !important;
  border-top: 1px solid rgba(34, 211, 238, 0.12) !important;
}

.pied__titre,
.pied__slogan,
.pied__marque {
  color: #d7e6f5 !important;
}

.pied__texte,
.pied__meta,
.pied p {
  color: var(--texte-2) !important;
}

.pied-liens a,
.pied-alertes__lien {
  color: var(--accent) !important;
}

/* Bandeaux d'information */
.bandeau,
#bandeau-demo {
  background: rgba(34, 211, 238, 0.04) !important;
  border-color: rgba(34, 211, 238, 0.28) !important;
  color: #cffafe !important;
}

/* --------------------------------------------------------- pages outils -- */
.cfg-panneau,
.cfg-carte,
.zone-carte,
.observatoire__carte,
.fiche__bloc {
  border-color: rgba(34, 211, 238, 0.16) !important;
  background: linear-gradient(170deg, rgba(11, 25, 44, 0.72), rgba(6, 14, 27, 0.9)) !important;
}

/* Barres de défilement discrètes */
* {
  scrollbar-color: rgba(34, 211, 238, 0.28) rgba(4, 10, 20, 0.6);
}

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 1180px) {
  .themes { display: none !important; }
}

/* En-tête mobile : les outils passent sur leur propre ligne, défilable,
   pour ne plus élargir la page. */
@media (max-width: 860px) {
  .entete__int {
    flex-wrap: wrap;
  }

  .entete__outils {
    order: 2;
    flex: 1 0 100%;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    padding-bottom: 3px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .entete__outils::-webkit-scrollbar {
    display: none;
  }

  .entete__outils > * {
    flex: 0 0 auto;
  }

  .entete .recherche {
    order: 3;
    width: 100%;
    flex-basis: 100%;
  }

  .cfg-entete__int {
    flex-wrap: wrap !important;
  }

  .cfg-entete__outils {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .cfg-entete__outils::-webkit-scrollbar {
    display: none;
  }

  .zone-nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  /* Marketplace est désactivée (« bientôt ») : on libère la place. */
  .entete__outils .bouton-market {
    display: none;
  }

  .entete__outils {
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
