/* ============================================================
   CARIA v3 — Effects extras + overrides Kadence
   ============================================================ */

/* ----- BOUTONS : forcer le style Next.js (override Kadence) ----- */
.site-shell .button,
.site-shell a.button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 13px 26px !important;
  background: #00b5ad !important;
  color: #ffffff !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  border-radius: 8px !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(0, 181, 173, 0.3) !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: transform .2s, box-shadow .2s, background .2s !important;
}
.site-shell .button:hover,
.site-shell a.button:hover {
  background: #008c86 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0, 181, 173, 0.35) !important;
  color: #ffffff !important;
}
.site-shell .button-ghost,
.site-shell a.button-ghost {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 12px 24px !important;
  background: rgba(255,255,255,0.08) !important;
  color: #ffffff !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: transform .2s, background .2s !important;
}
.site-shell .button-ghost:hover,
.site-shell a.button-ghost:hover {
  background: rgba(255,255,255,0.16) !important;
  transform: translateY(-2px) !important;
  color: #ffffff !important;
}
.site-shell .button-white,
.site-shell a.button-white {
  display: inline-flex !important;
  padding: 12px 24px !important;
  background: #ffffff !important;
  color: #1b2d6b !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  border: none !important;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.15) !important;
}
.site-shell .button-text,
.site-shell a.button-text {
  padding: 0 !important;
  background: none !important;
  color: #00b5ad !important;
  font-size: 0.88rem !important;
  text-decoration: underline !important;
  text-underline-offset: 4px !important;
  border: none !important;
  box-shadow: none !important;
}

.site-shell .une-btn-nav { background: rgba(255,255,255,.2) !important; color: #fff !important; }

/* ----- HERO CONSTELLATION (canvas + halos) ----- */
.hero #neural-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  z-index: 1;
  pointer-events: none;
}
.hero .hero-glow {
  position: absolute;
  width: 1200px; height: 1200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 189, 217, 0.30) 0%, transparent 60%);
  top: -300px; right: -300px;
  pointer-events: none;
  z-index: 0;
}
.hero .hero-glow-2 {
  position: absolute;
  width: 900px; height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 63, 140, 0.22) 0%, transparent 60%);
  bottom: -200px; left: -200px;
  pointer-events: none;
  z-index: 0;
}
.hero .hero-glow-3 {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 193, 66, 0.18) 0%, transparent 60%);
  top: 30%; left: 40%;
  pointer-events: none;
  z-index: 0;
}

/* Hero-bg image : moins sombre */
.hero .hero-bg { z-index: 0; opacity: 1; }
.hero .hero-bg img {
  filter: brightness(0.92) saturate(0.95) !important;
  opacity: 0.85 !important;
}
.hero .hero-bg::after {
  background:
    linear-gradient(100deg,
      rgba(11, 22, 50, 0.72) 0%,
      rgba(11, 22, 50, 0.40) 48%,
      rgba(11, 22, 50, 0.12) 100%) !important;
}
.hero .hero-body { position: relative; z-index: 3; }

/* ----- HERO EYEBROW ----- */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border: 1px solid rgba(63, 189, 217, 0.35);
  border-radius: 100px;
  background: rgba(63, 189, 217, 0.10);
  font-family: "JetBrains Mono", "Manrope", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #3FBDD9;
  margin-bottom: 20px;
  animation: caria-fadeUp 0.8s 0.1s both;
}
.hero-eyebrow .pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #7BC142;
  box-shadow: 0 0 12px #7BC142;
  animation: caria-pulse 2s infinite;
}
@keyframes caria-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
@keyframes caria-fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----- PARALLAX CURSEUR ----- */
.program-card { position: relative; overflow: hidden; }
.program-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 200%;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 181, 173, 0.20), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 2;
}
.program-card:hover::before { opacity: 1; }
/* removed: .program-card > * forced relative was breaking .program-card-media */

.value-card { position: relative; overflow: hidden; }
.value-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 200%;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%),
    rgba(0, 181, 173, 0.14), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 0;
}
.value-card:hover::before { opacity: 1; }
.value-card > * { position: relative; z-index: 1; }

/* Skip-link accessibility (visible uniquement au focus clavier) */
.skip-link {
  position: absolute !important;
  left: -9999px !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  z-index: 9999;
}
.skip-link:focus {
  left: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 12px 20px !important;
  background: #1b2d6b !important;
  color: #fff !important;
  font-weight: 600 !important;
  border-radius: 0 0 8px 0 !important;
  text-decoration: none !important;
}

/* === Actualités : rapprocher les articles du hero === */

