

/* ==========  Colors ========== */
:root {
  --white: #ffffff;
  --black: #000000;
  --blue: #0e2e50;
  --yellow: #FFCA28;
}

/* ===== Reset / Body ===== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--white);
  color: var(--black);
}

/* ===== NAVBAR ===== */
.custom-navbar {
  background: var(--white);
  padding: .6rem 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* ==== LOGO ==== */
.logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  transition: transform .2s ease;
}

.logo:hover {
  transform: scale(1.05);
}

/* ==== NAV  LINKS ==== */
.navbar .nav-link {
  color: var(--blue) !important;
  font-weight: 600;
  padding: .5rem 0.8rem;
  transition: color .2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--yellow) !important;
}

/* ==== CONNEXION BTN ==== */
.btn-connexion {
  background: var(--yellow);
  color: var(--blue);
  border: 2px solid var(--yellow);
  padding: .35rem .8rem;
  border-radius: 50px;
  font-weight: 700;
  transition: all .2s ease;
}

.btn-connexion:hover {
  background: var(--blue);
  color: var(--yellow);
  border: 2px solid var(--blue);
  text-decoration: none;
}

/* ==== HAMBURGER ICON ==== */
.navbar-toggler {
  border: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%230e2e50' stroke-width='3' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {
  .logo {
    height: 42px;
  }

  .btn-connexion {
    width: 100%;
    text-align: center;
    margin-top: .5rem;
  }

  .navbar-collapse {
    background: var(--white);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  }
}


/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh; 
  background: linear-gradient(rgba(14, 46, 80, 0.6), rgba(14, 46, 80, 0.6)),
              url('../imgs/hero-bg.jpg') center/cover no-repeat;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Animation  */
.hero-content {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeSlideUp 1.4s ease-out forwards;
}

/* Animation keyframes */
@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  60% {
    opacity: 0.6;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* HERO */
.hero-content h1 {
  font-size: 3rem;
  color: var(--yellow);
  letter-spacing: 1px;
  animation: fadeIn 1s ease 0.3s forwards;
  opacity: 0;
}

.hero-sub {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--white);
  opacity: 0;
  margin-top: .5rem;
  animation: fadeIn 1s ease 0.8s forwards;
}

/* Animation  */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* CTA BTN */
.btn-cta{
  background: var(--yellow);
  color: var(--blue);
  border: none;
  padding: .7rem 1.2rem;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(14,46,80,0.14);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-cta:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(14,46,80,0.18);
  text-decoration: none;
   background: var(--blue);
  color: var(--yellow);
}
.cta-content{
  position: relative;
  z-index: 2;
  max-width: 960px;
  padding: 0 1rem;
}
.cta-title, .section-title {
  color: var(--black);
  font-weight: 700;
  margin-bottom: 60px;
}
.cta-sub{
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  opacity: .95;
  margin-bottom: 1rem;
}
/* WAVY SVG  */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 120px;
}

.hero-wave path {
  fill: var(--white);
}

/* Responsive  */
@media (max-width: 768px) {
  .hero {
    height: 70vh;
    background-position: center top;
  }


}




/* ===== À PROPOS SECTION  ===== */
.apropos-section {
  padding-bottom: 50px;
  background: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
}

.apropos-card {
  background: linear-gradient(145deg, #ffffff 0%, #fffdf4 40%, #edf3fa 100%);
  color: var(--blue);
  border-radius: 25px;
  max-width: 600px;
  width: 100%;
  border: 1px solid rgba(14,46,80,0.1);
  box-shadow: 0 10px 25px rgba(14,46,80,0.1);
  animation: floatCard 3s ease-in-out infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.apropos-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 40px rgba(14,46,80,0.15);
}

@keyframes floatCard {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.apropos-logo {
  height: auto;
  width: 120px;
  object-fit: contain;
  padding: 10px;
  margin-bottom: 10px;
}

.apropos-card h2 {
  color: var(--blue);
  font-weight: 700;
}

.apropos-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--black);
  opacity: 0.85;
}

/* Social media icons */
.social-link {
  font-size: 1.7rem;
  color: var(--blue);
  transition: all 0.3s ease;
}

.social-link:hover {
  color: var(--yellow);
  transform: translateY(-5px) scale(1.1);
}
/* SERVICES SECTION */
.services-section {
  position: relative;
  background: var(--blue);

  overflow: hidden;
  z-index: 0;
}

.wave-top, .wave-bottom {
  position: absolute;
  width: 100%;
  left: 0;
    z-index: -1;
}

.wave-top {
  top: -63px;
}

