/* ======== STYLE GLOBAL ======== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", Arial, sans-serif;
}

body {
  background: #f8f8f8;
  color: #222;
  line-height: 1.6;
}


/* ======== CONTAINER ======== */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.container-urgent {
  width: 80%;
  margin: 0 auto;
  padding: 80px 20px;
  background: linear-gradient(to right, #102030, #1976d2 );
  color: #fff;
  text-align: center;
  border-radius: 10%;
}

.container-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  padding-right: 30px;
}

/* ======== HEADER ======== */
.header {
  background: #0d47a1;
  color: #fff;
  padding: 15px 0;
  position: relative;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.6rem;
  font-weight: bold;
}

.nav {
  display: flex;
  gap: 20px;
}

.nav a {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  transition: 0.3s;
  border-radius: 6px;
}

.nav a:hover,
.nav a.active {
  background: #1565c0;
}

/* ======== MENU MOBILE ======== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  position: absolute;
  top: 15px;     /* distance depuis le haut */
  right: 20px;   /* distance depuis la droite */
  z-index: 1000;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    flex-direction: column;
    background: #0d47a1;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    padding: 20px;
  }

  .nav.active {
    display: flex;
  }
}


/* ======== HERO ======== */
.hero {
  position: relative;
  height: 80vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: left;
  padding: 0 20px;
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Pour rendre le texte plus lisible */
.hero h2 {
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
  font-size: 2rem;
}

.hero p {
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
  font-size: 1rem;
}

/* Pour renforcer l’effet d’animation déjà présent */
.hero h2, .hero p, .hero-buttons {
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 1s ease-out forwards;
}

.hero h2:nth-child(1) { animation-delay: 0.2s; }
.hero h2:nth-child(2) { animation-delay: 0.4s; }
.hero p { animation-delay: 0.6s; }
.hero-buttons { animation-delay: 0.8s; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ======== BUTTONS ======== */
.btn-primary,
.btn-secondary,
.btn-third {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
  gap: 25px;
  margin-top: 30px;
  margin: 10px;
}

.btn-forth {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
  gap: 25px;
  margin-top: 30px;
  margin: 10px;
}

.btn-primary {
  background: #ffca28;
  color: #000;
}

.btn-primary:hover {
  background: #fdd835;
}

.btn-secondary {
  background: #ffca28;
  color: #000;
}

.btn-secondary:hover {
  background: #fdd835;
}

.btn-third {
  background: #ffca28;
  color: #000;
}

.btn-third:hover {
  background: #fdd835;
}

.btn-forth {
  background: #0d47a1;
  color: #fff;
}

.btn-forth:hover {
  background: #0d47a1;
}

/* ======== SECTIONS ======== */
section {
  padding: 60px 0;
}

.steps h3 {
  text-align: center;
  margin-bottom: 40px;
  color: #0d47a1;
  font-size: 3rem;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
}

.step {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.step h4 {
  color: #1976d2;
  margin-bottom: 10px;
  font-size: 1.5rem;
}

#lire-plus {
  display: none;
}

#bouton-lire-plus {
  background-color: #0d47a1;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  color: #fff;
  margin-top: 10px;
}

#bouton-lire-plus:hover {
  background-color: #1976d2;
}

#lire-plus1 {
  display: none;
}

#bouton-lire-plus1 {
  background-color: #0d47a1;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  color: #fff;
  margin-top: 10px;
}

#bouton-lire-plus1:hover {
  background-color: #1976d2;
}

/* ======== FORM ======== */
.form {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  color: #0d47a1;
}

.form input,
.form select,
.form textarea {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-top: 5px;
  font-size: 1rem;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: #0d47a1;
  outline: none;
}

/* Styling for the paragraph container */
.button-radio {
  display: flex;
  flex-direction: row;
  font-weight: 600;
  color: #0d47a1;
}

/* Styling for the radio button labels */
label {
  margin-left: 5px;
  margin-right: 15px;
  cursor: pointer; /* Indicates the label is clickable */
}

/* Styling for the radio buttons themselves */
input[type="radio"] {
  /* You can customize appearance further, e.g., using accent-color */
  accent-color: #007bff; /* Changes the color of the selected radio button */
  transform: scale(1.2); /* Makes the radio button slightly larger */
  vertical-align: middle; /* Aligns with the text */
}

