.portail-logo {
    max-width: 100px;
    height: auto;
    display: inline-block;
    /* add this */
    flex-shrink: 0;
}

.portail-title {
    margin-left: 12px;
    font-size: 10px;
}


.slider {
    width: 100%;
    height: 780px;
    object-fit: cover;
}

/* Step Section */
.step-container {
    margin-top: 30px;
    text-align: center;
}

.step-container h2 {
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: #343a40;
}

.step-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 150px;
}

.step-number {
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.step-icon {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 10px;
}

.step-text {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Card Styles */
.card {
    height: 98%;
    display: flex;
    flex-direction: column;
}

.card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    height: 180px;
    object-fit: cover;
}

/* Section Titles */
h2.text-center {
    font-size: 1.8rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 30px;
}

/* To this — exclude header images: */
img:not(.portail-logo):not(#header img) {
    display: block;
    margin: 0;
    padding: 0;
}

/* nouveau style */
.carousel-caption {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 80%;
    /* background: rgba(0, 0, 0, 0.5); */
    padding: 15px;
    border-radius: 10px;
}

.carousel-caption h5 {
    font-size: 3.5rem;
    font-weight: bold;
    text-transform: uppercase;
    /* text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); */
    color: #ffdd57;
    /* Couleur dorée */
}

.carousel-caption p {
    font-size: 1.5rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-caption h5,
.carousel-caption p {
    animation: fadeInUp 3s ease-in-out;
}





/* Responsive Adjustments */
@media (max-width: 768px) {
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .step-icon {
        font-size: 1.5rem;
    }

    .step-text {
        font-size: 0.8rem;
    }

    h2.text-center {
        font-size: 1.5rem;
    }
}

.carousel-caption h5 {
    font-size: 2.5rem;
    /* Taille du titre */
    font-weight: bold;
    /* Gras */
    text-transform: uppercase;
    /* Mettre en majuscules */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    /* Ombre portée */
    color: #fff;
    /* Couleur du titre */
}

.carousel-caption p {
    font-size: 1.2rem;
    /* Taille de la description */
    font-style: italic;
    /* Italique */
    color: rgba(255, 255, 255, 0.8);
    /* Couleur de la description */
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    /* Ombre portée */
}

.carousel-item {
    position: relative;
}

/* Step Section */
.step-container {
    margin-top: 30px;
    text-align: center;
}

.step-container h2 {
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: #343a40;
}

.step-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.step {
    opacity: 0;
    transform: translateX(-40px);
    /* Départ de la gauche */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 150px;
    transition: all 0.4s ease-in-out;
}

.step.animate {
    opacity: 1;
    transform: translateX(0);
    /* Arrivée au centre */
    animation: fadeInRightStep 0.8s ease forwards;
}

@keyframes fadeInRightStep {
    from {
        opacity: 0;
        transform: translateX(-40px);
        /* Départ de la gauche */
    }

    to {
        opacity: 1;
        transform: translateX(0);
        /* Arrivée au centre */
    }
}

/* Effet d'ombre pour le texte */
/* Style général pour le titre */
h2.text-center {
    font-size: 2.5rem;
    /* Taille de police pour un titre important */
    font-weight: 700;
    /* Poids du texte pour donner de l'impact */
    color: #2c3e50;
    /* Couleur sombre pour une lisibilité optimale */
    text-align: center;
    margin-bottom: 40px;
    /* Un peu d'espace en bas */
    letter-spacing: 1px;
    /* Espacement entre les lettres pour un effet aéré */
    position: relative;
    display: inline-block;
    overflow: hidden;
}

/* Effet d'ombre pour le texte */
h2.text-center::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #ff9e00, #ff3f34);
    /* Dégradé coloré pour l'ombre */
    left: -100%;
    top: 100%;
    animation: slideEffect 1.5s forwards;
}

/* Animation du titre avec un effet de "fading" et de mouvement */
h2.text-center span {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
    animation-delay: 0.5s;
}

.step-number {
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.step-icon {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 10px;
}

.step-text {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Reveal Animation Trigger on Scroll */
@media (max-width: 768px) {
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .step-icon {
        font-size: 1.5rem;
    }

    .step-text {
        font-size: 0.8rem;
    }

    h2.text-center {
        font-size: 1.5rem;
    }
}

/* Start Schedule CSS */
.schedule {
    background: #17224D;
    margin: 0;
    padding: 0;
    height: 230px;
}

.schedule .schedule-inner {
    position: relative;
    transform: translateY(-50%);
    z-index: 9;
}

.schedule .single-schedule {
    position: relative;
    text-align: left;
    z-index: 3;
    border-radius: 5px;
    background: #1A76D1;
    -webkit-transition: all .3s ease-out 0s;
    -moz-transition: all .3s ease-out 0s;
    -ms-transition: all .3s ease-out 0s;
    -o-transition: all .3s ease-out 0s;
    transition: all .3s ease-out 0s;
}

.schedule .single-schedule .inner {
    overflow: hidden;
    position: relative;
    padding: 30px;
    z-index: 2;
}

.schedule .single-schedule:before {
    position: absolute;
    z-index: -1;
    content: '';
    bottom: -10px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 80%;
    height: 90%;
    background: #1A76D1;
    opacity: 0;
    filter: blur(10px);
    -webkit-transition: all .3s ease-out 0s;
    -moz-transition: all .3s ease-out 0s;
    -ms-transition: all .3s ease-out 0s;
    -o-transition: all .3s ease-out 0s;
    transition: all .3s ease-out 0s;
}

.schedule .single-schedule:hover:before {
    opacity: 0.8;
}

.schedule .single-schedule:hover {
    transform: translateY(-5px);
}

.schedule .single-schedule .icon i {
    position: absolute;
    font-size: 110px;
    color: #fff;
    -webkit-transition: all .3s ease-out 0s;
    -moz-transition: all .3s ease-out 0s;
    -ms-transition: all .3s ease-out 0s;
    -o-transition: all .3s ease-out 0s;
    transition: all .3s ease-out 0s;
    z-index: -1;
    visibility: visible;
    opacity: 0.2;
    right: -25px;
    bottom: -30px;
}

.schedule .single-schedule span {
    display: block;
    color: #fff;
}

.schedule .single-schedule h4 {
    font-size: 20px;
    font-weight: 600;
    display: inline-block;
    text-transform: capitalize;
    color: #fff;
    margin-top: 13px;
}

.schedule .single-schedule p {
    color: #fff;
    margin-top: 22px;
}

.schedule .single-schedule a {
    color: #fff;
    margin-top: 25px;
    font-weight: 500;
    display: inline-block;
    position: relative;
}

.schedule .single-schedule a:before {
    position: absolute;
    content: "";
    left: 0;
    bottom: 0;
    height: 1px;
    width: 0%;
    background: #fff;
    -webkit-transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    transition: all 0.4s ease;
}

.schedule .single-schedule a:hover:before {
    width: 100%;
    width: 100%;
}

.schedule .single-schedule a i {
    margin-left: 10px;
}

.schedule .single-schedule .time-sidual {}

.schedule .single-schedule .time-sidual {
    overflow: hidden;
    margin-top: 17px;
}

.schedule .single-schedule .time-sidual li {
    display: block;
    color: #fff;
    width: 100%;
    margin-bottom: 3px;
}

.schedule .single-schedule .time-sidual li:last-child {
    margin: 0;
}

.schedule .single-schedule .time-sidual li span {
    display: inline-block;
    float: right;
}

.schedule .single-schedule .day-head .time {
    font-weight: 400;
    float: right;
}

/* End schedule */

.schedule-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.schedule-img:hover {
    transform: scale(1.03);
}

.carousel-item {
    position: relative;
}

.carousel-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* noir avec opacité à 50% */
    z-index: 1;
}

.carousel-caption {
    position: absolute;
    z-index: 2;
    /* au-dessus du calque noir */
}

/* =========================
   Banner
========================= */

.banner-container {
    position: relative;
}

.banner-image {
    width: 100%;
    height: auto;
}

.banner-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.banner-box {
    background-color: rgba(0, 0, 0, 0);
    padding: 20px;
    border-radius: 8px;
}

.banner-title {
    font-size: 30px;
    color: #fff;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.banner-breadcrumb {
    font-size: 20px;
    color: #ddd;
}

.breadcrumb-home {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color .3s ease;
}

.breadcrumb-home:hover {
    color: #007bff;
}

.breadcrumb-icon {
    font-size: 18px;
}

.breadcrumb-separator {
    color: #fff;
}

.breadcrumb-source {
    font-weight: bold;
    color: #fff;
}

/* =========================
   Card
========================= */

.card-glass {
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
}

/* =========================
   Table
========================= */

.table thead th {
    background: linear-gradient(to right, #0d6efd, #0a58ca);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.table td,
.table th {
    vertical-align: middle;
}

/* =========================
   Search
========================= */

#searchInput:focus {
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);
}

/* ====================================
   FAQ PAGE
==================================== */

.faq-banner-container {
    position: relative;
}

.faq-banner-image {
    width: 100%;
    height: auto;
}

.faq-banner-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.faq-banner-box {
    background-color: rgba(0, 0, 0, 0);
    padding: 20px;
    border-radius: 8px;
}

.faq-banner-title {
    font-size: 36px;
    color: #fff;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.faq-breadcrumb {
    font-size: 16px;
    color: #ddd;
}

.faq-home-link {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.faq-home-link:hover {
    color: #007bff;
}

.faq-home-icon {
    font-size: 18px;
}

.faq-separator {
    color: #fff;
}

.faq-source {
    font-weight: bold;
    color: #fff;
}

/* Alert */

.faq-alert {
    top: 10%;
    /* left: 50%; */
    width: 100%;
    font-size: 18px;
    padding: 10px;
    background-color: #17a2b8;
    color: #fff;
    border-radius: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
}

/* Content */

.faq-container {
    margin: 0 auto;
    width: 60rem;
}

/* Accordion */

.faq-accordion-item {
    animation: faqSlideIn 1s ease-in-out;
}

/* Scrollbar */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #4e80f5;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2d2d2d;
}

/* Animation */

@keyframes faqSlideIn {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

/* Container holding the buttons */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* Shared button style */
.btn-connexion,
.btn-inscription {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .2);
    cursor: pointer;
}

/* Login button */
.btn-connexion {
    background: #0d6efd;
    color: #fff !important;
    border: 2px solid #0d6efd;
}

.btn-connexion:hover {
    background: #0b5ed7;
    border-color: #0b5ed7;
    color: #fff !important;
    transform: translateY(-3px);
}

/* Register button */
.btn-inscription {
    background: #198754;
    color: #fff !important;
    border: 2px solid #198754;
}

.btn-inscription:hover {
    background: #157347;
    border-color: #157347;
    color: #fff !important;
    transform: translateY(-3px);
}

/* Mobile */
@media (max-width: 768px) {

    .btn-connexion,
    .btn-inscription {
        width: 100%;
        max-width: 280px;
    }
}

.header-logo-figure {
    display: flex;
    align-items: center;
    margin: 0;
}