/* =============================================
   KIZA — index.css
   Home hub page styles
   ============================================= */

/* ── HERO ── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 130px 52px 90px; overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(44, 95, 138, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 95, 138, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 180px; background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.hero-eyebrow {
  display: flex; align-items: center; gap: 10px; margin-bottom: 30px;
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--blue);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 8.5vw, 8.5rem);
  font-weight: 900; line-height: 0.97;
  margin-bottom: 30px; color: var(--navy);
  display: flex; flex-direction: column;
}
.hero-title .italic { font-style: italic; color: var(--blue); }
.hero-sub {
  font-size: 1.02rem; color: var(--slate); line-height: 1.75;
  margin-bottom: 44px; font-weight: 300;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute; bottom: 44px; left: 52px; z-index: 2;
}

/* ── SECTIONS HUB ── */
.sections-hub {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 2px;
  border-top: 1px solid var(--border);
}

.hub-card {
  position: relative; overflow: hidden;
  text-decoration: none; color: inherit;
  background: var(--bg-soft);
  transition: background 0.3s;
  display: block;
}
.hub-card:hover { background: var(--bg-mid); }
.hub-card:nth-child(even) { background: var(--bg); }
.hub-card:nth-child(even):hover { background: var(--bg-soft); }
/* ── HUB CARD STAGGER ANIMATION ── */
.sections-hub .hub-card.reveal-left:nth-child(1) { transition-delay: 0ms; }
.sections-hub .hub-card.reveal-left:nth-child(2) { transition-delay: 120ms; }
.sections-hub .hub-card.reveal-left:nth-child(3) { transition-delay: 240ms; }
.sections-hub .hub-card.reveal-left:nth-child(4) { transition-delay: 360ms; }
.sections-hub .hub-card.reveal-left:nth-child(5) { transition-delay: 480ms; }


/* last card spans full width */
.hub-full {
  grid-column: 1 / -1;
  background: var(--navy) !important;
  color: var(--white);
}
.hub-full:hover { background: var(--navy-soft) !important; }
.hub-full .hub-label { color: rgba(255,255,255,0.5); }
.hub-full .hub-title { color: var(--white); }
.hub-full .hub-desc  { color: rgba(255,255,255,0.6); }
.hub-full .hub-num   { color: rgba(255,255,255,0.15); }
.hub-full .hub-icon  { color: rgba(255,255,255,0.6); }
.hub-full .hub-arrow { color: rgba(255,255,255,0.5); }
.hub-full .hub-bg-word { color: rgba(255,255,255,0.04); }
.hub-full:hover .hub-bg-word { color: rgba(255,255,255,0.07); }

.hub-card-inner {
  position: relative; z-index: 2;
  padding: 44px 40px;
  display: flex; flex-direction: column;
  min-height: 320px;
}
.hub-full .hub-card-inner {
  min-height: auto; padding: 52px;
  display: grid; grid-template-columns: auto auto 1fr auto;
  grid-template-rows: auto;
  align-items: center; gap: 40px;
}
.hub-full .hub-num   { grid-row: 1; align-self: start; padding-top: 4px; }
.hub-full .hub-icon  { grid-row: 1; }
.hub-full .hub-text  { grid-row: 1; }
.hub-full .hub-arrow { grid-row: 1; align-self: end; }
.hub-full .hub-bg-word { bottom: -30px; font-size: 14rem; }

.hub-num {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700;
  color: rgba(44, 95, 138, 0.2);
  margin-bottom: 32px; letter-spacing: 0.1em;
}
.hub-icon {
  width: 48px; height: 48px; color: var(--blue);
  margin-bottom: 24px;
  transition: transform 0.35s var(--ease-out);
}
.hub-icon svg { width: 100%; height: 100%; }
.hub-card:hover .hub-icon { transform: scale(1.08) rotate(4deg); }

.hub-text { flex: 1; }
.hub-label {
  display: block; font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 8px;
}
.hub-title {
  font-family: var(--font-display); font-size: 1.9rem;
  font-weight: 700; color: var(--navy); line-height: 1.1;
  margin-bottom: 12px;
}
.hub-desc {
  font-size: 0.87rem; color: var(--muted);
  line-height: 1.65;
}
.hub-arrow {
  width: 24px; height: 24px; color: var(--muted);
  align-self: flex-end; margin-top: 28px;
  transition: color 0.22s, transform 0.3s var(--ease-out);
}
.hub-arrow svg { width: 100%; height: 100%; }
.hub-card:hover .hub-arrow { color: var(--blue); transform: translate(4px, -4px); }
.hub-full:hover .hub-arrow  { color: rgba(255,255,255,0.8); transform: translate(4px, -4px); }

.hub-bg-word {
  position: absolute; bottom: 0; right: 8px;
  font-family: var(--font-display); font-size: 7rem; font-weight: 900;
  color: rgba(44, 95, 138, 0.05); line-height: 0.85;
  pointer-events: none; user-select: none;
  transition: color 0.35s;
  overflow: hidden;
  max-width: 100%;
}
.hub-card { overflow: hidden; }
.hub-card:hover .hub-bg-word { color: rgba(44, 95, 138, 0.09); }

/* ── VISION ── */
.vision-section {
  padding: 96px 52px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.vision-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.vision-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 400; font-style: normal;
  line-height: 1.5; color: var(--navy);
  margin-top: 20px;
}
.vision-quote em { font-style: italic; color: var(--blue); }

