/* ==========================================================
   VARIABLES
========================================================== */
:root {
  --red: #D20909;
  --red-dark: #B90A0A;
  --beige: #FFE5B5;
  --yellow: #FCA91F;
  --yellow-hover: #e5961a;
  --social-bg: #E88383;
}

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

body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--red);
  color: #fff;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s ease;
}

/* Fond motif global */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../img/fond.png");
  background-repeat: repeat;
  background-size: 700px auto;
  opacity: 0.18;
  z-index: -1;
}

/* ==========================================================
   HEADER - IDENTIQUE AUX AUTRES PAGES
========================================================== */
.header-site {
  padding: 15px 0;
  display: flex;
  justify-content: center;
}

.barre-navigation {
  width: 90%;
  max-width: 1400px;
  height: 85px;
  background: var(--red-dark);
  border: 4px solid var(--beige);
  border-radius: 100px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  gap: 50px;
  position: relative;
}

.lien-logo { 
  display: flex; 
  align-items: center; 
}

.logo { 
  width: 85px; 
  height: auto; 
}
/* --- LE CONTENEUR (pour l'espacement) --- */
.liens-navigation {
  display: flex;
  gap: 35px; 
  align-items: center;
}

/* --- LES LIENS INDIVIDUELS --- */
.liens-navigation a {
  text-decoration: none;
  color: inherit;
  font-size: 18px;
  font-weight: 500;
  transition: text-underline-offset 0.2s ease, opacity 0.2s ease;
  position: relative;
  white-space: nowrap; 
}

/* L'effet de vague au survol */
.liens-navigation a:hover {
  text-decoration: underline wavy var(--yellow);
  text-underline-offset: 7px;
}

/* État actif */
.liens-navigation a.actif {
  font-weight: 700;
  text-decoration: underline wavy var(--yellow);
  text-underline-offset: 5px;
}

