/*
Theme Name: Foxcare Project
Theme URI: https://foxcare-project.local
Author: Jordan Tuffery
Description: Thème Foxcare Project – L'innovation au service des animaux
Version: 2.0
*/

/* ========== VARIABLES ========== */
:root {
  --green:       #52b056;
  --green-dark:  #3a8c3e;
  --green-light: #edf7ee;
  --green-glow:  rgba(82, 176, 86, 0.15);
  --white:       #ffffff;
  --text-dark:   #1a2e1b;
  --text-muted:  #5a7a5c;
  --border:      #d6edd7;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.10);
  --radius:      14px;
  --radius-pill: 999px;
}

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

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

/* Prevent layout viewport blowout on mobile */
section, header, footer, main, .hero, .top-bar { max-width: 100%; }
.stats-grid > *, .pillars-grid > *, [class*="ip-grid"] > *,
[class*="-grid"] > *, [class*="grid-"] > * { min-width: 0; }

body {
  margin: 0;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background-color: var(--white);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html { overflow-x: hidden; }

a { text-decoration: none; }

/* ============================================================
   HEADER
   ============================================================ */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  height: 68px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding: 0 32px;
  gap: 0;
}

/* Logo */
.top-bar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 32px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon { height: 36px; width: auto; }

.logo-text {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 1.5px;
  color: #6aba76;
}

/* Nav */
.top-bar-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  height: auto;
  background: transparent;
  color: #6aba76;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  background: var(--green-light);
  color: var(--green-dark);
}

.nav-link-active {
  background: var(--green-light) !important;
  color: var(--green-dark) !important;
}

/* Actions droite */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  margin-left: 16px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #6aba76;
  color: var(--white);
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(82, 176, 86, 0.35);
}

.btn-primary:hover {
  background: var(--green-dark);
  box-shadow: 0 6px 20px rgba(58, 140, 62, 0.4);
  transform: translateY(-1px);
}

/* Language dropdown */
.lang-dropdown {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
.lang-btn:hover,
.lang-btn[aria-expanded="true"] {
  border-color: var(--green);
  color: var(--green);
}

.lang-arrow {
  width: 9px;
  height: 9px;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.lang-btn[aria-expanded="true"] .lang-arrow {
  transform: rotate(180deg);
}

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  background: rgba(18, 28, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  list-style: none;
  padding: 6px;
  z-index: 200;
  overflow: hidden;
}
.lang-menu.open { display: block; }

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 7px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: background 0.15s, color 0.15s;
}
.lang-option:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.lang-option--active {
  color: var(--green);
}
.lang-option--active::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  margin-left: auto;
  flex-shrink: 0;
}
.lang-code {
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  min-width: 22px;
}
.lang-label {
  font-weight: 400;
  color: inherit;
}

.header-link {
  display: inline-flex;
  align-items: center;
  color: #6aba76;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.header-link:hover { color: var(--green-dark); }

.social-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green-light);
  transition: background 0.2s ease;
}

.social-icons a:hover { background: var(--border); }

.social-icons img {
  height: 18px;
  width: 18px;
  display: block;
}

/* Burger mobile */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  width: 22px;
  height: 2px;
  background-color: var(--green-dark);
  display: block;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ============================================================
   HERO BUTTONS
   ============================================================ */
.hero-cta-group {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  background: var(--green);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 6px 24px rgba(82,176,86,0.4);
  transition: all 0.2s ease;
}

.btn-hero-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(58,140,62,0.45);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  border: 2px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(6px);
  transition: all 0.2s ease;
}

.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.25);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ============================================================
   SECTIONS COMMUNES
   ============================================================ */
.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-label {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.section-label--light {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}

.section-title {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 20px;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}

.section-title--white { color: var(--white); }

.section-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 0 32px;
}

.section-desc--light { color: rgba(255,255,255,0.85); }

/* ============================================================
   SECTION MISSION
   ============================================================ */
.section-mission {
  padding: 100px 0;
  background: var(--white);
  text-align: center;
}

.section-mission .section-desc { margin: 0 auto 56px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

@media (min-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.stat-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 36px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px var(--green-glow);
}

.stat-card--highlight {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow), 0 8px 28px var(--green-glow);
  animation: statHighlightPulse 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}
.stat-card--highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.38) 50%, transparent 65%);
  animation: statShimmer 2.8s ease-in-out infinite;
  pointer-events: none;
  border-radius: inherit;
}
.stat-card--highlight::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(106,186,118,0.18) 0%, transparent 70%);
  animation: statGlow 3s ease-in-out infinite;
  pointer-events: none;
}
.stat-card--highlight .stat-number { font-size: 2.8rem; line-height: 1.1; }
.stat-card--highlight:hover {
  border-color: var(--green-dark);
  box-shadow: 0 0 0 4px rgba(58,140,62,0.18), 0 14px 36px rgba(58,140,62,0.25);
}

@keyframes statHighlightPulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--green-glow), 0 8px 28px var(--green-glow); }
  50%       { box-shadow: 0 0 0 8px rgba(82,176,86,0.12), 0 12px 40px rgba(82,176,86,0.35); }
}
@keyframes statShimmer {
  0%   { left: -80%; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { left: 130%; opacity: 0; }
}
@keyframes statGlow {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}


.stat-number {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

/* ============================================================
   SECTION SPLIT (Mining / Vitae)
   ============================================================ */
.section-split {
  padding: 100px 0;
  background: var(--white);
}

.section-split--green {
  background: var(--green-light);
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split-layout--reverse { direction: rtl; }
.split-layout--reverse > * { direction: ltr; }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 500;
}

.feature-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.store-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.store-btn img {
  height: 44px;
  width: auto;
  border-radius: 10px;
  transition: transform 0.2s ease;
}

.store-btn:hover img { transform: translateY(-2px); }

/* App mockup */
.split-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-mockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: transparent;
  padding: 0;
}

.app-icon {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.app-badge {
  background: var(--green);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
}

/* Vitae card */
.vitae-card {
  width: 100%;
  max-width: 340px;
  height: 210px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  box-shadow: 0 20px 60px rgba(58,140,62,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.vitae-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

.vitae-card-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  justify-content: space-between;
}

.vitae-logo { height: 36px; width: auto; filter: brightness(0) invert(1); }

.vitae-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 3px;
  align-self: center;
}

.vitae-nfc {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 2px;
  align-self: flex-end;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 3px 10px;
  border-radius: 4px;
}

.btn-section {
  display: inline-flex;
  align-items: center;
  background: var(--green);
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(82,176,86,0.35);
  transition: all 0.2s ease;
}

.btn-section:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

/* ============================================================
   SECTION PILLARS
   ============================================================ */
.section-pillars {
  padding: 100px 0;
  background: #f7fdf7;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.pillar-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.pillar-card:hover {
  border-color: var(--green);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px var(--green-glow);
}

.pillar-icon {
  width: 64px;
  height: 64px;
  background: var(--green-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.pillar-card:hover .pillar-icon { background: var(--green); }

.pillar-icon img {
  height: 34px;
  width: auto;
  transition: filter 0.3s ease;
}

.pillar-card:hover .pillar-icon img { filter: brightness(0) invert(1); }
.pillar-card--color:hover .pillar-icon img { filter: none; }
.pillar-card--invert .pillar-icon img { height: 22px; width: auto; max-width: 60px; object-fit: contain; filter: none; }
.pillar-card--invert:hover .pillar-icon img { filter: brightness(0) invert(1); }

.pillar-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.pillar-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.pillar-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green);
  margin-top: 4px;
}

/* ============================================================
   SECTION CTA FINAL
   ============================================================ */
.section-cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-bg-fox {
  position: absolute;
  right: -60px;
  bottom: -40px;
  height: 420px;
  opacity: 0.10;
  pointer-events: none;
  filter: brightness(0) invert(1);
}

.cta-inner { position: relative; z-index: 1; }

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn-cta-white {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  color: var(--green-dark);
  padding: 14px 36px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  text-decoration: none !important;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
}

.btn-cta-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.2);
}

