body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header principal */
.primary.custom-header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

/* Hauteurs fixes */
:root {
    --first-bar-height: 30px;
    --secondary-bar-height: 73px;
    --third-bar-height: 21px;
    --firstbar-height: 80px;
    --menu-height: 50px;
    --total-header-height: calc(var(--first-bar-height) + var(--secondary-bar-height) + var(--third-bar-height) + var(--firstbar-height) + var(--menu-height));
}

/* Barres supérieures */
.first-bar-top {
    /*background-color: #01406C;*/
    background-color: transparent;
    background-image: linear-gradient(100deg, #00050e 0%, #00173F 100%);
    height: var(--first-bar-height);
    min-height: var(--first-bar-height);
}

.secondary-bar-top {
    background-color: #efe7da;
    height: var(--secondary-bar-height);
    min-height: var(--secondary-bar-height);
}

.third-bar-top {
    /* background-color: #29B9AD; */
    /* background-image: linear-gradient(100deg, #F8D047 25%, #F4BD00 100%); yellow*/
    /* background-image: linear-gradient(100deg, #6e2332 25%, #8e3a4a 100%); red */
    /* background-color: #009DE0; bleu borso ver foncé #03302e */
     background-color:#0b6863;
     height: var(--third-bar-height);
     min-height: var(--third-bar-height);
     color: #FFFFFF;
}

/* Style pour firstbar et son contenu */
.firstbar {
    /*background-color: #002F47;*/
    background-color: transparent;
    background-image: linear-gradient(100deg, #00050e 0%, #00173F 100%);

    height: var(--firstbar-height);
    min-height: var(--firstbar-height);
    display: flex;
    align-items: center;
}

.firstbar .container {
    height: 100%;
    max-width: 1431px !important;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
}

.firstbar .row {
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

.firstbar .col-md-3,
.firstbar .col-md-6 {
    height: 100%;
    display: flex;
    align-items: center;
}

/* Style spécifique pour la barre de recherche */
.firstbar .search {
    width: 100%;
}

.firstbar .form-group {
    margin: 0;
}

/* Style pour le menu */
.menu {
    background-color: #e3d7c4;
    border-bottom: 3px solid #24a499;
    height: var(--menu-height);
    min-height: var(--menu-height);
    display: flex;
    align-items: center;
}

.menu .container {
    height: 100%;
    display: flex;
    align-items: center;
}

/* Style pour main-content */
.main-content {
    width: 100%;
    margin-top: var(--total-header-height);
    position: relative;
    z-index: 1;
    background: #fff;
}

/* Style pour la première section */
.main-content section:first-child {
    margin-top: 0;
    padding-top: 20px !important;
}

/* Style général pour toutes les sections */
.main-content section {
    width: 100%;
    padding: 20px 0;
    background-color: #fff;
    position: relative;
    z-index: 2;
}

/* Ajustements pour nav-icons */
.nav-icons {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-icons li {
    margin: 0 10px;
}

/* Style pour les containers */
.container {
    max-width: 1431px !important;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* Media queries */
@media (max-width: 1431px) {
    .container {
        max-width: 100% !important;
    }
}

@media screen and (max-width: 640px) {
    .bardeb,
    .nosmartphone {
        display: none;
    }

    .firstbar {
        height: auto;
        min-height: var(--firstbar-height);
        padding: 10px 0;
    }

    .firstbar .row {
        flex-direction: column;
    }

    .firstbar .col-md-3,
    .firstbar .col-md-6 {
        width: 100%;
        margin: 5px 0;
    }

    /* Ajustement de la hauteur totale pour mobile */
    :root {
        --firstbar-height: 120px;
    }
}