/*
Theme Name:   Kosmoss
Theme URI:    https://kosmoss.ca
Description:  Thème enfant de Twenty Twenty-Five — Convergence des Esprits : Humanité et IA en Symbiose
Author:       Kosmoss
Author URI:   https://kosmoss.ca
Template:     twentytwentyfive
Version:      1.0.0
Text Domain:  kosmoss
Tags:         ai, futuristic, bilingual, dark
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
*/

/* =========================================================
   KOSMOSS — Variables globales
   ========================================================= */
:root {
  --k-bg-deep:       #020818;
  --k-bg-dark:       #0a0f1e;
  --k-bg-card:       rgba(255,255,255,0.025);
  --k-cyan:          #00d4ff;
  --k-cyan-dim:      rgba(0, 212, 255, 0.15);
  --k-cyan-glow:     rgba(0, 212, 255, 0.35);
  --k-gold:          #ffb400;
  --k-gold-dim:      rgba(255, 180, 0, 0.12);
  --k-white:         #ffffff;
  --k-white-60:      rgba(255,255,255,0.60);
  --k-white-40:      rgba(255,255,255,0.40);
  --k-white-25:      rgba(255,255,255,0.25);
  --k-border-cyan:   rgba(0, 212, 255, 0.18);
  --k-border-gold:   rgba(255, 180, 0, 0.30);
  --k-font-display:  'Orbitron', sans-serif;
  --k-font-body:     'Exo 2', sans-serif;
  --k-radius-sm:     4px;
  --k-radius-md:     8px;
  --k-radius-lg:     12px;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

body.k-body {
  background: var(--k-bg-deep);
  color: var(--k-white);
  font-family: var(--k-font-body);
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Neutraliser COMPLÈTEMENT TT25 */
.wp-site-blocks        { padding: 0 !important; margin: 0 !important; }
.site-header           { display: none !important; }
.wp-block-template-part { display: none !important; }
header.wp-block-template-part { display: none !important; }

/* =========================================================
   HERO — fixe pendant l'animation
   ========================================================= */
.k-hero {
  position: fixed;        /* fixe au lieu de relative ! */
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--k-bg-deep);
}

/* Vidéo background */
.k-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.98;
  z-index: 0;
}

/* Overlays */
.k-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(2,8,24,0.78) 0%,
    rgba(4,18,48,0.50) 50%,
    rgba(2,8,24,0.30) 100%
  );
  z-index: 1;
}

.k-hero__overlay-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(to top, var(--k-bg-deep) 0%, transparent 100%);
  z-index: 2;
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.k-nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px 12px;
}

.k-page .k-nav {
  background: var(--k-bg-dark);
  border-bottom: 1px solid rgba(0,212,255,0.1);
}

.k-logo {
  font-family: var(--k-font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--k-white);
  letter-spacing: 4px;
  text-decoration: none;
  text-shadow: 0 0 24px rgba(80,160,255,0.8);
}
.k-logo__accent { color: var(--k-cyan); }

.k-logo img {
  height: 80px;
  width: auto;
}

.k-nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.k-nav__item {
  color: var(--k-white-60);
  font-size: 13px;
  font-family: var(--k-font-body);
  padding: 5px 12px;
  cursor: pointer;
  text-decoration: none;
  border-radius: var(--k-radius-sm);
  transition: color 0.2s, background 0.2s;
}
.k-nav__item:hover { color: var(--k-white); background: rgba(255,255,255,0.06); }

.k-lang-btn {
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.30);
  color: var(--k-cyan);
  padding: 4px 12px;
  border-radius: var(--k-radius-sm);
  font-size: 11px;
  letter-spacing: 1px;
  cursor: pointer;
  font-family: var(--k-font-body);
  transition: all 0.2s;
}
.k-lang-btn.active,
.k-lang-btn:hover {
  background: rgba(0,212,255,0.22);
  border-color: var(--k-cyan);
}

.k-nav__menu { display: flex; align-items: center; gap: 2px; }
.k-nav__menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.k-nav__menu li { margin: 0; }

/* =========================================================
   HERO BODY — Contenu + Avatar
   ========================================================= */
.k-hero__body {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  padding: 0 48px;
  gap: 24px;
}

