/********** CSS **********/
:root {
    --primary:linear-gradient(to right, black, #3B3B3B, #c8ab0d, yellow);
    --secondary: #5F656F;
    --light: #F5F5F5;
    --dark: #02245B;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

h1,
h2,
.h1,
.h2,
.fw-bold {
    font-weight: 700 !important;
}

h3,
h4,
.h3,
.h4,
.fw-medium {
    font-weight: 600 !important;
}

h5,
h6,
.h5,
.h6,
.fw-semi-bold {
    font-weight: 500 !important;
}


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

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


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

.btn-primary,
.btn-outline-primary:hover {
    color: #FFFFFF;
}

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

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

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

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


.topbar-right {
    position: relative;
    background: #02245B;
}

.topbar-right::before {
    position: absolute;
    content: "";
    width: 30px;
    height: 100%;
    top: 0;
    left: -15px;
    transform: skewX(-30deg);
    background-color: #FFF;
}



.blog-post {
    background: white;
    padding: 15px;
    transition: transform 0.3s ease;
    text-align: center;
}
.blog-post:hover {
    transform: translateY(-5px);
}
.blog-post img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}
.blog-container {
    padding: 0px 15px;
}
.title {
    font-size: 20px;
    font-weight: bold;
}
@media (max-width: 768px) {
    .title {
        font-size: 18px;
    }
    .blog-post {
        padding: 10px;
    }
}
@media (max-width: 576px) {
    .title {
        font-size: 16px;
    }
    .blog-post img {
        max-height: 100%;
    }
}



    .blog-post {
        margin-bottom: 40px;
        overflow: hidden; /* évite les chevauchements */
    }

    .blog-post img {
        max-width: 250px; /* largeur max type journal */
        width: 100%; /* s’adapte à l’écran */
        height: auto;
        margin: 0 15px 10px 0;
        float: left; /* image à gauche par défaut */
        border-radius: 5px;
    }

    .blog-post.right img {
        float: right;
        margin: 0 0 10px 15px;
    }

    .blog-post p {
        text-align: justify;
        line-height: 1.6;
    }

    /* RESPONSIVE */
    @media (max-width: 768px) {
        .blog-post img,
        .blog-post.right img {
            float: none;          /* enlève l’alignement */
            display: block;       /* image devient un bloc */
            margin: 0 auto 15px;  /* centrée avec espace en bas */
            max-width: 100%;      /* prend toute la largeur dispo */
        }
    }

    /* Définition de l'animation de danse */
@keyframes auto-dance {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.01) rotate(-1deg); } /* Léger zoom et inclinaison */
    50% { transform: scale(1) rotate(0deg); }
    75% { transform: scale(1.01) rotate(1deg); }  /* Inclinaison inverse */
    100% { transform: scale(1) rotate(0deg); }
}

/* Appliquer l'animation directement aux images pour un mouvement continu */
.blog-post img,
.blog-post.right img {
    /* Propriétés existantes */
    max-width: 250px; 
    width: 100%;
    height: auto;
    border-radius: 5px;
    display: block;

    /* DÉCLENCHE L'ANIMATION AUTOMATIQUEMENT */
    animation: auto-dance 4s ease-in-out infinite; /* 4 secondes par cycle, boucle infinie */
    
    /* Ajout d'une ombre douce pour la profondeur (Optionnel) */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Vous pouvez garder un léger effet au survol si vous le souhaitez, mais ce n'est plus obligatoire */
.blog-post img:hover,
.blog-post.right img:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5); /* Ombre plus forte au survol */
}

/* --- Réactivité de la section Pèsonaj Istorik (Images et Texte) --- */

/* Styles par défaut (Grands Écrans) */
.blog-post img {
    /* ... Vos styles de base pour l'alignement à gauche */
    float: left; 
    margin: 0 15px 10px 0;
}

.blog-post.right img {
    /* ... Vos styles de base pour l'alignement à droite */
    float: right;
    margin: 0 0 10px 15px;
}

