/* css/theme_googlooking.css
 * Thème "Googlooking" — premium sobre, aligné sur une charte e‑commerce classique
 * (fond clair, typo sans‑serif standard, contrastes nets) afin d'éviter toute
 * rupture visuelle lorsqu'une page SPM2 est appelée depuis un site tiers.
 *
 * Contrainte : ne pas casser le HTML / classes / IDs / JS existants.
 */

:root{
  /* On bascule volontairement en clair (le site SPM2 par défaut est sombre). */
  color-scheme: light;

  /* Typo : éviter les polices "signature" (ex: Google Fonts) -> rendu cohérent. */
  --font-body: Arial, Helvetica, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: var(--font-body);

  /* Palette : ivoire / anthracite + accents laiton (très discrets) */
  --gl-bg-0: #fbfaf7;   /* ivoire très clair */
  --gl-bg-1: #f3efe6;   /* ivoire chaud */
  --gl-surface: rgba(255,255,255,0.86);
  --gl-surface-2: rgba(255,255,255,0.72);

  --gl-ink:   #1b1b1b;
  --gl-ink-2: #3a3a3a;
  --gl-ink-3: #6a6a6a;

  --gl-navy:   #122536;
  --gl-navy-2: #1f3f5a;

  --gl-brass:   #b08d57;
  --gl-brass-2: #d6bd82;

  /* Cadran (PNG très transparent) : sous-couche plus soutenue pour que
     chiffres / graduations restent visibles sur fond clair. */
  --gl-dial-underlay-0: #f2efe8;
  --gl-dial-underlay-1: #d9d4ca;
  --gl-dial-underlay-2: #c8c2b7;

  /* Variables existantes (spm.css) : on les retune pour un rendu léger */
  --panel-bg: var(--gl-surface-2);
  --panel-bd: rgba(18,37,54,0.14);
  --panel-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

/* Fond général : clair, propre, sans effets "showroom" */
body{
  background: linear-gradient(180deg, var(--gl-bg-0), var(--gl-bg-1));
  color: var(--gl-ink);
}

/* Liens : bleu nuit sobre (pas de cyan) */
a{ color: var(--gl-navy-2); }
a:hover{ color: var(--gl-navy); text-decoration: underline; }

/* Focus : discret (évite les halos massifs) */
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(176,141,87,0.18);
  border-radius: 10px;
}

/* Header : surface claire + séparation fine */
header,
header.site-header{
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(18,37,54,0.10);
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
  backdrop-filter: none;
  border-radius: 18px;
}

header h1{
  color: var(--gl-ink);
  font-weight: 600;
  letter-spacing: .02em;
}
header p{ color: var(--gl-ink-2); opacity: 1; }

/* Logo blanc -> lisible sur fond clair (sans toucher aux fichiers image) */
header .brand-logo img{
  filter: invert(1) brightness(0.25) contrast(1.15);
  opacity: .9;
}

/* Navigation : style "lien bouton" discret */
.main-nav a{
  background: rgba(255,255,255,0.60);
  border: 1px solid rgba(18,37,54,0.14);
  color: var(--gl-ink);
}

/* Nav “icônes SVG” (nav_icons.css) : éviter le blanc sur blanc */
.main-nav a.nav-ico{
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(18,37,54,0.16);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  backdrop-filter: none;
  color: rgba(31, 63, 90, 0.88);
}
.main-nav a.nav-ico:hover{
  border-color: rgba(176,141,87,0.55);
  box-shadow: 0 12px 26px rgba(0,0,0,0.10), 0 0 0 3px rgba(176,141,87,0.10);
}
.main-nav a.nav-ico[aria-current="page"]{
  border-color: rgba(176,141,87,0.75);
  box-shadow: 0 12px 26px rgba(0,0,0,0.10), 0 0 0 4px rgba(176,141,87,0.14);
}
.main-nav a.nav-ico svg{ opacity: 1; }
.main-nav a:hover{
  background: rgba(255,255,255,0.86);
  border-color: rgba(18,37,54,0.22);
}
.main-nav a[aria-current="page"]{
  border-color: rgba(176,141,87,0.55);
  box-shadow: 0 0 0 3px rgba(176,141,87,0.10);
}

/* Cards : légères, sans "gros cartouches" */
.card{
  background: var(--panel-bg);
  border: 1px solid var(--panel-bd);
  box-shadow: var(--panel-shadow);
  backdrop-filter: none;
}

.card p{ color: var(--gl-ink-2); }

.card h2::after{
  opacity: 0.55;
  height: 1px;
  width: 64px;
  background: linear-gradient(90deg, rgba(176,141,87,0.75), rgba(176,141,87,0));
}

/* Mini-cartes (marketing_ui) : même logique, plus fin */
.value-card,
.use-card,
.mini-card,
.proof-item,
.usage-card,
.theme-swatch,
.dial-swatch{
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(18,37,54,0.10);
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
  backdrop-filter: none;
}

/* marketing_ui.css : les titres des .proof-item sont forcés en blanc (thème sombre)
   -> en thème clair, on repasse en encre sombre + icônes lisibles. */
.proof-item h3{
  color: var(--gl-ink) !important;
}
.proof-item h3 svg,
.proof-item h3 svg *{
  stroke: rgba(31,63,90,0.78) !important;
  fill: none !important;
}