/* === Filtres redesign === */
.filter-bar {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
  margin-bottom: 32px !important;
  padding: 14px !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 20px rgba(27, 45, 107, 0.06), 0 1px 3px rgba(27, 45, 107, 0.04) !important;
  border: 1px solid rgba(0, 181, 173, 0.10) !important;
}
.filter-search input {
  border-radius: 10px !important;
  font-weight: 500 !important;
  background: #f5f8fc !important;
  border: 1px solid transparent !important;
}
.filter-search input:focus {
  background: #ffffff !important;
  border-color: #00b5ad !important;
}
.filter-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}
.filter-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 9px 18px !important;
  border: 1px solid rgba(27, 45, 107, 0.10) !important;
  border-radius: 999px !important;
  font-family: 'Manrope', sans-serif !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  color: #5a6a7e !important;
  background: #ffffff !important;
  cursor: pointer !important;
  transition: all .25s cubic-bezier(.22, .68, 0, 1.1) !important;
  position: relative !important;
  overflow: hidden !important;
}
.filter-tag::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 181, 173, 0.10), rgba(27, 45, 107, 0.06));
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.filter-tag:hover {
  border-color: rgba(0, 181, 173, 0.45) !important;
  color: #1b2d6b !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 181, 173, 0.12) !important;
}
.filter-tag:hover::before { opacity: 1; }
.filter-tag.is-active {
  background: linear-gradient(135deg, #1b2d6b 0%, #243580 100%) !important;
  border-color: #1b2d6b !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(27, 45, 107, 0.30) !important;
}
.filter-tag.is-active::before { opacity: 0; }
.filter-count {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 22px !important;
  height: 20px !important;
  padding: 0 7px !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  background: rgba(27, 45, 107, 0.08) !important;
  color: inherit !important;
  border-radius: 999px !important;
  letter-spacing: 0 !important;
}
.filter-tag.is-active .filter-count {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}
@media (max-width: 720px) {
  .filter-bar { flex-direction: column; align-items: stretch !important; }
  .filter-search { max-width: none !important; }
  .filter-tags { justify-content: flex-start; }
}

/* === Bouton de switch langue FR/EN === */
.lang-switch { display:inline-flex; align-items:center; gap:0; margin-left:16px; padding:4px; border:1px solid rgba(27,45,107,.12); border-radius:999px; background:rgba(255,255,255,.85); flex-shrink:0; }
.lang-btn { display:inline-flex !important; align-items:center !important; justify-content:center !important; padding:6px 14px !important; border:none !important; background:transparent !important; color:#5a6a7e !important; font-family:'Manrope',sans-serif !important; font-size:.78rem !important; font-weight:700 !important; letter-spacing:.04em !important; text-transform:uppercase !important; border-radius:999px !important; cursor:pointer !important; transition:all .25s !important; box-shadow:none !important; min-width:38px; }
.lang-btn:hover { color:#1b2d6b !important; background:rgba(27,45,107,.05) !important; }
.lang-btn.is-active { background:linear-gradient(135deg,#1b2d6b 0%,#243580 100%) !important; color:#ffffff !important; box-shadow:0 2px 8px rgba(27,45,107,.25) !important; }
.site-header.is-transparent .lang-switch { background:rgba(255,255,255,.10); border-color:rgba(255,255,255,.20); }
.site-header.is-transparent .lang-btn { color:rgba(255,255,255,.78) !important; }
.site-header.is-transparent .lang-btn:hover { color:#fff !important; background:rgba(255,255,255,.12) !important; }
.site-header.is-transparent .lang-btn.is-active { background:rgba(0,181,173,.85) !important; color:#fff !important; }
@media (max-width:820px) { .lang-switch { margin-left:8px; padding:3px; } .lang-btn { padding:5px 10px !important; font-size:.72rem !important; min-width:32px; } }
.goog-te-banner-frame, .skiptranslate { display:none !important; }
body { top:0 !important; }
#google_translate_element { display:none; }
font[style*='vertical-align'] { background:transparent !important; box-shadow:none !important; }


/* === Page-hero : effet cinematique subtil (blur leger + zoom out leger) === */
.page-hero { background: #0b163a !important; position: relative !important; overflow: hidden !important; }
.page-hero + .section { padding-top: 32px !important; }

/* Conteneur image : applique blur subtil + saturate boost + scale pour effet zoom arriere/profondeur */
.page-hero-bg {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  filter: blur(1px) saturate(1.1) !important;
  -webkit-filter: blur(1px) saturate(1.1) !important;
  opacity: 0.7 !important;
  transform: scale(0.96) !important;
}
.page-hero-editorial .page-hero-bg {
  filter: blur(1px) saturate(1.12) !important;
  -webkit-filter: blur(1px) saturate(1.12) !important;
  opacity: 0.78 !important;
  transform: scale(0.96) !important;
}

/* Image elle-meme : aucun filtre direct (le blur est sur le parent) */
.page-hero-bg img {
  opacity: 1 !important;
  filter: none !important;
  -webkit-filter: none !important;
  object-fit: cover !important;
  object-position: center center !important;
}
.page-hero-editorial .page-hero-bg img {
  opacity: 1 !important;
  filter: none !important;
  -webkit-filter: none !important;
}

/* Overlay degrade leger pour lisibilite du titre cote gauche */
.page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg,
    rgba(11, 22, 50, 0.45) 0%,
    rgba(11, 22, 50, 0.18) 45%,
    rgba(11, 22, 50, 0.0) 75%);
  pointer-events: none;
  z-index: 1 !important;
}

/* Le contenu du hero passe au-dessus */
.page-hero .container,
.page-hero-editorial .container { z-index: 2 !important; position: relative !important; }