.wave-bottom {
  bottom: -1px;
}

.services-section .section-title {
  color: var(--yellow);
  font-weight: 700;
  margin-bottom: 60px;
  font-size: 2rem;
  margin-top: 90PX;
}
.services-section .section-subtitle {
  color: #ffffffcc;
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto 40px;
  text-align: center;
  line-height: 1.6;
}
.row {
  margin-bottom: 120px;
}
/* Service Cards */
.service-card {
  background: #fff;
  z-index: 2;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  padding-bottom: 15px;
  padding: 5px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Image Styling */
.service-card img {
  width: 100%;
  height: 200px; 
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 15px;
}

/* Title Styling */
.service-card h3 {
  color: #0e2e50;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 1.25rem; 
  text-align: center;
}

/* Description Text */
.service-card p {
  color: #555;
  font-size: 0.95rem;
  text-align: center;
  margin-bottom: 15px;
  line-height: 1.5;
}

/* Hover Effect */
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.btn-service {
  display: inline-block;               /* Important for links */
  background-color: #0e2e50;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 0.9rem;
  text-transform: uppercase;
  text-decoration: none;            
  font-weight: 500;
}

.btn-service:hover {
  background-color: #FFCA28;
  color: #0e2e50;
  text-decoration: none;           
}


/* Scroll-In Animation */
.animated {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animated.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive  */
@media (max-width: 768px) {
  .wave-top {
    top: -10px;
  }
}
/* PARTENAIRES SECTION */
.partenaires-section {
  background-color: #fff;
  position: relative;
}

.partners-wrapper {
  overflow-x: hidden;
  position: relative;
  cursor: grab;
  scroll-behavior: auto;
}

.partners-wrapper:active {
  cursor: grabbing;
}

.partners-container {
  display: flex;
  gap: 30px;
  width: max-content;
  padding: 10px 30px;
}
.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 220px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 20px;
  transition: transform 0.3s ease;
}

.partner-card:hover {
  transform: translateY(-8px);
}

.partner-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #FFCA28;
  margin-bottom: 10px;
}

.partner-card h4 {
  color: #0e2e50;
  font-weight: 600;
  margin: 5px 0;
}

.partner-card p {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.partner-card button {
  background-color: #FFCA28;
  border: none;
  color: #0e2e50;
  font-weight: 600;
  border-radius: 25px;
  padding: 8px 20px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.partner-card button:hover {
  background-color: #f7b500;
}
.partner-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  padding: 40px 20px; 
  align-items: flex-start; /* top align */
  justify-content: center; /* horizontal center */
  overflow-y: auto;        /* optional: scroll overlay if needed */
}

.partner-modal.active {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: 25px;
  max-width: 400px;
  width: 100%;
  padding: 30px 20px;
  text-align: center;
  position: relative;
  animation: fadeIn 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* start from top */
  gap: 12px;
  box-sizing: border-box;

  /* Scroll inside the modal */
  max-height: 90vh;    /* limit modal height */
  overflow-y: auto;    /* scroll appears only inside the box */
  margin: 0 auto;      /* center horizontally only */
}



.modal-content img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #FFCA28;
  margin-bottom: 15px;
}

.modal-content h3 {
  color: #0e2e50;
  margin-bottom: 5px;
}

.modal-content .role {
  color: #777;
  font-weight: 500;
  margin-bottom: 10px;
}

.modal-content .bio {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.contact-links a {
  display: block;
  background: #FFCA28;
  color: #0e2e50;
  font-weight: 600;
  border-radius: 20px;
  padding: 10px;
  text-decoration: none;
  margin: 8px auto;
  width: 100%;
  transition: background 0.3s ease;
}

.contact-links a:hover {
  background: #f7b500;
}

.close-modal {
position: absolute;
  top: 10px;
  right: 15px;
  border: none;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Smooth fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}


/* === FOOTER === */
.footer {
  background: #0e2e50;
  color: #ffffff;
  padding: 60px 20px 20px;
  font-family: "Poppins", sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.footer-section h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #FFCA28;
}

/* Contact List */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #e5e7eb;
}

.contact-list li i {
  color: #FFCA28;
  margin-right: 10px;
  font-size: 1.1rem;
}

/* === CONTACT POPUP === */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 46, 80, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.contact-popup-content {
  background: #fff;
  color: #0e2e50;
  border-radius: 16px;
  text-align: center;
  width: 90%;
  max-width: 320px;
  position: fixed;
   padding: 40px 20px; 
  overflow-y: auto;
  align-items: flex-start;
  justify-content: center;
  animation: popup-appear 0.3s ease;
}

