/* ==========================================================
   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 
========================================================== */
.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  --- */
.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;
}

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

/* Bouton Burger */
.burger-menu-btn {
  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-menu-btn span {
  width: 30px;
  height: 3px;
  background: var(--beige);
  border-radius: 10px;
  transition: all 0.3s linear;
}

/* Image croix quand le menu est ouvert */
.burger-menu-btn::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-menu-btn.open::before {
  opacity: 1;
}

.burger-menu-btn.open span {
  opacity: 0;
}

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

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

.login-title {
  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;
}

.error-msg {
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  background-color: #ffe0e0;
  color: #d20909;
  border: 1px solid #d20909;
}

/* ==========================================================
   FORMULAIRE
========================================================== */
.form-field { 
  margin-bottom: 14px; 
}

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

.req { 
  color: var(--red); 
}

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

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

.input-wrap {
  position: relative;
  width: 100%;
}

.eye-btn {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.eye-btn img { 
  width: 24px; 
}

.forgot-pass {
  color: var(--red) !important;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
  display: inline-block;
}

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

.social-btn {
  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;
}

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

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

/* Bouton submit */
.btn-submit {
  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;
}

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

.register-link {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: #333;
}

.register-link a {
  color: var(--red) !important;
  font-weight: 800;
  text-decoration: underline;
}

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

.burger-img {
  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; 
}

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

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

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

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

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

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

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

/* Menu burger pour tablettes et mobiles  */
@media (max-width: 992px) {
  .burger-menu-btn {
    display: flex;
  }

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

  .logo {
    width: 65px;
  }

  /* Cache les éléments desktop */
  .barre-navigation > .liens-navigation,
  .barre-navigation > .nav-droite {
    display: none;
  }

  /* Menu en overlay latéral */
  .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;
  }

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

  .login-card {
    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;
  }
}

/* Petites tablettes */
@media (max-width: 780px) {
  .login-card {
    padding: 24px 25px;
  }

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

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

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

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

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

  .logo {
    width: 55px;
  }

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

  .login-card {
    padding: 22px 20px;
    border-radius: 20px;
  }

  .login-title {
    margin-bottom: 16px;
  }

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

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

  .form-field {
    margin-bottom: 12px;
  }

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

  .btn-submit {
    height: 44px;
    font-size: 16px;
  }

  .social-login {
    margin: 14px 0;
  }

  .social-btn {
    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;
  }
}

/* Très petits écrans  */
@media (max-width: 380px) {
  .barre-navigation {
    width: 98%;
    padding: 0 10px;
  }

  .login-card {
    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;
  }
}