/* ── INDEX CONTACT ── */
.index-contact { padding: 100px 52px; }
.index-contact-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
}
.index-contact-sub {
  font-size: 1rem; color: var(--slate); line-height: 1.75;
  margin-bottom: 36px;
}
.contact-btn-large {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 40px; background: transparent;
  border: 1px solid var(--border-blue); color: var(--blue);
  font-family: var(--font-mono); font-size: 0.78rem;
  letter-spacing: 0.06em; text-decoration: none;
  transition: background 0.22s, transform 0.2s var(--ease-out);
}
.contact-btn-large svg { width: 18px; height: 18px; transition: transform 0.22s var(--ease-out); }
.contact-btn-large:hover { background: rgba(44, 95, 138, 0.07); transform: translateY(-2px); }
.contact-btn-large:hover svg { transform: translate(3px, -3px); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .sections-hub { grid-template-columns: repeat(2, 1fr); }
  .hub-full .hub-card-inner {
    grid-template-columns: auto 1fr auto; gap: 24px;
  }
  .hub-full .hub-icon { display: none; }
}
@media (max-width: 960px) {
  .hero { padding: 110px 24px 70px; }
  .hero-scroll { left: 24px; bottom: 28px; }
  .vision-section, .index-contact { padding: 72px 24px; }
  .index-contact-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .sections-hub { grid-template-columns: 1fr; }
  .hub-full .hub-card-inner { grid-template-columns: auto 1fr; }
  .hub-full .hub-arrow { display: none; }
  .hub-card-inner { min-height: auto; padding: 36px 28px; }
}

/* ── DIPLOME ICON IMG ── */
.diplome-icon-img {
  display: block;
  width: 48px; height: 48px;
  object-fit: contain;
  opacity: 0.65;
  filter: invert(0.3) sepia(1) saturate(1.5) hue-rotate(190deg);
}

/* ── CITATION CREDIT ── */
.vision-cite {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  font-style: normal;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 20px;
}

/* ── TRAIL CARD — full width, bleu marine doux ── */
.hub-trail-split {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hub-trail.hub-full.hub-trail-split {
  background: #2C4A6E !important;
}
.hub-trail.hub-full.hub-trail-split:hover {
  background: #335580 !important;
}
.hub-trail-main {
  display: block;
  flex: 1;
  text-decoration: none;
  color: inherit;
  padding: 0;
  position: relative;
}
.hub-trail-content {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 40px 48px;
}
.hub-trail-left { display: contents; }
.hub-trail-instagram {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 48px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.15);
  transition: background 0.2s, color 0.2s;
}
.hub-trail-instagram:hover { background: rgba(0,0,0,0.28); color: #fff; }
.hub-trail-ig-icon { width: 18px; height: 18px; flex-shrink: 0; }
.hub-trail-main .hub-icon   { color: rgba(255,255,255,0.85) !important; }
.hub-trail-main .hub-num    { color: rgba(255,255,255,0.15) !important; }
.hub-trail-main .hub-label  { color: rgba(255,255,255,0.5) !important; }
.hub-trail-main .hub-title  { color: #fff !important; }
.hub-trail-main .hub-desc   { color: rgba(255,255,255,0.6) !important; }
.hub-trail-main .hub-arrow  { color: rgba(255,255,255,0.5) !important; }
.hub-trail-main:hover .hub-arrow { color: #fff !important; }

/* ── CONTACT BLOCS — shift left ── */
.contact-blocs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 32px;
  max-width: 640px;
}
.contact-bloc {
  padding: 24px 28px;
  background: var(--bg-soft, #F4F6FA);
  border: 1px solid var(--border, rgba(44,95,138,0.12));
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: background 0.2s, border-color 0.2s;
}
.contact-bloc:hover {
  background: rgba(44,95,138,0.06);
  border-color: var(--border-blue, rgba(44,95,138,0.25));
}
.contact-bloc-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue, #2C5F8A);
}
.contact-bloc-desc {
  font-size: 0.85rem;
  color: var(--muted, #7A90A8);
  line-height: 1.5;
}
.contact-bloc-email {
  font-family: 'Space Mono', monospace;
  font-size: 0.67rem;
  color: var(--navy, #152238);
  text-decoration: none;
  border-bottom: 1px solid var(--border-blue, rgba(44,95,138,0.3));
  padding-bottom: 2px;
  align-self: flex-start;
  transition: border-color 0.2s, color 0.2s;
  margin-top: 4px;
}
.contact-bloc-email:hover { color: var(--blue); border-color: var(--blue); }

@media (max-width: 700px) {
  .contact-blocs { grid-template-columns: 1fr; max-width: 100%; }
  .hub-trail-main { grid-template-columns: auto 1fr auto; padding: 28px 24px; gap: 16px; }
  .hub-trail-main .hub-num { display: none; }
  .hub-trail-instagram { padding: 14px 24px; }
}

/* ── BADGE BIENTÔT ── */
.hub-soon {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--blue, #2C5F8A);
  color: #fff;
  padding: 2px 7px;
  vertical-align: middle;
  margin-left: 8px;
  position: relative;
  top: -1px;
}
.hub-soon-light {
  background: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
}

/* ── ICON + BADGE WRAPPER ── */
.hub-icon-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  grid-row: 1;
}
.hub-icon-wrap .hub-icon {
  flex-shrink: 0;
}
.hub-icon-wrap .hub-soon {
  align-self: center;
  margin-left: 0;
  top: 0;
}

/* ── KIZA TRAIL ICON + BADGE + TITLE ROW ── */
.hub-trail-icon-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.hub-trail-icon-row > .hub-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  color: rgba(255,255,255,0.85) !important;
}
.hub-trail-title-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.hub-title-trail {
  font-size: 2rem !important;
  margin: 0 !important;
  white-space: nowrap;
  color: #fff !important;
}
