/* ------------------------------ */
/* BASE + RESET */
/* ------------------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  height: 100%;
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  font-family: 'Fredoka', sans-serif;
}

/* ------------------------------ */
/* VARIABLES COULEURS */
/* ------------------------------ */
:root {
--dark: #3A3A3A;
--white: #FFFFFF;
--red: rgba(255,51,0,1);
--orange: rgba(255,157,3,1);
--gradient-start: rgba(252,213,63,1);
--gradient-end: rgba(255,157,3,1);
--highlight: rgba(245,161,20,1);
--color-text-default: rgba(26,26,26,1);
--grey: #6c6c6c;
--grey-light: #f6f4f0;
--card-radius: 16px;
--transition: all 0.3s ease;
--green: #00B050;
--purple: #846CE5;
--pink: #DD67BC;
--teal: #60D6D9;
--orange-bright: #FE9522;
--purple-light: #846CE5;
--line-orange: #f6a66b;
}

/* ------------------------------ */
/* HEADER HEROES STICKY */
/* ------------------------------ */
header {
  position: sticky; 
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 20px rgba(218,191,184,0.4);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 2px solid rgba(255,255,255,0.1);
  z-index: 10;
}

/* Halo doux du header */
  header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--red) 100%);
  opacity: 0.05;
  animation: pulse 6s infinite alternate;
  z-index: 0;
}

header .brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1;
}

header .brand .logo-img {
  margin-top: 10px;
  max-height: 55px;
  filter: drop-shadow(0 0 8px var(--gradient-start));
  transition: transform 0.3s ease;
}

header .brand .logo-img:hover {
  transform: scale(1.08);
}

header .brand .sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin: 0;
}

.hamburger {
  display: none;
  font-size: 32px;
  cursor: pointer;
  z-index: 20;
  user-select: none;
}
/* Menu déroulant caché */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: center; 
  border-radius: 10px;
  width: 100%;
  background: white;
  padding: 0; 
  overflow: hidden;
  max-height: 0; /* invisible */
  opacity: 0;
  transform: translateY(-5px);
  transition: 
  max-height 0.3s ease,
  opacity 0.25s ease,
  transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Style des liens */
.mobile-menu a {
  padding: 15px 20px;
  display: block;
  border-bottom: 1px solid #eee;
  color: #333;
  text-decoration: none;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* Menu déroulant ouvert */
.mobile-menu.active {
  max-height: 300px; 
  opacity: 1;
  padding: 10px 0;
  transform: translateY(0);
}

.hamburger.open {
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}

/* ------------------------------ */
/* BOUTONS HEROES */
/* ------------------------------ */
button, .cta-primary, .cta-secondary, .header-btn {
  font-family: 'Fredoka', sans-serif !important;
  font-size: 20px !important;
  font-weight: 600 !important;        
  color: var(--dark) !important;      
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--red) 100%) !important;
  text-align: center;
  line-height: 1.4;
  border-radius: 20px;
  padding: 8px 20px;
  cursor: pointer;
  min-width: 60px;
  min-height: 44px;
  width: max-content;
  height: max-content;
  border: 2px solid var(--dark);
  box-shadow: 0 3px 0px 0px var(--dark);
  text-decoration: none;
  display: inline-block;
  outline: none;
}

/* Hover effect boutons */
button::before,
.cta-primary::before,
.cta-secondary::before {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 0;
}

.cta-primary:hover::before,
button:hover::before {
  background: radial-gradient(circle, rgba(252,213,63,0.3), transparent 70%);
  opacity: 1;
  transform: scale(1.2);
}

.cta-secondary:hover::before {
  background: radial-gradient(circle, rgba(255,157,3,0.3), transparent 70%);
  opacity: 1;
  transform: scale(1.2);
}

/* Hover animation des boutons */
button:hover,
.cta-primary:hover,
.cta-secondary:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(0,0,0,0.16);
}
/* Regroupement lien + bouton */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

/* Lien près du bouton */
.header-link  {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark); /* noir */
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 2px;
}

.header-link1{
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark); /* noir */
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 2px;
}

.header-link:hover {
  opacity: 0.85;
}

.header-link::before {
  content: "✨"; /* étoile avant le texte */
  font-size: 1rem;
}

.header-link1::before {
  content: "👥"; /* buste de personnes */
  font-size: 1rem;
  margin-bottom: 5px;
}

.header-link1:hover {
  opacity: 0.85;
}


