/* ======================================================
   Fichier : style.css
   Description : Styles personnalisés pour le site Bootstrap
   ====================================================== */

/* ------------------------------
   Couleurs et variables globales
------------------------------ */
:root {
  --color-primary: #002f40;
  --color-secondary: #00a3a3;
  --color-light: #f8f9fa;
  --color-dark: #1a1a1a;
  --color-text: #333;
  --radius: 0.5rem;
  --transition: 0.3s ease-in-out;
}


/* ------------------------------
   Réinitialisation légère
------------------------------ */
body {
  font-family: "Poppins", Arial, sans-serif;
  color: var(--color-text);
  background-color: var(--color-light);
  margin: 0;
  padding: 0;
}

/* ------------------------------
   Header
------------------------------ */
.navbar {
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.navbar-brand span {
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav-link {
  color: var(--color-dark);
  transition: color var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  border-radius: var(--radius);
  font-weight: 500;
  transition: background-color var(--transition);
}

.btn-primary:hover {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
}

/* ------------------------------
   Section principale (exemple)
------------------------------ */
main {
  padding-top: 80px;
  padding-bottom: 80px;
}

h1, h2, h3 {
  color: var(--color-primary);
}

p {
  line-height: 1.6;
}

/* ------------------------------
   Responsive ajustements
------------------------------ */
/* Cercle coloré pour icône */
.icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.icon-circle:hover {
  transform: scale(1.1);
}

/* Texte aligné verticalement */
section h5 {
  color: var(--color-primary);
}

section p {
  line-height: 1.4;
}

/* Responsive : centrer les blocs sur mobile */
@media (max-width: 768px) {
  .row > div {
    text-align: center;
    flex-direction: column !important;
  }
  .icon-circle {
    margin-bottom: 10px;
    margin-right: 0 !important;
  }
}


/* Couleurs de la section (fond bleu profond + accent doré) */
.section-feature-split {
  background: #0c3c73; /* bleu profond proche de ton visuel */
}

/* Cartes de droite */
.feature-card {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 28px;
  padding: 18px 22px;
}

/* Icône dans un carré arrondi doré */
.icon-blob {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #D6A85B; /* doré */
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

/* Petite transparence du texte blanc gauche */
.section-feature-split .opacity-90 { opacity: 0.9; }

/* Réactivité */
@media (max-width: 991.98px) {
  .feature-card { border-radius: 22px; }
  .icon-blob { width: 56px; height: 56px; font-size: 24px; }
}


/* === Bouton personnalisé doré / bleu foncé === */
.btn-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 28px;
  border: 2px solid #D6A85B;          /* contour doré */
  border-radius: 40px;
  background-color: #0c3c73;          /* fond bleu foncé */
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-custom i {
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}

.btn-custom:hover {
  background-color: #D6A85B;          /* devient doré au survol */
  color: #0c3c73;
  border-color: #D6A85B;
  transform: translateY(-2px);
}

.btn-custom:hover i {
  transform: translateX(4px);
}

/* Option responsive */
@media (max-width: 576px) {
  .btn-custom {
    padding: 12px 22px;
    font-size: 1rem;
  }
}
/* Boutons avec dégradé bleu */
.btn-gradient {
  background: linear-gradient(135deg, #53759b, #2b4d72);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.btn-gradient:hover {
  background: linear-gradient(135deg, #2b4d72, #53759b);
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
  color: #fff;
}

.btn-gradient i {
  font-size: 1.3rem;
}

/* Responsive */
@media (max-width: 768px) {
  .btn-gradient {
    width: 100%;
  }
}


/* --- Section Timeline --- */
:root {
  --timeline-blue: #0c3c73;
  --timeline-gold: #d6a85b;
}

/* Conteneur */
.timeline-clean {
  position: relative;
  padding-top: 30px;
}

/* Ligne horizontale */
.timeline-line {
  position: absolute;
  top: 60px; /* Alignée avec le centre des ronds */
  left: 13%; /* ajusté pour s'arrêter entre les cercles */
  right: 13%;
  height: 6px;
  background-color: var(--timeline-gold);
  border-radius: 10px;
  z-index: 1; /* Derrière les cercles */
}

/* Ronds (bulles) */
.bubble {
  position: relative;
  z-index: 2; /* au-dessus de la ligne */
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--timeline-gold);
  color: #fff;
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 4px solid #e8c88a;
}

/* Textes */
.timeline-clean h5 {
  color: #fff;
}

.timeline-clean p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 767.98px) {
  .timeline-line {
    display: none;
  }

  .bubble {
    width: 70px;
    height: 70px;
    font-size: 1.3rem;
  }
}

/* Cartes témoignages */
/* Empêche la coupe des cartes sur les bords */
.testimonials-slider .carousel-inner { overflow: visible; }

/* Un peu de place pour les flèches afin qu’elles ne masquent pas les cartes */
.testimonials-slider .carousel-control-prev,
.testimonials-slider .carousel-control-next { width: 6%; }

/* Cartes: hauteur égale + hover doux */
.testimonial-card {
  height: 100%;
  border: none;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

/* Étoiles dorées */
.stars { color: #d6a85b; letter-spacing: 1px; }

/* Petits écrans : une carte par slide, pas de coupure */
@media (max-width: 767.98px){
  .testimonials-slider .carousel-control-prev,
  .testimonials-slider .carousel-control-next { width: 12%; }
}


/* Boutons principaux */
/* Boutons besoins */
.btn-need {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff; /* texte blanc */
  background-color: #d6a85b;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #d6a85b;
}

.btn-need:hover {
  background-color: transparent;
  color: #fff; /* reste blanc au hover */
  border-color: #fff;
  transform: translateY(-3px);
}

/* Icônes blanches */
.btn-need i {
  color: #fff;
  font-size: 1.3rem;
}

/* Responsive */
@media (max-width: 768px) {
  .btn-need {
    width: 100%;
    max-width: 320px;
  }
}


/* Cartes d'article */
/* Cartes d'article */
.article-card {
  border-radius: 12px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,.15);
}
.article-thumb {
  height: 180px;
  object-fit: cover;
}

/* Carousel */
#articlesCarousel .carousel-inner { overflow: visible; }
#articlesCarousel .carousel-indicators [data-bs-target] {
  background-color: rgba(255,255,255,.4);
}
#articlesCarousel .carousel-indicators .active {
  background-color: #d6a85b;
}
#articlesCarousel .carousel-control-prev-icon,
#articlesCarousel .carousel-control-next-icon {
  filter: invert(1) grayscale(100%);
}

/* Bouton principal */
.btn-articles {
  background-color: #d6a85b;
  color: #fff;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  border: 2px solid #d6a85b;
  transition: all 0.3s ease;
}
.btn-articles:hover {
  background-color: transparent;
  color: #fff;
  border-color: #fff;
}


/* Call to Action */
.btn-cta {
  background-color: #d6a85b;
  color: #fff;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 50px;
  border: 2px solid #d6a85b;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.btn-cta:hover {
  background-color: transparent;
  border-color: #fff;
  color: #fff;
  transform: translateY(-3px);
}

/* Animation subtile d’apparition */
section.text-center h2,
section.text-center p,
section.text-center .btn-cta {
  animation: fadeInUp 0.8s ease both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Footer */
.footer-psa { background: #082b53; }
.footer-title {
  color: #d6a85b;
  letter-spacing: .3px;
  text-transform: uppercase;
  font-weight: 700;
  font-size: .9rem;
}
.footer-links li + li { margin-top: .35rem; }
.footer-links a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}
.footer-links a:hover { color: #ffffff; transform: translateX(2px); }

/* Bottom bar */
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.hover-white:hover { color: #fff !important; }

/* Responsive spacing */
@media (max-width: 575.98px) {
  .footer-bottom .nav { justify-content: center; flex-wrap: wrap; }
}


/* Section Hero Épargne */
.hero-epargne {
  position: relative;
  height: 60vh;
  background: url('images/epargne-hero.jpg') center center / cover no-repeat;
  overflow: hidden;
}

.hero-epargne .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(12, 60, 115, 0.65); /* voile bleu foncé transparent */
  z-index: 1;
}

.hero-epargne .container {
  position: relative;
  z-index: 2;
}

.hero-epargne h1 {
  font-size: 2.8rem;
  color: #fff;
}

.hero-epargne p {
  color: rgba(255,255,255,0.9);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 30px;
}

/* Section Hero Épargne */
.hero-credit {
  position: relative;
  height: 60vh;
  background: url('images/credit-hero.jpg') center center / cover no-repeat;
  overflow: hidden;
}

.hero-credit .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(12, 60, 115, 0.65); /* voile bleu foncé transparent */
  z-index: 1;
}

.hero-credit .container {
  position: relative;
  z-index: 2;
}

.hero-credit h1 {
  font-size: 2.8rem;
  color: #fff;
}

.hero-credit p {
  color: rgba(255,255,255,0.9);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 30px;
}

/* Section Hero Épargne */
.hero-assurance {
  position: relative;
  height: 60vh;
  background: url('images/assurance-hero.jpg') center center / cover no-repeat;
  overflow: hidden;
}

.hero-assurance .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(12, 60, 115, 0.65); /* voile bleu foncé transparent */
  z-index: 1;
}

.hero-assurance .container {
  position: relative;
  z-index: 2;
}

.hero-assurance h1 {
  font-size: 2.8rem;
  color: #fff;
}

.hero-assurance p {
  color: rgba(255,255,255,0.9);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 30px;
}

/* Bouton doré (cohérent avec site) */
.btn-cta {
  background: linear-gradient(135deg, #d6a85b, #b68a3a);
  color: #fff;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 50px;
  border: none;
  transition: all 0.3s ease;
}
.btn-cta:hover {
  background: linear-gradient(135deg, #b68a3a, #d6a85b);
  transform: translateY(-3px);
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-epargne {
    height: 60vh;
  }
  .hero-epargne h1 {
    font-size: 2rem;
  }
}


/* Sidebar sticky + style */
.sidebar-sticky {
  position: sticky;
  top: 90px;                 /* ajuste si ton header est sticky */
  border: 1px solid rgba(0,0,0,.05);
  overflow: hidden;
}

.sidebar-sticky .list-group-item {
  border: 0;
  padding: .9rem 1rem;
  font-weight: 600;
  color: #224a79;
}

.sidebar-sticky .list-group-item + .list-group-item {
  border-top: 1px solid rgba(0,0,0,.06);
}

.sidebar-sticky .list-group-item.active {
  background: linear-gradient(135deg, #53759b, #2b4d72);
  color: #fff;
}

/* Conteneur scrollspy (ajoute un léger offset visuel) */
.scrollspy-container section {
  scroll-margin-top: 100px; /* pour que les ancres ne collent pas le header */
}

/* Douceur du scroll sur toutes les ancres */
html { scroll-behavior: smooth; }



/* Dégradé doré pour les accents */
.text-gradient {
  background: linear-gradient(135deg, #d6a85b, #b68a3a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Cartes avantages */
.advantage-card {
  background: rgba(255,255,255,0.1);
  border-radius: 15px;
  padding: 30px 20px;
  transition: all 0.3s ease;
  height: 100%;
}

.advantage-card:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-5px);
}

.advantage-card i {
  font-size: 2rem;
  color: #d6a85b;
  margin-bottom: 12px;
}

.advantage-card h5 {
  font-weight: 600;
  margin-bottom: 5px;
}

.advantage-card .highlight {
  font-size: 1.8rem;
  color: #fff;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
  .advantage-card {
    padding: 25px;
  }
}


.carousel-indicators{
      margin-bottom: -2rem!important;
}


/* formulaire */
#formInvest .form-control,
#formInvest .form-select {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}

#formInvest .form-control:focus,
#formInvest .form-select:focus {
  border-color: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

#formInvest option {
  background-color: #0c3c73;
  color: #fff;
}

#formInvest .btn-light:hover {
  background-color: #f8f9fa;
  color: #0c3c73;
}




#registration_form fieldset { display: none; }
#registration_form fieldset:first-of-type { display: block; } /* si JS ne charge pas */
.progress { background:#f1f1f1; border-radius:50px; overflow:hidden; height:6px; }
.progress-bar { background:#f09302; width:0; transition:width .3s; }


/* ========== FORMULAIRE MULTI-ÉTAPES ========== */
#formulaire {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 20px 25px;
  font-family: 'Poppins', sans-serif;
}

/* Titres */
#formulaire h2 {
  font-size: 22px;
  line-height: 1.3;
  color: #0c3c73;
  text-align: center;
  font-weight: 700;
  margin-bottom: 10px;
}
#formulaire p {
  font-size: 15px;
  color: #223b5a;
  text-align: center;
}

/* Barre de progression */
.progress {
  background: #e9ecef;
  border-radius: 50px;
  height: 6px;
  overflow: hidden;
  margin: 15px 0 25px;
}
.progress-bar {
  background: linear-gradient(90deg, #f09302, #ffb347);
  width: 0;
  transition: width 0.4s ease;
}

/* Questions */
.blocquestion label {
  font-size: 19px;
  font-weight: 700;
  color: #0c3c73;
  text-align: center;
  display: block;
  margin-bottom: 20px;
}

/* Blocs de choix */
.blocinfo {
  border: 1px solid #e0e0e0;
  background: #f7f7f7;
  color: #0c3c73;
  border-radius: 10px;
  padding: 15px;
  transition: all 0.25s ease;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 0 0 rgba(0,0,0,0);
 
}

.btmsm6{
   width: 50%;
    float: left;
}
/* Hover interactif */
.blocinfo:hover {
  background-color:#1b6c8e!important;
  color: #fff!important;
  transform: translateY(-3px);

}

/* État actif (sélectionné) */
.blocinfo.active,
.blocinfo[style*="background: #f09302"] {
  background: linear-gradient(135deg, #f09302, #f5b14b);
  color: #fff;
  box-shadow: 0 4px 10px rgba(240,147,2,0.4);
}

/* Inputs finaux */
#registration_form input.form-control,
#registration_form select.form-control {
  border-radius: 8px;
  border: 1px solid #ccc;
  padding: 10px 14px;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#registration_form input.form-control:focus,
#registration_form select.form-control:focus {
  border-color: #f09302;
  box-shadow: 0 0 0 3px rgba(240,147,2,0.2);
  outline: none;
}

/* Bouton final */
#registration_form button[type="submit"] {
  background: linear-gradient(90deg, #f09302, #ffb347);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  font-weight: 600;
  width: 100%;
  transition: background 0.3s ease, transform 0.2s ease;
}
#registration_form button[type="submit"]:hover {
  transform: scale(1.02);
  background: linear-gradient(90deg, #e67e00, #f7b733);
}

/* Responsive */
@media (max-width: 768px) {
  #formulaire {
    padding: 15px;
  }
  .blocinfo {
    margin-bottom: 10px;
  }
  #formulaire h2 {
    font-size: 20px;
  }
}