/* Badge port : lisible sur clair */
.header-homeport{
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(18,37,54,0.18);
  color: var(--gl-ink-2);
}
.header-homeport-dot{
  background: var(--gl-brass);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.65);
}

/* Boutons : modernes mais sobres (pas de dégradé cyan) */
.btn,
button.btn{
  border: 1px solid rgba(18,37,54,0.22);
  background: rgba(255,255,255,0.86);
  color: var(--gl-ink);
  box-shadow: 0 10px 22px rgba(0,0,0,0.07);
}
.btn:hover,
button.btn:hover{
  filter: none;
  border-color: rgba(176,141,87,0.55);
  box-shadow: 0 12px 26px rgba(0,0,0,0.08), 0 0 0 3px rgba(176,141,87,0.10);
}

/* IMPORTANT (marketing_ui.css)
   marketing_ui force le texte en blanc sur .btn.btn-premium / .btn.btn-ghost,
   y compris en :visited / :hover / :active, avec !important et une spécificité
   plus forte (ex: .btn.btn-premium:visited).
   Dans un thème clair, cela rend certains boutons (ex: “Démonstration”) invisibles.
   On rétablit donc la couleur sombre + un hover cohérent, avec la même spécificité. */
.btn.btn-premium,
.btn.btn-premium:visited,
.btn.btn-premium:hover,
.btn.btn-premium:active,
.btn.btn-premium:focus,
.btn.btn-premium:focus-visible,
.btn.btn-ghost,
.btn.btn-ghost:visited,
.btn.btn-ghost:hover,
.btn.btn-ghost:active,
.btn.btn-ghost:focus,
.btn.btn-ghost:focus-visible{
  color: var(--gl-ink) !important;
}

/* Variantes marketing_ui (si présentes) */
.btn.btn-premium,
.btn.btn-premium:visited{
  border-color: rgba(176,141,87,0.45);
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.78));
  color: var(--gl-ink) !important;
}

.btn.btn-premium:hover{
  border-color: rgba(176,141,87,0.70);
  box-shadow: 0 12px 26px rgba(0,0,0,0.08), 0 0 0 3px rgba(176,141,87,0.10);
}

.btn.btn-premium:active{
  border-color: rgba(176,141,87,0.80);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08), 0 0 0 3px rgba(176,141,87,0.10);
}

.btn.btn-ghost,
.btn.btn-ghost:visited{
  background: rgba(255,255,255,0.55);
  color: var(--gl-ink) !important;
}

.btn.btn-ghost:hover{
  border-color: rgba(176,141,87,0.65);
  box-shadow: 0 0 0 3px rgba(176,141,87,0.10);
}

/* Tables : traits plus visibles en clair */
th{ border-bottom-color: rgba(18,37,54,0.12); color: var(--gl-ink-3); }
tr:nth-child(even) td{ background: rgba(0,0,0,0.018); }

/* Cockpit (démo) : select et messages adaptés au clair */
.sim-form select{
  background: rgba(255,255,255,0.90);
  color: var(--gl-ink);
  border: 1px solid rgba(18,37,54,0.22);
}

.sim-result,
.sim-error{
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
}
.sim-result{
  background: rgba(31,63,90,0.08);
  border: 1px solid rgba(31,63,90,0.28);
}
.sim-result::before{ background: var(--gl-brass); }
.sim-error{
  background: rgba(150, 0, 0, 0.08);
  border: 1px solid rgba(150, 0, 0, 0.22);
}
.sim-error::before{ background: rgba(150, 0, 0, 0.70); }

/* Horloge : halo "objet" recadré (évite l'empiètement sur le bandeau)
   NOTE : spm.css crée déjà le ::before en 120% ; ici on le réduit et on
   augmente la transparence pour conserver l'ombre du cadran sans disque gris. */
.card-clock .dial-wrapper::before{
  width: 108%;
  height: 108%;
  background: radial-gradient(circle at 50% 45%,
      rgba(18,37,54,0.07) 0%,
      rgba(18,37,54,0.035) 34%,
      rgba(18,37,54,0.0) 58%,
      rgba(0,0,0,0) 100%);
  opacity: 0.62;
}

/* Sous-couche du cadran (le PNG est majoritairement transparent) */
.card-clock .dial-wrapper::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 45% 35%,
      var(--gl-dial-underlay-0) 0%,
      var(--gl-dial-underlay-1) 58%,
      var(--gl-dial-underlay-2) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(18,37,54,0.10),
    inset 0 18px 30px rgba(0,0,0,0.06);
  z-index: 0;
}

.card-clock .dial-hand,
.card-clock .dial-center{
  background: rgba(20,20,20,0.90);
}

/* Fenêtre coefficient : ivoire + bord laiton */
.card-clock .dial-coef{
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(243,239,230,0.88));
  border: 1px solid rgba(176,141,87,0.55);
  color: rgba(20,20,20,0.92);
  box-shadow: 0 10px 22px rgba(0,0,0,0.10);
}

/* Responsive : éviter tout effet de densification */
@media (max-width: 640px){
  header,
  header.site-header{ padding: 1rem 1rem; }
  .card{ padding: 1rem 1.05rem 1.05rem; }
}