/* ------------------------------ */
/* HERO SECTION 2 COLONNES */
/* ------------------------------ */
.hero {
  padding: 100px 20px;
  background: linear-gradient(to right, #F8E7E9 40%, #F3D4D8 100%);
  color: var(--dark);
  overflow: hidden;
}

.hero-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
  flex-wrap: wrap; /* responsive */
}

/* COLONNE GAUCHE */
.hero-left {
  margin-left: 50px;
  flex: 1 1 450px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* COLONNE DROITE */
.hero-right {
  margin-right: 50px;
  flex: 1 1 450px;
  display: flex;
  justify-content: flex-end;
  position: relative;
}

/* Hero tag */
.hero-tag {
  display: inline-block;
  background:  #E7A8AD;
  padding: 6px 12px;
  margin-bottom: 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  width: 155px;
}

/* Titre et texte */
.hero h1 {
  font-size: 3rem;
  font-family: 'Fredoka', sans-serif;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--dark);
  margin-bottom: 20px;
}

.hero-actions .header-btn {
  padding: 12px 20px !important; /* Augmente la hauteur */
  font-size: 1rem !important;    /* Optionnel : légèrement plus grand */
}

.hero-actions .header-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(0,0,0,1);
}

/* Cartes croisées */
.hero-cards {
  position: relative;
  width: 350px; /* largeur globale du bloc */
  height: 250px; /* hauteur pour gérer le chevauchement */
}

.card-image {
  width: 145%;
  height: 160%;
  object-fit: cover; 
  border-radius: inherit; 
}

.card-image1 {
  width: 150%;
  height: 160%;
  object-fit: cover; /* pour que l'image garde ses proportions tout en remplissant la carte */
  border-radius: inherit; /* si tes cartes ont des coins arrondis */
}

.card-image-middle{
    width: 145%;
  height: 160%;
  object-fit: cover; 
  border-radius: inherit; 
}

/* Carte générale */
.card {
  border-radius: 20px;
  width: 250px;
  height: 200px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  position: absolute;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Carte du dessous */
.card-back {
  z-index: 1;
  transform: rotate(-5deg) translateX(3px) translateY(30px);
  animation: cardDanceBack 3.5s ease-in-out infinite;
}

/* Carte du milieu */
.card-middle {
  z-index: 2;
  transform: rotate(7deg) translateX(50px) translateY(10px);
  animation: cardDanceMiddle 3.5s ease-in-out infinite;
  animation-delay: 0.1s;
}

/* Carte du dessus */
.card-front {
  z-index: 3;
  transform: rotate(18deg) translate(92px, -9px);
  animation: cardDanceFront 3.5s ease-in-out infinite;
  animation-delay: 0.2s;
}


/* Carte du dessous - arrière */
@keyframes cardDanceBack {
  0%   { transform: rotate(-12deg) translateX(-70px) translateY(60px); }
  40%  { transform: rotate(-16deg) translateX(-90px) translateY(40px); }
  70%  { transform: rotate(-8deg) translateX(-60px) translateY(50px); }
  100% { transform: rotate(-12deg) translateX(-70px) translateY(60px); }
}


/* Carte du milieu - légèrement plus haut et à droite */
@keyframes cardDanceMiddle {
  0%   { transform: rotate(8deg) translateX(20px) translateY(40px); }
  40%  { transform: rotate(4deg) translateX(30px) translateY(60px); }
  70%  { transform: rotate(12deg) translateX(40px) translateY(30px); }
  100% { transform: rotate(8deg) translateX(20px) translateY(40px); }
}

/* Carte du dessus - plus haute et à droite */
@keyframes cardDanceFront {
  0%   { transform: rotate(-10deg) translateX(80px) translateY(0px); }
  40%  { transform: rotate(-18deg) translateX(110px) translateY(-20px); }
  70%  { transform: rotate(-6deg) translateX(90px) translateY(10px); }
  100% { transform: rotate(-10deg) translateX(80px) translateY(0px); }
}


/* ------------------------------ */
/* WHY SECTION */
/* ------------------------------ */
.why {
  padding: 100px 40px; 
  text-align: center;
  background: var(--grey-light);
  margin-bottom: 20px;
}

.why h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 3rem; /* légèrement plus grand pour mieux respirer */
  margin-bottom: 60px; /* plus d'espace sous le titre */
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 3 colonnes de largeur identique */
  justify-items:center; 
  gap: 15px; 
  margin: 0px;
}

