
/* 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;

    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: 700px;
    margin: auto;

    font-size:1.25rem;
    color:#f8fdff;

    animation: fadeUp 1.3s ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

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

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

  .header {
    padding: 80px 15px 90px;
  }

  /* titre */
  .header h1 {
    font-size: 2.2rem;
    margin-top: 10px;
    margin-bottom: 10px;
    line-height: 1.2;
  }

  /* texte */
  .header p {
    font-size: 1rem;
    padding: 0 10px;
    max-width: 100%;
  }

    /* ✅ FIX EMS MOBILE */
  .header::after {
    font-size: 50px;
    right: 5px;
    bottom: 10px;
    opacity: 0.15;
    letter-spacing: 4px;
    transform: rotate(-5deg);
  }


  /* animation light plus légère (perf mobile) */
  .header::before {
    animation: floatGlowMobile 8s ease-in-out infinite;
  }
}

/* animation mobile optimisée */
@keyframes floatGlowMobile {
  0% {
    transform: translate(0,0) scale(1);
  }
  50% {
    transform: translate(20px,15px) scale(1.03);
  }
  100% {
    transform: translate(0,0) scale(1);
  }
}

 /*form*/
  
    .box-succes {
  max-width: 600px;
  margin: 50px auto; 
  padding: 40px;
  background:  #e5d2b4;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #000000ff;
  animation: slideDown 0.6s ease;
}

.box-succes h3 {
  font-size: 40px;
  font-family: 'Amoura Rosbele'; 
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.box-succes p {
  font-size: 18px;
  margin-bottom: 25px;
}

.box-succes a.btn-retour {
  background-color: white;
  font-family: 'Acumin-Variable-Concept';
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s ease;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.box-succes a.btn-retour:hover {
  background-color: #e6f0ff;
color: #FF6F61;  transform: scale(1.05);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.alert {
  display: flex;
  align-items: center;  /* centre verticalement le contenu */
  gap: 10px; /* espace entre les éléments */
  background-color: #ff5656;
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  font-weight: bold;
  font-family: Arial, sans-serif;
  position: relative;
}



.my-select{
  width: 100%; font-family: 'Acumin-Variable-Concept';
  padding: 10px;
  border: 2px solid #00bcd4;
  border-radius: 20px;
  outline: none;
  font-size: 1em;
  box-sizing: border-box;
}
#telephone::placeholder {
  color: #bbb;      /* gris doux */
  font-style: italic;
}


/* Tablette (entre 481px et 768px) */
@media (max-width: 768px) and (min-width: 481px) {
  .my-select {
    font-size: 0.95em;
    padding: 9px;
  }
}

/* Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .my-select {
    font-size: 0.9em;
    padding: 8px;
    border-radius: 15px;
  }

  /* Pour un meilleur confort tactile sur mobile, on peut augmenter la hauteur */
  .my-select {
    min-height: 40px;
  }
}



    
/* ===== CENTRAGE GLOBAL ===== */
.login-wrapper {
    
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -65px;
  margin-bottom: 40px;
}
/* ===== CONTAINER FORM ===== */
.login-form {
  width: 100%;
  display: flex;
  justify-content: center;
}

.login-wrapper,
.form-container {
  position: relative;
  z-index: 10; /* AU-DESSUS du header */
  margin-top: -60px; /* effet overlap (design moderne) */
}
/* ===== CARTE FORM ===== */
.login-form form {
  width: 100%;
  max-width: 420px;
  background: white;
  padding: 30px 35px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* ===== TITRE ===== */
.login-form h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 28px;
  color: #00bcd4;
  font-family: 'Amoura Rosbele';
}

/* ===== LABEL ===== */
label {
  display: block;
  margin: 10px 0 6px;
  font-size: 14px;
  font-family: 'Acumin-Variable-Concept';
}

/* ===== INPUT ===== */
input, .my-select {
  width: 100%;
  padding: 12px;
  border: 2px solid #00bcd4;
  border-radius: 12px;
  outline: none;background-color:#f5f5f5;
  font-size: 14px;
  transition: 0.2s;
}

input:focus, .my-select:focus {
  border-color: #009bb5;    

  box-shadow: 0 0 0 3px rgba(0,188,212,0.15);
}

/* ===== BUTTON ===== */
.button {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: #00bcd4;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.button:hover {
  background: #009bb5;
}
/* ==========================================
   INSCRIPTION FORM - STYLE PREMIUM EMS
   Harmonisé avec contact + login + header
   ========================================== */

/* ===== CENTRAGE GLOBAL ===== */
.login-wrapper{
    display: flex;
    justify-content: center;
    align-items: center;

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

    margin-top: -60px;  /* effet overlap propre */
    margin-bottom: 40px;
    padding: 0 20px;
}

/* ===== CONTAINER FORM ===== */
.login-form{
    width: 100%;
    display: flex;
    justify-content: center;
}

/* ===== CARTE FORM ===== */
.login-form form,
.form-container{
    width: 100%;
    max-width: 450px;

    background: #ffffff;
    padding: 35px 30px;
    border-radius: 15px;

    box-shadow: 0 8px 25px rgba(0,0,0,0.2);

    position: relative;
    z-index: 1001;
    box-sizing: border-box;
}

/* ===== TITRE ===== */
.login-form h2{
    text-align: center;
    margin-bottom: 25px;

    font-size: 2.2rem;
    color: #2abff1;
    font-family: 'Amoura Rosbele';
    font-weight: normal;
}

/* ===== LABEL ===== */
label{
    display: block;
    margin: 10px 0 6px;

    font-size: 0.9rem;
    font-family: 'Acumin-Variable-Concept';
    font-weight: bold;
    color: #333;
}

/* ===== INPUT + SELECT ===== */
input,
.my-select{
    width: 100%;
    padding: 12px 14px;

    border: 2px solid #2abff1;
    border-radius: 20px;

    background-color: #f5f5f5;
    font-size: 0.95rem;

    outline: none;
    box-sizing: border-box;

    transition: 0.2s ease;
}

/* focus effet premium */
input:focus,
.my-select:focus{
    border-color: #00bcd4;
    box-shadow: 0 0 0 3px rgba(42,191,241,0.15);
}

/* ===== BUTTON ===== */
.button{
    width: 100%;
    margin-top: 20px;

    padding: 12px;
    border: none;
    border-radius: 20px;

    background: #ff6f61;
    color: white;

    font-size: 1rem;
    font-weight: bold;

    cursor: pointer;
    transition: 0.3s ease;
}

.button:hover{
    background: #ff5c4d;
}

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

    .login-wrapper{
        margin-top: -35px;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .login-form form,
    .form-container{
        padding: 25px 20px;
        border-radius: 12px;
    }

    .login-form h2{
        font-size: 1.8rem;
    }
}

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

    .login-wrapper{
        margin-top: -60px;
        margin-bottom: 40px;
        padding: 0 10px;
    }

    .login-form form,
    .form-container{
        padding: 22px 18px;
    }

    .login-form h2{
        font-size: 1.6rem;
    }

    input,
    .my-select{
        font-size: 0.9rem;
    }

    .button{
        font-size: 0.95rem;
    }
}

/* ===== 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 ===== */
.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;
  background: #00bcd4;
  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);}
}