:root {
  /* Couleurs principales inspirées des thèmes : neige, magie, autonomie, fun, développement personnel */
  --main-color: #7E5BEF;         /* Violet magique (déjà existant) */
  --secondary-color: #FFC312;    /* Jaune fun et lumineux (déjà existant) */
  --accent-color: #A78BFA;       /* Violet pâle : rêve et douceur */
  --frost-white: #F8F9FA;        /* Blanc neige doux */        
  --text-color: #1C1C1C;
  --white: #fff;
  --third-color: rgba(126, 91, 239, 0.2); /* violet transparent */
}


* {
  /* Réinitialisation des marges et paddings, gestion du box-sizing */
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  /* Défilement fluide pour ancrages */
  scroll-behavior: smooth;
}

body {
  /* Police générale, couleur de fond et texte */
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
}

body::after {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  background-image: url('https://assets.codepen.io/82734/snow-falling-transparent.gif');
  background-size: cover;
  opacity: 0.2;
  z-index: 0;
}




.container {
  /* Conteneur centralisé avec une largeur max et padding horizontal */
  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);
    background-size: 200% 100%;
    animation: navbarFadeIn 5s ease infinite alternate;
}


.navbar:hover {
  /* Ombre renforcée au survol */
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.navbar .container {
  /* Flexbox pour espacer logo et liens */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  /* Style du logo : couleur, taille, poids */
  color: var(--white);
  font-weight: 700;
  font-size: 1.8rem;
  user-select: none;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

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

.nav-links {
  /* Liste des liens de navigation horizontale */
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  /* Style des liens : couleur, poids, effet survol */
  text-decoration: none;
  color: var(--white);
  font-weight: 600;
  position: relative;
  transition: color 0.4s ease;
}

.nav-links a::after {
  /* Ligne soulignement animée sous les liens */
  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 {
  /* Changement couleur et soulignement au survol/focus */
  color: var(--secondary-color);
}

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


/*Responsive*/




/* --- BURGER MENU (MOBILE) --- */
.toggle-menu {
    display: none;
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.toggle-menu span,
.toggle-menu::before,
.toggle-menu::after {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.toggle-menu span {
    top: 50%;
    margin-top: -1.5px;
}

.toggle-menu::before {
    content: '';
    top: 15px;
}

.toggle-menu::after {
    content: '';
    bottom: 15px;
}

.toggle-menu.active span {
    opacity: 0;
}

.toggle-menu.active::before {
    transform: translateX(-50%) rotate(45deg);
    top: 50%;
}

.toggle-menu.active::after {
    transform: translateX(-50%) rotate(-45deg);
    bottom: 50%;
}

/* --- MENU MOBILE (FULLSCREEN) --- */
@media (max-width: 904px) {
    .toggle-menu {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column; /* correction */
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1000;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .nav-links a {
        color: var(--white);
        font-size: 1.5rem;
    }

    .nav-links a::after {
        display: none;
    }
}

/* --- ANIMATION DE LA NAVBAR (inchangée) --- */
.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);
    background-size: 200% 100%;
    animation: navbarFadeIn 5s ease infinite alternate;
}

/* animation keyframes à vérifier si déjà dans ton fichier */
@keyframes navbarFadeIn {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}




/*Responsive nav*/



.hero {
  /* Section hero principale : fond violet, texte blanc, padding et arrondi */
  position: relative;
  overflow: hidden;
  margin: 20px;
  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;
  border-radius: 40px;
}

/* Arrière-plan dégradé doux animé pour la hero */
.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 transparent */
    transparent 70%);
  animation: pulseGradient 8s ease-in-out infinite;
  z-index: -1;
  filter: blur(40px);
  transform-origin: center;
}

@keyframes pulseGradient {
  /* Animation pulsante et rotation du dégradé d’arrière-plan */
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.05) rotate(10deg);
    opacity: 0.7;
  }
}

/* Sous-titre de la hero */
.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;
}

/* Titre principal */
.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; /* blanc légèrement violet pâle */
}

.magic {
  /* Style spécial pour un mot “magique” avec animation glow */
  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;
}