.nav-droite {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-droite a.actif {
  text-decoration: underline wavy #F19F00;
  text-underline-offset: 5px;
  font-weight: 600;
}

.bouton-connexion {
  background: var(--yellow);
  color: #000 !important;
  padding: 12px 25px;
  border-radius: 12px;
  font-weight: 700;
  transition: 0.3s;
}

/* Bouton Burger  */
.burger-icon {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
  position: relative;
}

.burger-icon span {
  width: 30px;
  height: 3px;
  background: var(--beige);
  border-radius: 10px;
  transition: all 0.3s linear;
}

.burger-icon img {
  display: none;
}

/* Image croix quand le menu est ouvert */
.burger-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  background-image: url('../img/croix.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.burger-icon.open::before {
  opacity: 1;
}

.burger-icon.open span {
  opacity: 0;
}

/* ==========================================================
   HERO (FORMULAIRE + BURGER)
========================================================== */
.section-formulaire {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  align-items: center;
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 50px 40px 40px;
  min-height: calc(100vh - 320px);
}

.carte-inscription {
  background: #fff;
  width: 460px;
  padding: 28px 35px;
  border-radius: 25px;
  box-shadow: 0 15px 50px rgba(0,0,0,0.2);
  color: #333;
}

.titre-carte {
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.1;
}

.title-small {
  color: var(--red);
  font-size: 22px;
  font-weight: 400;
}

.title-big {
  color: var(--red);
  font-size: 32px;
  font-weight: 900;
  display: block;
}

.formulaire-inscription {
  width: 100%;
}

.groupe-champ { 
  margin-bottom: 14px; 
}

.label-champ {
  display: block;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
  color: #1a1a1a;
}

.obligatoire { 
  color: var(--red) !important; 
  font-weight: bold; 
}

.champ-saisie {
  width: 100%;
  height: 44px;
  border: 1.5px solid #ccc;
  border-radius: 12px;
  padding: 0 45px 0 18px;
  font-size: 14px;
  font-family: inherit;
}

.champ-saisie:focus {
  outline: 2px solid var(--red);
  border-color: var(--red);
}

/* Conteneur mot de passe avec oeil */
.conteneur-champ-mdp {
  position: relative;
  width: 100%;
}

.bouton-afficher-mdp {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  z-index: 2;
}

.bouton-afficher-mdp img { 
  width: 24px; 
  height: auto; 
}

/* Boutons sociaux */
.boutons-sociaux {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
}

.bouton-social {
  background: var(--social-bg);
  border: none;
  width: 70px;
  height: 35px;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s;
}

.bouton-social img { 
  width: 16px; 
}

.bouton-social:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

/* Bouton submit */
.bouton-soumettre {
  width: 100%;
  height: 46px;
  background: var(--red-dark);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
}

.bouton-soumettre:hover {
  background: var(--red);
  transform: translateY(-2px);
}

/* Texte de pied de formulaire */
.texte-pied-formulaire {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: #333;
}

.lien-connexion {
  color: var(--red) !important;
  font-weight: 800;
  text-decoration: underline;
}

.lien-connexion:hover {
  opacity: 0.8;
}

/* Messages d'erreur et succès */
.message-erreur,
.message-succes {
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
}

.message-erreur {
  background-color: #ffe0e0;
  color: #d20909;
  border: 1px solid #d20909;
}

.message-succes {
  background-color: #e0ffe0;
  color: #0a8f0a;
  border: 1px solid #0a8f0a;
}

/* Image burger décoration */
.burger-container {
  flex-shrink: 0;
}

.image-burger-decor {
  width: 420px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
  margin-left: -50px;
}

/* ==========================================================
   DIVIDER (TAPE UN CROC) + AJOUT PICNIC
========================================================== */
.divider-section { 
  width: 100%; 
  margin-top: 0;
  position: relative; 
}

/* Bande picnic supérieure */
.picnic-top {
  height: 25px;
  background: url("../img/picnic2.png") repeat-x;
  background-size: auto 100%;
}

.scrolling-tape {
  background: var(--beige);
  padding: 4px 0;
  overflow: hidden;
}

.scrolling-track {
  display: flex;
  width: max-content;
  animation: scroll 15s linear infinite;
}

.scrolling-track span {
  font-weight: 900;
  font-size: 42px;
  color: var(--red);
  white-space: nowrap;
  padding-right: 25px;
  line-height: 0.95;
}

/* Bande picnic inférieure */
.picnic-bottom {
  height: 45px;
  background: url("../img/picnic1.png") repeat-x;
  background-size: auto 100%;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ==========================================================
   FOOTER
========================================================== */
.pied-de-page {
  padding: 40px 0 20px;
  background-color: var(--red);
  margin-top: auto;
}

.contenu-pied-de-page {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 120px;
  padding: 0 40px;
}

.logo-pied-de-page { 
  width: 140px; 
  height: auto; 
}

.liens-pied-de-page { 
  display: flex; 
  gap: 100px; 
}

.colonne-pied-de-page {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.colonne-pied-de-page a {
  font-size: 16px;
  color: #fff;
  opacity: 0.9;
}

.colonne-pied-de-page a:hover {
  opacity: 1;
  text-decoration: underline;
}

.ligne-footer {
  height: 1px;
  background: rgba(255,255,255,0.3);
  margin: 30px auto 20px;
  max-width: 1400px;
}

.bas-pied-de-page {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding: 0 40px;
  font-size: 14px;
}

.mentions-legales {
  display: flex;
  gap: 20px;
  align-items: center;
}

.reseaux-sociaux {
  display: flex;
  gap: 20px;
  align-items: center;
}

.reseaux-sociaux img {
  width: 22px;
  filter: brightness(0) invert(1);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.reseaux-sociaux img:hover {
  transform: scale(1.1);
}

/* Cache l'ancien menu mobile */
.menu-mobile {
  display: none !important;
}

/* ==========================================================
   RESPONSIVE 
========================================================== */

/* Tablettes */
@media (max-width: 1100px) {
  .section-formulaire {
    gap: 40px;
  }

  .image-burger-decor {
    width: 350px;
    margin-left: -30px;
  }

  .contenu-pied-de-page {
    gap: 60px;
  }

  .liens-pied-de-page {
    gap: 50px;
  }
}


@media (max-width: 992px) {
  .burger-icon {
    display: flex;
  }

  .barre-navigation {
    justify-content: space-between;
    padding: 0 20px;
    gap: 10px;
    height: 70px;
  }

  .logo {
    width: 65px;
  }


  .barre-navigation > .liens-navigation,
  .barre-navigation > .nav-droite {
    display: none;
  }


  .liens-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    background: var(--red-dark);
    height: 100vh;
    width: 280px;
    flex-direction: column;
    padding: 100px 30px 30px;
    transition: right 0.4s ease;
    z-index: 100;
    border-left: 3px solid var(--beige);
    gap: 25px;
  }

  .liens-navigation.mobile-open {
    display: flex !important;
    right: 0;
  }

  .liens-navigation a {
    font-size: 20px;
    padding: 10px 0;
  }

  .bouton-connexion {
    padding: 10px 18px;
    font-size: 14px;
  }

  .burger-container {
    display: none;
  }

  .section-formulaire {
    padding: 30px 20px;
    justify-content: center;
  }

  .carte-inscription {
    width: 100%;
    max-width: 460px;
  }

  .contenu-pied-de-page {
    flex-direction: column;
    gap: 30px;
    padding: 0 20px;
  }

  .liens-pied-de-page {
    width: 100%;
    justify-content: space-between;
    gap: 30px;
  }

  .bas-pied-de-page {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 0 20px;
  }

  .mentions-legales {
    flex-direction: column;
    gap: 10px;
  }

  .reseaux-sociaux {
    justify-content: center;
  }
}


@media (max-width: 780px) {
  .carte-inscription {
    padding: 24px 25px;
  }

  .title-big {
    font-size: 28px;
  }

  .title-small {
    font-size: 20px;
  }

  .scrolling-track span {
    font-size: 36px;
  }
}


@media (max-width: 600px) {
  .header-site {
    padding: 10px 0;
  }

  .barre-navigation {
    width: 95%;
    height: 65px;
    padding: 0 15px;
    border-width: 3px;
  }

  .logo {
    width: 55px;
  }

  .section-formulaire {
    padding: 20px 15px;
    min-height: auto;
  }

  .carte-inscription {
    padding: 22px 20px;
    border-radius: 20px;
  }

  .titre-carte {
    margin-bottom: 16px;
  }

  .title-big {
    font-size: 26px;
  }

  .title-small {
    font-size: 18px;
  }

  .groupe-champ {
    margin-bottom: 12px;
  }

  .champ-saisie {
    height: 42px;
    font-size: 13px;
  }

  .bouton-soumettre {
    height: 44px;
    font-size: 16px;
  }

  .boutons-sociaux {
    margin: 14px 0;
  }

  .bouton-social {
    width: 65px;
    height: 33px;
  }

  .scrolling-track span {
    font-size: 32px;
  }

  .contenu-pied-de-page,
  .bas-pied-de-page {
    padding: 0 20px;
  }

  .bouton-connexion {
    padding: 8px 14px;
    font-size: 13px;
  }
}


@media (max-width: 380px) {
  .barre-navigation {
    width: 98%;
    padding: 0 10px;
  }

  .carte-inscription {
    padding: 18px 16px;
  }

  .title-big {
    font-size: 24px;
  }

  .title-small {
    font-size: 16px;
  }

  .scrolling-track span {
    font-size: 28px;
  }

  .bouton-connexion {
    padding: 6px 10px;
    font-size: 12px;
  }
}