.cta-socials {
  display: flex;
  gap: 12px;
}

.cta-socials a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.cta-socials a:hover { background: rgba(255,255,255,0.25); }

.cta-socials img {
  height: 22px;
  width: 22px;
  filter: brightness(0) invert(1);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  padding: 120px 80px 0;
  color: var(--white);
  min-height: 100vh;
  background: linear-gradient(-45deg, #1a2e1b, #2a5230, #3a8c3e, #52b056, #6aba76, #2d5e30);
  background-size: 400% 400%;
  animation: heroGradient 18s ease infinite;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 75% 15%, rgba(106,186,118,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 85%, rgba(26,46,27,0.5) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.hero::after { display: none; }

/* Orbs et décorations animées */
.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
}

.hero-orb--1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(106,186,118,0.28) 0%, transparent 70%);
  filter: blur(55px);
  top: -120px;
  right: -60px;
  animation: orbFloat1 11s ease-in-out infinite;
}

.hero-orb--2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(82,176,86,0.22) 0%, transparent 70%);
  filter: blur(50px);
  bottom: -80px;
  left: 8%;
  animation: orbFloat2 14s ease-in-out infinite;
}

.hero-orb--3 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(58,140,62,0.3) 0%, transparent 70%);
  filter: blur(40px);
  top: 45%;
  left: 38%;
  animation: orbPulse 7s ease-in-out infinite;
}

.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.07);
}

.hero-ring--1 {
  width: 650px;
  height: 650px;
  top: -220px;
  right: -120px;
  animation: ringRotate 35s linear infinite;
}

.hero-ring--2 {
  width: 420px;
  height: 420px;
  bottom: -120px;
  left: -120px;
  animation: ringRotate 22s linear infinite reverse;
}

.hero-ring--3 {
  width: 280px;
  height: 280px;
  top: 20%;
  left: 30%;
  border-color: rgba(255,255,255,0.05);
  animation: ringRotate 18s linear infinite;
}

.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  animation: dotsSlide 22s linear infinite;
}

@keyframes heroGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1);    opacity: 0.8; }
  33%       { transform: translate(45px, -55px) scale(1.12); opacity: 1;   }
  66%       { transform: translate(-25px, 35px) scale(0.9);  opacity: 0.7; }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1);     }
  40%       { transform: translate(-45px, 45px) scale(1.1); }
  70%       { transform: translate(35px, -25px) scale(0.9); }
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1);   opacity: 0.6; }
  50%       { transform: scale(1.4); opacity: 0.25; }
}

@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes dotsSlide {
  0%   { background-position: 0 0; }
  100% { background-position: 42px 42px; }
}

/* ---- ECG line ---- */
.hero-ecg {
  position: absolute;
  bottom: 12%;
  left: 0;
  width: 100%;
  height: 60px;
  opacity: 0.22;
  z-index: 0;
}
.hero-ecg-line {
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
  animation: ecgDraw 5s linear infinite;
}
@keyframes ecgDraw {
  0%   { stroke-dashoffset: 1800; opacity: 0; }
  8%   { opacity: 1; }
  85%  { opacity: 1; }
  100% { stroke-dashoffset: 0;    opacity: 0; }
}

/* ---- Croix santé flottantes ---- */
.hero-cross {
  position: absolute;
  width: 22px;
  height: 22px;
  opacity: 0;
  animation: crossFade 7s ease-in-out infinite;
}
.hero-cross::before,
.hero-cross::after {
  content: '';
  position: absolute;
  background: rgba(255,255,255,0.28);
  border-radius: 2px;
}
.hero-cross::before { width: 6px;  height: 22px; left: 8px;  top: 0;   }
.hero-cross::after  { width: 22px; height: 6px;  left: 0;    top: 8px; }
.hero-cross--1 { top: 18%; left: 12%;  animation-delay: 0s;   }
.hero-cross--2 { top: 65%; right: 18%; animation-delay: 2.5s; }
.hero-cross--3 { top: 38%; right: 40%; animation-delay: 5s;   }
@keyframes crossFade {
  0%, 100% { opacity: 0;   transform: scale(0.7) rotate(0deg);  }
  30%, 70%  { opacity: 0.7; transform: scale(1)   rotate(12deg); }
}

/* ---- Pulsations heartbeat (croix medicale) ---- */
.hero-pulse {
  position: absolute;
  width: 5px;
  height: 5px;
  background: rgba(255,255,255,0.65);
  clip-path: polygon(50% 0%, 52% 43%, 100% 50%, 52% 57%, 50% 100%, 48% 57%, 0% 50%, 48% 43%);
  animation: heartPulse 3.5s ease-out infinite;
}
.hero-pulse::before,
.hero-pulse::after { display: none; }