@keyframes subtleGlow {
  /* Animation glow discrète sur le texte */
  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);
  }
}




/*bold*/

.highlight-chance-active {
  position: relative;
  display: inline-block;
  color: #111;
  padding: 0 2px;
  font-size: 1.9rem; /* ← taille du texte ici */
}

.highlight-chance-active::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0.1em;
  width: 100%;
  height: 0.55em;
  background: var(--secondary-color);
  z-index: -1;
  border-radius: 6px;
}


/* droite et guache section */

.left hr{
    width:100px;
    margin:10px 0;
    background-color: #16B84E;
    border:0;
    height: 4px;
    border-radius: 6px;
}

.left h1{
    font-size: 29px;
    color: #000;
}

.left p{
    color: #999;
    font-size: 15px;
    margin: 12px 0;
}




.right{
    width: 55%;
    display: flex;
    align-items: center;
    justify-content: center;
    height:100%;
}

.right img{
    height:auto;
    width: 370px;
}


/*responsive*/


@media (max-width: 904px) {
  header {
    padding: 0 5%;
  }

  header .menu {
    display: none;
  }

  section {
    margin-top: 100px;
    flex-direction: column;
  }

  section .left,
  section .right {
    width: 100%;
  }

  .right img {
    width: 200px;
    height: auto;
  }

  .toggle-menu {
    width: 50px;
    height: 50px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    background: transparent;
  }

  /* Barre centrale */
  .toggle-menu span {
    position: absolute;
    width: 25px;
    height: 5px;
    background-color: #fff; /* ou var(--white) */
    border-radius: 6px;
    transition: 0.5s;
  }

  /* Barre du dessus */
  .toggle-menu::before {
    content: "";
    position: absolute;
    width: 25px;
    height: 5px;
    background-color: #fff; /* ou var(--white) */
    border-radius: 6px;
    box-shadow: 0 10px 0 #fff; /* crée la barre du bas via shadow */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(-10px);
    transition: 0.5s;
  }

  /* Barre du dessous */
  .toggle-menu::after {
    content: "";
    position: absolute;
    width: 25px;
    height: 5px;
    background-color: #fff; /* ou var(--white) */
    border-radius: 6px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(10px);
    transition: 0.5s;
  }

  /* Animation vers croix */
  .toggle-menu.active::before {
    transform: translate(-50%, -50%) rotate(-45deg);
    box-shadow: none;
  }

  .toggle-menu.active::after {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .toggle-menu.active span {
    background-color: transparent;
  }

  /* NAVIGATION */
  .toggle-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    background: transparent;
  }

  .toggle-menu span,
  .toggle-menu::before,
  .toggle-menu::after {
    display: block;
    width: 25px;
    height: 5px;
    background: var(--white);
    border-radius: 6px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
  }

  .toggle-menu span { top: 50%; margin-top: -2.5px; }
  .toggle-menu::before { top: 15px; }
  .toggle-menu::after { bottom: 15px; }

  .toggle-menu.active span { opacity: 0; }
  .toggle-menu.active::before { transform: translateX(-50%) translateY(0) rotate(45deg); top: 50%; }
  .toggle-menu.active::after { transform: translateX(-50%) translateY(0) rotate(-45deg); bottom: 50%; }

  /* MENU MOBILE */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links li { margin: 1rem 0; }
  .nav-links a {
    font-size: 1.5rem;
    color: var(--white);
  }
  .nav-links a::after { display: none; }

  /* HERO */
  .hero {
    padding: 4rem 1rem 5rem;
    border-radius: 25px;
  }

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

  .hero-subtitle { font-size: 1.1rem; }

  /* LEFT / RIGHT SECTIONS */
  section {
    flex-direction: column;
    margin-top: 60px;
  }

  .left, .right {
    width: 100%;
  }

  .right img { width: 200px; height: auto; }

  /* PILLARS */
  .pillar {
    width: 90vw;
    margin: 1rem auto;
  }


/* PETITS ÉCRANS (<600px) */
@media (max-width: 600px) {
  .hero-title { font-size: 1.8rem; }
  .hero-subtitle { font-size: 1rem; }
  .pillar { width: 95vw; }
}

}