.why-item {
  background: var(--white);
  border-radius: var(--card-radius);
  padding: 30px 20px;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  max-width: 380px;
  display: flex;
  flex-direction: column; 
  justify-content: space-around;
  width: 100%; /* prend toute la largeur de la colonne */
  min-height: 250px; /* même hauteur pour toutes */
  margin: 0;
}

.why h3{
  margin-bottom: 10px;
}

.why-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 120px; /* ajuste cette valeur si nécessaire */
}

.why-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.why-item .icon {
  font-size: 3rem; /* icône un peu plus grande pour impact visuel */
  margin-bottom: 16px;
}

/* ------------------------------ */
/* MISSIONS SECTION */
/* ------------------------------ */

.missions {
  padding: 0px 40px; 
  text-align: center;
  margin-bottom: 50px;
}

.missions h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 3rem;
  margin-bottom: 60px;
  color: #000; 
}

.missions-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.mission-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.mission-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.mission-card h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.2rem;
  margin: 16px 0 8px;
  color: #000;
}

.mission-card p {
  font-size: 1rem;
  color: #000;
  padding: 0 14px 20px;
  flex-grow: 1;
  text-align:left;
}

/* CONTAINER DU CAROUSEL */
.missions-track {
  display: flex;
  transition: transform 0.4s ease;
}

.mission-card {
  min-width: 300px; /* ou la largeur que tu veux */
  margin-right: 16px;
}

.missions-carousel:hover .missions-track {
  animation-play-state: paused; /* pause au survol */
}

@keyframes scrollMissions {
  0% {
  transform: translateX(0);
  }
  100% {
  transform: translateX(-110%); /* ajuster selon le nombre de cartes */
  }
}

.mission-card {
  flex-shrink: 0;
  min-width: 280px;
  max-width: 330px;
}

.mission-card {
  min-width: 280px;
  max-width: 320px;
  background: var(--white);
  border-radius: var(--card-radius);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ➜ STOP ANIMATION AU SURVOL */
.missions-carousel:hover .missions-track {
  animation-play-state: paused;
}

/* ------------------------------ */
/* STEPS SECTION */
/* ------------------------------ */
.steps {
  padding: 120px 40px;
  text-align: center;
  background: var(--grey-light);
}

.steps h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 2.25rem;
  margin-bottom: 60px;
}

/* Wrapper frise */
.steps-wrapper {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 30px; /* un peu plus d’espace */
  max-width: 1000px;
  margin: 0 auto;
}

/* Petite ligne entre les étapes */
.step-line {
  height: 4px;          /* un peu plus épaisse */
  width: 120px;         /* plus longue */
  background: var(--line-orange);
  border-radius: 4px;
  align-self: center; 
  margin-bottom: 20px;  /* alignement avec cercle agrandi */
}

/* Chaque étape */
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: flex-start; 
  flex: 1;
  max-width: 220px;
  max-width: 250px;
}

/* Cercle icône */
.step-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--line-orange);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  position: relative;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
  flex-shrink: 0; /* empêche l’écrasement */
}

/* Petit numéro */
.step-icon .number {
  font-size: 0.85rem; 
  font-weight: bold;
  background: #e63946;
  color: white;
  padding: 3px 7px;
  border-radius: 8px;
  position: absolute;
  top: -8px;
  right: -8px;
  transform-origin: center; /* rotation autour du centre */
  transition: transform 0.6s ease; /* transition douce */
}

/* Au survol du parent (ou de lui-même) */
.step-icon:hover .number {
  transform: rotate(360deg);
}

/* Emoji */
.step-icon .emoji {
  font-size: 2.2rem;
}

/* Hover cercle */
.step-icon:hover {
  transform: scale(1.08);
}

.step h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.step p {
  color: var(--grey);
  font-size: 1rem;
}

/* ------------------------------ */
/* PRICING EXPLAIN */
/* ------------------------------ */
.pricing-explain {
  padding: 60px 20px;
  text-align: center;
  max-width: 950px;
  margin: 0 auto 0px;
}

.pricing-explain h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 3rem;
  margin-bottom: 44px;
}

/* LIST */
.list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: flex;
  flex-direction: column;
  gap: 35px; /* un peu plus compact */
}

/* Row harmonieuse */
.list li {
  display: flex;
  flex-direction: row;
  align-items: stretch; /* étire le li sur toute la hauteur */
  gap: 25px;
  text-align: left;
}