.hero-pulse--heart::before {
  content: '♥';
  width: 24px;
  height: 24px;
  background: none;
  font-size: 20px;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  left: 0;
  top: 0;
  border-radius: 0;
}
.hero-pulse--heart::after { display: none; }
.hero-pulse--1 { bottom: 32%; left: 22%;  animation-delay: 0s;   }
.hero-pulse--2 { top: 28%;   right: 28%; animation-delay: 1.2s; }
.hero-pulse--3 { top: 55%;   left: 55%;  animation-delay: 2.4s; }
.hero-pulse--4 { top: 15%;   left: 40%;  animation-delay: 0.7s; }
.hero-pulse--5 { bottom: 18%; right: 15%; animation-delay: 1.9s; }
.hero-pulse--6 { top: 72%;   left: 30%;  animation-delay: 3.1s; }
.hero-pulse--7 { top: 42%;   left: 8%;   animation-delay: 0.4s; }
.hero-pulse--8 { top: 20%;   right: 10%; animation-delay: 2.8s; }
@keyframes heartPulse {
  0%   { transform: scale(1)  rotate(0deg);   opacity: 0.85; }
  100% { transform: scale(6)  rotate(90deg);  opacity: 0;    }
}

/* ---- Noeuds blockchain ---- */
.hero-node {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  animation: nodePulse 4.5s ease-in-out infinite;
}
.hero-node::before {
  content: '';
  position: absolute;
  width: 70px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.35), transparent);
  top: 3px;
  left: 7px;
}
.hero-node::after {
  content: '';
  position: absolute;
  width: 1px;
  height: 50px;
  background: linear-gradient(180deg, rgba(255,255,255,0.35), transparent);
  top: 7px;
  left: 3px;
}
.hero-node--1 { top: 25%; left: 18%;  animation-delay: 0s;   }
.hero-node--2 { top: 60%; right: 22%; animation-delay: 1.5s; }
.hero-node--3 { top: 75%; left: 48%;  animation-delay: 3s;   }
@keyframes nodePulse {
  0%, 100% { opacity: 0.35; transform: scale(1);   }
  50%       { opacity: 1;    transform: scale(1.8); }
}

.hero-left,
.hero-right { position: relative; z-index: 1; }

.hero-left {
  display: flex;
  justify-content: center;
  align-self: end;
}

.hero-fox {
  max-width: 520px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
}

.hero-right { padding-left: 40px; }

.hero-title {
  font-size: 5.5rem;
  line-height: 1.0;
  margin: 0 0 12px;
  text-align: justify;
  display: inline-block;
  width: 100%;
  font-weight: 700;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.1rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin: 0 0 0 4px;
  opacity: 0.88;
  font-weight: 500;
}

.hero-logo-big {
  position: absolute;
  top: 45%;
  right: 130px;
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: none;
}

.hero-logo-big img {
  max-width: 140px;
  width: 100%;
  height: auto;
  opacity: 0.92;
}

/* ============================================================
   FEATURE CARDS
   ============================================================ */
.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 0 60px 60px;
  background: transparent;
  margin-top: -100px;
  position: relative;
  z-index: 2;
}

.feature-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 48px 20px;
  text-align: center;
  border: 1.5px solid var(--border);
  transition: all 0.3s ease;
  cursor: default;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(82,176,86,0.15);
  border-color: var(--green);
}

.feature-icon { margin-bottom: 18px; }
.feature-icon img { height: 80px; width: auto; }

.feature-card h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--text-dark);
  font-weight: 700;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  text-align: center;
  padding: 24px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.footer-link {
  color: var(--green);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
}

.footer-link:hover { color: var(--green-dark); }

.footer-sep {
  margin: 0 8px;
  font-size: 0.5rem;
  vertical-align: middle;
  opacity: 0.5;
}

/* ============================================================
   PAGES INTERNES — NOUVEAU LAYOUT
   ============================================================ */

.inner-page { padding-top: 68px; }

/* Sections generiques */
.ip-section { padding: 80px 0; }
.ip-section--white { background: var(--white); }
.ip-section--green { background: var(--green-light); }
.ip-section--dark  {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
}

.ip-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 48px;
}

/* Titre principal de page */
.ip-page-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 20px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.ip-lead {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 0 40px;
}

/* Titres de sections */
.ip-inner h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 24px;
  letter-spacing: -0.3px;
}

.ip-inner h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green-dark);
  margin: 0 0 10px;
}

.ip-inner p {
  font-size: 0.97rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.ip-inner strong { color: var(--text-dark); }

.ip-inner a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ip-inner a.btn-cta-white,
.ip-inner a.btn-section,
.ip-inner a.btn-hero-primary,
.ip-inner a.btn-hero-secondary {
  text-decoration: none !important;
  color: inherit;
  font-weight: 700;
}

/* Bloc CTA section sombre */
.ip-cta-block { text-align: center; }
.ip-cta-block h2 { color: var(--white); }
.ip-cta-block p  { color: rgba(255,255,255,0.85); margin: 0 auto 32px; max-width: 600px; }
.ip-cta-block .btn-section {
  background: var(--white);
  color: var(--green-dark);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.ip-cta-block .btn-section:hover { background: var(--green-light); transform: translateY(-2px); }

/* ── Boutons section verte → vert foncé / texte blanc ── */
.ip-section--green .btn-section {
  background: var(--green);
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(58, 140, 62, 0.25);
}
.ip-section--green .btn-section:hover {
  background: var(--green-dark);
  color: #fff !important;
  text-decoration: none !important;
}

/* ── Boutons sociaux News ── */
.news-socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  color: #fff !important;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn-social span { color: #fff !important; }
.btn-social img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}
.btn-social:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  text-decoration: none !important;
}

.btn-social--instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: transparent;
}
.btn-social--x {
  background: #000;
  border-color: rgba(255, 255, 255, 0.15);
}
.btn-social--discord {
  background: #5865F2;
  border-color: transparent;
}

/* Grilles chiffres clés */
.ip-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ip-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.ip-highlight-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 36px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.3s ease;
}

.ip-highlight-card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px var(--green-glow);
}

.ip-highlight-num {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}

.ip-highlight-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Grille 4 axes / piliers */
.ip-axes-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.ip-axe-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
}

.ip-axe-card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px var(--green-glow);
}

.ip-axe-card img {
  height: 44px;
  width: 44px;
  object-fit: contain;
}

.ip-axe-card h3 { margin: 0; font-size: 1rem; }
.ip-axe-card p  { margin: 0; font-size: 0.88rem; }

/* Grille etapes (Mining) */
.ip-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.ip-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ip-step-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}

.ip-step h3 { margin: 0; font-size: 1rem; color: var(--text-dark); }
.ip-step p  { margin: 0; font-size: 0.88rem; }

/* Token box (Ecosysteme) */
.ip-token-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 48px 56px;
  box-shadow: var(--shadow-md);
}

.ip-token {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: 2px;
}

.ip-token-sep {
  font-size: 1.8rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* Note de bas de section */
.ip-note {
  margin-top: 32px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ============================================================
   ECOSYSTEME — PILIERS
   ============================================================ */

.eco-section-head {
  margin-bottom: 40px;
}

.eco-section-head h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 8px 0 12px;
}

.eco-section-head p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
}

