/* ============================================================
   GEOVENTURES — home.css (Direction Artistique Expert)
   Layout de l'accueil premium
   ============================================================ */

/* ============================================================
   HERO — Split editorial layout
   ============================================================ */
.hero {
  min-height: 85vh;
  background: var(--grad-navy);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Backgrounds layers */
.hero-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* HD Photo background — REMOVED (now per-slide via .hero-slide-bg) */

/* Dark overlay — on top of per-slide bg, below content */
.hero-bg-overlay {
  display: none;
}

.hero-grid-bg {
  z-index: 3;
}

.hero-grid-bg {
  background-image:
    linear-gradient(rgba(201,148,63,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,148,63,0.045) 1px, transparent 1px);
  background-size: 44px 44px;
}

.hero-glow-1 {
  background: radial-gradient(ellipse at 70% 40%, rgba(201,148,63,0.1) 0%, transparent 50%);
}

.hero-glow-2 {
  background: radial-gradient(ellipse at 20% 80%, rgba(0,42,110,0.6) 0%, transparent 50%);
}

.hero-noise {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.6;
}

canvas#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

/* Main hero slider */
.hero-slider-container {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Per-slide background image */
.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s ease, transform 6s ease;
  transform: scale(1.05);
}

.hero-slide.active .hero-slide-bg {
  opacity: 0.35;
  transform: scale(1.0); /* subtle Ken Burns effect */
}

/* Dark overlay inside each slide */
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0, 13, 36, 0.55) 0%,
    rgba(0, 20, 60, 0.35) 45%,
    rgba(0, 13, 36, 0.50) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
  pointer-events: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

/* Main hero grid */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: center;
  padding: calc(var(--header-h) + 2rem) 0 3rem;
  position: relative;
  z-index: 2;
}

/* Slider Controls */
.hero-controls {
  position: absolute;
  bottom: 2rem;
  left: 0; right: 0;
  z-index: 10;
}

.hero-dots {
  display: flex;
  gap: 0.75rem;
}

.hero-dot {
  width: 48px;
  height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--r-full);
  position: relative;
  overflow: hidden;
  transition: background var(--t-base);
}

.hero-dot::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0%;
  background: var(--grad-gold);
  border-radius: var(--r-full);
  transition: width 0.3s linear;
}

.hero-dot.active { background: rgba(255,255,255,0.4); }
.hero-dot.active::after { width: 100%; transition: width 6s linear; }

/* Stats Strip - Move outside slide */
.hero-stats-container {
  position: relative;
  z-index: 3;
  margin-top: -1rem;
  padding-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  opacity: 0;
  animation: fadeIn 0.8s ease 1.1s forwards;
}

/* ── Left column ── */
.hero-left { display: flex; flex-direction: column; }

/* Location label */
.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 2.5rem;
}

.hero-location-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-gold 2.5s ease-in-out infinite;
}

.hero-location-text {
  font-family: var(--f-sub);
  font-size: var(--label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.55);
}

/* Display headline — Stacked bold type */
.hero-display {
  margin-bottom: 1.75rem;
}

.hero-line {
  display: block;
  font-family: var(--f-display);
  font-size: var(--display);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--white);
  overflow: hidden;
}

.hero-line-inner {
  display: block;
  transform: translateY(100%);
  animation: slideUp 0.9s var(--ease-out) forwards;
}

.hero-line:nth-child(1) .hero-line-inner { animation-delay: 0.1s; }
.hero-line:nth-child(2) .hero-line-inner { animation-delay: 0.22s; }
.hero-line:nth-child(3) .hero-line-inner { animation-delay: 0.34s; }

/* 2nd line uses gradient gold */
.hero-line--gold .hero-line-inner {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

/* Gold divider + Slogan */
.hero-sep {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero-sep-line {
  width: 52px;
  height: 2px;
  background: var(--grad-gold);
  border-radius: var(--r-full);
  flex-shrink: 0;
}

.hero-slogan {
  font-family: var(--f-sub);
  font-style: italic;
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.02em;
}

/* Hero description */
.hero-desc {
  font-size: var(--body-lg);
  color: rgba(255,255,255,0.62);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.75s forwards;
}

/* CTA buttons */
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.9s forwards;
}

/* Stats strip - removed from left col */
  margin-right: 2.25rem;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.hero-stat:last-child { border-right: none; }

.hero-stat-num {
  display: block;
  font-family: var(--f-heading);
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.3rem;
}

.hero-stat-num sup {
  font-size: 0.7em;
  -webkit-text-fill-color: inherit;
}

.hero-stat-label {
  font-family: var(--f-sub);
  font-size: var(--label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.4);
}

/* ── Right column: Panel ── */
.hero-right {
  opacity: 0;
  animation: slideInRight 0.9s var(--ease-out) 0.4s forwards;
}

.hero-panel {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.35);
  position: relative;
}

.hero-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-gold);
}

/* Panel top image */
.hero-panel-img {
  aspect-ratio: 4/3;
  background: linear-gradient(160deg, #a8b4c2 0%, #7c8896 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.hero-panel-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,13,36,0.4) 0%, transparent 60%);
}

.hero-panel-img svg { width: 42px; height: 42px; color: rgba(255,255,255,0.4); z-index: 1; }
.hero-panel-img span { font-family: var(--f-sub); font-size: var(--body-sm); color: rgba(255,255,255,0.5); z-index: 1; }

/* Panel badge (floating on image) */
.hero-panel-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 2;
  background: rgba(0,13,36,0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-sm);
  padding: 0.5rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-panel-badge-dot {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-green 2s ease-in-out infinite;
}

.hero-panel-badge span {
  font-family: var(--f-sub);
  font-size: var(--label);
  font-weight: 600;
  color: rgba(255,255,255,0.85) !important;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Panel services list */
.hero-panel-services {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-psvc {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.9rem;
  background: rgba(255,255,255,0.04);
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,0.06);
  transition: background var(--t-fast);
  cursor: pointer;
}

.hero-psvc:hover { background: rgba(255,255,255,0.09); }

.hero-psvc-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-psvc-icon svg { width: 18px; height: 18px; }

.hero-psvc-name {
  font-family: var(--f-sub);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  flex: 1;
}

.hero-psvc-arr {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.3);
  transition: color var(--t-fast);
}

.hero-psvc:hover .hero-psvc-arr { color: var(--gold); }

/* ============================================================
   SCROLL INDICATOR
   ============================================================ */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  right: 3rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 0.8s ease 1.5s forwards;
}