.k-hero__left { flex: 1; padding-bottom: 24px; }

.k-eyebrow {
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--k-cyan);
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0.9;
}

.k-hero__title {
  font-family: var(--k-font-display);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  color: var(--k-white);
  line-height: 1.2;
  margin-bottom: 10px;
  text-shadow: 0 2px 28px rgba(0,100,255,0.4);
}

.k-hero__subtitle {
  font-size: 14px;
  color: var(--k-white-60);
  line-height: 1.65;
  margin-bottom: 8px;
  max-width: 380px;
}

.k-hero__date {
  font-size: 11px;
  color: rgba(0,212,255,0.65);
  margin-bottom: 26px;
  letter-spacing: 1px;
}

/* Boutons CTA */
.k-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.k-btn {
  padding: 10px 22px;
  border-radius: var(--k-radius-sm);
  font-size: 13px;
  font-family: var(--k-font-body);
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  border: none;
}
.k-btn--primary {
  background: var(--k-cyan-dim);
  border: 1px solid var(--k-cyan);
  color: var(--k-cyan);
}
.k-btn--primary:hover { background: rgba(0,212,255,0.28); color: var(--k-white); }

.k-btn--secondary {
  background: var(--k-gold-dim);
  border: 1px solid var(--k-border-gold);
  color: var(--k-gold);
}
.k-btn--secondary:hover { background: rgba(255,180,0,0.24); }

.k-btn--ghost {
  background: transparent;
  border: 1px solid var(--k-white-25);
  color: var(--k-white-60);
}
.k-btn--ghost:hover { color: var(--k-white); border-color: var(--k-white-60); }

/* =========================================================
   AVATAR STICKY — overlay sur tout le site
   ========================================================= */
.k-avatar-overlay {
  position: fixed;
  bottom: 0;
  right: 48px;
  width: 480px;
  height: 480px;
  z-index: 100;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#k-animation-box {
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom center;
  filter: drop-shadow(0 0 20px rgba(0,212,255,0.38));
  opacity: 0;
  transition: opacity 0.4s ease;
}

#k-animation-box.k-loaded { opacity: 1; }

/* =========================================================
   SCROLL LOCK — le hero reste visible pendant l'animation
   ========================================================= */
.k-scroll-lock {
  height: 900px;
  position: relative;
  z-index: 0;
  pointer-events: none;
  background: transparent;
}

/* =========================================================
   CONTENU PRINCIPAL — apparaît après le scroll-lock
   ========================================================= */
.k-main-content {
  position: relative;
  z-index: 20;
  background: var(--k-bg-deep);
  /* min-height: 100vh;  ← retirer cette ligne */
}

.k-content p:empty {
  display: none;
}

.k-content p.wp-block-paragraph {
  margin: 0 0 12px 0;
}

/* =========================================================
   BARRE DE PRÉ-CHARGEMENT / CONSENTEMENT
   ========================================================= */
.k-preload-bar {
  position: relative;
  z-index: 20;
  background: rgba(2,8,24,0.96);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 48px;
  border-top: 1px solid rgba(0,212,255,0.12);
  border-bottom: 1px solid rgba(0,212,255,0.06);
  flex-wrap: wrap;
  gap: 8px;
}

.k-preload__detect { display: flex; gap: 20px; flex-wrap: wrap; }

.k-preload__item {
  font-size: 10px;
  color: rgba(0,212,255,0.65);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--k-font-body);
}

.k-preload__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--k-cyan);
  animation: k-pulse 2s infinite;
}

@keyframes k-pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

.k-preload__disclaimer {
  font-size: 10px;
  color: rgba(255,255,255,0.28);
  font-family: var(--k-font-body);
}

.k-preload__disclaimer a {
  color: rgba(0,212,255,0.5);
  text-decoration: none;
}
.k-preload__disclaimer a:hover { color: var(--k-cyan); }

/* =========================================================
   VAGUE DE TRANSITION
   ========================================================= */
.k-wave {
  background: var(--k-bg-deep);
  line-height: 0;
  overflow: hidden;
}
.k-wave svg { display: block; width: 100%; }

/* =========================================================
   SECTION RESSOURCES
   ========================================================= */
