/*
  PATH: astera_code_web/assets/css/glass.css
  ROLE: Couche glassmorphism unique, mode sombre force, sans ombre ni degrade colore ; chargee apres hub.css.
*/
:root {
  color-scheme: dark;
  --ga: #6a8bff;
  --gb: #34c8b4;
  --ga-soft: color-mix(in srgb, var(--ga) 18%, transparent);
  --gl-bg: rgba(255, 255, 255, 0.045);
  --gl-bd: rgba(255, 255, 255, 0.14);
  --gl-hi: rgba(255, 255, 255, 0.22);
  --gl-blur: blur(26px) saturate(180%);

  /* Palette sombre imposee, quel que soit le mode du telephone */
  --text-primary: #eef1fa !important;
  --text-secondary: #a7aec6 !important;
  --border: rgba(255, 255, 255, 0.12) !important;
  --card: rgba(255, 255, 255, 0.05) !important;
  --bg: #07080d !important;
  --background: #07080d !important;
  --bg-primary: #07080d !important;
}

html, body { background: #07080d !important; color: var(--text-primary); }
main, section, .block, .hero, .showcase, .cta-final { background: transparent !important; }
#modeToggle { display: none !important; }

/* Fond : halos froids fixes, derriere le verre */
body::before, body::after { content: ""; position: fixed; z-index: -1; pointer-events: none; border-radius: 50%; }
body::before {
  width: 70vmax; height: 70vmax; left: -22vmax; top: -26vmax;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--ga) 34%, transparent), transparent);
}
body::after {
  width: 60vmax; height: 60vmax; right: -20vmax; bottom: -22vmax;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--gb) 26%, transparent), transparent);
}

/* Suppression des effets colores */
.hero-glow, .hero::before, .hero::after { display: none !important; }
.theme-picker { display: none !important; }
.grad-text { background: none !important; -webkit-text-fill-color: currentColor !important; color: var(--ga) !important; }
*, *::before, *::after { text-shadow: none !important; }

/* Verre : flou fort, reflet blanc neutre, bord superieur lumineux */
.navbar, .feature-item, .step, .project-card, .qi-block, .contact-card,
.projects-note, .cta-final .cta-inner, .lang-chip, .badge, .btn-outline,
.legal-tab, .footer, .globe-wrap, .globe-tip, .gtab, .gchip {
  background-color: var(--gl-bg) !important;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.015) 55%) !important;
  border: 1px solid var(--gl-bd) !important;
  -webkit-backdrop-filter: var(--gl-blur);
  backdrop-filter: var(--gl-blur);
  box-shadow: inset 0 1px 0 var(--gl-hi), inset 0 0 0 1px rgba(255, 255, 255, 0.025) !important;
}
.feature-item, .step, .project-card, .qi-block, .contact-card,
.projects-note, .cta-final .cta-inner { border-radius: 22px; }
.navbar { border-width: 0 0 1px 0 !important; border-radius: 0; background-color: rgba(10, 12, 20, 0.55) !important; }
.footer { border-width: 1px 0 0 0 !important; border-radius: 0; }
.lang-chip, .badge, .btn-outline, .legal-tab, .gtab, .gchip { border-radius: 999px; }
.badge { color: var(--ga) !important; }
.part { border-top: 1px solid rgba(255, 255, 255, 0.07) !important; }

