/* ==========================================================================
   1. RESET & BASES GLOBALES
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body{
  font-family: 'Lato', sans-serif;
  min-height: 100vh;
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ==========================================================================
   2. HEADER 
   ========================================================================== */

.funky-main-header{
  width: 100%;
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
  min-height: 120px;
  position: sticky;
  top: 0;
  z-index: 9999;

  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.funky-main-header.scrolled{
  min-height: 120px; /* garde pareil */
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
}

/* Conteneur interne */
.funky-header-container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px 14px;

  width: 100%;
  position: relative;

  display: flex;
  flex-direction: column;     
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.funky-logo-wrapper{
  margin-top: 6px; 
}

/* Logo */
.funky-logo-img{
  height: 80px;
  width: auto;
  display: block;
}

.funky-main-header.scrolled .funky-logo-img{
  height: 80px; 
}

/* Nav desktop (catégories sous le logo) */
.funky-nav-desktop{
  display: flex;
  gap: 120px;
  align-items: center;
  justify-content: center;
  margin-top: 2px; 
}

.funky-nav-link{
  font-weight: 400;
  font-size: 16px;
  color: #333;
  text-decoration: none;
  transition: color 0.25s ease;
}

.funky-nav-link:hover{ color: #8C144E; }

.funky-header-icons{
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);

  display: flex;
  align-items: center;
  gap: 14px;
}

.funky-header-icon{
  width: 34px;  
  height: 34px; 
  cursor: pointer;
  transition: transform 0.2s ease;
}

.funky-header-icon:hover{ transform: scale(1.08); }

.funky-mobile-menu{ display: none; }
.funky-mobile-toggle{ display: none; }
/* ==========================================================================
   1. RESET & BASES GLOBALES
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body{
  font-family: 'Lato', sans-serif;
  min-height: 100vh;
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ==========================================================================
   2. HEADER
   ========================================================================== */

.funky-main-header{
  width: 100%;
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
  min-height: 120px;
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.funky-main-header.scrolled{
  min-height: 120px; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
}

.funky-header-container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px 14px;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;     
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.funky-logo-wrapper{
  margin-top: 6px;
}

/* Logo */
.funky-logo-img{
  height: 80px;
  width: auto;
  display: block;
}

.funky-main-header.scrolled .funky-logo-img{
  height: 80px;
}

/* Nav desktop (catégories sous le logo) */
.funky-nav-desktop{
  display: flex;
  gap: 120px;
  align-items: center;
  justify-content: center;
  margin-top: 2px; 
}

.funky-nav-link{
  font-weight: 400;
  font-size: 16px;
  color: #333;
  text-decoration: none;
  transition: color 0.25s ease;
}

.funky-nav-link:hover{ color: #8C144E; }

/* Icônes à droite (bien centrées verticalement) */
.funky-header-icons{
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);

  display: flex;
  align-items: center;
  gap: 14px;
}


.funky-header-icon{
  width: 34px; 
  height: 34px; 
  cursor: pointer;
  transition: transform 0.2s ease;
}

.funky-header-icon:hover{ transform: scale(1.08); }

.funky-mobile-menu{ display: none; }
.funky-mobile-toggle{ display: none; }

/* ==========================================================================
   2.1 MOBILE
   ========================================================================== */
@media (max-width: 768px){

  .funky-main-header{
    min-height: 80px;
  }

  .funky-header-container{
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
    padding: 10px 20px;
  }

  .funky-logo-wrapper{ margin-top: 0; }

  .funky-logo-img{ height: 50px; }

  .funky-nav-desktop,
  .funky-header-icons{
    display: none;
  }

  .funky-mobile-toggle{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
  }

  .funky-mobile-toggle span{
    display: block;
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 2px;
  }

  .funky-mobile-menu{
    display: none; /* reste caché */
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 10000; /* au-dessus du header */
  }

  .funky-mobile-menu.active{
    display: block;
  }

  /* Contenu du drawer */
  .funky-mobile-menu-content{
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 85%;
    max-width: 360px;
    background: #fff;
    padding: 22px 18px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    padding-top: 56px; /* place pour la croix */
  }

  .funky-mobile-close{
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border: none;
    background: #f2f2f2;
    border-radius: 12px;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
  }

  .funky-mobile-logo{
    display: flex;
    justify-content: flex-start;
    margin-bottom: 18px;
  }

  .funky-mobile-logo img{
    height: 46px;
    width: auto;
    display: block;
  }

  .funky-mobile-nav{
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .funky-mobile-nav a{
    text-decoration: none;
    color: #333;
    font-size: 16px;
    padding: 12px 12px;
    border-radius: 14px;
    background: #f6f6f6;
  }

  .funky-mobile-nav a:hover{
    background: #f0e6ec;
    color: #8C144E;
  }
}

/* ==========================================================================
   3. LOGIN / REGISTER & FORMULAIRES
   ========================================================================== */
.login-container,
.register-container{
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 4rem 2rem;
}

.login-form-wrapper,
.register-form-wrapper{
  width: 100%;
  max-width: 400px;
  background: #fff;
  padding: 2.5rem;
  border-radius: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.submit-btn{
  width: 100%;
  padding: 0.85rem;
  background: #8C144E;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}
.submit-btn:hover{
  background: #FBBD40;
  color: #8C144E;
}

/* ==========================================================================
   FOOTER 
   ========================================================================== */

.funky-main-footer{
  background: #fff;
  border-top: 1px solid #e0e0e0;
  padding: 40px 20px 18px;
  margin-top: 80px;
}

.funky-footer-container{
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;

  /*  3 zones : logo | (nav+infos) | social */
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;

  /*  espace global */
  column-gap: 50px;
}

.funky-footer-logo-img{
  height: 52px; 
  width: auto;
  display: block;
}

.funky-footer-columns{
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(40px, 20vw, 391px);
}

.funky-footer-title{
  font-family: "Lato", sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #111;
  margin: 0 0 10px 0;
}

.funky-footer-nav a{
  display: block;
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  margin: 6px 0;
  transition: color .2s ease;
}
.funky-footer-nav a:hover{ color: #8C144E; }

.funky-footer-social{
  display: flex;
  align-items: center;
  gap: 14px;
}

.funky-social-link img{
  width: 22px;
  height: 22px;
  display: block;
  transition: transform .2s ease;
}
.funky-social-link:hover img{ transform: scale(1.08); }

.funky-footer-bottom{
  text-align: center;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
}
.funky-footer-bottom p{
  margin: 0;
  font-family: "Lato", sans-serif;
  font-size: 12px;
  color: #999;
}

/* Responsive */
@media (max-width: 768px){
  .funky-footer-container{
    padding: 0 20px;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    row-gap: 22px;
  }

  .funky-footer-columns{
    flex-direction: column;
    gap: 18px;
    align-items: center;
  }

  .funky-footer-social{
    justify-content: center;
  }
}


/* ==========================================================================
   3. LOGIN / REGISTER & FORMULAIRES
   ========================================================================== */
.login-container,
.register-container{
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 4rem 2rem;
}

.login-form-wrapper,
.register-form-wrapper{
  width: 100%;
  max-width: 400px;
  background: #fff;
  padding: 2.5rem;
  border-radius: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.submit-btn{
  width: 100%;
  padding: 0.85rem;
  background: #8C144E;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}
.submit-btn:hover{
  background: #FBBD40;
  color: #8C144E;
}

/* ==========================================================================
   FOOTER (aligné sur ton HTML funky-*)
   ========================================================================== */

.funky-main-footer{
  background: #fff;
  border-top: 1px solid #e0e0e0;
  padding: 40px 20px 18px;
  margin-top: 80px;
}

.funky-footer-container{
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  column-gap: 50px;
}

.funky-footer-logo-img{
  height: 52px;  
  width: auto;
  display: block;
}

.funky-footer-columns{
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(40px, 20vw, 391px);
}

.funky-footer-title{
  font-family: "Lato", sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #111;
  margin: 0 0 10px 0;
}

.funky-footer-nav a{
  display: block;
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  margin: 6px 0;
  transition: color .2s ease;
}
.funky-footer-nav a:hover{ color: #8C144E; }

.funky-footer-social{
  display: flex;
  align-items: center;
  gap: 14px;
}

.funky-social-link img{
  width: 22px;
  height: 22px;
  display: block;
  transition: transform .2s ease;
}
.funky-social-link:hover img{ transform: scale(1.08); }

.funky-footer-bottom{
  text-align: center;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
}
.funky-footer-bottom p{
  margin: 0;
  font-family: "Lato", sans-serif;
  font-size: 12px;
  color: #999;
}

/* Responsive */
@media (max-width: 768px){
  .funky-footer-container{
    padding: 0 20px;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    row-gap: 22px;
  }

  .funky-footer-columns{
    flex-direction: column;
    gap: 18px;
    align-items: center;
  }

  .funky-footer-social{
    justify-content: center;
  }
}