/* @MEDIA QUERY : Pour les écrans de taille moyenne et petite (768px et moins),
   nous désactivons le 'float' pour que les images s'affichent au-dessus du texte,
   remplissent toute la largeur, et soient centrées. 
*/
@media (max-width: 768px) {
    
    /* Retire le flottement et le centre */
    .blog-post img,
    .blog-post.right img {
        /* Retire l'alignement pour que l'image prenne toute la largeur */
        float: none; 
        
        /* Rend l'image en bloc pour qu'elle soit centrée */
        display: block; 
        
        /* Centre l'image horizontalement */
        margin: 0 auto 15px; 
        
        /* S'assure que l'image ne dépasse pas la largeur du conteneur */
        max-width: 100%; 
        
        /* Réinitialise la limite de largeur pour prendre plus d'espace sur mobile */
        width: 100%;
    }
    
    /* Réinitialisation de la marge pour les titres/texte */
    .blog-post p {
        /* Le texte redevient justifié sur toute la largeur */
        margin: 0 0 15px 0;
    }
}


/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand {
    position: relative;
    padding-right: 50px;
    height: 75px;
    display: flex;
    align-items: center;
    background: #FFF;
}

.navbar .navbar-brand::after {
    position: absolute;
    content: "";
    width: 35px;
    height: 100%;
    top: 0;
    right: -25px;
    transform: skewX(-30deg);
    background-color: var(--dark);
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 20px 0;
    color: var(--dark);
    font-size: 18px;
    font-weight: 500;
    outline: none;
}

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

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}
#logo_pana{
    background: linear-gradient(to right, black, #3B3B3B, #c8ab0d, #142c8e) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent;
    text-transform: uppercase;

}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, rgba(2, 36, 91, 1) 0%, rgba(255, 0, 0, 0.5) 100%, rgba(255, 0, 0, 0) 50%, rgba(2, 36, 91, 0.5) 55%, rgba(2, 36, 91, 0) 100%);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: #142c8e;
    border: 15px solid #142c8e;
    border-radius: 3.5rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background: linear-gradient(to right, #142c8e, #857108cf, #142c8e),url(../img/palmiste.png) center center no-repeat;
    background-size: cover;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0; /* Ajoute un espacement pour centrer verticalement si nécessaire */
}

#about {
    background: linear-gradient(to right, #142c8e, #3B3B3B, #d5b507, #142c82);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
   
}

#objectif {
    background: linear-gradient(to right, #142c8e, #3B3B3B, #d5b507, #142c82);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

#Histoire {
    background: linear-gradient(to right, #142c8e, #3B3B3B, #d5b507, #142c82);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gradient-text-dark {
    background: linear-gradient(to right, rgba(2, 36, 91, 1), rgba(0, 0, 0, 1));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.Lanmò{
    font-weight: 900;
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size:18px;
}

.ekonomik{
    font-weight: 900;
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size:18px;
}

.toussaint{
 
    font-weight: bold;
}

.order-lg-last {
    order: 2; /* Change l'ordre des colonnes pour la vue large */
}


.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--light);
}



/*** Features ***/
.btn-play {
    position: absolute;
    top: 50%;
    right: -30px;
    transform: translateY(-50%);
    display: block;
    box-sizing: content-box;
    width: 16px;
    height: 26px;
    border-radius: 100%;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: var(--primary);
}

@media (max-width: 992px) {
    .btn-play {
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
    }
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 100%;
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 100%;
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: -1px;
    border-left: 16px solid #FFFFFF;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}

.modal-video .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

.modal-video .modal-body {
    position: relative;
    padding: 0px;
}

.modal-video .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
}




/*** Team ***/
.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    display: flex;
    align-items: center;
    background: var(--primary);
    transition: .5s;
}

.team-item:hover .team-social {
    left: 0;
}


/*** Footer ***/
.footer {
    color: #B0B9AE;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #B0B9AE;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--light);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    color: #B0B9AE;
    border-top: 1px solid rgba(255, 255, 255, .1);
}