/* Reset to Bootstrap default styles */
/*Si tu veux essayer d'autres nuances de bleu, voici quelques suggestions :

#2563eb : Un bleu vif et moderne.

#1e40af : Un bleu légèrement plus foncé que #1e3a8a.

#3b82f6 : Un bleu plus clair et dynamique.

Tu peux remplacer #1e3a8a par l'une de ces couleurs si tu préfères.*/

/* Assure-toi que le body et le html prennent toute la hauteur de l'écran */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Conteneur principal pour le contenu */
.container-main {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 120px;
}

/* Contenu principal (entre le header et le footer) */
main {
    flex: 1;
    padding: 20px 0; /* Ajoute un peu d'espace autour du contenu */
    margin-bottom: 0px;
}

.hero {
  /* Garde le style existant, mais assurez-vous qu'il a une position relative si ce n'est pas déjà le cas
     pour que les éléments enfants positionnés en absolu restent dedans.
     'position-relative' est déjà dans vos classes Bootstrap, donc c'est bon. */
  overflow: hidden; /* Ajouté pour éviter tout débordement de l'image ou de l'overlay */
}

.hero-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Équivalent de background-size: cover; pour <img> */
  z-index: -2;     /* Met l'image tout en arrière-plan */
  /* Vous pouvez ajouter des filtres ici si besoin, ex: filter: brightness(80%); */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)); /* Le dégradé est maintenant ici */
  z-index: -1;     /* Se place entre l'image et le contenu */
}

.hero-content {
  position: relative; /* Nécessaire pour que z-index fonctionne */
  z-index: 1;      /* Assure que le contenu texte est AU-DESSUS de l'overlay et de l'image */
}

/* Override the Bootstrap bg-primary class to use anthracite gray across the site */
.bg-primary, .btn-primary {
    background-color: rgb(43, 43, 43) !important; /* Anthracite gray */
}

.bg-custom-blue {
    background-color: #1e40af;
}

.specialist-text {
    color: #3b82f6; /* Jaune vif */
    
}

/* Styles pour le formulaire */
.card {
    border: none;
    border-radius: 10px;
}

.card-body {
    padding: 2rem;
}

.form-label {
    font-weight: 600;
    color: #333;
}

.form-control {
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 10px;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.btn-primary {
    background-color: #007bff;
    border: none;
    padding: 10px 20px;
    font-size: 1.1rem;
    border-radius: 5px;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* Icônes Font Awesome */
.form-label i {
    margin-right: 10px;
    color: #007bff;
}

.position-relative {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 70%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #aaa;
}

/* ------------------------- */
/* Section résumé pour seniors */
/* ------------------------- */

.resume-chapitre {
    background: #f8f9fa;
    padding: 4rem 0;
}

.resume-chapitre .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.resume-chapitre h1 {
    color: #1e3a8a;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.resume-chapitre h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #3b82f6;
}

.resume-chapitre h2 {
    color: #1e3a8a;
    font-size: 1.8rem;
    margin: 2.5rem 0 1.5rem;
}

.resume-chapitre h3 {
    color: #3b82f6;
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
}

.resume-chapitre p {
    color: #444;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Listes */
.resume-chapitre ul {
    list-style: none;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
}

.resume-chapitre ul li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 2rem;
}

.resume-chapitre ul li::before {
    content: "\f058";
    font-family: "Font Awesome 5 Free";
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: 900;
}

/* Programme pédagogique */
.programme-list {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    margin: 2rem 0;
}

.programme-list h4 {
    color: #1e3a8a;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Avantages */
.avantages-block {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.avantages-block p {
    padding: 1rem;
    margin: 1rem 0;
    border-left: 3px solid #3b82f6;
    background: #f8f9fa;
}

/* Responsive */
@media (max-width: 768px) {
    .resume-chapitre h1 {
        font-size: 2rem;
        padding: 0 15px;
    }
    
    .resume-chapitre h2 {
        font-size: 1.5rem;
    }
    
    .programme-list {
        padding: 1.5rem;
    }
}