/* Optional: Hover effect for labels */
label:hover {
  color: #0056b3; /* Darker blue on hover */
}

/* ======== FOOTER ======== */
.footer {
  background: #0d47a1;
  color: #fff;
  text-align: center;
  padding: 15px 0;
  font-size: 0.9rem;
  margin-top: 40px;
}

/* ======== PAGE CONTENU ======== */
.page h2 {
  color: #0d47a1;
  text-align: center;
  margin-bottom: 20px;
  font-size: 3rem;
}

.page p {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.5rem;
}

.center {
  text-align: center;
}

/* ======== ANIMATIONS ======== */

/* Apparition douce de tout élément avec la classe .fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animation pour le texte hero */
.hero h2, .hero p, .hero-buttons {
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 1s ease-out forwards;
}

.hero h2:nth-child(1) { animation-delay: 0.2s; }
.hero h2:nth-child(2) { animation-delay: 0.4s; }
.hero p { animation-delay: 0.6s; }
.hero-buttons { animation-delay: 0.8s; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Menu animé */


/* Petites transitions de hover */
.step {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* ======== PARTENAIRES ======== */
.partners {
  background: #fff;
  padding: 60px 20px;
  text-align: center;
}

.partners h3 {
  color: #0d47a1;
  margin-bottom: 30px;
  font-size: 3rem;
}

.partner-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.partner-logos img {
  max-width: 130px; /* Taille maximale du logo */
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 10px;
}

/* Effet au survol */
.partner-logos img:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Version responsive */
@media (max-width: 768px) {
  .partner-logos img {
    max-width: 90px;
  }
}

/* ======== TÉMOIGNAGES ======== */
.testimonials {
  background: linear-gradient(to right, #102030, #1976d2 );
  padding: 60px 20px;
  text-align: center;
}

.testimonials h3 {
  color: #fff;
  margin-bottom: 40px;
  font-size: 3rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: linear-gradient(to right, rgba(16, 32, 48, 0.9), rgba(25, 118, 210, 0.9));
  border-radius: 12px;
  padding: 25px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease-out forwards;
  color: #fff;
}

.testimonial-card:nth-child(1) { animation-delay: 0.2s; }
.testimonial-card:nth-child(2) { animation-delay: 0.4s; }
.testimonial-card:nth-child(3) { animation-delay: 0.6s; }

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.testimonial-card img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid #1976d2;
}

.testimonial-card h4 {
  color: #fff;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.testimonial-card p {
  font-style: italic;
  color: #fff;
  line-height: 1.5;
}

/* Animation à l'apparition */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ======== FAQ (version <details>) ======== */
.faq {
  background: #fff;
  padding: 60px 20px;
}

.faq h3 {
  text-align: center;
  color: #0d47a1;
  font-size: 3rem;
  margin-bottom: 40px;
}

.faq-item {
  margin: 15px auto;
  max-width: 800px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  background: #f9f9f9;
  transition: all 0.3s ease;
}

.faq-item summary {
  background: #1976d2;
  color: white;
  padding: 15px 20px;
  font-size: 1.1rem;
  cursor: pointer;
  font-weight: 500;
  list-style: none; /* retire le triangle par défaut */
  position: relative;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  font-weight: bold;
  transition: transform 0.3s;
}

.faq-item[open] summary::after {
  content: "–";
  transform: rotate(180deg);
}

.faq-item p {
  padding: 15px 20px;
  color: #333;
  background: #fff;
  line-height: 1.6;
  font-size: 1rem;
}

.faq-item a {
  color: #1976d2;
  text-decoration: underline;
}

/* ======== SPINNER DE CHARGEMENT ======== */
.spinner-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
  color: #fff;
  font-size: 1.2rem;
}

.spinner-box {
  text-align: center;
}

.loader {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #ffca28;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* Footer simple collé en bas si contenu court, sans modifier la structure */
footer.footer {
  background-color: #0d47a1; /* couleur originale */
  color: #fff;
  text-align: center;
  padding: 15px 0; /* espace intérieur */
  position: relative; /* reste dans le flux normal */
  bottom: 0;
  width: 100%;
}

.spacer {
  min-height: 50vh;
}


