.contact1-hero {
    position: relative;
    height: 430px;
    background-image: url("../imgs/ecoles/test3.png");
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.hero-content h1 {
    font-weight: 700;
    color: #FF9500;
}

.hero-content p {
    max-width: 600px;
    margin: 10px auto 0;
    color: #e0e0e0;
}

/* --------------------------------------------------------------------------------------------------------------- */

.erHeader{
    background-color: #225378 !important;
}



.erHeader select {
  background: transparent;
  color: #fff;
  border: 1px solid #225378;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 14px;
  margin-right: 10px;
}

.erHeader select option {
  color: #000;
}

.erHeader a i {
  color: #fff;
  font-size: 16px;
  margin-left: 10px;
  transition: 0.3s;
}

.erHeader a i:hover {
  color: #fff;
}


.navbar i[data-feather] {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  margin-left: 15px;
  cursor: pointer;
}

/* Liens normaux dans la navbar */
.navbar .navbar-nav .nav-item .nav-link {
    color: #225378; /* couleur par défaut */
    position: relative; /* nécessaire pour ::after */
    transition: color 0.3s;
}

/* Hover sur les liens navbar */
.navbar .navbar-nav .nav-item .nav-link:hover {
    color: #FF9500; /* jaune */
}

/* Ligne soulignée épaisse et arrondie */
.navbar .navbar-nav .nav-item .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px; /* espace entre texte et ligne */
    height: 4px; /* épaisseur */
    width: 100%;
    background-color: #FF9500; /* couleur ligne */
    border-radius: 2px; /* arrondi */
    transform: scaleX(0); /* invisible par défaut */
    transition: transform 0.3s;
}

/* Afficher la ligne au hover */
.navbar .navbar-nav .nav-item .nav-link:hover::after {
    transform: scaleX(1);
}

.btn-outline-warning{
    background-color: #FFC107;
}
/* _____________________________________________________________________________ */
/* Footer */
.footerst{
    background-color: #225378;
}

.footerst .btn-outline-dark{
   transition: transform 0.3s;
}

.footerst .btn-outline-dark:hover{
  transform: translateY(-7px);
  transition: transform 0.4s;
}


/* _____________________________________________________________________________
 */


 body {
    background-color: #f8f9fb;
}

/* Select */
.select-box {
    width: 290px;
    border-radius: 10px;
}

/* Card */
.school-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    height: 100%;
}


/* Image */
.image-box {
    position: relative;
}

.image-box img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 15px;
}

/* Badge */
.badge-type {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #0b2c6d;
    color: #fff;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
}

/* Logo */
.school-logo {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    width: 80px;
}

/* Text */
.card-body p {
    font-size: 15px;
}

/* Button */
.school-card .btn {
    background-color: #FF9500;
    border: none;
    color: #fff;
    padding: 8px;
}
.school-card .btn:hover {
    background-color: #bc6e00;
    border: none;
    color: #fff;
}
/* Brochure */
.brochure-link {
    color: #444;
    text-decoration: none;
    font-weight: 500;
}
.brochure-link:hover{
    color: #7a4700;
}



.fade-up {
  animation: fadeUp 2s ease forwards;
}

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


/* --- STYLE MOBILE UN QUIPEMENT --- */
@media (max-width: 767.98px) {
    /* 1. Aligner toutes les cartes à la même hauteur sur la ligne */
    .row.g-4 {
        display: flex;
        flex-wrap: wrap;
    }

    /* 2. Transformer la carte en conteneur flexible vertical et centré */
    .school-card {
        display: flex;
        flex-direction: column;
        height: 100%;
        text-align: center; /* Centre le titre et la description */
    }

    /* 3. Ajuster le corps de la carte pour pousser le bouton en bas */
    .card-body {
        display: flex;
        flex-direction: column;
        flex-grow: 1; /* Prend tout l'espace disponible */
        align-items: center; /* Centre les éléments horizontalement (flex) */
        padding: 20px !important;
    }

    /* 4. Forcer la description et le pays à être centrés */
    .card-body p, 
    .card-body small {
        width: 100%;
        display: block;
        text-align: center;
    }

    /* 5. Aligner le bouton "Voir plus" en bas et le centrer */
    .card-body .d-flex {
        margin-top: auto !important; /* Pousse le conteneur du bouton vers le bas */
        justify-content: center !important; /* Centre le bouton horizontalement */
        width: 100%;
        padding-top: 15px;
    }

    /* 6. Ajuster l'image pour le mobile */
    .image-box img {
        height: 180px !important;
        border-radius: 10px;
    }
}