:root {
  --main-color: #7E5BEF;      /* violet principal */
  --secondary-color: #FFC312; /* jaune secondaire */
  --bg-color: #F8F7FC;
  --text-color: #1C1C1C;
  --accent-color: #A78BFA;
  --white: #fff;
  
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* NAVIGATION améliorée avec dégradé et animations */

.navbar {
  background: linear-gradient(90deg, var(--main-color) 0%, var(--secondary-color) 100%);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: background 0.5s ease, box-shadow 0.5s ease;
  background-size: 200% 100%;
  animation: navbarFadeIn 5s ease infinite alternate;
}

.navbar:hover {
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

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

.logo {
  color: var(--white);
  font-weight: 700;
  font-size: 1.8rem;
  user-select: none;
  cursor: pointer;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.logo:hover {
  transform: scale(1.1) rotate(-3deg);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--white);
  font-weight: 600;
  position: relative;
  transition: color 0.4s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--white);
  left: 0;
  bottom: -4px;
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--secondary-color);
}

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

@keyframes navbarFadeIn {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: 0 0;
  }
}

.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--main-color);
  color: white;
  text-align: center;
  padding: 5rem 1rem 6rem;
  user-select: none;
  z-index: 0;
  font-family: 'Poppins', sans-serif;
}

/* Arrière-plan dégradé plus doux */
.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -40%;
  width: 180%;
  height: 190%;
  background: radial-gradient(circle at center, 
    rgba(255, 195, 18, 0.3), /* jaune secondaire, plus transparent */
    transparent 70%);
  animation: pulseGradient 8s ease-in-out infinite;
  z-index: -1;
  filter: blur(40px);
  transform-origin: center;
}

@keyframes pulseGradient {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.05) rotate(10deg);
    opacity: 0.7;
  }
}

/* Texte */
.hero-subtitle {
  font-size: 1.3rem;
  opacity: 0.8;
  font-style: normal;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  font-weight: 400;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: none;
  line-height: 1.2;
  position: relative;
  display: inline-block;
  user-select: none;
  z-index: 1;
  color: #f0e9ff; /* un blanc légèrement violet pâle pour douceur */
}

.magic {
  color: var(--secondary-color);
  font-weight: 700;
  text-shadow:
    0 0 8px rgba(255, 195, 18, 0.5);
  animation: subtleGlow 4s ease-in-out infinite alternate;
  cursor: default;
}

/* Animation glow plus discrète */
@keyframes subtleGlow {
  0% {
    text-shadow:
      0 0 3px rgba(255, 195, 18, 0.3);
    transform: scale(1);
  }
  50% {
    text-shadow:
      0 0 8px rgba(255, 195, 18, 0.6);
    transform: scale(1.02);
  }
  100% {
    text-shadow:
      0 0 3px rgba(255, 195, 18, 0.3);
    transform: scale(1);
  }
}


/* SECTIONS */
.section {
  padding: 4rem 0;
}

.section h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--main-color);
  user-select: none;
}





/* PILIERS */
.grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
}

.pillar {
  width: 40vw; /* par défaut, 35% de la largeur de l’écran */
  max-width: 900px;
  margin: 0;
  background: var(--white);
  padding: 1.5rem;
  border-left: 6px solid var(--main-color);
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  border-radius: 8px;
  transition: box-shadow 0.4s ease, border-color 0.4s ease, transform 0.3s ease;
  cursor: default;

}

@media (max-width: 600px) { /* écran ≤ 600px = phone */
  .pillar {
    width: 80vw; /* 90% de la largeur de l’écran sur téléphone */
  }
}


.pillar:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  border-color: var(--secondary-color);
  transform: translateY(-5px);
}

.pillar h4 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: var(--text-color);
  user-select: none;
}

.pillar p {
  color: #555;
  line-height: 1.4;
}

/* ICONS (cartes) */
.icon {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 0.6rem;
  width: auto;
  height: auto;
  display: inline-block;
  color: inherit;
  user-select: none;
  transition: transform 0.3s ease;
  cursor: default;
}

.pillar:hover .icon {
  transform: scale(1.2);
}

.pique {
  color: #3B3B98; /* bleu foncé */
}

.carreau {
  color: var(--secondary-color); /* jaune vif */
}

.coeur {
  color: #EA2027; /* rouge vif */
}

.trefle {
  color: #009432; /* vert foncé */
}

/* CTA */
.cta {
  text-align: center;
}



.btn {
  background-color: var(--main-color);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s ease, transform 0.3s ease;
  user-select: none;
  border:none;
  cursor: pointer;
  
}

.btn:hover {
  background-color: var(--accent-color);
  transform: scale(1.05);
}

.start-btn {
  display: inline-block;
  background: linear-gradient(135deg, #ffcc00, #ff6f00);
  color: #000;
  padding: 16px 32px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  border: none;
  box-shadow: 0 0 15px rgba(255, 204, 0, 0.6);
  position: relative;
  overflow: hidden;
  animation: fiestaPulse 2.5s infinite ease-in-out;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Effet rebond + glow au hover */
.start-btn:hover {
  transform: scale(1.1) rotate(-1deg);
  box-shadow: 0 0 25px rgba(255, 111, 0, 0.8), 0 0 50px rgba(255, 204, 0, 0.6);
  
}

/* Animation de pulsation "fiesta" */
@keyframes fiestaPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.6);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 25px rgba(255, 111, 0, 0.8);
  }
}


/* FOOTER */
footer {
  background: #eee;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #444;
  user-select: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 1rem;
    
  }

  .hero h2 {
    font-size: 2rem;
  }

  .section h3 {
    font-size: 1.5rem;
  }
}



/* Conteneur du formulaire */
.contact-form {
  background-color: var(--white); /* fond blanc */
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* ombre douce */
  transition: box-shadow 0.3s ease;
}

.contact-form:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.08); /* effet au survol */
}

/* Chaque bloc de champ */
.contact-form .form-group {
  margin-bottom: 1.5rem;
}

/* Label des champs */
.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--main-color); /* violet principal */
}

/* Champs de saisie et textarea */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--accent-color); /* bordure violette claire */
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  background-color: #fff;
  color: var(--text-color);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Focus actif : champ sélectionné */
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--secondary-color); /* jaune */
  box-shadow: 0 0 0 4px rgba(255, 195, 18, 0.2); /* halo jaune */
  outline: none;
}

/* Message d'erreur ou de succès */
.form-message {
  text-align: center;
  margin-top: 1rem;
  font-weight: 500;
  color: var(--main-color); /* texte violet par défaut */
  min-height: 1.5rem; /* évite les sauts de layout */
}