/* Icone dans un cercle */
.list li .icon {
  font-size: 1.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--gradient-start);
  color: white;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 10px;
  transition: transform 0.3s ease;
}

.list li .icon:hover {
  transform: scale(1.12);
}

/* Groupe texte */
.list li .text-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0px;
}

.list li h3 {
  font-size: 1.25rem;
  margin: 5px;
}

.list li strong {
  color: var(--orange-bright);
}

.list li p {
  font-size: 1rem;
  margin: 0;
  color: var(--color-text-default);
}

.pricing-explain .center-text {
  font-size: 1.1rem;
  color: var(--color-text-default);
}

/* ------------------------------ */
/* SECTION PRE INSCRIPTION */
/* ------------------------------ */
#preSignupSection {
  background-color: #ffffff;
  box-shadow: 2px 2px 0px 0px var(--color_text_default);
  max-width: 650px;       /* max largeur 650px */
  width: calc(100% - 40px); /* responsive */
  min-height: 500px;
  height: max-content;
  margin: 30px auto;
  z-index: 9;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: center;
  row-gap: 20px;
  border: 1px solid var(--color_text_default);
  border-radius: 10px;
  padding: 20px;
}

/* Titres et paragraphes centrés */
#preSignupSection h2,
#preSignupSection p,
#preSignupSection h3 {
  text-align: center;
}

/* Formulaire */
#preSignupForm {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 100%;
}

/* Labels */
#preSignupForm label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  text-align: left;
}

/* Champs input et select */
#preSignupForm input,
#preSignupForm select {
  width: 100%;
  max-width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  margin-bottom: 12px;
  font-size: 1rem;
  box-sizing: border-box;
}

/* Champ dynamique groupe */
#nbPersonnesWrapper.hidden {
  display: none;
}

#preSignupForm .consentement {
  display: flex;
  justify-content: flex-start; /* garde tout à gauche */
}

/* Consentement : check en ligne avec texte */
#preSignupForm .consentement label {
  display: inline-flex;       
  align-items: center; 
  gap: 18px;          
  text-align: left;
  font-weight: 400; 
}

#preSignupForm .consentement input[type="checkbox"] {
  width: auto;
  height: auto;
  margin: 0;
  flex-shrink: 0;
}

/* Bouton */
#preSignupForm button {
  width: 100%;
  max-width: 150px; /* bouton plus petit */
  align-self: center; /* centré dans le formulaire */
  padding: 12px;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
}

/* ------------------------------ */
/* SECTION OFFRES */
/* ------------------------------ */
/* GRID */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
  max-width: 1100px;          
  width: 100%;
  margin: 40px auto 0;        
  justify-items: center;  
}

.offers{
  background: #F6F4F0;
  padding: 60px 0;
  justify-content: center; 
  display: flex;
  flex-direction: column;
}

.offers h2 {
  font-size: 3rem;
  text-align: center;
  width: 100%;
  margin-bottom: 15px;
}

/* CARTE */
.offer-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #F4D8DC;
  border-radius: 14px;          
  padding: 24px 18px;         
  text-align: center;
  border: 1px solid #e6e6e6;     
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);  
  transition: transform .2s ease;
  max-width: 300px;
  margin: 0 auto 50px;
}
.offer-card h3,
.offer-card .subtitle,
.offer-card .price,
.offer-card .offer-list,
.offer-card button {
  flex-shrink: 0;
}

.offer-card:hover {
  transform: translateY(-4px);
}

.offers-subtitle{
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.offers-subtitle2{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 24px;
}


/* ICONE */
.offer-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

/* SOUS-TITRE */
.subtitle {
  color: #6b6b6b;
  font-size: 1rem;
  margin-bottom: 12px;
}

/* PRIX */
.price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--orange-bright);
  margin: 20px 0;
}

/* LISTE */
.offer-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  text-align: left;
}

.offer-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* CHECK VERT POMME */
.check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #48d84f; /* vert pomme */
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  flex-shrink: 0;
}

/* POPULAIRE — MILIEU */
.popular {
  border: 2px solid #ff4b4b; /* rouge */
  position: relative;
}

/* TAG POPULAIRE */
.popular-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff4b4b;
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 180px;
}

/* Question acheteur  */
#giftFormSection {
  margin-top: 20px;
  padding: 25px 30px;
  background: #f5f5f5;
  border-radius: 12px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