/* Grille 4 piliers actuels */
.eco-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.eco-pillar-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.3s ease;
  position: relative;
}

.eco-pillar-card:hover {
  border-color: var(--green);
  transform: translateY(-5px);
  box-shadow: 0 16px 48px var(--green-glow);
}

.eco-pillar-num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--green-light);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  -webkit-text-stroke: 2px var(--green);
}

.eco-pillar-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.eco-pillar-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.eco-pillar-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

.eco-pillar-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  margin-top: 4px;
  transition: gap 0.2s ease;
}

.eco-pillar-link:hover { text-decoration: none; }

.eco-pillar-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
  margin-top: 4px;
}

.eco-pillar-badge--soon {
  background: #fff8e1;
  color: #f57f17;
  border: 1px solid #ffe082;
}

/* Grille 4 piliers futurs */
.eco-future-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.eco-future-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
}

.eco-future-card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px var(--green-glow);
}

.eco-future-icon { font-size: 2rem; }

.eco-future-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
  background: #fff8e1;
  color: #f57f17;
  border: 1px solid #ffe082;
}

.eco-future-card {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
  opacity: 0.6;
}

.eco-future-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.eco-future-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.eco-future-reveal-notice {
  background: rgba(255,193,7,0.12);
  border: 1px solid rgba(255,193,7,0.35);
  color: #7a5c00;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 14px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  text-align: center;
}

@media (max-width: 1100px) {
  .eco-pillars-grid,
  .eco-future-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .eco-pillars-grid,
  .eco-future-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   MINING — SECTIONS SUPPLEMENTAIRES
   ============================================================ */

.ip-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.ip-big-num {
  font-size: 4rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  display: block;
}

.ip-mission-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--green-light);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 28px 40px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
  flex-shrink: 0;
  gap: 6px;
}

.ip-mission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ip-mission-card {
  border-radius: 20px;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1.5px solid var(--border);
  background: var(--white);
  transition: all 0.3s ease;
}

.ip-mission-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px var(--green-glow);
  border-color: var(--green);
}

.ip-mission-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
}

.ip-mission-card--foxc .ip-mission-tag      { background: #e8f5e9; color: var(--green-dark); }
.ip-mission-card--foxi .ip-mission-tag      { background: #fff8e1; color: #f57f17; }
.ip-mission-card--community .ip-mission-tag { background: #e3f2fd; color: #1565c0; }

.ip-leaderboard-preview {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 680px;
  margin: 0 auto 24px;
}

.ip-rank-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  background: var(--white);
  transition: all 0.3s ease;
}

.ip-rank-card:hover { transform: translateX(6px); }
.ip-rank-badge { font-size: 2rem; flex-shrink: 0; }
.ip-rank-info  { display: flex; flex-direction: column; gap: 4px; }
.ip-rank-name  { font-size: 1rem; font-weight: 700; color: var(--text-dark); }
.ip-rank-desc  { font-size: 0.88rem; color: var(--text-muted); }

.ip-rank-card--gold   { border-color: #f9a825; box-shadow: 0 4px 20px rgba(249,168,37,0.15); }
.ip-rank-card--silver { border-color: #90a4ae; box-shadow: 0 4px 20px rgba(144,164,174,0.15); }
.ip-rank-card--bronze { border-color: #a1887f; box-shadow: 0 4px 20px rgba(161,136,127,0.15); }

.ip-referral-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.ip-referral-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.3s ease;
}

.ip-referral-card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px var(--green-glow);
}

.ip-referral-card--highlight { background: var(--green-light); border-color: var(--green); }
.ip-referral-icon { font-size: 2rem; }
.ip-referral-card h3 { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin: 0; }
.ip-referral-card p  { font-size: 0.9rem; color: var(--text-muted); margin: 0; line-height: 1.6; }
.ip-referral-card strong { color: var(--green-dark); }

.ip-boost-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.ip-boost-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.ip-boost-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 28px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
  text-align: center;
  align-items: center;
  position: relative;
}

.ip-boost-token {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.ip-boost-token--foxc {
  background: #e8f5e9;
  color: var(--green-dark);
  border: 1px solid var(--border);
}

.ip-boost-token--foxi {
  background: #fff8e1;
  color: #e65100;
  border: 1px solid #ffe082;
}

.ip-boost-card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px var(--green-glow);
}

.ip-boost-icon { font-size: 2.2rem; }
.ip-boost-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--text-dark); margin: 0; }
.ip-boost-card p  { font-size: 0.85rem; color: var(--text-muted); margin: 0; line-height: 1.55; }

/* Edenia */
.ip-section--edenia {
  background: linear-gradient(135deg, #0d1f0e 0%, #1a3a1c 40%, #2d5e30 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.ip-section--edenia::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(82,176,86,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.ip-edenia-badge {
  display: inline-block;
  background: rgba(255,193,7,0.15);
  color: #ffd54f;
  border: 1px solid rgba(255,193,7,0.4);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.ip-edenia-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--white) !important;
  margin: 8px 0 20px;
  letter-spacing: -0.5px;
}

.ip-edenia-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  max-width: 640px;
  line-height: 1.75;
  margin-bottom: 48px;
}

.ip-edenia-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.ip-edenia-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.ip-edenia-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(82,176,86,0.5);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(82,176,86,0.2);
}

.ip-edenia-icon { font-size: 2rem; }
.ip-edenia-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--white); margin: 0; }
.ip-edenia-card p  { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin: 0; line-height: 1.55; }

.ip-edenia-note {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (max-width: 960px) {
  .ip-edenia-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .ip-edenia-grid { grid-template-columns: 1fr; }
  .ip-edenia-title { font-size: 2.2rem; }
}

.ip-section--foxcareplus {
  background: linear-gradient(135deg, #1a3a1c 0%, var(--green-dark) 50%, var(--green) 100%);
  padding: 80px 0;
}

.ip-plus-header { margin-bottom: 48px; }
.ip-plus-header h2 { font-size: 2.4rem; font-weight: 700; color: var(--white); margin: 8px 0 16px; }
.ip-plus-header p  { font-size: 1rem; color: rgba(255,255,255,0.8); max-width: 600px; line-height: 1.7; }

.ip-plus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ip-plus-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

.ip-plus-card:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-4px);
}

.ip-plus-icon { font-size: 2rem; }
.ip-plus-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--white); margin: 0; }
.ip-plus-card p  { font-size: 0.85rem; color: rgba(255,255,255,0.75); margin: 0; line-height: 1.55; }