.k-section {
  background: var(--k-bg-dark);
  padding: 48px 48px 20px; /* réduit le padding du bas */
}

.k-section__title {
  font-family: var(--k-font-display);
  font-size: 12px;
  color: var(--k-cyan);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.k-section__intro {
  font-size: 14px;
  color: var(--k-white-60);
  margin-bottom: 28px;
  max-width: 560px;
}

.k-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.k-card {
  background: var(--k-bg-card);
  border: 1px solid var(--k-border-cyan);
  border-radius: var(--k-radius-md);
  padding: 20px;
  cursor: pointer;
  text-decoration: none;
  display: block;
  transition: all 0.22s;
}
.k-card:hover {
  border-color: rgba(0,212,255,0.40);
  background: rgba(0,212,255,0.04);
  transform: translateY(-2px);
}

.k-card__icon {
  font-size: 22px;
  color: var(--k-cyan);
  margin-bottom: 10px;
  display: block;
}

.k-card__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--k-white);
  margin-bottom: 6px;
}

.k-card__desc {
  font-size: 12px;
  color: var(--k-white-40);
  line-height: 1.5;
}

.k-tag {
  display: inline-block;
  background: rgba(255,180,0,0.08);
  border: 1px solid rgba(255,180,0,0.28);
  color: var(--k-gold);
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 3px;
  margin-top: 10px;
  letter-spacing: 1px;
  font-family: var(--k-font-body);
}

/* =========================================================
   FOOTER
   ========================================================= */
.k-footer {
  position: relative;
  z-index: 20;
  background: #050a18;
  border-top: 1px solid rgba(0,212,255,0.12);
  padding: 48px 48px 20px;
}

.k-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.k-footer__tagline {
  font-size: 12px;
  color: var(--k-white-40);
  margin-top: 10px;
  max-width: 240px;
}

.k-footer__title {
  font-family: var(--k-font-display);
  font-size: 11px;
  color: var(--k-cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.k-footer__col a {
  display: block;
  color: var(--k-white-60);
  font-size: 13px;
  text-decoration: none;
  margin-bottom: 8px;
}
.k-footer__col a:hover { color: var(--k-cyan); }

.k-newsletter { display: flex; gap: 6px; }
.k-newsletter input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(0,212,255,0.2);
  color: var(--k-white);
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 12px;
  flex: 1;
  min-width: 0;
}
.k-newsletter button {
  background: var(--k-cyan-dim);
  border: 1px solid var(--k-cyan);
  color: var(--k-cyan);
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.k-footer__social { display: flex; gap: 10px; }
.k-footer__social a {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 50%;
  color: var(--k-cyan);
  font-size: 14px;
}
.k-footer__social a:hover { background: rgba(0,212,255,0.1); }

.k-footer__bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 11px;
  color: var(--k-white-25);
}
.k-footer__bottom a { color: var(--k-white-25); text-decoration: none; }
/* =========================================================
   SECTION-content
   ========================================================= */
.k-section--content {
  position: relative;
  z-index: 20;
  background: var(--k-bg-dark);
  padding: 20px 48px 48px; /* réduit le padding du haut */
}

.k-content {
  max-width: 800px;
  margin: 0 auto;
  color: var(--k-white-60);
  font-size: 15px;
  line-height: 1.8;
}

.k-content h2, .k-content h3 {
  font-family: var(--k-font-display);
  color: var(--k-cyan);
  margin-top: 24px;
  margin-bottom: 12px;
}

.k-content p { margin-bottom: 16px; }

.k-content a { color: var(--k-cyan); text-decoration: underline; }


/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
  .k-footer__top { grid-template-columns: 1fr; }
  .k-footer__bottom { flex-direction: column; gap: 10px; }
  .k-nav { padding: 16px 20px 8px; }
  .k-hero__body { flex-direction: column; align-items: flex-start; padding: 0 20px; bottom: 40px; }
  .k-hero__right { width: 100%; height: 240px; order: -1; }
  .k-hero__title { font-size: 24px; }
  .k-section { padding: 28px 20px; }
  .k-preload-bar { padding: 8px 20px; }
  .k-preload__detect { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  #k-animation-box { transition: none; }
  .k-preload__dot { animation: none; }
}