#giftFormSection h3 {
  text-align: center;
  margin-bottom: 20px;
  color: #1d4ed8;
}

#giftForm label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
}

#giftForm input {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
}

#giftForm button {
  width: 100%;
  padding: 12px;
  margin-top: 15px;
  background: #1d4ed8;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

#giftForm button:hover {
  background: #1e40af;
}

/* FORMULAIRES BÉNÉFICIAIRE */
.hidden {
  display: none !important;
}

.beneficiary-form {
  max-width: 1200px;
  margin: 0 auto;
}

.beneficiary-form input,
.beneficiary-form select,
.beneficiary-form textarea {
  background: #fff !important; /* fond blanc */
  color: #000 !important;  
  font-size: 14px;
  font-weight: 700;
  border: 1px solid #ccc;
}

/* Champ code cadeau vraiment plus court */
.input-giftcode {
  width: 180px;           /* largeur fixe */
  max-width: 180px;       /* empêche l’extension */
  padding: 12px 10px;      /* moins de padding pour réduire la taille */
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

/* Harmonisation du bouton “Envoyer mes préférences” */
button.cta-primary {
  padding: 12px 20px;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  background: radial-gradient(circle at center, rgba(255,157,3,1) 20%, rgba(252,213,63,1) 50%, rgba(255,51,0,1) 100%);
  color: #fff;
  cursor: pointer;
  transition: 0.2s ease;
}

button.cta-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.form-wrapper {
  padding: 30px 25px;
  text-align: center;
}

.form-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 25px;
}

.form-intro {
  font-size: 1.15rem;
  color: #6b6b6b;
  margin-bottom: 24px;
  line-height: 1.6;
}

.input-block {
  margin-bottom: 24px;
}

.inline-check {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-weight: 500;
  color: #080808;
}

/* --- FORMULAIRE CENTRÉ ET HARMONIEUX --- */
.form-section {
  margin: 0 auto 50px; /* centre horizontalement et ajoute l'espacement en bas */
  text-align: center; 
  width: 800px;   
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--red) 100%);
  height: 340px;
  border-radius: 20px;
  justify-content: center;
}

.form-section1{
  height: 180px;
  margin: 0 auto 50px; /* centre horizontalement et ajoute l'espacement en bas */
  text-align: center; 
  justify-content: center;
  display: flex;
  align-items: center;  
  width: 800px;   
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--red) 100%);
  border-radius: 20px;
  flex-direction: column;
}

.form-section1 h3 {
  font-size: 1.75rem !important;
  margin-bottom: 16px;
  color: #555 !important;
}

.form-section h3 {
  font-size: 1.75rem !important;
  margin-bottom: 16px;
  color: #555 !important;
}

/* Deux colonnes centrées */
.two-cols {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;   /* centre les champs */
}

.two-cols input,
.two-cols select {
  flex: 0 1 180px;          /* largeur fixe pour homogénéité */
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  text-align: center;
}

/* pour la section localisation */
.form-section1 .two-cols {
  display: flex;
  justify-content: center;
  gap: 20px; /* espace entre les champs */
  flex-wrap: wrap; /* permet de passer à la ligne si trop étroit */
}

.form-section1 .two-cols input,
.form-section1 .two-cols select {
  flex: 1 1 200px; /* prend un minimum de 200px et s'adapte */
  max-width: 250px; /* limite pour ne pas déborder */
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  text-align: center;
}
/* Textarea et champ "Autre cause" arrondis et centrés */
textarea,
.input-other-cause {
  width: 100%;
  max-width: 400px;         /* limite la largeur */
  margin: 0 auto;           /* centre horizontalement */
  min-height: 0px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  resize: vertical;
  display: block;
}

/* --- INPUT ROW (Code cadeau) --- */
.input-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;           /* réduit l’écart entre input et bouton */
  margin-top: 12px;   /* moins de marge au-dessus */
}

.input-row input {
  width: 160px;       /* largeur compacte */
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  text-align: center;
}

.input-row button {
  padding: 10px 18px; /* bouton un peu plus petit pour correspondre à l’input */
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  background: radial-gradient(circle at center, rgba(255,157,3,1) 20%, rgba(252,213,63,1) 50%, rgba(255,51,0,1) 100%);
  color: #fff;
  cursor: pointer;
  transition: 0.2s ease;
}

.input-row button:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.inline-check{
  margin-bottom: 40px;
  font-size: 20px;
}