.contact-popup-content h4 {
  margin-bottom: 20px;
  font-size: 1.2rem;
  font-weight: 600;
}

.popup-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.popup-buttons button {
  background-color: #ffcc00;
  border: none;
  color: #0e2e50;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.popup-buttons button:hover {
  background-color: #e6b800;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: #0e2e50;
  cursor: pointer;
  transition: transform 0.2s;
}

.close-btn:hover {
  transform: scale(1.1);
}

@keyframes popup-appear {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Number hover effect */
.contact-number {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-number:hover {
  color: #ffcc00;
}

/* Links */
.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #FFCA28;
}

/* Social Icons */
.social-icons {
  margin-top: 20px;
}

.social-icons a {
  display: inline-block;
  color: #ffffff;
  margin-right: 12px;
  font-size: 1.4rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
  color: #FFCA28;
  transform: scale(1.2);
}

/* ===== CONTACT FORM ===== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 15px;
  border-radius: 8px;
  border: none;
  outline: none;
  color: #0e2e50;
  font-size: 0.95rem;
  resize: none;
}

.contact-form textarea {
  min-height: 100px;
}

.contact-form button {
  background-color: #FFCA28;
  color: #0e2e50;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  align-self: flex-start;
}

.contact-form button:hover {
  background-color: #ffd54f;
  transform: scale(1.05);
}


/* Footer Bottom */
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 40px;
  padding-top: 20px;
  color: #cbd5e1;
  font-size: 0.9rem;
}
/* --- Popup Overlay --- */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* --- Active state --- */
.popup-overlay.active {
  display: flex;
}

/* --- Popup Box
 --- */
.popup-content { 
  color: var(--blue);
  background: #fff;
  padding: 30px 40px;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  position: relative;
  text-align: center;
  animation: fadeIn 0.3s ease;

  /* Add scroll */
  max-height: 90vh;  /* or any height you want */
  overflow-y: auto;
}


/* --- Close Button --- */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  border: none;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
}

/* --- Form Styling --- */


.radio-section {
  padding: 60px 0 20px 0 ;
  background: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- Form Styling --- */
#dossierForm input,
#dossierForm textarea {
  width: 100%;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}
#dossierForm button[type="submit"] {
  width: 100%;
}


/* --- File input styling --- */
.file-label {
  display: block;
  background: #f8f9fa;
  border: 1px dashed #bbb;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 15px;
  cursor: pointer;
  color: #333;
}

.file-label input {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ===== Login Card ===== */
.login-card {
  background: var(--white);
  width: 100%;
  max-width: 400px;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  animation: fadeIn 0.8s ease;
}

/* ===== Logo Section ===== */
.login-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}

.login-logo img {
  width: 70px;
  height: auto;
  margin-bottom: 0.5rem;
}

.login-logo h4 {
  color: var(--blue);
  font-weight: 600;
}

/* ===== Form ===== */
.form-label {
  font-weight: 500;
  color: var(--blue);
}

.form-control {
  border-radius: 8px;
  border: 1.5px solid #ddd;
  padding: 0.75rem;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.form-control:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 202, 40, 0.25);
}

/* ===== Password Toggle Button ===== */
.input-group .btn {
  border-radius: 0 8px 8px 0;
  border-color: #ddd;
  color: var(--blue);
}

.input-group .btn:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--blue);
}

/* ===== Login Button ===== */
.btn-login {
  background-color: var(--yellow);
  color: var(--blue);
  font-weight: 600;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.btn-login:hover {
  background-color: #f5b600;
  color: var(--white);
}

/* ===== Login Message ===== */
#loginMessage {
  color: var(--blue);
  font-weight: 500;
}

/* ===== Animation ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Responsive ===== */
@media (max-width: 576px) {
  .login-card {
    margin: 1rem;
    padding: 1.5rem;
  }

  .login-logo img {
    width: 60px;
  }

  .login-logo h4 {
    font-size: 1.1rem;
  }
}
/* Loader circulaire */
.loader-circle {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 3px solid #ccc;
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 8px; /* espace entre texte et loader */
  vertical-align: middle;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* File list container */
#fileList {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Card style for each file */
.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #ffffff;
    padding: 14px 18px;
    border-radius: 12px;

    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    border: 1px solid #f1f1f1;

    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Hover effect */
.file-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

/* File name */
.file-item span {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    flex: 1;
    margin-right: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Delete button */
.delete-file {
    border: none;
    color: white;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s ease, transform 0.1s ease;
}

.delete-file:hover {
    background: #d9363e;
    transform: scale(1.07);
}
