

/* Dropdown */
.dropdown {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgba(14, 13, 13, 0.551);
  padding: 10px;
  border-radius: 5px;
  min-width: 200px;
  z-index: 10000;      /* encore plus haut si nécessaire */
}

.submenu li {
  margin: 5px 0; list-style-type:none;
}

.submenu li a {
  font-family: 'Acumin-Variable-Concept';
  color: white;
  font-size: 0.9em;
  text-decoration: none;
}

.dropdown:hover .submenu {
  display: block;
}



/* Define your custom font */
@font-face {
  font-family: 'Amoura Rosbele'; /* Give your font a name */
  src: url('fonts/Amoura Rosbele.otf') format('opentype'); /* Point to the location of the font file */
 }
@font-face {
  font-family: 'Acumin-BdPro'; /* Give your font a name */
  src: url('fonts/Acumin-BdPro.otf') format('opentype'); /* Point to the location of the font file */
}
@font-face {
  font-family: 'Acumin-Variable-Concept'; /* Give your font a name */
  src: url('fonts/Acumin-Variable-Concept.ttf') format('truetype'); /* Point to the location of the font file */
}

/* General Reset */
body {
  margin: 0;
  padding: 0;
  background-color: #fff;
}

 /* -------- HEADER BANNER -------- */
.header{
    position: relative;
    overflow: hidden;
height: 65vh;
    padding: 130px 20px 140px;
    text-align: center;

    background: linear-gradient(
    135deg,
    #8ccfff 0%,
    #a0c5e2 40%,
    #f2dfcf 70%,
    #e8c7a8 100%
  );

    box-shadow: 0 15px 40px rgba(15,23,42,0.08);
}

/* animated light */
.header::before{
    content:"";

    position:absolute;
    top:-50%;
    left:-30%;

    width:160%;
    height:160%;

    background: radial-gradient(
        circle,
        rgba(255,255,255,0.45),
        transparent 60%
    );

    animation: floatGlow 10s ease-in-out infinite;
    filter: blur(2px);
}

/* EMS watermark */
.header::after{
    content:"EMS";

    position:absolute;
    right:40px;
    bottom:-30px;

    font-family:'Amoura Rosbele';
    font-size:130px;
    letter-spacing:12px;

    color:rgba(255,255,255,0.18);

    pointer-events:none;
    transform: rotate(-5deg);
}

