/* ============================================
   GoV Gen Z Madagascar — Site provisoire v1.0
   Design : cosmique militant — mode sombre
   ============================================ */

/* Variables : govgenz-tokens.css (chargé avant ce fichier) */

/* ===== RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html.ggz-public-theme {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body.ggz-public-theme {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Cosmic background grain */
body.ggz-public-theme::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(220, 38, 38, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(124, 45, 18, 0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

body.ggz-public-theme::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: overlay;
}

/* Liens et focus */
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease-out-expo);
}

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

:focus-visible {
  outline-offset: 4px;
  border-radius: 2px;
}

/* ===== BANDEAU PROVISOIRE ===== */
.provisoire-bar {
  background: linear-gradient(90deg, var(--red-deep) 0%, var(--red-primary) 50%, var(--red-deep) 100%);
  background-size: 200% 100%;
  animation: barShift 8s linear infinite;
  position: relative;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes barShift {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.provisoire-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: white;
}

.provisoire-bar__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: rgba(10, 10, 20, 0.75);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease-out-expo);
}

.header.is-scrolled {
  background: rgba(5, 5, 7, 0.92);
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header__logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(220, 38, 38, 0.3));
}

.header__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  line-height: 1;
  color: var(--text-bright);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header__title-sub {
  font-size: 0.7rem;
  color: var(--red-soft);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ===== NAV ===== */
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  gap: 2rem;
}

.nav a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s var(--ease-out-expo);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--red-primary);
  transition: all 0.3s var(--ease-out-expo);
  transform: translateX(-50%);
}

.nav a:hover {
  color: var(--text-bright);
}

.nav a:hover::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* Lang toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease-out-expo);
}

.lang-toggle:hover {
  border-color: var(--red-primary);
  color: var(--text-bright);
  background: rgba(220, 38, 38, 0.08);
}

a.lang-toggle {
  text-decoration: none;
  cursor: pointer;
}

.lang-toggle__label {
  color: var(--text-bright);
}

.lang-toggle__sep {
  color: var(--text-muted);
}

.lang-toggle__alt {
  color: var(--text-muted);
}

/* Menu burger (mobile) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  flex-shrink: 0;
  box-sizing: border-box;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-bright);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out-expo), opacity 0.2s ease;
  transform-origin: center;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4rem var(--gutter);
  z-index: 5;
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.hero__bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.18) 0%, transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

.hero__overline {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  color: var(--red-soft);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.1s forwards;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--text-bright);
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero__title-1, .hero__title-2 {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1s var(--ease-out-expo) forwards;
}

.hero__title-1 {
  animation-delay: 0.3s;
}

.hero__title-2 {
  animation-delay: 0.5s;
  background: linear-gradient(135deg, var(--red-soft) 0%, var(--red-primary) 50%, var(--red-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.hero__tagline {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-style: italic;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.5;
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out-expo) 0.7s forwards;
}

.hero__devise {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 3rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out-expo) 0.9s forwards;
}

.hero__devise-line {
  position: relative;
  display: inline-block;
}

.section__btn-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out-expo) 1.1s forwards;
}

/* Boutons site public uniquement (évite d’écraser Bootstrap dans l’admin) */
.ggz-public-theme .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-radius: 4px;
  transition: all 0.3s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.ggz-public-theme .btn--primary {
  background: var(--red-primary);
  color: var(--text-bright);
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.35);
}

.ggz-public-theme .btn--primary:hover {
  background: var(--red-glow);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(220, 38, 38, 0.5);
}

.ggz-public-theme .btn--ghost {
  background: transparent;
  color: var(--text-bright);
  border: 1px solid var(--border-strong);
}

.ggz-public-theme .btn--ghost:hover {
  border-color: var(--red-soft);
  background: rgba(220, 38, 38, 0.08);
  transform: translateY(-2px);
}

.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0;
  animation: fadeIn 1s var(--ease-out-expo) 1.5s forwards;
}

.hero__scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--text-muted) 0%, transparent 100%);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--red-soft);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { top: -50%; }
  100% { top: 100%; }
}

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

/* ===== SECTIONS ===== */
.section {
  position: relative;
  z-index: 5;
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.section__header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section__overline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--red-soft);
  margin-bottom: 1rem;
  display: inline-block;
  position: relative;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 100px;
  background: rgba(220, 38, 38, 0.05);
}

