/* ============================================================
   LE TERRE — Site vitrine luxe/chic
   Thème : planète Terre, glassmorphism, animations fluides
   ============================================================ */

:root {
  --bg-deep: #050914;
  --bg-mid: #0b1220;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.18);
  --text: #eaf2ff;
  --text-muted: #a8b8d4;
  --accent: #60a5fa;
  --accent-2: #7dd3fc;
  --gold: #e8c87a;
  --radius: 20px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font-display: "Georgia", "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(96, 165, 250, 0.16), transparent 60%),
    radial-gradient(900px 700px at 10% 110%, rgba(125, 211, 252, 0.10), transparent 55%),
    radial-gradient(700px 500px at 50% 40%, rgba(37, 99, 235, 0.08), transparent 60%);
  z-index: -2;
  pointer-events: none;
}

/* Étoiles */
.stars {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 70% 20%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 40% 70%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 85% 60%, rgba(255,255,255,0.4), transparent),
    radial-gradient(2px 2px at 60% 85%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 10% 80%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 50% 10%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 90% 90%, rgba(255,255,255,0.6), transparent);
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* ============ NAVBAR (transparente) ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 5%;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

.navbar.scrolled {
  background: rgba(8, 12, 24, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
  padding: 12px 5%;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.logo-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(96,165,250,0.45));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  color: var(--text);
  opacity: 0.85;
  position: relative;
  transition: opacity 0.3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.35s ease;
}

.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { opacity: 1; }
.nav-links a.active::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 5% 80px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  line-height: 1.1;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero h1 .grad {
  background: linear-gradient(120deg, #7dd3fc, #60a5fa 45%, #e8c87a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 60px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(120deg, #3b82f6, #2563eb);
  color: #fff;
  box-shadow: 0 12px 34px rgba(59,130,246,0.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(59,130,246,0.55); }

.btn-ghost {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  color: var(--text);
}
.btn-ghost:hover { background: var(--glass-strong); transform: translateY(-3px); }

/* Globe 3D */
.globe-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.globe {
  width: min(420px, 78vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #7dd3fc 0%, #2563eb 32%, #0b3a91 58%, #081730 82%, #050914 100%);
  box-shadow:
    0 0 80px rgba(59,130,246,0.55),
    inset -30px -30px 70px rgba(0,0,0,0.55),
    inset 20px 20px 60px rgba(125,211,252,0.25);
  position: relative;
  animation: float 7s ease-in-out infinite;
  overflow: hidden;
}

.globe::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 25% 25%, rgba(255,255,255,0.35), transparent 40%);
}

.globe::after {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 55% 22% at 40% 28%, rgba(34,197,94,0.28), transparent 60%),
    radial-gradient(ellipse 40% 18% at 62% 48%, rgba(34,197,94,0.22), transparent 60%),
    radial-gradient(ellipse 50% 20% at 35% 68%, rgba(34,197,94,0.2), transparent 60%);
  animation: spinGlobe 22s linear infinite;
}

.globe-ring {
  position: absolute;
  width: 118%;
  height: 118%;
  border: 1px solid rgba(125,211,252,0.35);
  border-radius: 50%;
  animation: spinGlobe 16s linear infinite reverse;
}

.globe-ring::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 14px var(--accent-2);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-22px); }
}
@keyframes spinGlobe {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============ SECTIONS COMMUNES ============ */
section { padding: 90px 5%; }

.section-head {
  max-width: 720px;
  margin: 0 auto 60px;
  text-align: center;
}

.section-head .eyebrow {
  font-size: 0.78rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 500;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Cartes verre */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 36px 30px;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, background 0.4s ease;
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  transform: translateY(-10px) rotateX(3deg) rotateY(3deg);
  box-shadow: var(--shadow);
  background: var(--glass-strong);
}

/* Grille features */
.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(96,165,250,0.15);
  margin-bottom: 20px;
}
.feature-icon svg { width: 30px; height: 30px; stroke: var(--accent-2); }

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Section stats */
.stats-band {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat {
  text-align: center;
  padding: 34px 20px;
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  background: linear-gradient(120deg, #7dd3fc, #e8c87a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .lbl { color: var(--text-muted); font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase; margin-top: 6px; }

/* ============ CITATION / IMAGE SPLIT ============ */
.split {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.split-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--glass-border);
}
.split-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.split-img:hover img { transform: scale(1.05); }
.split h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 500;
  margin-bottom: 20px;
}
.split p { color: var(--text-muted); margin-bottom: 16px; }

/* Liste puces */
.check-list { list-style: none; margin-top: 20px; }
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  color: var(--text);
}
.check-list li svg { width: 22px; height: 22px; stroke: var(--accent-2); flex-shrink: 0; margin-top: 2px; }

/* ============ GALERIE ============ */
.gallery-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--glass-border);
  cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .cap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  background: linear-gradient(transparent 55%, rgba(0,0,0,0.7));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery-item:hover .cap { opacity: 1; }
.gallery-item .cap span { font-size: 0.95rem; letter-spacing: 0.5px; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(3,6,14,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox.active { opacity: 1; }
.lightbox img { max-width: 90%; max-height: 90%; object-fit: contain; border-radius: 10px; }
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
}

/* ============ CONTACT ============ */
.contact-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}
.contact-info-card { padding: 40px; }
.contact-info-card h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 16px;
}
.contact-info-card > p { color: var(--text-muted); margin-bottom: 30px; }

.contact-row {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
}
.contact-row .ic {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(96,165,250,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-row .ic svg { width: 22px; height: 22px; stroke: var(--accent-2); }
.contact-row .k { font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }
.contact-row .v { font-size: 1.05rem; }

.form-card { padding: 40px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color 0.3s, background 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.08);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-note { margin-top: 14px; font-size: 0.9rem; color: var(--accent-2); }
.form-error { margin-top: 14px; font-size: 0.9rem; color: #f87171; }

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 60px 5% 30px;
  background: rgba(5,9,20,0.6);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}
.footer h4 {
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.footer .logo { margin-bottom: 16px; }
.footer p, .footer a { color: var(--text-muted); font-size: 0.95rem; }
.footer a:hover { color: var(--text); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ============ ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: revealFallback 0.9s ease 0.35s forwards;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes revealFallback {
  to { opacity: 1; transform: translateY(0); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .globe-wrap { order: -1; }
  .globe { width: min(320px, 70vw); }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 78%;
    max-width: 320px;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    background: rgba(8,12,24,0.96);
    backdrop-filter: blur(20px);
    transition: right 0.4s ease;
    box-shadow: -20px 0 60px rgba(0,0,0,0.5);
  }
  .nav-links.open { right: 0; }
  .hamburger { display: flex; }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  section { padding: 64px 5%; }
  .hero { padding-top: 100px; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; gap: 14px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .btn { padding: 13px 24px; font-size: 0.9rem; }
}
