/* === THEME GLOV SOLUTIONS === */
.bg-glov {
  background-color: #0e1720;
}
.text-glov {
  color: #60a5fa;
}
.text-glov-title {
  color: #9bb8d3;
}
.bg-glov-2 {
  background-color: #3c5061;
}

/* === THEME GLOV SECURE === */
.bg-secure {
  background-color: #001713;
}
.bg-secure-2 {
  background-color: #062925;
}
.bg-secure-card {
  background-color: #062925;
}
.bg-secure-card-2 {
  background-color: #001713;
}
.text-secure {
  color: #1dd3c0; /* couleur GLOV Secure ou personnalise selon Excel */
}

/* === THEME GLOV CONSULTING === */
/* Les classes .consulting-hero et .logo-consulting sont des éléments spécifiques d'une page,
   nous les mettrons dans un fichier de page dédié si/quand nous créerons une page pour GLOV Consulting.
   Pour l'instant, je les commente ici pour les garder en mémoire, mais elles ne sont pas des "thèmes" génériques.
.consulting-hero {
  background: url('/images/background.png') no-repeat center center/cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.logo-consulting {
  max-width: 140px;
  height: auto;
}
*/

/* === BADGES & UTILITY COLORS === */
.badge {
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
}
.bg-success {
  background-color: #28a745 !important;
}
.bg-dark {
  background-color: #000000 !important;
}
.text-cs {
  color: rgb(234, 179, 13) !important
}
.text-warning {
  color: #ffc107 !important;
}/* === DESIGN TOKENS === */
:root {
  --glov-ink: #0e1720;
  --glov-ink-soft: #3c5061;
  --glov-title: #9bb8d3;
  --glov-accent: #60a5fa;
  --glov-accent-strong: #3b82f6;
  --glov-secure-ink: #001713;
  --glov-secure-ink-soft: #062925;
  --glov-secure-accent: #1dd3c0;
  --text-main: #f3f7fb;
  --text-muted: #d2dde8;
  --line-soft: rgba(155, 184, 211, 0.24);
  --surface-1: rgba(12, 20, 29, 0.72);
  --surface-2: rgba(22, 34, 47, 0.72);
}

/* === BASE STYLE === */
html.theme-default {
  --site-bg: #0e1720;
  --site-bg-alt: #3c5061;
  --site-accent: #60a5fa;
  --site-accent-strong: #3b82f6;
  --site-title: #9bb8d3;
  --site-surface-a: rgba(12, 20, 29, 0.72);
  --site-surface-b: rgba(22, 34, 47, 0.72);
  background-color: #0e1720;
}

html.theme-secure {
  --site-bg: #001713;
  --site-bg-alt: #062925;
  --site-accent: #1dd3c0;
  --site-accent-strong: #0ca99d;
  --site-title: #1dd3c0;
  --site-surface-a: rgba(0, 23, 19, 0.76);
  --site-surface-b: rgba(6, 41, 37, 0.76);
  background-color: #001713;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Manrope', sans-serif;
  font-size: 1.01rem;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--site-bg, #0e1720);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
}