/* title animation */
.header h1{
    position: relative;
    z-index: 2;

    font-size: 4.5rem;
    font-family:'Amoura Rosbele';

    color:#ffffff;
    margin-top:-18px;
    margin-bottom:12px;

    animation: slideDown 1s ease-out;
    text-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* paragraph animation */
.header p{
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: auto;
    font-size:1.7rem;
    color:#ffffff;
   animation: slideDown 1s ease-out;
    text-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* floating animation */
@keyframes floatGlow{
    0%{
        transform: translate(0,0) scale(1);
    }

    50%{
        transform: translate(60px,40px) scale(1.05);
    }

    100%{
        transform: translate(0,0) scale(1);
    }
}

/* title animation */
@keyframes slideDown{
    from{
        opacity:0;
        transform:translateY(-50px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* text animation */
@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(40px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* ---  --- */
/* CONTAINER (centre tout) */
.login-container{
    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;
    z-index: 10; /* 🔥 au-dessus du header */

    margin-top: -80px; /* 🔥 fait remonter le form sur le header */
    margin-bottom: 40px;
}

/* FORM */
.login-form {
  background-color: white;
  padding: 30px 40px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  width: 420px;
}

.login-form {
  background-color: white;
  padding: 30px 40px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  width: 420px;
  display: flex;
   margin-bottom:40px;
}

form h2 {
  color: #00bcd4; font-family: 'Amoura Rosbele';
  margin-bottom: 20px;   text-align: center;

}

label {
  display: block;
  text-align: left; font-family: 'Acumin-Variable-Concept';
  margin: 10px 0 5px;
  color: #333; 
  font-size: 0.9em;
  margin-bottom: 5px;
}

input {
  width: 100%; font-family: 'Acumin-Variable-Concept';
  padding: 10px;
  border: 2px solid #00bcd4;
  border-radius: 20px;
  outline: none;
  font-size: 1em; background-color:#f5f5f5;
  box-sizing: border-box;
}

.button {
  background-color: #00bcd4;
  color: white;
  border: none;
  margin: 20px auto; /* 🔥 centre horizontalement */
  display: block;     /* 🔥 obligatoire pour centrer */
  padding: 12px 20px;
  border-radius: 20px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}


.extra-links {
  margin-top: 20px;
  text-align: center;
  font-family: 'Acumin-Variable-Concept';
  font-size: 0.95em;
  color: #777;
}

.extra-links .signup-link {
  margin-left: 6px;
  color: #00bcd4;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

/* 🔥 effet underline moderne */
.extra-links .signup-link::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -2px;
  background-color: #00bcd4;
  transition: width 0.3s ease;
}

.extra-links .signup-link:hover::after {
  width: 100%;
}

.extra-links .signup-link:hover {
  color: #0097a7;
}


/* ===== POPUP ===== */
/* ===== OVERLAY ===== */
.popup-overlay{
  position: fixed;
  inset: 0;
  background: rgba(15,15,15,0.55);
  backdrop-filter: blur(10px);
  display:flex;
  justify-content:center;
  align-items:center;
  z-index:99999;
}

/* ===== BOX ===== */
.popup-box{
  position: relative;
  width: 92%;
  max-width: 420px;
  background: rgba(255,255,255,0.96);
  border-radius: 22px;
  padding: 30px 25px;
  text-align:center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
  animation: pop 0.25s ease;
}

/* ===== X BUTTON ===== */
button:focus,
button:active,
button:focus-visible{
  outline: none !important;
  box-shadow: none !important;
}
.popup-x:focus,
.popup-x:active{
  outline: none;
  box-shadow: none;
}
.popup-x{
  position:absolute;
  top:12px;
  right:15px;
  border:none;
  background:transparent;
  font-size:26px;
  cursor:pointer;
  color:#666;
  transition:0.2s;
}

.popup-x:hover{
  color:#000;
  transform: scale(1.2);
}

/* ICON */
.popup-icon{
  width:70px;
  height:70px;
  margin:0 auto 15px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:30px;
  color:white;
  animation: bounce 0.5s ease;
}

/* TEXT */
.popup-box h2{
  font-size:22px;
  margin-bottom:8px;
}

.popup-box p{
  color:#555;
  font-size:15px;
  margin-bottom:20px;
}

/* BUTTON */
.popup-btn{
  display:inline-block;
  color:#fff;
  padding:10px 18px;
  border-radius:12px;
  text-decoration:none;
  font-weight:600;
}

/* SUCCESS */
.popup-success .popup-icon{
  background: linear-gradient(135deg,#34d399,#10b981);
}

/* ERROR */
.popup-error .popup-icon{
  background: linear-gradient(135deg,#ff6b6b,#e03131);
}

/* ANIMATION */
@keyframes pop{
  from{transform:scale(0.8); opacity:0;}
  to{transform:scale(1); opacity:1;}
}

@keyframes bounce{
  0%{transform:scale(0.3);}
  60%{transform:scale(1.2);}
  100%{transform:scale(1);}
}
/* ==========================================
   STYLE PREMIUM DU FORMULAIRE DE CONNEXION
   Inspiré de .contact-box (page Contact)
   Remplace votre ancien CSS du formulaire
   ========================================== */

/* CONTAINER */
.login-container{
    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;
    z-index: 10;

    margin-top: -60px;   /* même effet que .contact-box */
    margin-bottom: 40px;
    padding: 0 20px;
}

/* FORMULAIRE */
.login-form{
 position: relative;
    z-index: 9999; /* AU-DESSUS DU HEADER */
    margin-top: -80px;    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);

    width: 100%;
    max-width: 450px;

    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* TITRE */
.login-form h2,
form h2{
    font-family: 'Amoura Rosbele';
    color: #2abff1;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2rem;
    font-weight: normal;
}

/* LABELS */
.login-form label,
label{
    font-family: 'Acumin-Variable-Concept';
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-size: 0.9rem;
}

/* INPUTS */
.login-form input{
    width: 100%;
    background-color: #f5f5f5;
    padding: 10px 15px;
    margin-bottom: 20px;
    border: 2px solid #2abff1;
    border-radius: 20px;
    font-size: 1rem;
    outline: none;
    box-sizing: border-box;
    font-family: 'Acumin-Variable-Concept';
}

/* INPUT FOCUS */
.login-form input:focus{
    border-color: #00bcd4;
    box-shadow: 0 0 0 3px rgba(42, 191, 241, 0.15);
}

/* BOUTON */
.login-form .button,
.login-form button{
    width: 100%;
    background-color: #ff6f61;
    border: none;
    padding: 12px;
    border-radius: 20px;
    color: #ffffff;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

/* HOVER BOUTON */
.login-form .button:hover,
.login-form button:hover{
    background-color: #ff5c4d;
}

/* LIENS SUPPLÉMENTAIRES */
.extra-links{
    margin-top: 20px;
    text-align: center;
    font-family: 'Acumin-Variable-Concept';
    font-size: 0.95rem;
    color: #777;
}

/* LIEN INSCRIPTION */
.extra-links .signup-link{
    margin-left: 6px;
    color: #2abff1;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

/* UNDERLINE ANIMÉ */
.extra-links .signup-link::after{
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    left: 0;
    bottom: -2px;
    background-color: #2abff1;
    transition: width 0.3s ease;
}

.extra-links .signup-link:hover::after{
    width: 100%;
}

.extra-links .signup-link:hover{
    color: #0097a7;
}
/* ==========================================
   HEADER DE CONNEXION - VERSION MOBILE
   Même style que .header-contact
   À ajouter dans votre CSS connexion
   ========================================== */

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

    .header{
        padding: 80px 20px 70px;   /* plus compact */
        min-height: 280px;
        height: auto;
        overflow: hidden;
        text-align: center;

        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* WATERMARK EMS */
    .header::after{
        font-size: 60px;
        right: 10px;
        bottom: -10px;
        opacity: 0.10;
        letter-spacing: 4px;
        transform: rotate(-5deg);
    }

    /* TITRE */
    .header h1{
        font-size: 2rem;
        line-height: 1.2;
        margin: 0 0 10px;
    }

    /* PARAGRAPHE */
    .header p{
        font-size: 1rem;
        line-height: 1.6;
        max-width: 95%;
        margin: 0 auto;
        padding: 0;
    }

    /* LIGHT EFFECT */
    .header::before{
        width: 140%;
        height: 140%;
        opacity: 0.4;
        animation: floatGlowMobile 8s ease-in-out infinite;
    }
}

/* =========================
   VERY SMALL PHONES
   ========================= */
@media (max-width: 480px){

    .header{
        padding: 75px 15px 60px;
        min-height: 240px;
    }

    .header h1{
        font-size: 2.2rem;
        margin-bottom: 10px;
    }

    .header p{
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 10px;
    }

    .header::after{
        font-size: 45px;
        right: 5px;
        bottom: 0;
        letter-spacing: 2px;
    }
}

/* =========================
   MOBILE GLOW ANIMATION
   ========================= */
@keyframes floatGlowMobile{
    0%{
        transform: translate(0, 0) scale(1);
    }
    50%{
        transform: translate(20px, 15px) scale(1.03);
    }
    100%{
        transform: translate(0, 0) scale(1);
    }
}
/* ==========================================
   RESPONSIVE TABLET & MOBILE
   ========================================== */
@media (max-width: 768px){

    .login-container{
        margin-bottom: 40px;
        padding: 0 10px;
    }

    .login-form{
        padding: 25px;
        border-radius: 12px;
        max-width: 100%;
    }

    .login-form h2,
    form h2{
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .login-form input{
        padding: 11px 14px;
        font-size: 0.95rem;
    }

    .login-form .button,
    .login-form button{
        font-size: 0.95rem;
        padding: 12px;
    }

    .extra-links{
        font-size: 0.9rem;
    }
}

/* ==========================================
   VERY SMALL PHONES
   ========================================== */
@media (max-width: 480px){

    .login-container{
        margin-top: 20px;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    .login-form{
        padding: 22px 18px;
        border-radius: 10px;
    }

    .login-form h2,
    form h2{
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .login-form label,
    label{
        font-size: 0.85rem;
    }

    .login-form input{
        padding: 10px 12px;
        font-size: 0.92rem;
        margin-bottom: 15px;
    }

    .login-form .button,
    .login-form button{
        font-size: 0.95rem;
        padding: 11px;
    }

    .extra-links{
        font-size: 0.85rem;
        margin-top: 15px;
    }
}