/* --- GRID CHECKBOXES CENTRÉE ET HARMONIEUSE --- */
.grid-checkbox input[type="checkbox"] {
  -webkit-appearance: none; /* Chrome / Safari */
  -moz-appearance: none;    /* Firefox */
  appearance: none;         /* standard */
  width: 20px;
  height: 20px;
  border-radius: 6px;       /* coins arrondis */
  border: 2px solid #ccc;   /* contour */
  background: #fff;         /* fond décoché */
  cursor: pointer;
  position: relative;
  vertical-align: middle;
  transition: background 0.2s, border-color 0.2s;
}

/* Quand la case est cochée */
.grid-checkbox input[type="checkbox"]:checked {
  background: #FF9E03;      /* fond orange */
  border-color: #FF9E03;
}

/* Ajouter un ✓ (optionnel) */
.grid-checkbox input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: -3px;
  left: 2px;
  font-size: 16px;
  color: red;
}

.grid-checkbox {
  display: grid;
  grid-template-columns: repeat(auto-fit, 220px); 
  gap: 12px;                  /* espacement uniforme */
  justify-content: center;     /* centre la grille */
  margin: 0 auto 24px;         /* marge en bas */
}

.grid-checkbox label {
  display: flex;
  align-items: center;
  justify-content:flex-start;
  gap: 8px;                 
  padding: 8px 10px;        
  background: #f5f5f5;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
  width: 210px; 
  text-align: center;
}

/* Messages d'erreur */
.error-msg {
  color: #e63946;
  font-size: 0.85rem;
  margin-top: 4px;
  display: none;
}

/* ------------------ MODAL ------------------ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: white;
  width: 90%;
  max-width: 420px;
  padding: 28px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.modal-box h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.modal-box p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.modal-box .cta-primary {
  width: 100%;
}

/* Icone animé */
.modal-icon {
  font-size: 60px;
  color: #ff3b3b;
  margin-bottom: 10px;
  animation: pulse 0.8s infinite alternate ease-in-out;
}

@keyframes pulse {
  from { transform: scale(1); opacity: 0.8; }
  to { transform: scale(1.15); opacity: 1; }
}


/* ------------------------------ */
/* FOOTER */
/* ------------------------------ */

.footer {
  padding: 40px 20px;
  text-align: center;
  border-top: 2px solid rgba(0,0,0,0.1);
  margin-top: 60px;
  background: #F6F4F0; 
}

.footer-buttons {
  display: flex;             
  justify-content: center;   
  gap: 20px;               
  flex-wrap: wrap;          
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
}

.footer-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}

.footer-contact:hover {
  transform: scale(1.05);
  background: rgba(255,255,255,0.6);
}

/* COPYRIGHT */
.footer-copy-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-around; /* écarte les deux éléments aux extrémités */
  flex-wrap: wrap; /* pour que ça reste responsive sur mobile */
  gap: 10px; /* un petit espace si jamais ils se déplacent */
  font-size: 0.9rem;
  color: var(--dark);
  margin-top: 30px;
}

.footer-copy a {
  color: var(--dark); /* rend le lien bien visible */
  opacity: 1;          /* annule l'opacité héritée */
  text-decoration: underline; /* optionnel pour le lien */
}

.footer-payment {
  font-size: 0.85rem;
  color: var(--dark);
  opacity: 0.8;
  margin-top: 10px;
}