/* Titres de section / page (hero CMS, corps HTML, aperçu admin) */
.ggz-public-theme :is(h1, h2).section__title,
.ggz-public-theme :is(h1, h2).ggz-section-title,
.section__title {
  font-family: var(--font-display);
  font-size: var(--ggz-type-section-title);
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 400;
  text-transform: none;
  color: var(--text-bright);
  margin-bottom: 1.25rem;
}

.section__lead {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

/* Section variants backgrounds */
.section--qui {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 100%);
}

.section--adn {
  background: var(--bg-deep);
  position: relative;
}

.section--adn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(220, 38, 38, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* ===== CERCLES (qui sommes-nous) ===== */
.cercles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.cercle {
  position: relative;
  padding: 2rem 1.25rem;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-mid) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  transition: all 0.4s var(--ease-out-expo);
  overflow: hidden;
}

.cercle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--red-primary) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out-expo);
}

.cercle:hover {
  transform: translateY(-6px);
  border-color: var(--red-soft);
  box-shadow: 0 20px 40px rgba(220, 38, 38, 0.15);
}

.cercle:hover::before {
  opacity: 1;
}

.cercle__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--red-soft);
  opacity: 0.8;
}

.cercle__icon svg {
  width: 100%;
  height: 100%;
}

.cercle__number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--text-bright);
  letter-spacing: -0.02em;
}

.cercle__number--text {
  font-size: 4rem;
  color: var(--red-soft);
}

.cercle__unit {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--red-soft);
  margin-bottom: 0.5rem;
}

.cercle__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  color: var(--text-bright);
  margin: 1rem 0 0.5rem;
}

.cercle__sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--red-soft);
  margin-bottom: 1rem;
}

.cercle__desc {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-tertiary);
  line-height: 1.5;
}

.section__source {
  text-align: center;
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

/* ===== ADN ===== */
.adn {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.adn-card {
  position: relative;
  padding: 2.5rem 2rem;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-mid) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s var(--ease-out-expo);
}

.adn-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.08) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out-expo);
}

.adn-card:hover {
  transform: translateY(-8px);
  border-color: rgba(220, 38, 38, 0.4);
}

.adn-card:hover::before {
  opacity: 1;
}

.adn-card__num {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: rgba(220, 38, 38, 0.15);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.adn-card__overline {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--red-soft);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.adn-card__title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.02em;
  color: var(--text-bright);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.adn-card__list {
  position: relative;
  z-index: 1;
}

.adn-card__list li {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  padding-left: 1.5rem;
}

.adn-card__list li:last-child {
  border-bottom: none;
}

.adn-card__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--red-primary);
  font-weight: 700;
}

/* ===== STRUCTURE / HUB (bloc central + grille) ===== */
.hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.hub__core {
  position: relative;
  padding: 2.5rem 4rem;
  background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-deep) 100%);
  border-radius: 16px;
  text-align: center;
  max-width: 600px;
  box-shadow: 
    0 0 0 1px rgba(252, 165, 165, 0.4),
    0 20px 60px rgba(220, 38, 38, 0.4);
}

.hub__core::before {
  content: '';
  position: absolute;
  inset: -10px;
  background: radial-gradient(ellipse, rgba(220, 38, 38, 0.3) 0%, transparent 70%);
  z-index: -1;
  filter: blur(20px);
}

.hub__label {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  color: var(--text-bright);
  margin-bottom: 0.75rem;
}

.hub__sub {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--red-pale);
  margin-bottom: 1rem;
}

.hub__mail {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-bright);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.3s var(--ease-out-expo);
}

.hub__mail:hover {
  text-decoration-color: var(--text-bright);
}

.hub__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
  width: 100%;
  margin-top: 2rem;
}

.fn-card {
  position: relative;
  padding: 1.5rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fn-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red-primary);
  border-radius: 10px 10px 0 0;
}

.fn-card:hover {
  border-color: var(--red-primary);
  background: rgba(220, 38, 38, 0.08);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.2);
}

.fn-card__name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--text-bright);
}

.fn-card__sub {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-style: italic;
  color: var(--text-tertiary);
  line-height: 1.4;
  flex: 1;
}

.fn-card__mail {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--red-soft);
  word-break: break-all;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

/* ===== SECTEURS ===== */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
}

.tile {
  position: relative;
  padding: 1.5rem 1rem;
  background: linear-gradient(180deg, var(--green-deep) 0%, rgba(2, 44, 34, 0.9) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow: hidden;
}

.tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--green-primary);
}

