/* ============================================================
   1. DESIGN SYSTEM: "SPARK & FIRE" (Creativity, Energy)
   ============================================================ */
:root {
  /* --- Palette "Feu & Vie" --- */
  --primary-start: #FF512F;  /* Orange vif */
  --primary-end: #DD2476;    /* Rouge framboise intense */
  --accent: #FFD700;         /* Or (pour les étincelles) */
  
  /* --- Fond & Surfaces --- */
  --bg-page: #FFFCF9;       /* Blanc Crème (Papier d'art), plus chaud que le blanc pur */
  --bg-card: #ffffff;       /* Blanc pur pour les cartes */
  --border-subtle: #ffebe0; /* Bordure très pâle teintée de rouge */
  
  /* --- Textes --- */
  --text-title: #1a0505;    /* Noir chaud (presque chocolat très foncé) */
  --text-body: #4a3b3b;     /* Gris chaud */
  --text-muted: #9c8c8c;    
  
  /* --- Effets --- */
  --gradient-fire: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
  --shadow-glow: 0 10px 30px -10px rgba(221, 36, 118, 0.35); /* Ombre rougeoyante */
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
  
  --radius-xl: 24px;
  --radius-btn: 100px; /* Boutons "Pill" très ronds */
}

/* ============================================================
   2. BASE & PARTICULES
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background-color: var(--bg-page);
  color: var(--text-body);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Conteneur des particules (étincelles) */
#particles-js {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Style d'une étincelle individuelle (générée par JS) */
.ember {
  position: absolute;
  bottom: -10px;
  width: 6px; height: 6px;
  background: var(--primary-start);
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 10px var(--primary-start);
  animation: riseUp var(--duration) ease-in infinite;
}

@keyframes riseUp {
  0% { opacity: 0; transform: translateY(0) scale(0.5); }
  20% { opacity: 0.6; transform: translateY(-20vh) scale(1); }
  100% { opacity: 0; transform: translateY(-100vh) scale(0.2); }
}

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

/* ============================================================
   3. HEADER (Glassmorphism Warm)
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 1000;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 32px;
  background: rgba(255, 252, 249, 0.85); /* Fond crème transparent */
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.brand-text { font-size: 22px; font-weight: 900; color: var(--text-title); letter-spacing: -0.03em; }

.topnav a { 
  font-size: 14px; font-weight: 600; color: var(--text-body); padding: 10px 18px; border-radius: 50px; transition: 0.3s;
}
.topnav a.active, .topnav a:hover { 
  color: var(--primary-end); background: #fff0f3; /* Rose très pâle */
}

/* ============================================================
   4. HERO SECTION (L'Énergie)
   ============================================================ */
.hero {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 140px 24px 100px;
}

.hero-text h1 {
  font-size: clamp(42px, 6vw, 72px); line-height: 1.1; font-weight: 900; 
  color: var(--text-title); margin-bottom: 24px; letter-spacing: -0.02em;
}

/* Le texte "Invente-le" en feu */
.accent-fire {
  background: var(--gradient-fire);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  display: inline-block;
}

.sub { font-size: 20px; color: var(--text-body); margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }
.sub b { color: var(--text-title); }

.cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 36px; border-radius: var(--radius-btn);
  font-weight: 700; font-size: 16px; cursor: pointer; transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: none; text-decoration: none;
}

/* Bouton Lave */
.btn.primary {
  background: var(--gradient-fire);
  color: white;
  box-shadow: var(--shadow-glow);
}
.btn.primary:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 15px 35px -5px rgba(221, 36, 118, 0.5);
}

.btn.ghost {
  background: white; border: 2px solid var(--border-subtle); color: var(--text-title);
}
.btn.ghost:hover {
  border-color: var(--primary-start); color: var(--primary-start);
}

/* Animation Pulse sur le bouton principal */
.pulse { animation: pulseBtn 2s infinite; }
@keyframes pulseBtn {
  0% { box-shadow: 0 0 0 0 rgba(255, 81, 47, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(255, 81, 47, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 81, 47, 0); }
}

/* ============================================================
   5. SLIDES (Toy Box Style)
   ============================================================ */
.slides { padding: 60px 0 100px; position: relative; }

.slides-shell { max-width: 1100px; margin: 0 auto; overflow: hidden; }
.slides-track { display: flex; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }

.slide {
  min-width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; padding: 20px 24px;
}

/* La boîte image : Style "Vitrine de collection" */
.slide-media {
  background: white;
  border-radius: 30px;
  padding: 30px;
  height: 450px; /* Grand cadre */
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
/* Petit dégradé subtil derrière l'image */
.slide-media::after {
  content:""; position: absolute; inset: 0;
  background: radial-gradient(circle at center, #fff5ec 0%, transparent 70%);
  border-radius: 30px; z-index: 0;
}

.slide-media img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  z-index: 1;
  /* Animation de lévitation permanente */
  animation: float 5s ease-in-out infinite;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.1));
}

.slide-body h3 {
  font-size: 36px; margin: 0 0 20px; font-weight: 800;
  background: linear-gradient(90deg, var(--text-title), #552222);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.slide-body p { font-size: 18px; color: var(--text-body); margin-bottom: 20px; }

.slide-note {
  margin-top: 20px; padding-top: 20px; border-top: 2px dashed var(--border-subtle);
  font-size: 14px; font-weight: 600; color: var(--primary-end);
}

/* Contrôles */
.slides-controls { display: flex; justify-content: center; gap: 20px; margin-top: 60px; }

.ctrl {
  width: 56px; height: 56px; border-radius: 50%; background: white;
  border: none; color: var(--text-title); font-size: 24px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card); transition: 0.3s;
}
.ctrl:hover { color: white; background: var(--primary-start); transform: scale(1.1); box-shadow: var(--shadow-glow); }

.dots button {
  width: 12px; height: 12px; border-radius: 50%; border: none; background: #e0d0d0;
  cursor: pointer; transition: 0.3s;
}
.dots button[aria-current="true"] { background: var(--primary-end); transform: scale(1.4); }

/* ============================================================
   6. FOOTER
   ============================================================ */
.site-footer {
  padding: 80px 24px; text-align: center; background: white;
  border-top: 1px solid var(--border-subtle);
}
.footer-nav a { margin: 0 16px; font-size: 15px; color: var(--text-muted); font-weight: 500; }
.footer-nav a:hover { color: var(--primary-start); }

/* ============================================================
   7. ANIMATIONS
   ============================================================ */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(1deg); }
}

/* ============================================================
   8. RESPONSIVE
   ============================================================ */
@media (max-width: 950px) {
  .hero { padding-top: 100px; }
  .hero-text h1 { font-size: 42px; }
  
  .slide { grid-template-columns: 1fr !important; gap: 30px; text-align: center; }
  .slide-media { height: 300px; order: -1; } /* Image au dessus */
  .slide-body h3 { font-size: 28px; }
  .ctrl { display: none; } /* Cache les flèches sur mobile */
}