@media (max-width: 960px) {
  .ip-mission-grid,
  .ip-referral-grid { grid-template-columns: 1fr; }
  .ip-boost-grid    { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ip-plus-grid     { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ip-section-head  { flex-direction: column; }
}

@media (max-width: 600px) {
  .ip-boost-grid    { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ip-plus-grid     { grid-template-columns: 1fr; }
}

/* Section News vide */
.news-empty {
  text-align: center;
  padding: 64px 24px;
  max-width: 540px;
  margin: 0 auto;
}

.news-empty-icon { font-size: 3rem; margin-bottom: 20px; }
.news-empty h3 { font-size: 1.4rem; font-weight: 700; color: var(--text-dark); margin: 0 0 12px; }
.news-empty p  { color: var(--text-muted); margin-bottom: 28px; }

.news-socials {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* RESPONSIVE pages internes */
@media (max-width: 960px) {
  .ip-inner { padding: 0 24px; }
  .ip-page-title { font-size: 2.2rem; }
  .ip-axes-grid,
  .ip-steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ip-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ip-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .ip-section { padding: 56px 0; }
  .ip-axes-grid,
  .ip-steps-grid,
  .ip-grid-3,
  .ip-grid-4 { grid-template-columns: 1fr; }
}

/* ============================================================
   ANIMATIONS — SCROLL REVEAL & MICRO-INTERACTIONS
   ============================================================ */

/* --- Révélation au scroll --- */
@media (prefers-reduced-motion: no-preference) {

  .anim-fade-up {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.65s cubic-bezier(.16,1,.3,1),
                transform 0.65s cubic-bezier(.16,1,.3,1);
  }

  .anim-scale-in {
    opacity: 0;
    transform: translateY(22px) scale(0.95);
    transition: opacity 0.55s cubic-bezier(.16,1,.3,1),
                transform 0.55s cubic-bezier(.16,1,.3,1);
  }

  .anim-fade-in {
    opacity: 0;
    transition: opacity 0.7s ease;
  }

  .anim-slide-left {
    opacity: 0;
    transform: translateX(-18px);
    transition: opacity 0.55s cubic-bezier(.16,1,.3,1),
                transform 0.55s cubic-bezier(.16,1,.3,1);
  }

  .anim-fade-up.is-visible,
  .anim-scale-in.is-visible,
  .anim-fade-in.is-visible,
  .anim-slide-left.is-visible {
    opacity: 1;
    transform: none;
  }

}

/* --- Section label pop --- */
@keyframes labelPop {
  0%   { transform: scale(0.72) translateY(6px); opacity: 0; }
  65%  { transform: scale(1.07) translateY(-1px); opacity: 1; }
  100% { transform: scale(1) translateY(0); }
}

.section-label.is-visible {
  animation: labelPop 0.5s cubic-bezier(.22,.68,0,1.2) both;
}

/* --- Glow pulse sur les chiffres clés --- */
@keyframes numGlow {
  0%, 100% { text-shadow: none; }
  50%       { text-shadow: 0 0 20px rgba(82,176,86,0.5); }
}

.stat-number      { animation: numGlow 3s ease-in-out infinite; }
.ip-highlight-num { animation: numGlow 3.5s ease-in-out infinite 0.4s; }

/* --- Shimmer sur les boutons au hover --- */
.btn-hero-primary,
.btn-section,
.btn-cta-white,
.btn-hero-secondary,
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-hero-primary::after,
.btn-section::after,
.btn-cta-white::after,
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 55%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: skewX(-18deg);
  transition: left 0.45s ease;
  pointer-events: none;
}

.btn-hero-primary:hover::after,
.btn-section:hover::after,
.btn-cta-white:hover::after,
.btn-primary:hover::after {
  left: 160%;
}

/* --- Flottement de la carte VITAE --- */
@keyframes vitaeFloat {
  0%, 100% { transform: translateY(0) rotate(-0.8deg); }
  50%       { transform: translateY(-12px) rotate(0.8deg); }
}

.vitae-card { animation: vitaeFloat 5s ease-in-out infinite; }

/* --- Flottement de l'icône app --- */
@keyframes appFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%       { transform: translateY(-9px) rotate(2deg); }
}

.app-icon { animation: appFloat 4s ease-in-out infinite; }

/* --- Rotation icône pilier au hover --- */
.pillar-icon img {
  transition: transform 0.35s cubic-bezier(.22,.68,0,1.3);
}

.pillar-card:hover .pillar-icon img {
  transform: scale(1.15) rotate(10deg);
}

/* --- Pop phase roadmap à l'entrée --- */
.ip-roadmap-item.is-visible .ip-roadmap-phase {
  animation: labelPop 0.45s 0.28s cubic-bezier(.22,.68,0,1.2) both;
}

/* --- Pop numéro pilier écosystème --- */
.eco-pillar-card.is-visible .eco-pillar-num {
  animation: labelPop 0.5s 0.22s cubic-bezier(.22,.68,0,1.2) both;
}

/* --- Pop numéro étape mining --- */
.ip-step.is-visible .ip-step-num {
  animation: labelPop 0.5s 0.18s cubic-bezier(.22,.68,0,1.2) both;
}

/* --- Pulse badge token --- */
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(82,176,86,0.35); }
  50%       { box-shadow: 0 0 0 6px rgba(82,176,86,0); }
}

.ip-token-badge {
  animation: badgePulse 2.5s ease-in-out infinite;
}

.ip-token-badge--secondary {
  animation: badgePulse 2.5s ease-in-out infinite 0.8s;
}

