
/* HERO */
.epargne-hero {
    background: url("images/oiu.jpg") center/cover no-repeat;
    color: #fff;
    text-align: center;
    height: 60vh; /* hauteur de base */
    display: flex;
    justify-content: center; /* centre verticalement le contenu */
    align-items: center;     /* centre horizontalement */
    flex-direction: column;
    padding: 0 20px;         /* padding pour mobiles */
    box-sizing: border-box;
}

/* Pour tablettes et petits écrans */
@media (max-width: 992px) {
    .epargne-hero {
        height: 50vh; /* ajuster la hauteur */
        padding: 0 15px;
    }
}

/* Pour mobiles */
@media (max-width: 576px) {
    .epargne-hero {
        height: 60vh;
        padding: 0 10px;
        font-size: 0.9rem; /* ajuster le texte */
    }
}


.epargne-hero p {
  font-size: 1.2em;
  margin-bottom: 20px;
}

.btn {
 background-color:#0073e6;   /* couleur de fond */
    color: white;               /* couleur du texte */
    padding: 12px 24px;         /* espace intérieur */
    font-size: 20px;            /* taille du texte */
    border: none;               /* pas de bordure par défaut */
    border-radius: 8px;         /* coins arrondis */
    cursor: pointer;            /* curseur pointeur */
    transition: background-color 0.3s, transform 0.2s; /* animation */
}

.btn:hover {
    background-color: #0B65C2; /* couleur au survol */
    transform: scale(1.05);    /* léger agrandissement */
}

.btn:active {
    transform: scale(0.95);    /* effet au clic */
  
}

.btn:hover {
  background: #00796b;
}
/* SECTION DESCRIPTION (TEXTE + IMAGE CÔTE À CÔTE) */
.epargne-description {
  padding: 60px 20px;
  background-color: #fff;
}

.description-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  gap: 40px;
  flex-wrap: wrap; /* Pour le responsive */
}

.description-text {
  flex: 1;
  min-width: 280px;
}

.description-text h2 {
  font-size: 2em;
  margin-bottom: 15px;
  color: #0073e6;
}
.epargne-avantages h2 {
    font-size: 1em;
    margin-bottom: 15px;
    color: #0073e6;
}
.box h3 {
    font-size: 1em;
    margin-bottom: 15px;
    color: #0073e6;
}

.description-text p {
  line-height: 1.7;
  color: #333;
  font-size: 1.1em;
}

.description-image {
  flex: 1;
  min-width: 280px;
  
}

.description-image img {
  width: 100%;
  max-width: 450px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* RESPONSIVE (mobile/tablette) */
@media (max-width: 768px) {
  .description-container {
    flex-direction: column;
    text-align: center;
  }

  .description-image {
    margin-top: 20px;
  }
}


/* AVANTAGES */
.epargne-avantages {
  background: #eef6f5;
  text-align: center;
  padding: 60px 20px;
}

.avantages-boxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-top: 30px;
}

.box {
  background: #fff;
  border-radius: 10px;
  padding: 25px;
  width: 250px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.box:hover {
  transform: translateY(-5px);
}

/* FORMULAIRE */
.epargne-formulaire {
  text-align: right;
  padding: 60px 20px;
}

.epargne-formulaire form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
  
    padding-left: 1100px; 
  
}

.epargne-formulaire input,
.epargne-formulaire select,
.epargne-formulaire textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
}


.programme ul {
      list-style: none;
      padding: 0;
      margin: 15px 0 25px 0;
    }

    .programme ul li {
      background: #ecf0f1;
      margin: 8px 0;
      padding: 12px 15px;
      border-left: 5px solid #0073e6;
      border-radius: 5px;
      line-height: 1.5;
    }

    /* --- Titres de section --- */
    .programme p:first-of-type {
      font-family: 'Poppins', sans-serif;
      font-weight: 600;
      color: #34495e;
      margin-top: 20px;
    }
    /* Éligibilité */
    .programme h2 {
  font-size: 22px;
  color: #34495e;
  margin-top: 30px;
  margin-bottom: 10px;
  border-bottom: 3px solid #0073e6;
  display: inline-block;
  text-transform: uppercase;
}


    /* --- Responsive --- */
    @media (max-width: 600px) {
      .programme {
        padding: 20px;
      }
      .programme h1 {
        font-size: 22px;
      }
      .programme ul li {
        font-size: 15px;
      }
    }

    


/* CATEGORIES */
.categories {
  padding: 60px 0;
  text-align: center;
}
.categories h2 {
  margin-bottom: 30px;
  color: #0073e6;
}
.category-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.category-box {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  width: 150px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s ease;
}
.category-box:hover {
  transform: translateY(-5px);
}

/* Conteneur général */
.epargne-sections {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap; /* passe en colonne sur mobile */
  gap: 30px;
  padding: 40px;
}

/* Style de chaque bloc */
.epargne-description {
  flex: 1;                /* chaque section prend la même largeur */
  min-width: 320px;       /* empêche d’être trop petit */
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 20px;
}

/* Titres */
.epargne-description h1,
.epargne-description h2 {
  color: #0073e6;
  margin-bottom: 15px;
}

/* Listes */
.epargne-description ul {
  margin-left: 20px;
  line-height: 1.6;
}

/* Responsive : sur mobile */
@media (max-width: 768px) {
  .epargne-sections {
    flex-direction: column;
  }
}
.epargne-hero {
    position: relative;
    text-align: center;
    color: #fff;
    height: auto; /* s'ajuste selon l'image */
}

.epargne-image {
    width: 100%;   /* prend toute la largeur */
    height: auto;  /* garde les proportions */
    display: block;
}

.epargne-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* centre le contenu */
    z-index: 2;
    padding: 0 20px;
}