@media (max-width: 768px) {
.why-grid, .steps-grid {
  grid-template-columns: 1fr;
  gap: 20px;
}

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

/* =========================================================
MEDIA QUERIES — RESPONSIVE COMPLET
XS / S / M / L / TABLET / DESKTOP
========================================================= */

/* --- XS < 360px --- */
@media screen and (max-width: 359px) {
/* Header */
  header {
    padding: 0.3rem 0.8rem;
  }

  .logo-img {
    max-height: 32px;
    margin-top: 0;
  }

  .header-actions { display: none; }
  .hamburger { display: block; font-size: 24px; }
  /* Titre + descendre en mobile */
  h1 {
    margin-top: 40px;
    font-size: 26px;
  }

  /* Footer : titre plus petit */
  .footer-title {
    font-size: 18px;
  }

  /* Footer : espace entre les boutons */
  .footer-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .header-btn {
    margin-right: 0;
    width: 100%;
  }

  .cta-primary {
    width: 100%;
    text-align: center;
  }

/* Hero */
  .hero-right {
    display: flex;
    justify-content: center;
  }

  .hero-cards {
    width: 180px;
    height: 130px;
    position: relative;
    margin: 0 auto;
  }

  .card {
    width: 160px;
    height: 110px;
    top: 0;
    left: 50%;
    transform: translateX(-50%); /* toujours centrée */
    border-radius: 16px;
  }

  /* Carte du dessus */
  .card-front {
    transform: translateX(-50%) rotate(6deg) translateY(-6px);
  }

  /* Carte du milieu */
  .card-middle {
    transform: translateX(-50%) rotate(3deg) translateY(4px);
  }

  /* Carte du dessous */
  .card-back {
    transform: translateX(-50%) rotate(-4deg) translateY(12px);
  }

  .card-image,
  .card-image1,
  .card-image-middle {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }


  /* OFFRES */
  .offers-grid {
    grid-template-columns: 1fr; /* 1 seule colonne */
    gap: 15px;
  }
}

/* --- S ≥ 360px --- */
@media screen and (min-width: 360px) and (max-width: 479px) {
header {
padding: 0.4rem 1rem;
}

.logo-img {
max-height: 35px;
margin-top: 0;
}

.header-actions { display: none; }
.hamburger { display: block; font-size: 26px; }


.hero-container {
flex-direction: column-reverse;
align-items: center;
justify-content: center;
}


.hero-left {
text-align: center;
margin: 0;
}

.hero-right {
flex: 1 1 250px;
}

.hero h1 {
font-size: 1.8rem;
}

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

  .hero-cards {
    width: 220px;
    height: 140px;
  }

.card {
width: 150px;
height: 100px;
margin-left: 55px;
}

.card-front {
transform: rotate(12deg) translate(60px, -6px);
}

.card-back {
transform: rotate(-5deg) translateX(3px) translateY(25px);
}

.missions h2 { font-size: 2rem; }
.missions-track {
flex-direction: column;
animation: none;
}
.mission-card { width: 100%; max-width: 100%; margin-bottom: 20px; }



.steps {
padding: 60px 15px;
}
.steps h2 {
font-size: 1.8rem;
margin-bottom: 40px;
}
.steps-wrapper {
flex-direction: column;
gap: 40px;
}
.step-line {
width: 60px;
}
.step {
max-width: 100%;
}
.step-icon {
width: 80px;
height: 80px;
}
.step-icon .emoji {
font-size: 1.8rem;
}
.step-icon .number {
font-size: 0.75rem;
top: -6px;
right: -6px;
}
.step h3 { font-size: 1.1rem; }
.step p { font-size: 0.9rem; }

.offers-grid {
grid-template-columns: 1fr; /* 1 seule colonne */
gap: 15px;
}
}

/* --- M ≥ 480px --- */
@media screen and (min-width: 480px) and (max-width: 575px) {
header {
padding: 0.45rem 1rem;
}

.header-actions { display: none; }
.hamburger { display: block; }

.hero {
padding: 70px 20px;
}

.hero-left {
text-align: center;
}

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

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

.hero-cards {
width: 260px;
height: 170px;
}

.card {
width: 220px;
height: 160px;
}

.card-front {
transform: rotate(14deg) translate(70px, -7px);
}

.card-back {
transform: rotate(-4deg) translateX(4px) translateY(28px);
}

.card-image {
  width: 105%;
  height: 100%;
}

.card-image1 {
  width: 100%;
  height: 100%;
}

.card-image-middle{
    width: 105%;
  height: 100%;
}

.missions-track {
flex-wrap: wrap;
justify-content: center;
animation: none;
}
.mission-card { margin-bottom: 20px; }


.steps-wrapper {
flex-direction: column;
gap: 50px;
}
.step-line { width: 100px; }
.step-icon { width: 90px; height: 90px; }
.step-icon .emoji { font-size: 2.1rem; }

@media screen and (min-width: 480px) and (max-width: 575px) {
.offers-grid {
grid-template-columns: 1fr; /* 1 seule colonne */
gap: 20px;
}
}
}

/* --- L ≥ 576px --- */
@media screen and (min-width: 576px) and (max-width: 767px) {
header {
padding: 0.45rem 1.2rem;
}

.header-actions { display: none !important;}
.hamburger { display: block; }

.hero {
padding: 80px 25px;
}

.hero-left {
text-align: center;
}  

.hero h1 {
font-size: 2.2rem;
}

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

.hero-cards {
width: 280px;
height: 180px;
}

.card {
width: 230px;
height: 170px;
}



.card-front {
transform: rotate(15deg) translate(80px, -8px);
}

.card-back {
transform: rotate(-4deg) translateX(5px) translateY(30px);
}


.missions-track {
flex-wrap: wrap;
justify-content: center;
animation: none;
}
.mission-card { margin-bottom: 20px; }


.steps-wrapper {
flex-direction: row;
gap: 20px;
flex-wrap: wrap;
justify-content: center;
}
.step-line {
width: 80px;
height: 4px;
}
@media screen and (min-width: 576px) and (max-width: 767px) {
.offers-grid {
grid-template-columns: repeat(2, 1fr); /* 2 colonnes */
gap: 20px;
}
}


}

/* --- TABLET ≥ 768px --- */
@media screen and (min-width: 768px) and (max-width: 1199px) {
header {
padding: 0.5rem 1.5rem; /* compact */
}

.logo-img {
max-height: 40px;
margin-top: 0;
}

.header-actions { display: flex; }
.hamburger { display: none; }

.hero {
padding: 100px 30px;
}

.hero-left {
margin-left: 0;
text-align: left;
}

.hero h1 {
font-size: 2.5rem;
}

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

.hero-cards {
width: 300px;
height: 200px;
}

.card {
width: 250px;
height: 200px;
}

.card-front {
transform: rotate(17deg) translate(92px, -9px);
}

.card-back {
transform: rotate(-4deg) translateX(3px) translateY(30px);
}


.missions-track {
flex-wrap: wrap;
justify-content: flex-start;
gap: 30px;
animation: none;
}
.mission-card { margin-bottom: 20px; }

.steps-wrapper {
flex-direction: row;
gap: 30px;
justify-content: center;
}
.step-line {
width: 100px;
height: 4px;
}
.step-icon { width: 100px; height: 100px; }
.step-icon .emoji { font-size: 2.2rem; }
.step-icon .number { font-size: 0.85rem; }

@media screen and (min-width: 768px) and (max-width: 991px) {
.offers-grid {
grid-template-columns: repeat(2, 1fr); /* 2 colonnes */
gap: 25px;
}
}

}

/* --- DESKTOP ≥ 1200px --- */
@media screen and (min-width: 1200px) {
header {
padding: 0.6rem 2rem;  /* compact mais aéré */
}

.logo-img {
max-height: 45px; /* plus petit que ton 55px actuel */
margin-top: 0;
}

.header-actions { gap: 16px; }

.hero {
padding: 120px 50px;
}

.hero-left {
margin-left: 50px;
text-align: left;
}

.hero h1 {
font-size: 3rem;
}

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

.hero-cards {
width: 320px;
height: 220px;
}

.card {
width: 250px;
height: 200px;
}

.missions-track {
flex-wrap: nowrap;
justify-content: flex-start;
gap: 40px;
animation: scrollMissions 30s linear infinite;
}

.steps-wrapper {
flex-direction: row;
gap: 40px;
justify-content: center;
}
.step-line { width: 120px; height: 4px; }
.step-icon { width: 110px; height: 110px; }
.step-icon .emoji { font-size: 2.5rem; }
.step h3 { font-size: 1.25rem; }
.step p { font-size: 1rem; }
}



/* ------------------------------ */
/* MEDIA QUERIES RESPONSIVE */
/* ------------------------------ */
@media (max-width: 1024px) {
.hero h1 { font-size: 3rem; }
.hero-subtitle { font-size: 1.2rem; }
.why-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
 .missions-track {
    animation: none !important;
    transform: none !important;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
  }
}

@media (max-width: 768px) {
header { flex-direction: column; padding: 1rem; }
.hero { padding: 120px 15px 100px; }
.hero h1 { font-size: 2.2rem; }
.hero-subtitle { font-size: 1rem; }
.why-grid, .steps-grid, .missions-scroll { grid-template-columns: 1fr; gap: 20px; }
.price-card-container { width: 90%; height: auto; margin: 12px auto; }
}

@media (max-width: 480px) {
.hero { padding: 100px 10px 80px; }
.hero h1 { font-size: 1.8rem; }
.hero-subtitle { font-size: 0.95rem; }
.header-btn, .header-link { font-size: 0.9rem; }
button, .cta-primary, .cta-secondary { font-size: 16px; padding: 6px 14px; }
}