/* --- Fox hero — entrée depuis le bas --- */
@keyframes foxRise {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.hero-fox {
  animation: foxRise 1s 0.3s cubic-bezier(.16,1,.3,1) both;
}

/* --- Hero texte — entrée décalée --- */
@keyframes heroTextIn {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.hero-title    { animation: heroTextIn 0.8s 0.5s cubic-bezier(.16,1,.3,1) both; }
.hero-subtitle { animation: heroTextIn 0.7s 0.75s cubic-bezier(.16,1,.3,1) both; }
.hero-cta-group { animation: heroTextIn 0.7s 0.95s cubic-bezier(.16,1,.3,1) both; }

/* ============================================================
   LUCIDE ICONS
   ============================================================ */
[data-lucide] {
  display: block;
  stroke-width: 1.5;
  flex-shrink: 0;
}

.ip-vision-icon [data-lucide]  { width: 28px; height: 28px; color: var(--green); }
.eco-future-icon [data-lucide] { width: 28px; height: 28px; color: var(--green); }

.ip-referral-icon              { display: flex; }
.ip-referral-icon [data-lucide]{ width: 36px; height: 36px; color: var(--green); }

.ip-boost-icon                 { display: flex; justify-content: center; }
.ip-boost-icon [data-lucide]   { width: 36px; height: 36px; color: var(--green); }

.ip-plus-icon                  { display: flex; }
.ip-plus-icon [data-lucide]    { width: 28px; height: 28px; color: rgba(255,255,255,0.85); }

.ip-edenia-icon                { display: flex; }
.ip-edenia-icon [data-lucide]  { width: 28px; height: 28px; color: rgba(255,255,255,0.85); }

.ip-rank-badge [data-lucide]         { width: 28px; height: 28px; }
.ip-rank-card--gold   .ip-rank-badge [data-lucide] { color: #f9a825; }
.ip-rank-card--silver .ip-rank-badge [data-lucide] { color: #90a4ae; }
.ip-rank-card--bronze .ip-rank-badge [data-lucide] { color: #a1887f; }

.news-empty-icon [data-lucide] { width: 52px; height: 52px; color: var(--green); margin: 0 auto 20px; }

.eco-reveal-icon               { display: inline-flex; vertical-align: middle; }
.eco-reveal-icon [data-lucide] { width: 16px; height: 16px; color: #7a5c00; display: inline-block; }

/* ============================================================
   FOXCARE PROJECT — SECTIONS SPECIFIQUES
   ============================================================ */

/* Citation */
.ip-quote {
  border-left: 4px solid var(--green);
  padding: 16px 24px;
  margin: 8px 0 32px;
  background: var(--green-light);
  border-radius: 0 12px 12px 0;
}

.ip-quote p {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green-dark);
  font-style: italic;
  margin: 0;
}

/* Grille vision 4 colonnes */
.ip-vision-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.ip-vision-card {
  background: var(--green-light);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
}

.ip-vision-card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px var(--green-glow);
}

.ip-vision-icon { font-size: 2rem; }

.ip-vision-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.ip-vision-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Grille 4 piliers actuels (2 colonnes) */
.ip-project-pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.ip-project-pillar {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s ease;
}

.ip-project-pillar:hover {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px var(--green-glow);
}

.ip-project-pillar-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ip-project-pillar-head img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.ip-project-pillar-head h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.ip-project-pillar > p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Liste a puces fleche verte */
.ip-pillar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.ip-pillar-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.5;
}

.ip-pillar-list li::before {
  content: '\2192';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* Grille tokens */
.ip-token-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.ip-token-card {
  background: var(--green-light);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s ease;
}

.ip-token-card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px var(--green-glow);
}

.ip-token-card--secondary { background: var(--white); }

.ip-token-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
}

.ip-token-badge--secondary { background: var(--green-dark); }

.ip-token-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.ip-token-card > p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
  flex: 1;
}

.ip-token-supply {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 16px;
  border-top: 1.5px solid var(--border);
  margin-top: auto;
}

.ip-token-supply-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.5px;
  line-height: 1;
  display: block;
}

.ip-token-supply-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Roadmap */
.ip-roadmap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.ip-roadmap-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

.ip-roadmap-item:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-4px);
}

/* ── Phase active ── */
.ip-roadmap-item--active {
  background: var(--green);
  border-color: var(--green);
  position: relative;
  animation: roadmapPulse 2.8s ease-in-out infinite;
}
.ip-roadmap-item--active:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

@keyframes roadmapPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(106, 186, 118, 0.45); }
  50%       { box-shadow: 0 0 0 10px rgba(106, 186, 118, 0); }
}

.ip-roadmap-current {
  position: absolute;
  top: -11px;
  right: 16px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #fff;
  color: var(--green-dark);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.ip-roadmap-item--active .ip-roadmap-phase {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.ip-roadmap-item--active h3,
.ip-roadmap-item--active li {
  color: #fff;
}
.ip-roadmap-item--active li { color: rgba(255, 255, 255, 0.9); }
.ip-roadmap-item--active li::before { color: rgba(255, 255, 255, 0.7); }

.ip-roadmap-phase {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
  border: 1px solid rgba(255,255,255,0.3);
}

.ip-roadmap-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

.ip-roadmap-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ip-roadmap-item li {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
}

.ip-roadmap-item li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: rgba(255,255,255,0.5);
}

/* Titre blanc pour sections sombres */
.ip-white-title { color: var(--white) !important; }

/* Piliers futurs non floutes sur la page projet */
.ip-project-future-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
}

.ip-project-future-card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px var(--green-glow);
}

.ip-project-future-card img {
  height: 44px;
  width: 44px;
  object-fit: contain;
}

.ip-project-future-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.ip-project-future-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Responsive Foxcare Project */
@media (max-width: 1100px) {
  .ip-vision-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ip-roadmap     { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .ip-project-pillars { grid-template-columns: 1fr; }
  .ip-token-grid      { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .ip-vision-grid { grid-template-columns: 1fr; }
  .ip-roadmap     { grid-template-columns: 1fr; }
}

/* ============================================================
   ANCIEN LAYOUT (conserve pour compatibilite)
   ============================================================ */

/* Hero de page */
.inner-hero {
  min-height: 260px;
  background-image: url('assets/hero-bg2.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  padding-top: 68px;
  position: relative;
}

.inner-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
}

.inner-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 48px 40px;
}

.inner-hero-content .section-label {
  margin-bottom: 14px;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}

.inner-hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

/* Corps de page */
.inner-body {
  background: #f7fdf7;
  padding: 60px 0 80px;
  min-height: 60vh;
}

.inner-body-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 48px;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  padding: 48px 56px;
}

/* Typographie du contenu */
.inner-body-inner h2 {
  color: var(--green-dark);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2.2rem 0 0.7rem;
}

.inner-body-inner h2:first-child { margin-top: 0; }

.inner-body-inner h3 {
  color: var(--green);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.6rem 0 0.5rem;
}

.inner-body-inner p {
  font-size: 0.97rem;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.inner-body-inner strong { color: var(--green-dark); }

.inner-body-inner a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inner-body-inner ul,
.inner-body-inner ol {
  padding-left: 1.4rem;
  margin-bottom: 1.2rem;
}

.inner-body-inner li {
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

/* Section News vide */
.news-empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--green-light);
  border-radius: 20px;
  border: 1.5px solid var(--border);
  margin-top: 24px;
}

.news-empty-icon { font-size: 3rem; margin-bottom: 16px; }

.news-empty h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 10px;
}

