/* =============================================
   PHILHOGAN — Du Micro au Méga
   Global Styles & Design System
   ============================================= */

/* Google Fonts — Inter (body) + Montserrat (display) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&display=swap');

/* ── CSS Variables ── */
:root {
  --green-primary: #2ECC8A;
  --green-light:   #ddf8ef;
  --green-mid:     #00B377;
  --green-dark:    #0D1B3E;
  --navy:          #0D1B3E;
  --navy-light:    #152850;
  --white:         #FFFFFF;
  --gray-light:    #F7F8FA;
  --gray-text:     #6B7280;
  --gray-border:   #E5E7EB;
  --shadow:        rgba(0, 0, 0, 0.08);
  --shadow-lg:     rgba(0, 0, 0, 0.12);
  --shadow-green:  rgba(46, 204, 138, 0.2);

  --font-body:    'Inter', Arial, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Montserrat', Arial, sans-serif;

  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-pill: 50px;

  --transition:      0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --max-width:  1200px;
  --nav-height: 72px;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--navy);
  background-color: var(--green-light);
  line-height: 1.7;
  overflow-x: hidden;
  animation: pageLoad 0.6s ease;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul, ol { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 800;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

p {
  color: var(--gray-text);
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.8;
}

.text-green { color: var(--green-primary); }
.text-navy  { color: var(--navy); }
.text-white { color: var(--white); }
.text-gray  { color: var(--gray-text); }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 100px 0; }

.section--gray       { background-color: var(--gray-light); }
.section--green-light { background-color: var(--green-light); }
.section--navy       { background-color: var(--navy); }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 14px;
  position: relative;
}

.section-header .section-label::before,
.section-header .section-label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 24px;
  height: 1.5px;
  background: var(--green-primary);
  opacity: 0.5;
}
.section-header .section-label::before { right: calc(100% + 8px); }
.section-header .section-label::after  { left:  calc(100% + 8px); }

.section-header h2 { margin-bottom: 16px; }

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ── Navigation ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 1000;
  transition: all var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 30px var(--shadow);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo image version */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
  z-index: 1001;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  display: block;
  transition: transform var(--transition);
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.03);
}

/* Conserver l'ancien style texte au cas où */
.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--green-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
}

.nav-logo .logo-star     { color: var(--green-primary); font-size: 1.1em; }
.nav-logo .logo-subtitle {
  font-size: 0.55rem;
  font-weight: 400;
  color: var(--gray-text);
  display: block;
  letter-spacing: 0.5px;
  line-height: 1;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  position: relative;
  padding: 4px 0;
  letter-spacing: 0.2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green-primary);
  border-radius: 2px;
  transition: width var(--transition);
}

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

.nav-links a:hover,
.nav-links a.active { color: var(--green-primary); }

.nav-cta { margin-left: 16px; }

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: 8px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero Section ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero--dark {
  background: linear-gradient(135deg, var(--navy) 0%, var(--green-dark) 50%, var(--navy) 100%);
  color: var(--white);
}

.hero--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(46, 204, 138, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(46, 204, 138, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(0, 179, 119, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero--dark::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 204, 138, 0.07) 0%, transparent 70%);
  top: -150px;
  right: -150px;
  pointer-events: none;
  animation: floatBig 10s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-content h1 {
  color: var(--white);
  font-size: clamp(3rem, 8vw, 6.5rem);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

/* Hero letter stagger animation */
.hero-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(50px);
  animation: heroLetterIn 0.6s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
  animation-delay: calc(var(--i, 0) * 0.07s + 0.2s);
}

.hero-letter--green { color: var(--green-primary); }

.hero-event-label {
  display: inline-block;
  color: var(--green-primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.3s;
}

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  font-weight: 500;
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
  animation-delay: 0.9s;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(46, 204, 138, 0.15);
  border: 1px solid rgba(46, 204, 138, 0.35);
  color: var(--green-primary);
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 40px;
  backdrop-filter: blur(10px);
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
  animation-delay: 1.1s;
}


.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
  animation-delay: 1.3s;
}

/* Page hero (sous-pages) */
.page-hero {
  position: relative;
  height: 50vh;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--green-dark) 100%);
  padding-top: var(--nav-height);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(46, 204, 138, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  z-index: 2;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  margin-top: 12px;
  position: relative;
  z-index: 2;
}

.page-hero-line {
  width: 60px;
  height: 3px;
  background: var(--green-primary);
  border-radius: 2px;
  margin: 20px auto 0;
  position: relative;
  z-index: 2;
}

/* ── Footer ── */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand .nav-logo {
  color: var(--white);
  margin-bottom: 16px;
  display: inline-block;
}

.footer-brand .nav-logo-img {
  height: 46px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  padding: 4px 0;
  transition: all var(--transition);
}

.footer-links a:hover {
  color: var(--green-primary);
  padding-left: 6px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--green-primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--shadow-green);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a { color: var(--green-primary); }

/* ── Reveal Animation ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.08s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.16s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.24s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.32s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.40s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.48s; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.56s; }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 0.64s; }

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ── Keyframes ── */
@keyframes pageLoad {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

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

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(-10px, 15px) scale(1.04); }
}

@keyframes floatBig {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(-25px, 25px) scale(1.06); }
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46, 204, 138, 0.4); }
  50%       { box-shadow: 0 0 0 12px rgba(46, 204, 138, 0); }
}

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

@keyframes countUp {
  from { opacity: 0; transform: scale(0.7) translateY(10px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

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

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

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Utility classes ── */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.grid         { display: grid; }
.text-center  { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* Selection */
::selection {
  background: var(--green-primary);
  color: var(--white);
}

/* Scrollbar */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--gray-light); }
::-webkit-scrollbar-thumb { background: var(--green-primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-mid); }