/* TEMOINIAGES */

.testimonial-marquee.container > .section-title {
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  padding: 1rem 0;
  background-color: var(--bg-color);
  color: var(--main-color);
  text-align: center;
  box-sizing: border-box;
}

/*Formulaire*/

.responsive-iframe {
  position: relative;
  width: 100%;
  padding-bottom: 1500px; /* Ajuste en fonction de la hauteur réelle de ton form */
  height: 0;
  overflow: hidden;
}

.responsive-iframe iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}



/* CONTENEUR et TITRE déjà dans .testimonial-marquee / .section-title */

/* Animation de défilement horizontal fluide */
.marquee-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: scroll-continuous 30s linear infinite;
}

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

/* Cards témoignages déjà définies dans .testimonial-card */

/* Style étoiles */

.stars {
  --star-size: 1.3rem;
  --star-color: var(--secondary-color);
  position: relative;
  font-size: var(--star-size);
  line-height: 1;
  display: inline-block;
  width: calc(var(--star-size) * 5);
  height: var(--star-size);
  user-select: none;
  margin-top: 0.6rem;
}

/* Fond étoiles grises */
.stars::before {
  content: "★★★★★";
  letter-spacing: 3px;
  color: #ddd;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  user-select: none;
}

/* Étoiles pleines colorées, largeur dynamique pour demi-étoiles */
.stars::after {
  content: "★★★★★";
  letter-spacing: 3px;
  color: var(--star-color);
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
  width: var(--star-after-width, 0%);
  pointer-events: none;
  user-select: none;
}


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

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

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

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

@media (max-width: 600px) {
  /* Adaptation mobile */
  .pillar {
    width: 80vw;
  }
}

.pillar:hover {
  /* Hover effet carte */
  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 dans 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 - Call to Action */
.cta {
  text-align: center;
}

.btn {
  background-color: var(--main-color);
  color: var(--white);
  font-weight: bold;
  font-size: 16px;
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--third-color);
  transition: all 0.15s ease-in-out;
  position: relative;
  top: 5px; /* ← bouton légèrement plus bas */
  bottom: 5px;
}


.btn:hover {
  top: -1px;
  box-shadow: 0 5px 0 var(--accent-color);
}

.btn:active {
  top: 4px;
  box-shadow: 0 0 0 var(--third-color);
}

.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;
}

.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);
}

@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 stylé ===== */
footer {
  background-color: var(--main-color);
  color: var(--white);
  padding: 2rem 0;
  margin-top: 4rem;
  font-size: 0.9rem;
  user-select: none;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-container p {
  margin: 0;
  font-weight: 400;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.footer-links a {
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* Responsive Footer */
@media (max-width: 600px) {
  .footer-links {
    flex-direction: column;
    gap: 0.8rem;
  }
}

.footer-img {
  position: relative;
  bottom: 132px; /* OK pour décaler vers le bas */
  height: 100px;
  border-radius: 30px;
  object-fit: contain;
  display: block; /* image classique */
  margin: 0 auto; /* centrage horizontal */
}


/*Timer*/

.timer-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 3rem 0;
}

.timer-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timer-right {
  flex: 1;
  color: var(--text-color);
  background: var(--frost-white);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.timer-right h2 {
  color: var(--main-color);
  margin-bottom: 1rem;
}

#time-range {
  width: 100%;
  margin: 1rem 0;
  accent-color: var(--main-color);
}

#start-btn {
  margin-top: 1rem;
}

.circle {
  position: relative;
  width: 180px;
  height: 180px;
}

.circle svg {
  transform: rotate(-90deg);
}

circle {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
}

circle.bg {
  stroke: var(--third-color);
}

circle.progress {
  stroke: var(--secondary-color);
  stroke-dasharray: 502; /* 2 * π * r (r=80) */
  stroke-dashoffset: 502;
  transition: stroke-dashoffset 0.5s linear;
}

.circle-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--main-color);
}

@media (max-width: 904px) {
  .timer-section {
    flex-direction: column;
    gap: 2rem;
  }
}