.news-empty p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.news-socials {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Intro block (page Foxcare Project) */
.intro-block {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
  padding: 24px;
  background: var(--green-light);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.intro-logo { width: 100px; height: auto; flex-shrink: 0; }
.intro-text p { margin-top: 0; }

/* Intro row (page Mining) */
.intro-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  padding: 20px;
  background: var(--green-light);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.page-logo img {
  width: 70px;
  height: auto;
  border-radius: 12px;
}

.intro {
  flex: 1;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 500;
}

/* Liste stylée Mining */
.fc-list {
  list-style: none;
  padding: 0;
}

.fc-list > li {
  padding: 10px 14px 10px 40px;
  position: relative;
  margin-bottom: 8px;
  background: var(--green-light);
  border-radius: 10px;
  border-left: 3px solid var(--green);
}

.fc-list > li::before {
  content: '✦';
  position: absolute;
  left: 14px;
  color: var(--green);
  font-size: 0.75rem;
  top: 13px;
}

/* ============================================================
   PRIVACY POLICY
   ============================================================ */

.ip-inner--narrow { max-width: 780px; }

.pp-updated {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.pp-sections {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--border);
}

.pp-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.pp-section h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 14px;
}

.pp-section p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
}

/* ============================================================
   FORMULAIRE DE CONTACT
   ============================================================ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 28px;
}

.contact-form label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 6px;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-dark);
  background: var(--green-light);
  transition: border-color 0.2s ease, background 0.2s ease;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--green);
  background: var(--white);
}

.contact-form textarea { min-height: 150px; resize: vertical; }

.contact-form .btn-submit {
  align-self: flex-start;
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 12px 36px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(82,176,86,0.3);
}

.contact-form .btn-submit:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(58,140,62,0.35);
}

.contact-notice {
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 16px;
  font-weight: 500;
}

.contact-notice.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.contact-notice.error {
  background: #fdecea;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

/* ============================================================
   HEADER AUTH BUTTONS
   ============================================================ */

.header-account-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.header-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-logout-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  padding: 0;
}

/* ============================================================
   PAGE CONNEXION — HERO STYLE
   ============================================================ */

.login-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 60px;
  background: linear-gradient(-45deg, #1a2e1b, #2a5230, #3a8c3e, #52b056, #6aba76, #2d5e30);
  background-size: 400% 400%;
  animation: heroGradient 18s ease infinite;
  overflow: hidden;
}

.login-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.login-ecg {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  height: 60px;
  opacity: 0.2;
}

/* Card centrale */
.login-card {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: 24px;
  padding: 44px 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.login-card-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.login-logo {
  width: 32px;
  height: 32px;
}

.login-brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: 0.12em;
}

.login-card-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 8px;
}

.login-card-lead {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 26px;
  line-height: 1.5;
}

/* Formulaire */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.login-field label {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--green-dark);
}

.login-field input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-dark);
  background: var(--green-light);
  transition: border-color 0.2s ease, background 0.2s ease;
  outline: none;
  box-sizing: border-box;
}

.login-field input::placeholder { color: var(--text-muted); opacity: 0.6; }

.login-field input:focus {
  border-color: var(--green);
  background: var(--white);
}

.login-submit-btn {
  width: 100%;
  margin-top: 6px;
  padding: 14px 24px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(82,176,86,0.35);
}

.login-submit-btn:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(58,140,62,0.4);
}

.login-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Notices */
.auth-notice {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.auth-notice--error {
  background: #fdecea;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

.auth-notice--success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

/* Footer */
.login-card-footer {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-forgot {
  background: none;
  border: none;
  padding: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  color: var(--green);
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  transition: color 0.2s;
}

.login-forgot:hover { color: var(--green-dark); }

.login-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.login-hint--link {
  display: block;
  text-decoration: none;
  transition: color 0.2s;
}

.login-hint--link:hover { color: var(--green); }

/* ============================================================
   PAGE MON COMPTE — DASHBOARD
   ============================================================ */

#user-dashboard { display: flex; flex-direction: column; }

/* ── Hero profil ── */
.dash-hero-section {
  position: relative;
  background: linear-gradient(-45deg, #1a2e1b, #2a5230, #3a8c3e, #52b056, #6aba76, #2d5e30);
  background-size: 400% 400%;
  animation: heroGradient 18s ease infinite;
  overflow: hidden;
  padding: 100px 24px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.dash-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.dash-logout-top {
  position: absolute;
  top: -60px;
  right: 0;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  transition: all 0.2s ease;
}

.dash-logout-top:hover {
  background: rgba(255,255,255,0.22);
  color: var(--white);
}

.dash-avatar-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 3px solid rgba(255,255,255,0.5);
  color: var(--white);
  font-size: 2.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  backdrop-filter: blur(8px);
}

.dash-hero-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
  text-align: center;
}

.dash-hero-email {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  margin: 0;
  text-align: center;
}

/* ── Body cards ── */
.dash-body {
  background: #f6faf6;
  padding: 40px 0 60px;
}

.dash-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  margin-bottom: 28px;
  padding: 0 0 4px;
  overflow: visible;
  position: relative;
}

.dash-card-label {
  background: var(--green);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 9px 28px;
  border-radius: var(--radius-pill);
  display: table;
  margin: -17px auto 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 14px rgba(82,176,86,0.35);
}

.dash-card-content {
  padding: 24px 28px 20px;
}

/* ── Info rows ── */
.dash-info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.dash-info-row--last { border-bottom: none; }

.dash-info-key {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-dark);
  flex-shrink: 0;
}

.dash-info-val {
  font-size: 0.88rem;
  color: var(--text-dark);
  font-weight: 500;
  text-align: right;
  word-break: break-all;
}

.dash-info-uid {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Token rows ── */
.dash-token-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
}

.dash-token-divider {
  height: 1px;
  background: var(--border);
}

.dash-token-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  min-width: 64px;
  text-align: center;
}

.dash-token-badge--foxc {
  background: var(--green-light);
  color: var(--green-dark);
  border: 1.5px solid var(--border);
}

.dash-token-badge--foxi {
  background: #f0ebff;
  color: #6c3fc5;
  border: 1.5px solid #d4c4f5;
}

.dash-token-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.dash-token-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.dash-token-amount {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
}

/* ============================================================
   ADMIN BAR
   ============================================================ */
body.admin-bar .top-bar { top: 32px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .nav-link { padding: 6px 10px; font-size: 0.74rem; }
}

/* Hero responsive — garde toujours 2 colonnes, réduit selon écran */
@media (max-width: 1040px) {
  .hero { padding: 100px 40px 40px; }
  .hero-title { font-size: 4rem; }
  .hero-right { padding-left: 24px; }
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 20px 24px 40px;
    margin-top: -20px;
  }
}