a {
  color: var(--site-accent, #60a5fa);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover,
a:focus-visible {
  color: #ffffff;
}

body.site-body {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 0% -10%, rgba(96, 165, 250, 0.18), transparent 44%),
    radial-gradient(circle at 100% 0%, rgba(155, 184, 211, 0.12), transparent 40%),
    var(--site-bg, #0e1720) !important;
}

body.site-body::before {
  content: '';
  position: fixed;
  inset: -20% -10% auto;
  height: 72vh;
  background:
    radial-gradient(circle at 20% 15%, rgba(96, 165, 250, 0.14), transparent 36%),
    radial-gradient(circle at 85% 25%, rgba(155, 184, 211, 0.12), transparent 34%);
  pointer-events: none;
  z-index: -2;
}

body.site-body::after {
  content: '';
  position: fixed;
  inset: auto -10% -28%;
  height: 52vh;
  background:
    radial-gradient(circle at 70% 20%, rgba(60, 80, 97, 0.26), transparent 44%),
    radial-gradient(circle at 30% 35%, rgba(14, 23, 32, 0.38), transparent 46%);
  pointer-events: none;
  z-index: -2;
}

section {
  position: relative;
  padding: clamp(58px, 7vw, 96px) 20px;
}

section h2 {
  margin-bottom: 30px;
  text-align: center;
  font-size: clamp(1.9rem, 2.8vw, 2.65rem);
  font-weight: 700;
  color: var(--site-title, #9bb8d3);
}

.lead {
  color: var(--text-muted);
}

.card {
  background:
    linear-gradient(160deg, var(--site-surface-a, var(--surface-1)) 0%, var(--site-surface-b, var(--surface-2)) 100%);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  backdrop-filter: blur(6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(96, 165, 250, 0.34);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.card img {
  max-width: 150px;
  height: auto;
}

.card-title {
  margin-bottom: 8px;
  font-size: clamp(1.24rem, 1.8vw, 1.5rem);
  font-weight: 700;
  color: #f8fbff;
}

.card-text {
  margin-bottom: 14px;
  color: #d7e2ed;
  text-align: center;
}

.btn {
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.005em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary,
.card .btn,
.cookie-banner .btn-primary {
  border: 1px solid transparent;
  background: linear-gradient(130deg, var(--site-accent, #60a5fa), var(--site-accent-strong, #3b82f6));
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(59, 130, 246, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible,
.card .btn:hover,
.cookie-banner .btn-primary:hover {
  color: #ffffff;
  box-shadow: 0 11px 22px rgba(59, 130, 246, 0.34);
}

.btn-outline-primary {
  border-color: rgba(96, 165, 250, 0.6);
  color: #d9e9fb;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus-visible {
  border-color: var(--site-accent, #60a5fa);
  background-color: rgba(96, 165, 250, 0.18);
  color: #ffffff;
}

/* === FOOTER === */
.site-footer {
  background:
    linear-gradient(160deg, rgba(8, 14, 20, 0.95) 0%, rgba(16, 26, 36, 0.95) 100%);
  border-top: 1px solid var(--line-soft);
  color: #cdd8e4;
  text-align: center;
}

.site-footer a,
.footer-link {
  color: var(--site-accent, #60a5fa);
  transition: color 0.25s ease;
}

.site-footer a:hover,
.footer-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.site-footer .social-icon,
.site-footer .fab {
  color: #b7c5d4;
  transition: color 0.25s ease;
}

.site-footer .social-icon:hover,
.site-footer .fab:hover {
  color: #ffffff;
}

.site-footer hr {
  border-color: rgba(155, 184, 211, 0.34);
}

/* === NAVBAR === */
.navbar.bg-transparent {
  margin: 8px auto 0;
  width: min(96%, 1220px);
  border: 1px solid rgba(155, 184, 211, 0.22) !important;
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(9, 15, 23, 0.62), rgba(14, 23, 32, 0.48)) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  z-index: 1030;
}

html.theme-secure .navbar.bg-transparent {
  background: linear-gradient(155deg, rgba(0, 23, 19, 0.7), rgba(6, 41, 37, 0.54)) !important;
}

.navbar.bg-transparent:hover {
  border-color: rgba(96, 165, 250, 0.34) !important;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
}

.navbar .navbar-brand {
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f2f6fb;
}

.navbar .navbar-brand:hover {
  color: #ffffff;
}

.navbar .nav-link {
  position: relative;
  padding: 0.58rem 0.74rem;
  font-weight: 500;
  color: #e2eaf3;
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  left: 0.78rem;
  right: 0.78rem;
  bottom: 0.34rem;
  height: 2px;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
  background: linear-gradient(90deg, var(--site-accent, #60a5fa), rgba(255, 255, 255, 0.8));
}

.navbar .nav-link:hover,
.navbar .nav-link:focus-visible {
  color: #ffffff;
}

.navbar .nav-link:hover::after,
.navbar .nav-link:focus-visible::after,
.navbar .nav-link.active::after {
  transform: scaleX(1);
}

/* === NAVBAR DROPDOWN === */
.dropdown-menu {
  background: rgba(11, 20, 30, 0.96) !important;
  border: 1px solid rgba(96, 165, 250, 0.28) !important;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(12px);
  margin-top: 10px;
  min-width: 200px !important;
  width: max-content;
}

html.theme-secure .dropdown-menu {
  background: rgba(3, 31, 28, 0.96) !important;
  border-color: rgba(29, 211, 192, 0.32) !important;
}

.dropdown-item {
  margin: 2px 6px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #edf3f9 !important;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
  transform: translateX(1px);
  background-color: rgba(96, 165, 250, 0.18) !important;
  color: #ffffff !important;
}

html.theme-secure .dropdown-item:hover,
html.theme-secure .dropdown-item:focus {
  background-color: rgba(29, 211, 192, 0.2) !important;
}

.dropdown-item:active {
  background-color: rgba(96, 165, 250, 0.3) !important;
  color: #ffffff !important;
}

.dropdown-menu.show {
  animation: dropdownFadeIn 0.18s ease-out;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-toggle::after {
  transition: transform 0.25s ease;
}

.dropdown-toggle[aria-expanded='true']::after {
  transform: rotate(180deg);
}

.dropdown-divider {
  border-top: 1px solid rgba(96, 165, 250, 0.2);
  margin: 8px 0;
}

/* === COOKIE BANNER === */
.cookie-banner {
  background: linear-gradient(140deg, rgba(10, 17, 26, 0.98), rgba(22, 34, 47, 0.97)) !important;
  border-top: 1px solid rgba(96, 165, 250, 0.35) !important;
  backdrop-filter: blur(12px);
  animation: slideUp 0.36s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-banner .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.34);
  color: #f8f9fa;
}

.cookie-banner .btn-outline-light:hover {
  border-color: rgba(255, 255, 255, 0.58);
  background-color: rgba(255, 255, 255, 0.12);
}

/* === UTILITAIRE === */
.logo-secure {
  max-height: 90px;
}

.text-glov-title {
  color: var(--site-title, #9bb8d3);
}

/* === ERROR PAGES === */
.error-header {
  min-height: 60vh;
  display: flex;
  align-items: center;
  background: linear-gradient(140deg, rgba(14, 23, 32, 0.88), rgba(60, 80, 97, 0.75));
}

.error-logo {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.34));
}

.error-header .display-1 {
  font-size: clamp(4.8rem, 11vw, 8rem);
  font-weight: 700;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.42);
}

.error-header h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 500;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.32);
}

.error-header .lead {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.18rem;
}

/* === RESPONSIVE GLOBAL === */
@media (max-width: 991px) {
  .navbar.bg-transparent {
    width: calc(100% - 16px);
    margin-top: 8px;
    border-radius: 12px;
  }

  .navbar .nav-link {
    padding: 0.62rem 0.72rem;
  }

  .navbar .nav-link::after {
    left: 0.72rem;
    right: 0.72rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 56px 16px;
  }

  .cookie-banner .d-flex {
    flex-direction: column;
  }

  .cookie-banner .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .error-logo {
    width: 100px;
  }
}
.icon {
  display: inline-block;
  min-width: 1.25em;
  text-align: center;
  line-height: 1;
  font-style: normal;
  color: currentColor;
}

.icon::before { content: "•"; }
.icon-fa-check-circle::before { content: "●"; }
.icon-fa-exclamation-triangle::before { content: "▲"; }
.icon-fa-arrow-left::before { content: "←"; }
.icon-fa-user-shield::before { content: "◈"; }
.icon-fa-clock::before { content: "◷"; }
.icon-fa-envelope::before { content: "✉"; }
.icon-fa-github::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82A7.6 7.6 0 0 1 8 3.86c.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82A7.6 7.6 0 0 1 8 3.86c.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.icon-fa-linkedin::before { content: "in"; font-weight: 700; }
.icon-fa-map-marker-alt::before { content: "⌖"; }
.icon-fa-reply::before { content: "↩"; }
.icon-fa-home::before { content: "⌂"; }
.icon-fa-question-circle::before { content: "?"; font-weight: 700; }
.icon-fa-sync-alt::before { content: "↻"; }
.icon-fa-bug::before { content: "※"; }
.icon-fa-snowflake::before { content: "❄"; }
.icon-fa-shield-alt::before { content: "◈"; }
.icon-fa-briefcase::before { content: "▣"; }
.icon-fa-building::before { content: "▦"; }
.icon-fa-globe::before { content: "◎"; }
.icon-fa-phone::before { content: "☎"; }
.icon-fa-check::before { content: "✓"; }
.icon-fa-info-circle::before { content: "i"; font-weight: 700; }
.icon-fa-microchip::before { content: "⎔"; }
.icon-fa-cpu::before { content: "◼"; }
.icon-fa-rocket::before { content: "➤"; }
.icon-fa-bell::before { content: "◉"; }
.icon-fa-wifi::before { content: "⋰"; }
.icon-fa-cloud::before { content: "☁"; }
.icon-fa-graduation-cap::before { content: "⌂"; }
.icon-fa-memory::before { content: "◫"; }
.icon-fa-network-wired::before { content: "⛓"; }
.icon-fa-chart-line::before { content: "↗"; }
.icon-fa-lock::before { content: "⌁"; }
.icon-fa-bitcoin::before { content: "₿"; font-weight: 700; }
.icon-fa-user-secret::before { content: "◉"; }
.icon-fa-key::before { content: "⌘"; }
.icon-fa-users-cog::before { content: "◍"; }
.icon-fa-balance-scale::before { content: "⚖"; }
.icon-fa-check-double::before { content: "✔✔"; font-size: 0.9em; }
.icon-fa-file-pdf::before { content: "PDF"; font-size: 0.72em; font-weight: 700; }
.icon-fa-life-ring::before { content: "◌"; }
.icon-fa-video::before { content: "▸"; }
.icon-fa-tasks::before { content: "☑"; }
.icon-fa-book::before { content: "▤"; }
.icon-fa-handshake::before { content: "⋈"; }
.icon-fa-scroll::before { content: "📜"; }
/* ========================================
   LANGUAGE SWITCHER STYLES
   ======================================== */

.language-switcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang-switch-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lang-switch-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.lang-switch-link:active {
  transform: translateY(0);
}

.flag-icon {
  font-size: 1.2rem;
  line-height: 1;
  display: inline-block;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", "EmojiOne Color", sans-serif;
}

.lang-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Animation au survol */
.lang-switch-link:hover .flag-icon {
  animation: wave 0.5s ease-in-out;
}

@keyframes wave {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-10deg);
  }
  75% {
    transform: rotate(10deg);
  }
}

/* Version mobile */
@media (max-width: 768px) {
  .lang-switch-link {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }
  
  .flag-icon {
    font-size: 1.1rem;
  }
  
  /* Masquer le texte sur très petit écran */
  @media (max-width: 576px) {
    .lang-label {
      display: none !important;
    }
  }
}

/* État actif (optionnel si vous voulez indiquer la langue courante) */
.lang-switch-link[data-lang="en"] {
  /* Styles spécifiques pour la version anglaise */
}

.lang-switch-link[data-lang="fr"] {
  /* Styles spécifiques pour la version française */
}

/* Intégration dans la navbar */
.navbar .language-switcher {
  margin-left: 0.5rem;
}

/* Mode desktop - aligner correctement avec le menu */
@media (min-width: 992px) {
  .navbar .language-switcher {
    margin-left: 1rem;
  }
}

/* Ajustement pour le mode collapse (mobile) */
@media (max-width: 991px) {
  .navbar-collapse .language-switcher {
    margin-top: 1rem;
    margin-left: 0;
  }
  
  .lang-switch-link {
    width: 100%;
    justify-content: center;
  }
}
