
/*** Spinner Start ***/
/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

/* Fix pour éviter l'espace blanc sur mobile */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Fix pour le header sticky */
.sticky-top {
    position: sticky !important;
    top: 0;
    z-index: 1020;
}

/* Fix pour les conteneurs qui peuvent déborder - exclure le header */
.container-fluid:not(.topbar):not(.sticky-top) {
    overflow-x: hidden;
}

/* Fix spécifique pour le header - éviter les problèmes de défilement */
.navbar {
    overflow: visible;
}

.navbar-collapse {
    overflow: visible;
}

/* Fix pour le topbar */
.topbar {
    overflow: visible;
}

/* Fix pour les éléments qui peuvent causer un débordement horizontal */
* {
    box-sizing: border-box;
}

/* Fix spécifique pour les éléments qui peuvent déborder sur mobile */
@media (max-width: 768px) {
    /* Exclure le header des règles de padding */
    .container-fluid:not(.topbar):not(.sticky-top) {
        padding-left: 0;
        padding-right: 0;
    }
    
    /* Exclure les rows du header des règles de margin */
    .row:not(.topbar .row):not(.sticky-top .row) {
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Exclure les colonnes du header des règles de padding */
    .col:not(.topbar .col):not(.sticky-top .col),
    .col-sm:not(.topbar .col-sm):not(.sticky-top .col-sm),
    .col-md:not(.topbar .col-md):not(.sticky-top .col-md),
    .col-lg:not(.topbar .col-lg):not(.sticky-top .col-lg),
    .col-xl:not(.topbar .col-xl):not(.sticky-top .col-xl) {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Ajustement des espacements sur mobile */
    .container, .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Espacement des sections sur mobile */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .py-4 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    /* Fix pour le carousel */
    .carousel {
        overflow: hidden;
    }
    
    .carousel-inner {
        overflow: hidden;
    }
    
    .carousel-item {
        overflow: hidden;
    }
    
    .carousel-item img {
        max-width: 100%;
        height: auto;
    }
    
    /* Fix pour les boutons qui peuvent déborder */
    .btn {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Fix pour les textes longs */
    .display-4, .display-5, .display-6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Amélioration des titres longs sur tous les écrans */
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .header-title, .header-subtitle {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Fix pour les éléments avec des largeurs fixes */
    .w-100 {
        max-width: 100%;
    }
    
    /* Fix pour les éléments flex qui peuvent déborder */
    .d-flex {
        flex-wrap: wrap;
    }
    
    /* Fix pour les éléments avec des marges négatives */
    .mx-auto {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* Fix pour Owl Carousel */
    .owl-carousel {
        overflow: hidden;
    }
    
    .owl-stage-outer {
        overflow: hidden;
    }
    
    .owl-stage {
        overflow: hidden;
    }
    
    /* Fix pour les éléments avec des largeurs fixes qui peuvent déborder */
    .odd-item {
        max-width: 100%;
        overflow: hidden;
    }
    
    /* Fix pour les cartes */
    .card {
        max-width: 100%;
        overflow: hidden;
    }
    
    /* Fix pour les images */
    img {
        max-width: 100%;
        height: auto;
        object-fit: cover;
    }
    
    /* Images dans les cartes et sections */
    .card img, .team-item img, .project-img img {
        object-fit: cover;
        object-position: center;
    }
    
    /* Images de fond responsive */
    .carousel-item img {
        object-fit: cover;
        object-position: center;
    }
    
    /* Optimisation des cartes d'histoires sur mobile */
    .histoire-card {
        margin-bottom: 1.5rem;
    }
    
    .histoire-image {
        height: 140px;
        font-size: 1.8rem;
    }
    
    .histoire-content {
        padding: 0.8rem;
    }
    
    .histoire-title {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .histoire-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Optimisation des formulaires sur mobile */
    .form-control, .form-select {
        font-size: 16px; /* Évite le zoom sur iOS */
        padding: 0.75rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Amélioration des champs de contact */
    .contact-form .form-control {
        min-height: 50px;
    }
    
    .contact-form textarea.form-control {
        min-height: 120px;
    }
}

/* Règles pour très petits écrans (moins de 400px) */
@media (max-width: 400px) {
    .container, .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .histoire-image {
        height: 120px;
        font-size: 1.5rem;
    }
    
    .histoire-title {
        font-size: 0.9rem;
    }
    
    .histoire-description {
        font-size: 0.8rem;
    }
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}
/*** Spinner End ***/

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    transition: 0.5s;
    z-index: 99;
}

/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 34px;
    height: 34px;
}

.btn-md-square {
    width: 44px;
    height: 44px;
}

.btn-lg-square {
    width: 56px;
    height: 56px;
}

.btn-xl-square {
    width: 66px;
    height: 66px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square,
.btn-xl-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn.btn-primary {
    border: none;
}

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

.btn.btn-secondary {
    color: var(--bs-white);
    border: none;
   
}

.btn.btn-secondary:hover {
    background: var(--bs-primary);
}
/*** Topbar Start ***/
.topbar {
    padding: 2px 10px 2px 20px;
    background: var(--bs-primary);
}

/* Réduction de la hauteur du topbar */
.topbar .row {
    height: 35px !important;
}

/* Styles pour les boutons sociaux du topbar */
.topbar .d-flex a[href*="facebook"],
.topbar .d-flex a[href*="tiktok"],
.topbar .d-flex a[href*="youtube"],
.topbar .d-flex a[href*="linkedin"],
.topbar .d-flex a[href*="whatsapp"],
.topbar .d-flex a[href*="wa.me"],
.topbar .d-flex a[href="#"]:has(.fa-youtube),
.topbar .d-flex a[href="#"]:has(.fa-whatsapp) {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--bs-white) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0 0.25rem;
}

.topbar .d-flex a[href*="facebook"]:hover,
.topbar .d-flex a[href*="tiktok"]:hover,
.topbar .d-flex a[href*="youtube"]:hover,
.topbar .d-flex a[href*="linkedin"]:hover,
.topbar .d-flex a[href*="whatsapp"]:hover,
.topbar .d-flex a[href*="wa.me"]:hover,
.topbar .d-flex a[href="#"]:has(.fa-youtube):hover,
.topbar .d-flex a[href="#"]:has(.fa-whatsapp):hover {
    background: var(--bs-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: var(--bs-white) !important;
}

.topbar .d-flex a i {
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive pour les boutons sociaux du topbar */
@media (max-width: 1200px) {
    .topbar .d-flex a[href*="facebook"],
    .topbar .d-flex a[href*="tiktok"],
    .topbar .d-flex a[href*="youtube"],
    .topbar .d-flex a[href*="linkedin"],
    .topbar .d-flex a[href*="whatsapp"],
    .topbar .d-flex a[href*="wa.me"],
    .topbar .d-flex a[href="#"]:has(.fa-youtube),
    .topbar .d-flex a[href="#"]:has(.fa-whatsapp) {
        width: 26px;
        height: 26px;
        margin: 0 0.2rem;
    }
    
    .topbar .d-flex a i {
        font-size: 0.8rem;
    }
}

@media (max-width: 992px) {
    .topbar .d-flex a[href*="facebook"],
    .topbar .d-flex a[href*="tiktok"],
    .topbar .d-flex a[href*="youtube"],
    .topbar .d-flex a[href*="linkedin"],
    .topbar .d-flex a[href*="whatsapp"],
    .topbar .d-flex a[href*="wa.me"],
    .topbar .d-flex a[href="#"]:has(.fa-youtube),
    .topbar .d-flex a[href="#"]:has(.fa-whatsapp) {
        width: 24px;
        height: 24px;
        margin: 0 0.15rem;
    }
    
    .topbar .d-flex a i {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .topbar .d-flex a[href*="facebook"],
    .topbar .d-flex a[href*="tiktok"],
    .topbar .d-flex a[href*="youtube"],
    .topbar .d-flex a[href*="linkedin"],
    .topbar .d-flex a[href*="whatsapp"],
    .topbar .d-flex a[href*="wa.me"],
    .topbar .d-flex a[href="#"]:has(.fa-youtube),
    .topbar .d-flex a[href="#"]:has(.fa-whatsapp) {
        width: 22px;
        height: 22px;
        margin: 0 0.1rem;
    }
    
    .topbar .d-flex a i {
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .topbar .d-flex a[href*="facebook"],
    .topbar .d-flex a[href*="tiktok"],
    .topbar .d-flex a[href*="youtube"],
    .topbar .d-flex a[href*="linkedin"],
    .topbar .d-flex a[href*="whatsapp"],
    .topbar .d-flex a[href*="wa.me"],
    .topbar .d-flex a[href="#"]:has(.fa-youtube),
    .topbar .d-flex a[href="#"]:has(.fa-whatsapp) {
        width: 20px;
        height: 20px;
        margin: 0 0.05rem;
    }
    
    .topbar .d-flex a i {
        font-size: 0.65rem;
    }
}

/* Styles pour les boutons sociaux dans les sections d'équipe */
.team-icon .btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bs-secondary) !important;
    color: var(--bs-white) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.team-icon .btn-secondary:hover {
    background: var(--bs-primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: var(--bs-white) !important;
}

.team-icon .btn-secondary i {
    margin: 0;
    font-size: 1rem;
}

/* Responsive pour les boutons sociaux d'équipe */
@media (max-width: 768px) {
    .team-icon .btn-secondary {
        width: 36px;
        height: 36px;
    }
    
    .team-icon .btn-secondary i {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .team-icon .btn-secondary {
        width: 32px;
        height: 32px;
    }
    
    .team-icon .btn-secondary i {
        font-size: 0.8rem;
    }
}

/* Styles généraux pour tous les boutons sociaux */
a[href*="facebook"] i,
a[href*="tiktok"] i,
a[href*="youtube"] i,
a[href*="linkedin"] i,
a[href*="whatsapp"] i,
a[href*="wa.me"] i,
a[href="#"]:has(.fa-youtube) i,
a[href="#"]:has(.fa-whatsapp) i {
    transition: all 0.3s ease;
}

/* Styles pour les boutons sociaux du footer - respecter btn-outline-light */
.footer .btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer .btn-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.footer .btn-social i {
    margin: 0;
    font-size: 1rem;
}

/* Amélioration des boutons sociaux dans les cartes d'équipe */
.team-icon {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.team-icon .btn {
    margin: 0 !important;
}

/* Styles pour les boutons sociaux dans les sections d'équipe */
.team-icon .btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bs-secondary) !important;
    color: var(--bs-white) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.team-icon .btn-secondary:hover {
    background: var(--bs-primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: var(--bs-white) !important;
}

.team-icon .btn-secondary i {
    margin: 0;
    font-size: 1rem;
}

/* Responsive pour les boutons sociaux d'équipe */
@media (max-width: 768px) {
    .team-icon {
        gap: 0.3rem;
    }
    
    .team-icon .btn-secondary {
        width: 36px;
        height: 36px;
    }
    
    .team-icon .btn-secondary i {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .team-icon {
        gap: 0.2rem;
    }
    
    .team-icon .btn-secondary {
        width: 32px;
        height: 32px;
    }
    
    .team-icon .btn-secondary i {
        font-size: 0.8rem;
    }
}
/*** Topbar End ***/

/*** Navbar ***/
.sticky-top {
    transition: 1s;
}

/* Réduction de la hauteur de la navbar */
.navbar {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.navbar .navbar-nav .nav-item.nav-link,
.navbar .navbar-nav .nav-link {
    color: var(--bs-dark);
}

.navbar .navbar-nav .nav-link {
    position: relative;
    padding: 10px;
    font-weight: 400;
    font-family: "Playfair Display", serif;
    font-size: 17px;
    transition: .5s;
    z-index: 99;
}

.navbar .navbar-nav .nav-item {
    margin: 0 5px;
}

.navbar .navbar-nav .nav-item::before,
.navbar .navbar-nav .nav-item::after {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    border: 2px solid var(--bs-secondary);
    opacity: 0;
    transition: 0.5s;
    z-index: 2 !important;
}

.navbar .navbar-nav .nav-item::before {
    top: 0;
    left: 0;
    border-bottom: 0;
    border-right: 0;
}
.navbar .navbar-nav .nav-item::after {
    bottom: 0;
    right: 0;
    border-top: 0;
    border-left: 0;
}

.navbar .navbar-nav .nav-item:hover::after,
.navbar .navbar-nav .nav-item:hover::before,
.navbar .navbar-nav .nav-item.active::after,
.navbar .navbar-nav .nav-item.active::before {
    width: 50%;
    height: 50%;
    opacity: 1;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active,
.sticky-top .navbar .navbar-nav .nav-link:hover,
.sticky-top .navbar .navbar-nav .nav-link.active {
    color: var(--bs-secondary) !important;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107" !important;
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    vertical-align: middle;
}

.navbar .navbar-toggler {
    padding: 8px 15px;
    color: var(--bs-dark);
    background: var(--bs-secondary);
}

.nav-bar .navbar-toggler { 
    color: var(--bs-dark);
    box-shadow: none !important;
}

.navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    background: var(--bs-light);
    transition: .5s;
    opacity: 1;
}

.navbar .nav-item .dropdown-menu {
    background: var(--bs-light);
    transition: 0.5s;
}

.navbar .nav-item .dropdown-menu .dropdown-item {
    transition: 0.5s;
}

.dropdown .dropdown-menu .dropdown-item:hover,
.dropdown .dropdown-menu .dropdown-item.active {
    background: var(--bs-secondary);
    color: var(--bs-white);
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        margin-top: 15% !important;
        transform: rotateX(-75deg);
        transform-origin: 0 0;
        border: 0;
        transition: .5s;
        opacity: 0;
        z-index: 9;
    }
}

@media (max-width: 991px) {
    .navbar .nav-item .dropdown-menu {
        position: relative;
        margin-top: 0;
        transition: 0.5s;
    }

    .navbar .navbar-nav .nav-item::after,
    .navbar .navbar-nav .nav-item::before {
        display: none;
    }

    .navbar .navbar-nav .nav-item:hover::after,
    .navbar .navbar-nav .nav-item:hover::before,
    .navbar .navbar-nav .nav-item.active::after,
    .navbar .navbar-nav .nav-item.active::before {
        display: none;

    }

    .navbar .navbar-nav .nav-link {
        padding: 12px 0;
    }

    .navbar .navbar-nav .nav-item {
        margin: 0;
    }

    .navbar .navbar-nav .nav-item.nav-link {
        padding: 12px 0;
    }
}

#searchModal .modal-content {
    background: rgba(255, 255, 255, .6);
}
/*** Navbar End ***/

/*** Single Page Hero Header Start ***/
.bg-breadcrumb {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(0, 18, 72, 0.7), rgba(0, 18, 72, 0.7)), url(../img/carousel-2.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 60px 0 60px 0;
}

.bg-breadcrumb .breadcrumb {
    position: relative;
}

.bg-breadcrumb .breadcrumb .breadcrumb-item a {
    color: var(--bs-white);
}

/* Amélioration de la visibilité des textes sur tous les headers avec images */
.bg-breadcrumb h1,
.bg-breadcrumb h2,
.bg-breadcrumb h3,
.bg-breadcrumb h4,
.bg-breadcrumb h5,
.bg-breadcrumb h6 {
    text-shadow: 
        3px 3px 0px rgba(0, 0, 0, 0.9),
        6px 6px 12px rgba(0, 0, 0, 0.9),
        0 0 25px rgba(0, 0, 0, 0.8);
    font-weight: 800;
    color: #ffffff !important;
    position: relative;
    z-index: 10;
}

.bg-breadcrumb p {
    text-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.9),
        4px 4px 8px rgba(0, 0, 0, 0.9),
        0 0 15px rgba(0, 0, 0, 0.8);
    font-weight: 600;
    color: #ffffff !important;
    position: relative;
    z-index: 10;
}

.bg-breadcrumb .text-secondary,
.bg-breadcrumb .text-white-50 {
    text-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.9),
        4px 4px 8px rgba(0, 0, 0, 0.9),
        0 0 12px rgba(255, 215, 0, 0.8);
    font-weight: 700;
    color: #ffd700 !important;
    position: relative;
    z-index: 10;
}

.bg-breadcrumb .breadcrumb-item a {
    text-shadow: 
        1px 1px 0px rgba(0, 0, 0, 0.9),
        2px 2px 4px rgba(0, 0, 0, 0.9),
        0 0 8px rgba(0, 0, 0, 0.8);
    font-weight: 500;
    color: #ffffff !important;
    position: relative;
    z-index: 10;
}

/* Responsive pour les headers avec images */
@media (max-width: 991px) {
    .bg-breadcrumb h1,
    .bg-breadcrumb h2,
    .bg-breadcrumb h3,
    .bg-breadcrumb h4,
    .bg-breadcrumb h5,
    .bg-breadcrumb h6 {
        text-shadow: 
            3px 3px 0px rgba(0, 0, 0, 0.9),
            6px 6px 12px rgba(0, 0, 0, 0.9),
            0 0 20px rgba(0, 0, 0, 0.8);
    }
    
    .bg-breadcrumb p {
        text-shadow: 
            2px 2px 0px rgba(0, 0, 0, 0.9),
            4px 4px 8px rgba(0, 0, 0, 0.9),
            0 0 12px rgba(0, 0, 0, 0.8);
    }
}

@media (max-width: 576px) {
    .bg-breadcrumb h1,
    .bg-breadcrumb h2,
    .bg-breadcrumb h3,
    .bg-breadcrumb h4,
    .bg-breadcrumb h5,
    .bg-breadcrumb h6 {
        text-shadow: 
            3px 3px 0px rgba(0, 0, 0, 0.9),
            6px 6px 12px rgba(0, 0, 0, 0.9),
            0 0 18px rgba(0, 0, 0, 0.8);
    }
    
    .bg-breadcrumb p {
        text-shadow: 
            2px 2px 0px rgba(0, 0, 0, 0.9),
            4px 4px 8px rgba(0, 0, 0, 0.9),
            0 0 10px rgba(0, 0, 0, 0.8);
    }
    
    .bg-breadcrumb .text-secondary,
    .bg-breadcrumb .text-white-50 {
        text-shadow: 
            2px 2px 0px rgba(0, 0, 0, 0.9),
            4px 4px 8px rgba(0, 0, 0, 0.9),
            0 0 10px rgba(255, 215, 0, 0.8);
    }
}

@media (max-width: 400px) {
    .bg-breadcrumb h1,
    .bg-breadcrumb h2,
    .bg-breadcrumb h3,
    .bg-breadcrumb h4,
    .bg-breadcrumb h5,
    .bg-breadcrumb h6 {
        text-shadow: 
            3px 3px 0px rgba(0, 0, 0, 0.9),
            6px 6px 12px rgba(0, 0, 0, 0.9),
            0 0 15px rgba(0, 0, 0, 0.8);
    }
    
    .bg-breadcrumb p {
        text-shadow: 
            2px 2px 0px rgba(0, 0, 0, 0.9),
            4px 4px 8px rgba(0, 0, 0, 0.9),
            0 0 8px rgba(0, 0, 0, 0.8);
    }
    
    .bg-breadcrumb .text-secondary,
    .bg-breadcrumb .text-white-50 {
        text-shadow: 
            2px 2px 0px rgba(0, 0, 0, 0.9),
            4px 4px 8px rgba(0, 0, 0, 0.9),
            0 0 8px rgba(255, 215, 0, 0.8);
    }
}

/* Styles génériques pour tous les headers avec images en arrière-plan */
.container-fluid[style*="background"],
.container-fluid[style*="background-image"],
.hero-section,
.page-header,
.section-header {
    position: relative;
}

.container-fluid[style*="background"] h1,
.container-fluid[style*="background"] h2,
.container-fluid[style*="background"] h3,
.container-fluid[style*="background"] h4,
.container-fluid[style*="background"] h5,
.container-fluid[style*="background"] h6,
.container-fluid[style*="background-image"] h1,
.container-fluid[style*="background-image"] h2,
.container-fluid[style*="background-image"] h3,
.container-fluid[style*="background-image"] h4,
.container-fluid[style*="background-image"] h5,
.container-fluid[style*="background-image"] h6,
.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section h4,
.hero-section h5,
.hero-section h6,
.page-header h1,
.page-header h2,
.page-header h3,
.page-header h4,
.page-header h5,
.page-header h6,
.section-header h1,
.section-header h2,
.section-header h3,
.section-header h4,
.section-header h5,
.section-header h6 {
    text-shadow: 
        3px 3px 0px rgba(0, 0, 0, 0.9),
        6px 6px 12px rgba(0, 0, 0, 0.9),
        0 0 25px rgba(0, 0, 0, 0.8);
    font-weight: 800;
    color: #ffffff !important;
    position: relative;
    z-index: 10;
}

.container-fluid[style*="background"] p,
.container-fluid[style*="background-image"] p,
.hero-section p,
.page-header p,
.section-header p {
    text-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.9),
        4px 4px 8px rgba(0, 0, 0, 0.9),
        0 0 15px rgba(0, 0, 0, 0.8);
    font-weight: 600;
    color: #ffffff !important;
    position: relative;
    z-index: 10;
}

.container-fluid[style*="background"] .text-secondary,
.container-fluid[style*="background"] .text-white-50,
.container-fluid[style*="background-image"] .text-secondary,
.container-fluid[style*="background-image"] .text-white-50,
.hero-section .text-secondary,
.hero-section .text-white-50,
.page-header .text-secondary,
.page-header .text-white-50,
.section-header .text-secondary,
.section-header .text-white-50 {
    text-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.9),
        4px 4px 8px rgba(0, 0, 0, 0.9),
        0 0 12px rgba(255, 215, 0, 0.8);
    font-weight: 700;
    color: #ffd700 !important;
    position: relative;
    z-index: 10;
}
/*** Single Page Hero Header End ***/

/*** Carousel Start ***/
.carousel .carousel-inner .carousel-item {
    position: relative;
    overflow: hidden;
    height: 100vh;
}

.carousel .carousel-inner .carousel-item img {
    animation-name: image-zoom ;
    animation-duration: 15s;
    animation-delay: 2s;
    animation-direction: alternate;
    animation-iteration-count: infinite;
    transition: 0.5s;
    /* Amélioration de la visibilité des images */
    filter: brightness(1.1) contrast(1.2) saturate(1.1);
    object-fit: cover;
    object-position: center;
}

@keyframes image-zoom {
    0%  {width: 100%; height: 100%; -webkit-filter: blur(0px) brightness(1.1) contrast(1.2) saturate(1.1); opacity: 1;}

    25% {width: 115%; height: 115%; -webkit-filter: blur(3px) brightness(1.2) contrast(1.3) saturate(1.2); opacity: 0.9;}

    50% {width: 130%; height: 130%; -webkit-filter: blur(10px) brightness(1.3) contrast(1.4) saturate(1.3); opacity: 0.7;}

    75% {width: 115%; height: 115%; -webkit-filter: blur(3px) brightness(1.2) contrast(1.3) saturate(1.2); opacity: 0.9;}

    100% {width: 100%; height: 100%; -webkit-filter: blur(0px) brightness(1.1) contrast(1.2) saturate(1.1); opacity: 1;}
}

@media (min-width: 992px) {
    .carousel .carousel-inner .carousel-item img {
        height: 100%;
        object-fit: cover;   
    }
}

@media (max-width: 991px) {
    .carousel .carousel-inner .carousel-item {
        height: 700px;
    }
    .carousel .carousel-inner .carousel-item img {
        height: 700px;
        object-fit: cover;
        /* Amélioration de la visibilité sur tablette */
        filter: brightness(1.15) contrast(1.25) saturate(1.15);
    }
    
    /* Amélioration des textes sur tablette */
    .carousel .carousel-caption {
        padding: 2rem;
        max-width: 95%;
    }
    
    .carousel .carousel-caption h1 {
        font-size: 2.5rem !important;
        text-shadow: 
            3px 3px 0px rgba(0, 0, 0, 0.9),
            6px 6px 12px rgba(0, 0, 0, 0.9),
            0 0 20px rgba(0, 0, 0, 0.8);
    }
    
    .carousel .carousel-caption p {
        font-size: 1.1rem !important;
        text-shadow: 
            2px 2px 0px rgba(0, 0, 0, 0.9),
            4px 4px 8px rgba(0, 0, 0, 0.9),
            0 0 12px rgba(0, 0, 0, 0.8);
    }
}

@media (max-width: 576px) {
    .carousel-item .carousel-caption h1 {
        font-size: 36px;
    }

    .carousel-item .carousel-caption p.fs-5 {
        font-size: 15px;
    }
    
    /* Amélioration de la visibilité sur mobile */
    .carousel .carousel-inner .carousel-item img {
        filter: brightness(1.2) contrast(1.3) saturate(1.2);
    }
    
    /* Overlay plus léger sur mobile pour mieux voir les images */
    .carousel .carousel-inner .carousel-item::after {
        background: rgba(0, 0, 0, .3);
    }
    
    /* Amélioration des textes sur mobile */
    .carousel .carousel-caption {
        padding: 1.5rem;
        max-width: 98%;
        margin: 1rem auto;
    }
    
    .carousel .carousel-caption h1 {
        font-size: 2rem !important;
        text-shadow: 
            3px 3px 0px rgba(0, 0, 0, 0.9),
            6px 6px 12px rgba(0, 0, 0, 0.9),
            0 0 18px rgba(0, 0, 0, 0.8);
        line-height: 1.2;
    }
    
    .carousel .carousel-caption p {
        font-size: 0.95rem !important;
        text-shadow: 
            2px 2px 0px rgba(0, 0, 0, 0.9),
            4px 4px 8px rgba(0, 0, 0, 0.9),
            0 0 10px rgba(0, 0, 0, 0.8);
        line-height: 1.4;
    }
    
    .carousel .carousel-caption .text-secondary {
        font-size: 1rem !important;
        text-shadow: 
            2px 2px 0px rgba(0, 0, 0, 0.9),
            4px 4px 8px rgba(0, 0, 0, 0.9),
            0 0 10px rgba(255, 215, 0, 0.8);
    }
}

/* Amélioration pour les très petits écrans */
@media (max-width: 400px) {
    .carousel .carousel-caption {
        padding: 1rem;
        max-width: 99%;
        margin: 0.5rem auto;
    }
    
    .carousel .carousel-caption h1 {
        font-size: 1.5rem !important;
        text-shadow: 
            3px 3px 0px rgba(0, 0, 0, 0.9),
            6px 6px 12px rgba(0, 0, 0, 0.9),
            0 0 15px rgba(0, 0, 0, 0.8);
        line-height: 1.1;
    }
    
    .carousel .carousel-caption p {
        font-size: 0.85rem !important;
        text-shadow: 
            2px 2px 0px rgba(0, 0, 0, 0.9),
            4px 4px 8px rgba(0, 0, 0, 0.9),
            0 0 8px rgba(0, 0, 0, 0.8);
        line-height: 1.3;
    }
    
    .carousel .carousel-caption .text-secondary {
        font-size: 0.9rem !important;
        text-shadow: 
            2px 2px 0px rgba(0, 0, 0, 0.9),
            4px 4px 8px rgba(0, 0, 0, 0.9),
            0 0 8px rgba(255, 215, 0, 0.8);
    }
}

.carousel .carousel-inner .carousel-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .4);
    z-index: 1;
}

.carousel .carousel-inner .carousel-item .carousel-caption {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.carousel .carousel-indicators {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    z-index: 5;
}

.carousel .carousel-indicators li,
.carousel .carousel-indicators li,
.carousel .carousel-indicators li {
    margin-right: 30px !important;
    width: 10px;
    height: 10px;
    border: 6px solid var(--bs-secondary);
    background: var(--bs-white);
    transition: 0.5s;
}

.carousel .carousel-indicators li.active {
    border: 10px solid var(--bs-primary);
}

.carousel .carousel-control-prev,
.carousel .carousel-control-next {
    background: transparent;
}

.carousel .carousel-control-prev .carousel-control-prev-icon {
    position: absolute;
    left: 0;
    padding: 25px 30px;
    background: var(--bs-primary);

}

.carousel .carousel-control-next .carousel-control-next-icon {
    position: absolute;
    right: 0;
    padding: 25px 30px;
    background: var(--bs-primary);

}

.carousel .carousel-control-prev .carousel-control-prev-icon:hover,
.carousel .carousel-control-next .carousel-control-next-icon:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
}

/* Améliorations supplémentaires pour la visibilité des images du carrousel */
.carousel .carousel-inner .carousel-item {
    transition: all 0.5s ease-in-out;
}

.carousel .carousel-inner .carousel-item:hover img {
    filter: brightness(1.25) contrast(1.35) saturate(1.25);
    transform: scale(1.02);
}

/* Amélioration de la qualité d'affichage des images */
.carousel .carousel-inner .carousel-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Amélioration du contraste des textes sur les images */
.carousel .carousel-caption {
    padding: 2.5rem;
    max-width: 90%;
    margin: 0 auto;
}

.carousel .carousel-caption h1 {
    text-shadow: 
        3px 3px 0px rgba(0, 0, 0, 0.9),
        6px 6px 12px rgba(0, 0, 0, 0.9),
        0 0 25px rgba(0, 0, 0, 0.8);
    font-weight: 800;
    color: #ffffff !important;
    position: relative;
    z-index: 10;
}

.carousel .carousel-caption p {
    text-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.9),
        4px 4px 8px rgba(0, 0, 0, 0.9),
        0 0 15px rgba(0, 0, 0, 0.8);
    font-weight: 600;
    color: #ffffff !important;
    position: relative;
    z-index: 10;
}

.carousel .carousel-caption .text-secondary {
    text-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.9),
        4px 4px 8px rgba(0, 0, 0, 0.9),
        0 0 12px rgba(255, 215, 0, 0.8);
    font-weight: 700;
    color: #ffd700 !important;
    position: relative;
    z-index: 10;
}

/* Amélioration des boutons du carrousel */
.carousel .carousel-caption .btn {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.carousel .carousel-caption .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Amélioration des indicateurs du carrousel */
.carousel .carousel-indicators li {
    background: rgba(255, 255, 255, 0.8);
    border: 3px solid var(--bs-secondary);
    transition: all 0.3s ease;
}

.carousel .carousel-indicators li.active {
    background: var(--bs-secondary);
    border: 3px solid var(--bs-white);
    transform: scale(1.2);
}

.carousel .carousel-indicators li:hover {
    background: var(--bs-white);
    border: 3px solid var(--bs-primary);
    transform: scale(1.1);
}
/*** Carousel End ***/


/*** About Start ***/
.about .about-item-content-img {
    border: 4px solid;
    border-color: var(--bs-secondary) var(--bs-primary) var(--bs-primary) var(--bs-secondary);
}

.about .about-item-image {
    position: relative;
    background: var(--bs-light);
    background-image: url(../img/educate.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 1;
}

.about .about-item-image .img-1 {
    margin-bottom: 250px; 
    margin-right: 0;
    border: 4px solid;
    border-color: var(--bs-secondary) var(--bs-light) var(--bs-light) var(--bs-secondary);
    z-index: 3;
}

.about .about-item-image .img-2 {
    margin-top: 250px; 
    margin-left: 0;
    border: 4px solid;
    border-color: var(--bs-light) var(--bs-secondary) var(--bs-secondary) var(--bs-light); 
    z-index: 3;
}

.about .about-item-image::before {
    width: 80%;
    height: 80%;
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid;
    border-style: dotted;
    border-color: var(--bs-white);
    background: var(--bs-primary);
    z-index: 2;
}

.about .about-item-image .about-item-image-content {
    width: 55%;
    height: 55%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bs-secondary);
    border: 4px solid var(--bs-primary);
    opacity: 0.9;
    z-index: 4;
}

.about .about-item-image .about-item-image-effect {
    position: absolute;
    top: 0;
    right: 0;
}
/*** About End ***/

/*** Features Start ***/
.feature .feature-item {
    position: relative;
    transition: 0.5s;
}
.feature .feature-item:hover {
    background: var(--bs-white);
    border: 1px solid transparent;
    box-shadow: 0 0 45px rgba(0, 0, 0, .1);
}

.feature .feature-item:hover a {
    transition: 0.5s;
}

.feature .feature-item:hover a:hover {
    color: var(--bs-secondary);
}

.feature .feature-item .feature-img img {
    border: transparent;
    transition: 0.5s;
} 

.feature .feature-item:hover .feature-img img {
    border: 1px solid var(--bs-secondary);
}  
/*** Features End ***/

/*** Services Start ***/
.service .service-item {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    transition: 0.5s;
    z-index: 1;
}

.service .service-item .service-img img {
    transition: 0.5s;
}

.service .service-item:hover .service-img img {
    transform: scale(1.2);
}

.service .service-item::after {
    content: "";
    width: 100%;
    height: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.5s;
    z-index: 2;
}

.service .service-item:hover:after {
    height: 100%;
    background: rgba(0, 0, 0, .4);
}

.service .service-item .service-content {
    position: absolute;
    width: 100%;
    height: auto;
    top: 50%; 
    left: 0; 
    transform: translateY(-50%);
    transition: 0.5s;
    opacity: 0;
    z-index: 3;
}

.service .service-item:hover .service-content {
    opacity: 1;
}

.service .service-item:hover .service-content a.fs-4 {
    color: var(--bs-white);
    transition: 0.5s;
}

.service .service-item:hover .service-content a.fs-4:hover {
    color: var(--bs-secondary);
}

.service .service-item .service-tytle {
    position: absolute;
    width: 100%;
    height: 80px; 
    bottom: 0; 
    right: 0;
    background: var(--bs-white);
    display: flex;
    transition: 0.5s;
    z-index: 3;
}

.service .service-item:hover .service-tytle {
    margin-right: -100%;
}
/*** Services End ***/

/*** Fact Counter ***/
.counter {
    background: linear-gradient(rgba(0, 18, 72, 0.9), rgba(0, 22, 89, 1)), url(../img/counter.jpg);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}

.counter .counter-btn:hover {
    background: var(--bs-white);
    color: var(--bs-secondary);
}

.counter .counter-box {
    padding-right: 20px; 
    padding-bottom: 20px;
}

.counter .counter-item {
    width: 100%;
    height: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.counter .counter-item .counter-item-style {
    position: absolute;
    width: calc(100% - 20px);
    height: 100%;
    top: 0;
    left: 0;
    background: var(--bs-secondary);
    z-index: 2;
}

.counter .counter-item .counter-item-inner {
    position: relative;
    top: 20px;
    left: 20px;
    margin-right: 20px;
    margin-bottom: 20px;
    background: var(--bs-white);
    box-shadow: 20px 20px rgba(255, 94, 21, 1);
    z-index: 3;
}

.counter .counter-item .counter-counting {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bs-primary);
    font-size: 30px;
}
/*** Fact Counter ***/

/*** Projects Start ***/
.project .project-item .project-img {
    position: relative;
}

.project .project-item .project-img::after {
    content: "";
    position: absolute;
    width: 70%;
    height: 70%;
    top: 0;
    left: 0;
    background: var(--bs-secondary);
    z-index: -1;
}

.project .project-item .project-content a.h4 {
    transition: 0.5s;
}

.project .project-item:hover .project-content a.h4:hover {
    color: var(--bs-secondary);
}
/*** Projects End ***/


/*** Team Start ***/
.team .team-item {
    position: relative;
    z-index: 1;
}

.team .team-item .team-img {
    position: relative;
    overflow: hidden;
}

.team .team-item .team-img::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .2);
    transition: 0.5s;
    z-index: 2;

}

.team .team-item:hover .team-img::after {
    height: 100%;
}

.team .team-item .team-img .team-icon {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 0;
    transform: scale(-1);
    margin-bottom: 100%;
    background: transparent;
    transition: 0.5s;
    opacity: 0;
    z-index: 5;
    
}

.team .team-item:hover .team-img .team-icon {
    transform: scale(1);
    margin-bottom: 0;
    opacity: 1;
}

.team .team-item .team-border-style-1,
.team .team-item .team-border-style-2 {
    width: 50%;
    height: 50%;
    position: absolute;
    background: var(--bs-secondary);
    transition: 0.5s;
    z-index: -1;
}

.team .team-item .team-border-style-1 {
    top: 0;
    left: 0;
}

.team .team-item .team-border-style-2 {
    right: 0;
    bottom: 0;
}

.team .team-item .team-border-style-3,
.team .team-item .team-border-style-4 {
    width: 0;
    height: 0;
    position: absolute;
    background: var(--bs-secondary);
    transition: 0.5s;
    z-index: -1;
}

.team .team-item .team-border-style-3 {
    top: 0;
    right: 0;
}

.team .team-item .team-border-style-4 {
    left: 0;
    bottom: 0;
}

.team .team-item:hover .team-border-style-1,
.team .team-item:hover .team-border-style-2 {
    width: 0%;
    height: 0%;
}

.team .team-item:hover .team-border-style-3,
.team .team-item:hover .team-border-style-4 {
    width: 50%;
    height: 50%;
}
/*** Team End ***/

/*** Blog Start ***/
.blog .blog-item .blog-img {
    position: relative;
    overflow: hidden;
}

.blog .blog-item .blog-img img {
    transition: 0.5s;
}

.blog .blog-item:hover .blog-img img {
    transform: scale(1.2);
}

.blog .blog-item .blog-content {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.blog .blog-item .blog-content a {
    transition: 0.5s;
}

.blog .blog-item:hover .blog-content a:hover {
    color: var(--bs-secondary);
}

/* Uniformisation des images des cartes de blog */
.blog-card .card-img-top {
    height: 250px;
    object-fit: cover;
    object-position: center;
}
/*** Blog End ***/

/*** testimonial Start ***/
.testimonial .owl-nav .owl-prev {
    position: absolute;
    top: -58px;
    right: 0;
    color: var(--bs-primary);
    padding: 5px 25px;
    border: 1px solid var(--bs-secondary);
    transition: 0.5s;
}

.testimonial .owl-nav .owl-prev:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
}

.testimonial .owl-nav .owl-next {
    position: absolute;
    top: -58px;
    right: 88px;
    color: var(--bs-primary);
    padding: 5px 25px;
    border: 1px solid var(--bs-secondary);
    transition: 0.5s;
}

.testimonial .owl-nav .owl-next:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
}

.testimonial-carousel .owl-dots {
    display: flex;
    justify-content: center;
    margin-left: 20px;
    margin-top: 20px;
}

.testimonial-carousel .owl-dots .owl-dot {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    border: 1px solid var(--bs-secondary);
    background: var(--bs-primary);
    transition: 0.5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
    width: 20px;
    height: 20px;
    border: 1px solid var(--bs-primary);
    background: var(--bs-secondary) !important;
    transition: 0.5s;
}

.testimonial-carousel .owl-dots .owl-dot span {
    position: relative;
    margin-top: 50%;
    margin-left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.testimonial-carousel .owl-dots .owl-dot span::after {
    content: "";
    width: 8px;
    height: 8px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bs-white);
}

@media (max-width: 992px) {
    .owl-carousel.testimonial-carousel {
        padding-top: 30px;
    }

    .testimonial .owl-nav .owl-prev,
    .testimonial .owl-nav .owl-next {
        top: -30px;
    }
}
/*** testimonial End ***/

/*** Contact Start ***/
.contact .contact-map {
    position: relative;
    overflow: hidden;
    padding: 20px;
    z-index: 1;
}

.contact .contact-map::before {
    content: "";
    width: 70%;
    height: 70%;
    position: absolute;
    left: 0;
    bottom: 0;
    background: var(--bs-primary);
    z-index: -1;
}

.contact .contact-map::after {
    content: "";
    width: 70%;
    height: 70%;
    position: absolute;
    top: 0;
    right: 0;
    background: var(--bs-secondary);
    z-index: -1;
}
/*** Contact End ***/

/*** Footer Start ***/
.footer {
    background: linear-gradient(rgba(0, 18, 72, 0.9), rgba(0, 18, 72, 1)), url(../img/egalité.jpg);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    background-size: cover;   
}
.footer .footer-item a {
    line-height: 35px;
    color: var(--bs-body);
    transition: 0.5s;
}

.footer .footer-item p {
    line-height: 1.4;
    margin-bottom: 0.3rem;
}

.footer .footer-item a:hover {
    letter-spacing: 1px;
    color: var(--bs-secondary);
}

.footer .footer-item .footer-btn a,
.footer .footer-item .footer-btn a i {
    transition: 0.5s;
}

.footer .footer-item .footer-btn a:hover {
    background: var(--bs-white);
}

.footer .footer-item .footer-btn a:hover i {
    color: var(--bs-primary) !important;
}

/* Styles pour les boutons sociaux du footer - respecter btn-outline-light */
.footer-social .btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0.5rem;
    font-size: 0.9rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-social .btn-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.footer-social .btn-social i {
    margin: 0;
}

/* Optimisation de l'espacement des boutons sociaux */
.footer-social .d-flex {
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-social h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

/* Optimisation de l'espacement des boutons sociaux sur les écrans de taille normale */
@media (min-width: 993px) {
    .footer-social .d-flex {
        gap: 0.5rem;
    }
    
    .footer-social .btn-social {
        width: 40px;
        height: 40px;
        padding: 0.5rem;
        font-size: 0.9rem;
        min-width: 40px;
        min-height: 40px;
    }
    
    .footer-social h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-social .d-flex {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Optimisation de l'espacement des boutons sociaux sur les écrans de taille normale */
@media (min-width: 993px) {
    .footer-social .d-flex {
        gap: 0.5rem;
    }
    
    .footer-social .btn-social {
        width: 40px;
        height: 40px;
        padding: 0.5rem;
        font-size: 0.9rem;
        min-width: 40px;
        min-height: 40px;
    }
    
    .footer-social h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-social .d-flex {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Optimisation de l'espacement des boutons sociaux sur les tablettes */
@media (max-width: 992px) {
    .footer-social .d-flex {
        gap: 0.4rem;
    }
    
    .footer-social .btn-social {
        width: 36px;
        height: 36px;
        padding: 0.4rem;
        font-size: 0.85rem;
        min-width: 36px;
        min-height: 36px;
    }
    
    .footer-social h4 {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .footer-social .d-flex {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Optimisation de l'espacement des boutons sociaux sur les petits écrans */
@media (max-width: 768px) {
    .footer-social .d-flex {
        gap: 0.3rem;
    }
    
    .footer-social .btn-social {
        width: 32px;
        height: 32px;
        padding: 0.3rem;
        font-size: 0.8rem;
        min-width: 32px;
        min-height: 32px;
    }
    
    .footer-social h4 {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }
    
    .footer-social .d-flex {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .footer-social .d-flex {
        gap: 0.2rem;
    }
    
    .footer-social .btn-social {
        width: 28px;
        height: 28px;
        padding: 0.2rem;
        font-size: 0.7rem;
        min-width: 28px;
        min-height: 28px;
    }
    
    .footer-social h4 {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
    }
    
    .footer-social .d-flex {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .footer-social .d-flex {
        gap: 0.15rem;
    }
    
    .footer-social .btn-social {
        width: 24px;
        height: 24px;
        padding: 0.15rem;
        font-size: 0.6rem;
        min-width: 24px;
        min-height: 24px;
    }
    
    .footer-social h4 {
        font-size: 0.75rem;
        margin-bottom: 0.15rem;
    }
    
    .footer-social .d-flex {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Optimisation des icônes de contact */
.footer-item .fas,
.footer-item .fa {
    min-width: 16px;
    text-align: center;
}

.footer-item p {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.footer-item .d-flex {
    align-items: center;
    gap: 0.3rem;
}

/* Optimisation de l'espacement des icônes de contact sur les petits écrans */
@media (max-width: 768px) {
    .footer-item p,
    .footer-item .d-flex {
        gap: 0.2rem;
    }
    
    .footer-item .fas,
    .footer-item .fa {
        min-width: 14px;
        font-size: 0.8rem;
    }
    
    .footer-item p {
        font-size: 0.75rem !important;
        margin-bottom: 0.2rem !important;
        line-height: 1.3;
    }
}

@media (max-width: 576px) {
    .footer-item p,
    .footer-item .d-flex {
        gap: 0.15rem;
    }
    
    .footer-item .fas,
    .footer-item .fa {
        min-width: 12px;
        font-size: 0.7rem;
    }
    
    .footer-item p {
        font-size: 0.7rem !important;
        margin-bottom: 0.15rem !important;
        line-height: 1.2;
    }
}

@media (max-width: 400px) {
    .footer-item p,
    .footer-item .d-flex {
        gap: 0.1rem;
    }
    
    .footer-item .fas,
    .footer-item .fa {
        min-width: 10px;
        font-size: 0.6rem;
    }
    
    .footer-item p {
        font-size: 0.65rem !important;
        margin-bottom: 0.1rem !important;
        line-height: 1.1;
    }
}
/*** Footer End ***/

/*** copyright Start ***/
.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--bs-dark);
}
/*** copyright end ***/

/* Bouton orange pour la section Causes */
.btn-orange {
    background: var(--bs-secondary);
    color: #fff;
    border: none;
    transition: background 0.3s, color 0.3s;
}
.btn-orange:hover, .btn-orange:focus {
    background: var(--bs-primary);
    color: #fff;
}

/* Formulaire Partenariat adapté à la charte bleu/orange du site */
.form-partenariat {
    background: #f5f8fd; /* bleu très clair pour rappeler le bleu du site */
    border-radius: 2rem 2rem 2.5rem 2.5rem/2rem 2rem 3rem 3rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 2.5rem 2rem 2rem 2rem;
    max-width: 500px;
    margin: 2rem auto;
}
.form-partenariat h1 {
    color: var(--bs-secondary);
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
}
.form-partenariat .form-label {
    font-weight: bold;
    margin-bottom: 0.3rem;
    color: var(--bs-primary);
}
.form-partenariat .form-control {
    border-radius: 0.5rem;
    border: 1.5px solid var(--bs-primary);
    margin-bottom: 1.2rem;
    font-size: 1rem;
    padding: 0.9rem 1rem;
    background: #fff;
    color: var(--bs-primary);
}
.form-partenariat .form-control:focus {
    border-color: var(--bs-secondary);
    box-shadow: 0 0 0 0.1rem #ff5e1533;
}
.form-partenariat .form-control::placeholder {
    color: #b3c6e6;
    opacity: 1;
}
.form-partenariat .btn-orange {
    background: var(--bs-secondary);
    color: #fff;
    border-radius: 0.7rem;
    font-size: 1.2rem;
    font-weight: 500;
    width: 100%;
    padding: 0.7rem 0;
    border: none;
    transition: background 0.2s;
}
.form-partenariat .btn-orange:hover {
    background: var(--bs-primary);
    color: #fff;
}

/*** Bandeau d'information Start ***/
.info-banner {
    /* Effet glassmorphism */
    background: rgba(0, 47, 167, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    
    /* Dégradé animé sur tout le bandeau */
    background: linear-gradient(90deg, #f4661b, #002fa7, #e73e01, #067790);
    background-size: 300% 300%;
    animation: gradientFlow 20s ease infinite;
    
    color: white;
    padding: 8px 0;
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    animation: slideDown 0.5s ease-out, gradientFlow 20s ease infinite;
}

.info-banner .banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.info-banner .banner-icon {
    font-size: 1.2rem;
    margin-right: 10px;
    animation: pulse 2s infinite;
}

.info-banner .banner-text {
    flex: 1;
    min-width: 200px;
}

.info-banner .banner-message {
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: opacity 0.3s ease;
}

.info-banner .banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.info-banner .btn-close-banner {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.info-banner .btn-close-banner:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

/* Types d'alerte */
.info-banner.alert-urgent {
    background: #dc3545;
}

.info-banner.alert-info {
    background: #17a2b8;
}

.info-banner.alert-success {
    background: #28a745;
}

.info-banner.alert-warning {
    background: #ffc107;
    color: #212529;
}

.info-banner.alert-warning .btn-close-banner {
    background: rgba(33,37,41,0.2);
    border-color: rgba(33,37,41,0.3);
    color: #212529;
}

.info-banner.alert-warning .btn-close-banner:hover {
    background: rgba(33,37,41,0.3);
}

/* Bouton pour réafficher le bandeau */
.show-banner-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
}

.show-banner-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.show-banner-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Animations */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shimmer {
    0%   { left: -30%; opacity: 0; }
    10%  { opacity: 1; }
    50%  { left: 50%; opacity: 1; }
    90%  { opacity: 1; }
    100% { left: 130%; opacity: 0; }
}

/* --- Animation Gradient Flow --- */
@keyframes gradientFlow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.info-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -30%;
    width: 20%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    transform: skewX(-20deg);
    animation: shimmer 8s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .info-banner {
        position: relative;
        padding-right: 50px; /* Espace pour le bouton de fermeture */
    }
    
    .info-banner .banner-content {
        flex-direction: row;
        text-align: left;
        gap: 10px;
        align-items: center;
    }
    
    .info-banner .banner-icon {
        margin-right: 8px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .info-banner .banner-text {
        min-width: auto;
        margin-bottom: 0;
        flex: 1;
    }
    
    .info-banner .banner-actions {
        justify-content: flex-end;
        flex-wrap: nowrap;
        flex-shrink: 0;
    }
    
    .info-banner .banner-message {
        font-size: 0.9rem;
    }
    
    .info-banner .btn-close-banner {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
        z-index: 10;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .show-banner-btn {
        width: 45px;
        height: 45px;
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 576px) {
    .info-banner {
        padding: 6px 0;
        padding-right: 45px; /* Espace pour le bouton de fermeture */
    }
    
    .info-banner .banner-content {
        gap: 8px;
    }
    
    .info-banner .banner-icon {
        margin-right: 6px;
        font-size: 0.9rem;
    }
    
    .info-banner .banner-message {
        font-size: 0.85rem;
    }
    
    .info-banner .btn-sm {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
    
    .info-banner .btn-close-banner {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}
/*** Bandeau d'information End ***/

/*** Footer Responsive Start ***/
/* Réduction de la hauteur du footer */
.footer {
    padding: 1rem 0 !important;
}

.footer .container {
    padding: 0.5rem 0 !important;
}

.footer .row {
    min-height: 60px !important;
}

/* Styles pour les éléments du footer */
.footer-logo {
    max-width: 90px;
    height: auto;
}

.footer-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.footer-item .d-flex {
    font-size: 1rem;
}

.footer-item i {
    font-size: 1rem !important;
}

.footer-item p {
    font-size: 0.95rem !important;
    line-height: 1.4;
}

/* Styles pour la section légale du footer */
.footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: 1rem;
}

.footer-legal .text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer-legal a {
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

.footer-legal .fas.fa-certificate {
    color: #ffd700;
}

/* Responsive pour la section légale */
@media (max-width: 768px) {
    .footer-legal .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-legal .d-flex span {
        display: none;
    }
    
    .footer-legal .col-md-4 {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .footer-legal {
        padding-top: 0.5rem;
        margin-top: 0.5rem;
    }
    
    .footer-legal .text-white-50 {
        font-size: 0.7rem;
    }
    
.footer-legal a {
    font-size: 0.8rem;
}

/* Styles pour les boutons actifs du header */
.navbar .nav-item .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: #fff !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.navbar .nav-item .nav-link.active:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Style pour les liens du dropdown actifs */
.navbar .dropdown-item.active {
    background-color: #0d6efd;
    color: #fff !important;
    font-weight: 600;
}

.navbar .dropdown-item.active:hover {
    background-color: #0b5ed7;
    color: #fff !important;
}
}

/* Responsive pour tablettes */
@media (max-width: 992px) {
    .footer .row {
        min-height: 50px !important;
    }
    
    .footer-item h4 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
        line-height: 1.2;
    }
    
    .footer-item p {
        font-size: 0.9rem !important;
        margin-bottom: 0.25rem !important;
        line-height: 1.3;
    }
    
    .footer-item .d-flex {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
        line-height: 1.3;
    }
    
    .footer-social .btn-social {
        width: 36px;
        height: 36px;
        padding: 0.4rem;
        font-size: 0.85rem;
        min-width: 36px;
        min-height: 36px;
    }
}

/* Responsive pour mobiles */
@media (max-width: 768px) {
    .footer {
        padding: 0.8rem 0 !important;
    }
    
    .footer .container {
        padding: 0.3rem 0 !important;
    }
    
    .footer .row {
        min-height: auto !important;
        text-align: center;
    }
    
    .footer .col-md-3,
    .footer .col-md-4 {
        margin-bottom: 0.8rem;
        justify-content: center !important;
    }
    
    .footer-item {
        align-items: center !important;
    }
    
    .footer-item h4 {
        font-size: 0.95rem;
        margin-bottom: 0.3rem;
        line-height: 1.2;
    }
    
    .footer-item p {
        font-size: 0.85rem !important;
        margin-bottom: 0.2rem !important;
        line-height: 1.3;
    }
    
    .footer-item .d-flex {
        font-size: 0.85rem;
        margin-bottom: 0.2rem;
        justify-content: center;
        line-height: 1.3;
    }
    
    .footer img {
        max-width: 60px !important;
    }
    
    .footer-social .d-flex {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.3rem;
    }
    
    .footer-social .btn-social {
        width: 32px;
        height: 32px;
        padding: 0.3rem;
        font-size: 0.8rem;
        min-width: 32px;
        min-height: 32px;
    }
}

/* Très petits écrans */
@media (max-width: 576px) {
    .footer {
        padding: 0.6rem 0 !important;
    }
    
    .footer .row {
        flex-direction: column;
        gap: 0.4rem;
    }
    
    .footer .col-md-3,
    .footer .col-md-4 {
        margin-bottom: 0.4rem;
        width: 100%;
    }
    
    .footer-item h4 {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
        line-height: 1.1;
    }
    
    .footer-item p {
        font-size: 0.8rem !important;
        margin-bottom: 0.15rem !important;
        line-height: 1.2;
    }
    
    .footer-item .d-flex {
        font-size: 0.8rem;
        margin-bottom: 0.15rem;
        line-height: 1.2;
    }
    
    .footer img {
        max-width: 50px !important;
    }
    
    .footer-social .btn-social {
        width: 28px;
        height: 28px;
        padding: 0.2rem;
        font-size: 0.7rem;
    }
    
    .footer-social .d-flex {
        gap: 0.2rem;
    }
}

/* Écrans très petits (moins de 400px) */
@media (max-width: 400px) {
    .footer {
        padding: 0.4rem 0 !important;
    }
    
    .footer .container {
        padding: 0.2rem 0 !important;
    }
    
    .footer .row {
        gap: 0.3rem;
    }
    
    .footer .col-md-3,
    .footer .col-md-4 {
        margin-bottom: 0.3rem;
    }
    
    .footer-item h4 {
        font-size: 0.85rem;
        margin-bottom: 0.15rem;
    }
    
    .footer-item p {
        font-size: 0.75rem !important;
        margin-bottom: 0.1rem !important;
        line-height: 1.1;
    }
    
    .footer-item .d-flex {
        font-size: 0.75rem;
        margin-bottom: 0.1rem;
        line-height: 1.1;
    }
    
    .footer img {
        max-width: 40px !important;
    }
    
    .footer-social .btn-social {
        width: 24px;
        height: 24px;
        padding: 0.15rem;
        font-size: 0.6rem;
        min-width: 24px;
        min-height: 24px;
    }
    
    .footer-social .d-flex {
        gap: 0.15rem;
    }
    
    .footer-social h4 {
        font-size: 0.75rem;
        margin-bottom: 0.15rem;
    }
    
    /* Optimisation supplémentaire pour les très petits écrans */
    .footer .container {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    .footer-item {
        padding: 0.2rem;
    }
    
    .footer-item h4 {
        margin-bottom: 0.1rem;
    }
    
    .footer-item p,
    .footer-item .d-flex {
        margin-bottom: 0.05rem;
    }
}
/*** Footer Responsive End ***/

/*** Navigation temporaire - Pages en développement ***/
/* Masquer temporairement les liens vers les pages en développement */
.nav-link.temp-hidden,
.nav-item.temp-hidden,
.dropdown-item.temp-hidden {
    display: none !important;
}

/* Alternative : masquer avec opacité pour un effet de désactivation */
.nav-link.temp-disabled,
.nav-item.temp-disabled,
.dropdown-item.temp-disabled {
    opacity: 0.3;
    pointer-events: none;
    cursor: not-allowed;
}

/* Masquer complètement les éléments */
.temp-hidden {
    display: none !important;
}

/* Désactiver visuellement les éléments */
.temp-disabled {
    opacity: 0.3;
    pointer-events: none;
    cursor: not-allowed;
    text-decoration: line-through;
}
/*** Navigation temporaire End ***/

/*** Book Mockup 3D Start ***/
.book-mockup-container {
    perspective: 1000px;
    margin: 20px 0;
}

.book-3d {
    position: relative;
    width: 200px;
    height: 280px;
    transform-style: preserve-3d;
    animation: bookFloat 3s ease-in-out infinite;
}

.book-cover {
    position: absolute;
    width: 200px;
    height: 280px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-cover.front {
    background: #f8f9fa;
    transform: rotateY(0deg) translateZ(10px);
    border: 2px solid #fff;
    padding: 0;
}

.book-cover.back {
    background: #f8f9fa;
    transform: rotateY(180deg) translateZ(10px);
    border: 2px solid #fff;
    padding: 0;
}

.book-cover-content {
    padding: 20px;
    text-align: center;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.book-cover-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.book-cover-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    display: block;
}

.book-spine {
    position: absolute;
    width: 20px;
    height: 280px;
    background: linear-gradient(90deg, #2c3e50 0%, #34495e 100%);
    transform: rotateY(90deg) translateZ(0px);
    border-radius: 0 4px 4px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spine-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.book-content {
    text-align: center;
    color: white;
    padding: 20px;
}

.book-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.book-subtitle {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.book-preview {
    background: rgba(255,255,255,0.2);
    padding: 15px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.book-preview i {
    display: block;
    margin-bottom: 8px;
}

.book-preview small {
    font-size: 0.8rem;
    font-weight: 500;
}

.book-preview-text {
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 8px;
}

@keyframes bookFloat {
    0%, 100% {
        transform: rotateY(0deg) rotateX(5deg);
    }
    50% {
        transform: rotateY(5deg) rotateX(0deg);
    }
}

.book-3d-second {
    animation: bookFloatSecond 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes bookFloatSecond {
    0%, 100% {
        transform: rotateY(0deg) rotateX(-5deg);
    }
    50% {
        transform: rotateY(-5deg) rotateX(0deg);
    }
}

/* Responsive pour le livre */
@media (max-width: 768px) {
    .book-3d {
        width: 150px;
        height: 210px;
    }
    
    .book-cover {
        width: 150px;
        height: 210px;
    }
    
    .book-spine {
        width: 15px;
        height: 210px;
    }
    
    .book-title {
        font-size: 1rem;
    }
    
    .book-subtitle {
        font-size: 0.8rem;
    }
    
    .book-preview {
        padding: 10px;
    }
}

@media (max-width: 576px) {
    .book-3d {
        width: 120px;
        height: 168px;
    }
    
    .book-cover {
        width: 120px;
        height: 168px;
    }
    
    .book-spine {
        width: 12px;
        height: 168px;
    }
    
    .book-content {
        padding: 15px;
    }
    
    .book-title {
        font-size: 0.9rem;
    }
    
    .book-subtitle {
        font-size: 0.7rem;
    }
}
/*** Book Mockup 3D End ***/

/*** Cartes équilibrées Start ***/
.feature-item {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-item p {
    flex-grow: 1;
    display: flex;
    align-items: center;
}
/*** Cartes équilibrées End ***/