@media (max-width: 768px) {
  .hero { padding: 80px 16px 0; gap: 8px; min-height: auto; }
  .hero-title { font-size: 2.2rem; letter-spacing: -0.5px; }
  .hero-subtitle { font-size: 0.65rem; letter-spacing: 2px; }
  .hero-right { padding-left: 10px; }
  .hero-fox { max-width: 100%; }
  .hero-cta-group { margin-top: 16px; gap: 8px; flex-direction: column; }
  .btn-hero-primary,
  .btn-hero-secondary { padding: 10px 14px; font-size: 0.78rem; width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .hero { padding: 76px 10px 0; gap: 6px; }
  .hero-title { font-size: 1.7rem; }
  .hero-subtitle { font-size: 0.58rem; letter-spacing: 1px; }
  .hero-right { padding-left: 6px; }
}

/* Mobile menu wrapper — flex container transparent sur desktop */
.mobile-menu {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  min-width: 0;
}

@media (max-width: 768px) {
  .top-bar { padding: 0 16px; gap: 0; }

  /* Desktop nav+actions: caché sur mobile */
  .mobile-menu {
    display: none !important;
    flex-direction: column;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    border-radius: 0 0 16px 16px;
    padding: 12px 16px 16px;
    box-shadow: var(--shadow-md);
    z-index: 999;
  }

  .mobile-menu.open {
    display: flex !important;
  }

  .mobile-menu .main-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
    gap: 2px;
  }

  .mobile-menu .main-nav .nav-link {
    display: block;
    padding: 11px 14px;
    font-size: 0.9rem;
    border-radius: 10px;
    white-space: normal;
  }

  .mobile-menu .header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-bottom: 4px;
  }

  /* Header mobile : logo [flex-spacer] burger lang */
  .top-bar-main {
    justify-content: flex-end;
    gap: 10px;
    flex: 1;
  }

  /* Sélecteur de langue toujours visible */
  .top-bar-main > .lang-dropdown {
    display: block;
    flex-shrink: 0;
  }

  /* Bouton burger visible */
  .burger { display: flex; }

  .features { grid-template-columns: 1fr; }
  .page-panel { padding: 28px 22px; }
  .intro-row,
  .intro-block { flex-direction: column; text-align: center; }
}

@media (max-width: 960px) {
  .page-frame { padding: 16px; }
}

/* ============================================================
   RESPONSIVE MOBILE — GLOBAL
   ============================================================ */

/* Containers */
@media (max-width: 768px) {
  .section-inner { padding: 0 24px; }
}
@media (max-width: 480px) {
  .section-inner { padding: 0 16px; }
  .section-mission,
  .section-split,
  .section-pillars,
  .section-cta { padding: 56px 0; }
}

/* Stats grid homepage */
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card   { padding: 24px 14px; }
  .stat-number { font-size: 2rem; }
}

/* Pillars grid homepage */
@media (max-width: 960px) {
  .pillars-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.9rem; }
}

/* Split layout (homepage + pages internes) */
@media (max-width: 768px) {
  .split-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .split-layout--reverse { direction: ltr; }
  .split-visual { order: -1; }
}

/* IP inner padding */
@media (max-width: 480px) {
  .ip-inner { padding: 0 16px; }
  .ip-section { padding: 48px 0; }
}

/* Titres hero et pages internes petits écrans */
@media (max-width: 480px) {
  .hero-title    { font-size: 2rem; }
  .ip-page-title { font-size: 1.8rem; }
  .ip-lead       { font-size: 0.95rem; }
  .ip-inner h2   { font-size: 1.5rem; }
  .hero { padding: 90px 16px 40px; }
  .hero-subtitle { font-size: 0.8rem; letter-spacing: 2px; }
  .hero-cta-group { flex-direction: column; gap: 10px; }
  .btn-hero-primary,
  .btn-hero-secondary { width: 100%; justify-content: center; }
}

/* Mining — leaderboard et boost */
@media (max-width: 480px) {
  .ip-boost-grid  { grid-template-columns: 1fr; }
  .ip-rank-card   { padding: 14px 16px; }
  .ip-big-num     { font-size: 2.8rem; }
  .ip-leaderboard-preview { gap: 10px; }
}

/* Footer */
@media (max-width: 480px) {
  .footer { padding: 20px 16px; text-align: center; }
  .footer p { flex-direction: column; gap: 6px; display: flex; align-items: center; }
  .footer-sep { display: none; }
}

/* CTA section homepage */
@media (max-width: 480px) {
  .cta-actions  { flex-direction: column; gap: 16px; }
  .btn-cta-white { width: 100%; justify-content: center; text-align: center; }
  .section-title--white { font-size: 1.9rem; }
}

/* Images dans les sections split */
@media (max-width: 768px) {
  .social-icons img { display: inline; }
  .split-visual .vitae-card  { max-width: 280px; height: 175px; }
  .split-visual .app-mockup  { padding: 0; }
  .store-buttons { flex-wrap: wrap; gap: 10px; }
  .store-btn img { height: 40px; }
}

/* Eco pillars page */
@media (max-width: 768px) {
  .eco-pillars-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eco-future-grid  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .eco-pillars-grid { grid-template-columns: 1fr; }
  .eco-future-grid  { grid-template-columns: 1fr; }
}

/* Mining page grilles */
@media (max-width: 768px) {
  .ip-steps-grid    { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ip-boost-grid    { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ip-plus-grid     { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ip-edenia-grid   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ip-referral-grid { grid-template-columns: 1fr; }
  .ip-mission-grid  { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .ip-steps-grid  { grid-template-columns: 1fr; }
  .ip-boost-grid  { grid-template-columns: 1fr; }
  .ip-plus-grid   { grid-template-columns: 1fr; }
  .ip-edenia-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE — PAGE CONNEXION
   ============================================================ */
@media (max-width: 480px) {
  .login-hero { padding: 90px 16px 40px; }
  .login-card { padding: 28px 20px; border-radius: 18px; }
  .login-card-title { font-size: 1.4rem; }
}

/* ============================================================
   RESPONSIVE — DASHBOARD
   ============================================================ */
@media (max-width: 768px) {
  .dash-hero-section { min-height: 220px; padding-top: 80px; }
  .dash-hero-inner   { padding: 0 20px 28px; }
  .dash-avatar-circle { width: 80px; height: 80px; font-size: 2rem; }
  .dash-hero-name    { font-size: 1.5rem; }
  .dash-body         { padding: 28px 0 48px; }
  .dash-card-content { padding: 20px 16px 16px; }
}

@media (max-width: 480px) {
  .dash-hero-name  { font-size: 1.3rem; }
  .dash-hero-email { font-size: 0.82rem; }
  .dash-token-row  { flex-wrap: wrap; gap: 12px; }
  .dash-token-amount { font-size: 1.1rem; }
}