/* Boutons : aplats nets */
.btn, .icon-btn, .feature-icon, .project-icon, .step-num, .mode-card { box-shadow: none !important; }
.btn-primary { background: var(--ga) !important; background-image: none !important; color: #fff !important; border: 1px solid rgba(255, 255, 255, 0.28) !important; }
.btn-primary:hover { background: color-mix(in srgb, var(--ga) 86%, #fff) !important; }
.legal-tab.active, .gtab.active { background: var(--ga) !important; background-image: none !important; color: #fff !important; border-color: rgba(255, 255, 255, 0.28) !important; }

/* Icones : puce translucide a un seul ton */
.feature-icon, .project-icon, .step-num {
  background: var(--ga-soft) !important; background-image: none !important; color: var(--ga) !important;
  border: 1px solid color-mix(in srgb, var(--ga) 30%, transparent) !important;
}

/* Survol : bordure seulement */
.feature-item:hover, .step:hover, .project-card:hover, .qi-block:hover, .contact-card:hover, .lang-chip:hover, .gchip:hover {
  border-color: color-mix(in srgb, var(--ga) 60%, transparent) !important;
}
.nav-links a:hover, .nav-links a.active { color: var(--ga) !important; }

/* Globe */
.hero-visual.is-globe { display: flex; justify-content: center; }
.globe-wrap { position: relative; width: min(100%, 480px); padding: 18px 18px 20px; border-radius: 30px; }
.globe-wrap canvas { display: block; width: 100%; aspect-ratio: 1; cursor: grab; touch-action: pan-y; }
.globe-tip { position: absolute; z-index: 3; pointer-events: none; padding: 6px 13px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; transform: translate(-50%, -165%); color: var(--text-primary); }
.globe-tip[hidden] { display: none; }
.globe-tabs { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.gtab { padding: 8px 20px; font-size: .84rem; font-weight: 600; color: var(--text-secondary); cursor: pointer; font-family: inherit; }
.globe-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 12px; min-height: 64px; align-content: flex-start; }
.gchip { padding: 6px 13px; font-size: .78rem; font-weight: 600; color: var(--text-primary); cursor: pointer; font-family: inherit; }

@media (max-width: 720px) {
  .globe-wrap { width: min(100%, 380px); padding: 12px 12px 16px; border-radius: 24px; }
  .globe-chips { min-height: 0; }
}
/* AJOUT-V6 : logo RCBG, animations, page legale unique */
.rcbg-logo { height: 22px; width: auto; display: inline-block; vertical-align: middle; }
.rcbg-inline { height: 1.2em; width: auto; vertical-align: -0.25em; margin: 0 3px; }
.rcbg-line { display: inline-flex; align-items: center; gap: 10px; }
.rcbg-by { display: flex; align-items: center; gap: 8px; margin-top: var(--sp-sm); font-size: .8rem; color: var(--text-secondary); }

.hello-marquee { overflow: hidden; margin: 0 0 var(--sp-xl);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.hello-track { display: flex; width: max-content; animation: hello-scroll 36s linear infinite; }
.hello-marquee:hover .hello-track { animation-play-state: paused; }
.hello-chip { padding: 10px 24px; border-radius: 999px; font-weight: 600; font-size: .95rem; white-space: nowrap; color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.045); background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.015) 55%);
  border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22); }
@keyframes hello-scroll { to { transform: translateX(-50%); } }

.code-window { max-width: 560px; margin: 0 auto var(--sp-xl); border-radius: 20px; overflow: hidden;
  background-color: rgba(255, 255, 255, 0.04); background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.012) 55%);
  border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(26px) saturate(180%); backdrop-filter: blur(26px) saturate(180%); }
.cw-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.09); font-size: .78rem; color: var(--text-secondary); }
.cw-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }
.cw-bar span { margin-left: 8px; font-weight: 600; }
.cw-body { margin: 0; padding: 18px 20px; min-height: 10.5em; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .88rem; line-height: 1.55; white-space: pre; overflow-x: auto; color: var(--text-primary); }
.cw-caret { display: inline-block; width: 8px; height: 1.1em; vertical-align: text-bottom; background: var(--ga); animation: cw-blink 1s steps(1) infinite; }
@keyframes cw-blink { 50% { opacity: 0; } }

.legal-lang { display: flex; justify-content: center; gap: 8px; margin-top: var(--sp-md); }
.legal-lang .legal-tab { padding: 6px 16px; font-size: .78rem; }
.legal-panel a { color: var(--ga); }

@media (prefers-reduced-motion: reduce) {
  .hello-track { animation: none; }
  .cw-caret { animation: none; }
}
/* AJOUT-V6-FIX : boucle sans couture */
.hello-chip { margin-right: 12px; }

/* FORCE-ANIM : passe outre le bloqueur d'accessibilite du navigateur */
.hello-track { animation: hello-scroll 36s linear infinite !important; }
.cw-caret { animation: cw-blink 1s steps(1) infinite !important; }
