/* -------- HEADER BANNER -------- */
.header-contact{
    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-contact::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-contact::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;
}

/* title animation */
.header-contact 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-contact 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);
    }
}

.contact-box {
      z-index: 10; /* 🔥 au-dessus du header */
  margin-top: -60px; /* 🔥 fait remonter le form sur le header */
  background-color: white;
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 450px;
}

.contact-box h2 {
  font-family: 'Amoura Rosbele';
  color: #2abff1;
  text-align: center;
  margin-bottom: 30px;
}

.contact-box label {
  font-family: 'Acumin-Variable-Concept';
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
  color: #333;
}

.contact-box input,
.contact-box textarea {
  width: 100%; background-color:#f5f5f5;
  padding: 10px 15px;
  margin-bottom: 20px;
  border: 2px solid #2abff1;
  border-radius: 20px;
  font-size: 1rem;
  outline: none;
  resize: none;
}

.contact-box textarea {
  border-radius: 15px;
  height: 100px;
}

.contact-box button {
  width: 100%;
  background-color: #ff6f61;
  border: none;
  padding: 12px;
  border-radius: 20px;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-box button:hover {
  background-color: #ff5c4d;
}
/* 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 */
}

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

.message-text{
  color:black;
}

.success-panel {
  background-color: #ebd6c17b; /* beige doux */
  color: #f5fafcff; /* turquoise */
  border-radius: 12px;
  padding: 30px 40px;
  margin-top: 20px;
  box-shadow: 0 8px 20px rgba(16, 16, 16, 0.1);
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.7s ease forwards;
  position: relative;
}

.check-icon {
  font-size: 40px;
  color: #4CAF50; /* vert vif */
  margin-bottom: 20px;
  filter: drop-shadow(0 0 3px #4CAF50);
  animation: pulse 1.5s infinite;
}

.home-button {
  background-color: #FF6F61; /* orange */
  color: white;
  text-decoration: none;
  font-size: 24px;
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-top: 20px;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(255, 111, 97, 0.5);
}

.home-button:hover {
  background-color: #e95a4f;
  transform: scale(1.1);
}

.popup .btn{
  margin-top: 15px;
  padding: 10px 18px;
  border: none;
  border-radius: 25px;

  background: #00a0df;
  color: white;

  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.popup .btn:hover{
  background: #008cc5; /* couleur plus foncée */
  transform: translateY(-2px); color: white;
  box-shadow: 0 8px 20px rgba(0, 160, 223, 0.25);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { filter: drop-shadow(0 0 3px #4CAF50); }
  50% { filter: drop-shadow(0 0 10px #4CAF50); }
}
.popup-close {
  position: absolute;
  top: 10px;
  right: 12px;

  background: transparent;
  border: none;

  font-size: 22px;
  cursor: pointer;

  color: #666;
  transition: 0.2s;
}

.popup-close:hover {
  color: #e74c3c;
  transform: scale(1.2);
}
/* =========================
   MOBILE OPTIMIZATION
   Header + Contact Box
   ========================= */
@media (max-width: 768px) {

  /* HEADER */
  .header-contact{
    padding: 80px 20px 70px;   /* plus compact */
    min-height: 280px;         /* hauteur fixe propre */
    height: auto;              /* évite les problèmes avec 40vh */
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* WATERMARK EMS */
  .header-contact::after{
    font-size: 60px;
    right: 10px;
    bottom: -10px;
    opacity: 0.10;
  }

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

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

  /* LIGHT EFFECT */
  .header-contact::before{
    width: 140%;
    height: 140%;
    opacity: 0.4;
  }

  /* CONTACT BOX */
  .contact-box{
    position: relative;
    z-index: 10;
    margin-top: -35px;   /* remonte légèrement sur le header */
    margin-bottom: 30px;
  }
}

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

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

  .header-contact h1{
    font-size: 2.2rem;
  }

  .header-contact p{
    font-size: 1rem;     margin-bottom: 10px;

  }

  .header-contact::after{
    font-size: 45px;
    bottom: 0;
  }

  .contact-box{
    margin-top: 0px;   /* espace très réduit */
    margin-bottom: 20px;
  }
}
/* Mobile (≤ 480px) */
@media (max-width: 480px) {
  .success-panel {
    padding: 20px 20px;
    font-size: 15px;
  }

  .check-icon {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .home-button {
    font-size: 20px;
    width: 40px;
    height: 40px;
    margin-top: 15px;
  }
}

.popup{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-box{
  background: white;
  padding: 25px;
  border-radius: 16px;
  text-align: center;
  width: 300px;
  animation: pop 0.25s ease;
}

.popup-box.success{
  border-top: 4px solid #00a0df;
}

.popup-box.error{
  border-top: 4px solid #ff4d4f;
}

.popup .icon{
  font-size: 40px;
  margin-bottom: 10px;
}

.popup-box{
  position: relative; /* important pour positionner la X */
}

/* CLOSE X */
.popup-close{
  position: absolute;
  top: 10px;
  right: 12px;

  font-size: 22px;
  font-weight: bold;
  color: #999;

  cursor: pointer;
  transition: 0.2s ease;
  width: 30px;
  height: 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
}

.popup-close:hover{
  background: rgba(0,0,0,0.08);
  color: #000;
}

@keyframes pop{
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