.tile::after {
  content: '→';
  position: absolute;
  bottom: 0.5rem;
  right: 0.75rem;
  font-size: 0.85rem;
  color: var(--green-soft);
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.3s var(--ease-out-expo);
}

.tile:hover {
  transform: translateY(-4px);
  border-color: var(--green-primary);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.2) 0%, rgba(6, 95, 70, 0.7) 100%);
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.2);
}

.tile:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.tile__name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--green-soft);
}

.tile__sub {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-style: italic;
  color: var(--green-pale);
  line-height: 1.4;
  opacity: 0.9;
  flex: 1;
}

.tile__mail {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-bright);
  word-break: break-all;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(16, 185, 129, 0.2);
}

/* ===== ÉTUDE ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.stat {
  text-align: center;
  padding: 2rem;
  position: relative;
}

.stat::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 1px;
  height: 60%;
  background: var(--border);
  transform: translateY(-50%);
}

.stat:last-child::before {
  display: none;
}

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
  color: var(--red-soft);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.stat__suffix {
  font-size: 0.6em;
  color: var(--red-primary);
  margin-left: 0.1em;
}

.stat__label {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 240px;
  margin: 0 auto;
}

.section__cta {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-mid) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.section__cta-lead {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem !important;
  line-height: 1.6;
}

/* ===== CONTACT ===== */
.contact-card {
  position: relative;
  padding: 4rem var(--gutter);
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-mid) 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.contact-card__inner {
  position: relative;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-card__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.1;
  color: var(--text-bright);
  margin: 1rem 0 1rem;
}

.contact-card__lead {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  text-align: left;
}

.contact-block {
  padding: 1.75rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s var(--ease-out-expo);
  display: block;
}

.contact-block:hover {
  border-color: var(--red-primary);
  background: rgba(220, 38, 38, 0.06);
  transform: translateY(-3px);
}

.contact-block__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--red-soft);
  margin-bottom: 0.75rem;
}

.contact-block__mail {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
}

.contact-block__sub {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-tertiary);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-deepest);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 5;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem var(--gutter) 2rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.footer__logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  color: var(--text-bright);
}

.footer__brand-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--red-soft);
  text-transform: uppercase;
}

.footer__columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--text-bright);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__col a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-tertiary);
  transition: color 0.3s var(--ease-out-expo);
}

.footer__col a:hover {
  color: var(--red-soft);
}

.footer__soon {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__soon::after {
  content: 'BIENTÔT';
  font-size: 0.6rem;
  padding: 0.15rem 0.4rem;
  background: rgba(220, 38, 38, 0.15);
  color: var(--red-soft);
  border-radius: 3px;
  letter-spacing: 0.1em;
}

.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer__devise {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--red-soft);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.footer__legal {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer__sep {
  color: var(--red-deep);
}

/* ===== ANIMATIONS REVEAL ===== */
/* Par défaut visible (fallback no-JS / SEO) */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

/* Si JS chargé, on cache puis on révèle au scroll */
body.js-loaded .reveal {
  opacity: 0;
  transform: translateY(30px);
}

body.js-loaded .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Exception : les éléments avec compteurs restent visibles pour ne pas perdre les chiffres */
body.js-loaded .stat.reveal,
body.js-loaded .cercle.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .nav {
    gap: 1.25rem;
  }
  
  .nav a {
    font-size: 0.7rem;
  }
  
  .cercles {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .adn {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hub__grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .tile-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stat::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .header__inner {
    gap: 1rem;
  }
  
  .header__title {
    font-size: 1.1rem;
  }
  
  .header__title-sub {
    font-size: 0.6rem;
  }
  
  .header__logo img {
    width: 36px;
    height: 36px;
  }
  
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-deepest);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem var(--gutter);
    gap: 1.5rem;
    border-top: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s var(--ease-out-expo);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .nav a {
    font-size: 1rem;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  
  .menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  
  .cercles {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .adn {
    grid-template-columns: 1fr;
  }
  
  .hub__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer__columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer__brand {
    flex-direction: column;
    text-align: center;
  }
  
  .section__btn-row {
    flex-direction: column;
    width: 100%;
  }
  
  .ggz-public-theme .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .cercles {
    grid-template-columns: 1fr;
  }
  
  .stats {
    grid-template-columns: 1fr;
  }
  
  .hub__grid {
    grid-template-columns: 1fr;
  }
  
  .tile-grid {
    grid-template-columns: 1fr;
  }
  
  .hub__core {
    padding: 2rem 1.5rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