.hero-scroll-label {
  font-family: var(--f-sub);
  font-size: var(--label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.35);
  writing-mode: vertical-rl;
}

.hero-scroll-mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 11px;
  position: relative;
}

.hero-scroll-wheel {
  width: 4px;
  height: 6px;
  background: var(--gold);
  border-radius: var(--r-full);
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0%   { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(14px); opacity: 0; }
}

/* ============================================================
   SECTION INTRO BAND — Dark editorial
   ============================================================ */
.intro-band {
  background: var(--navy-deep);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.intro-band::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 4px;
  height: 100%;
  background: var(--grad-gold);
}

.intro-band-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.intro-band-tagline {
  font-family: var(--f-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.intro-band-tagline em {
  font-style: normal;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intro-band-right { display: flex; flex-direction: column; gap: 1.5rem; }

.intro-band-stat {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.intro-band-stat:last-child { border-bottom: none; padding-bottom: 0; }

.ibs-num {
  font-family: var(--f-heading);
  font-size: 1.6rem;
  font-weight: 900;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  flex-shrink: 0;
  min-width: 64px;
}

.ibs-desc {
  font-family: var(--f-sub);
  font-size: var(--body-sm);
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

/* ============================================================
   SERVICES EDITORIAL SECTION
   ============================================================ */
.srv-section { padding: var(--sec-py) 0; }

.srv-section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 3.5rem;
}

.srv-section-right p {
  font-size: var(--body-lg);
  color: var(--text-secondary);
  line-height: 1.8;
}

.srv-list { border-top: 1px solid var(--border); }

/* ============================================================
   STATS SECTION — Full width mega
   ============================================================ */
.stats-section {
  background: var(--grad-navy);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(201,148,63,0.06) 0%, transparent 55%),
    linear-gradient(rgba(201,148,63,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,148,63,0.025) 1px, transparent 1px);
  background-size: auto, 50px 50px, 50px 50px;
}

.stats-section .container { position: relative; z-index: 1; }

/* ============================================================
   ABOUT BRIEF
   ============================================================ */
.about-brief-section { padding: var(--sec-py) 0; background: var(--off-white); }

.about-brief-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-brief-visual { position: relative; }

.about-brief-img-main {
  aspect-ratio: 3/4;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, #c0c8d4 0%, #8e97a8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
}

.about-brief-img-main svg { width: 44px; height: 44px; color: rgba(255,255,255,0.5); }
.about-brief-img-main span { font-family: var(--f-sub); font-size: var(--body-sm); color: rgba(255,255,255,0.55); }

/* Floating badge */
.ab-badge {
  position: absolute;
  top: 2rem;
  right: -2rem;
  background: var(--white);
  border-radius: var(--r-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-xl);
  border-bottom: 3px solid var(--gold);
  min-width: 160px;
}

.ab-badge-num {
  font-family: var(--f-heading);
  font-size: 2.2rem;
  font-weight: 900;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  display: block;
  margin-bottom: 0.3rem;
}

.ab-badge-label {
  font-family: var(--f-sub);
  font-size: var(--label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.about-brief-img-main .ab-badge-label {
  color: var(--navy);
}

/* Second floating badge */
.ab-badge-2 {
  position: absolute;
  bottom: 2.5rem;
  left: -2rem;
  background: var(--nav-deep);
  background: var(--navy);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ab-badge-2-icon {
  width: 40px;
  height: 40px;
  background: rgba(201,148,63,0.15);
  border-radius: var(--r-xs);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ab-badge-2-icon svg { width: 20px; height: 20px; color: var(--gold); }
.ab-badge-2-text { display: flex; flex-direction: column; }

.ab-badge-2-val {
  font-family: var(--f-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.ab-badge-2-lbl {
  font-family: var(--f-sub);
  font-size: var(--label);
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================
   PROJECTS MASONRY
   ============================================================ */
.projects-section { padding: var(--sec-py) 0; }

.projects-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 1.5rem;
}

.proj-grid .proj-card:first-child {
  grid-column: 1 / 3;
  aspect-ratio: 2/1;
}

/* ============================================================
   ANIMATIONS (keyframes)
   ============================================================ */
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,148,63,0.5); }
  50%       { box-shadow: 0 0 0 8px rgba(201,148,63,0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); }
  .hero-stat { border-right: none; padding-right: 0; margin-right: 0; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 1rem; }
  .intro-band-grid { grid-template-columns: 1fr; gap: 3rem; }
  .srv-section-header { grid-template-columns: 1fr; gap: 1rem; }
  .about-brief-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-brief-visual { display: none; }
  .proj-grid .proj-card:first-child { grid-column: 1; aspect-ratio: 4/3; }
}

@media (max-width: 768px) {
  .hero-grid { padding: calc(var(--header-h) + 2.5rem) 0 2rem; }
  .hero-display { margin-bottom: 1.25rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .projects-section-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .proj-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}
