/* Variables Globales */
:root {
    --color-background: #F4F2EE;
    --color-primary: #007bff;
    --color-blue-dark: #004182;
    --color-secondary: #6c757d;
    --color-text: #666666;
    --color-text-hover: #000;
    --color-border: #ddd;
    --color-section: #ffffff;
    --color-grey: #424242;
    --color-title: #7431f9;
}

/* Général */
body {
    background-color: var(--color-background);
    margin-top: 70px;
    padding-bottom: 60px;
    /* Espace pour la navbar mobile */
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Défilement fluide pour une meilleure UX */
}

/***********************************************
NAVBAR
***********************************************/

/* Logo */
.logo {
    width: 40px;
    height: 40px;
}

/* Nav Links */
.nav-link {
    color: var(--color-text);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 12px;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--color-text-hover);
}

.nav-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.nav-link span {
    font-size: 12px;
}

/* Bottom Navbar for Mobile */
.bottom-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #f8f9fa;
    border-top: 1px solid var(--color-border);
    z-index: 1030;
    padding: 5px 0;
}

.bottom-navbar .nav {
    display: flex;
    justify-content: space-around;
    flex-wrap: nowrap;
}

.bottom-navbar .nav-item {
    flex: 1;
    min-width: 0;
}

.bottom-navbar .nav-link {
    font-size: 10px;
    text-align: center;
    padding: 5px 2px;
}

.bottom-navbar .nav-icon {
    font-size: 16px;
    margin-bottom: 2px;
}

/***********************************************
HOME PAGE
***********************************************/

/* Section principale pleine hauteur */
.hero-section {
    position: relative;
    text-align: center;
    width: 100%;
    background-color: var(--color-section);
    border-radius: 8px;
    /* overflow: hidden; */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* Ajoute un effet visuel */
    /* overflow: visible; */
}

/* Image d'accueil */
.hero-image {
    position: relative;
    width: 100%;
    height: 300px;
    /* Ajuste la hauteur selon la maquette */
    /* overflow: visible !important; */

}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.profile-wrapper {
    position: relative;
    margin-top: -50px;
    text-align: center;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* z-index: 2; */
    overflow: visible;
}

/* Conteneur de la photo de profil */
.profile-container {
    display: inline-block;
    position: relative;
    margin-bottom: 10px;
}

.profile-badge {
    position: relative;
    width: 140px;
    height: 140px;
    margin: auto;
}

.profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

/* Texte de profil */
.profile-info {
    margin-top: 10px;
    padding: 0 20px;
    color: var(--color-text);
}

.profile-info h1 {
    font-size: clamp(18px, 4vw, 24px);
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--color-text-hover);
}

.profile-info h2 {
    font-size: clamp(14px, 3.5vw, 18px);
    color: var(--color-text);
    margin-bottom: 10px;
}

.profile-info p {
    font-size: clamp(12px, 3vw, 14px);
    color: var(--color-text);
}

.profile-info a {
    color: var(--color-primary);
    text-decoration: none;
}

.profile-info a:hover {
    text-decoration: underline;
}

/* Boutons */
.button-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-group {
    position: relative;
    z-index: 1;
}

.btn-msg {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 15px;
    font-size: 16px;
    text-align: center;
}

/* Ajout de l'espace entre l'icône et le texte */
.btn-msg i,
.dropdown-item i {
    margin-right: 7px;

}

.btn-msg:hover,
.btn-msg:focus {
    background-color: var(--color-blue-dark);
    /* Une teinte plus foncée */
    color: white;
    opacity: 1;
    /* Rétablir l'opacité si modifiée */
}

a.btn-msg {
    color: white;
    /* Couleur du texte */
    text-decoration: none;
    /* Supprime le soulignement */
}

.btn-plus {
    background-color: var(----color-section);
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
    padding: 8px 16px;
    border-radius: 15px !important;
    font-size: 16px;
    text-align: center;
    content: none;
    position: relative;
    z-index: 1;
}

.btn-plus:hover,
.btn-plus:focus {
    border-width: 3px;
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    background-color: var(--color-background)
}

.btn-plus::after {
    content: none;
    /* Supprime la flèche générée par Bootstrap */
}

.dropdown-menu {
    position: absolute;
    z-index: 1035 !important;
    border: 1px solid var(--color-grey);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    padding: 8px 0;
    display: none;
}

.dropdown-menu.show {
    display: block;
}

/* Style du menu déroulant */
.dropdown-item {
    display: flex;
    align-items: center;
    color: var(--color-grey) !important;
    padding: 8px 16px;
    text-decoration: none;
}

.dropdown-item:hover {
    background-color: var(--color-background);
    color: var(--color-grey);
}

.dropdown-item i {
    color: inherit;
    /* Hérite de la couleur du texte de l'élément parent */
}

/* Sections de contenu */
.content-section {
    background-color: var(--color-section);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    height: 100%;
    position: relative;
    /* Évite que les enfants comme le dropdown soient cachés */
    overflow: visible;
    /* Assure que rien ne soit coupé dans cette section */
    /* z-index: auto; */
}

.container {
    position: relative;
    /* z-index: auto; */
}

/* Style personnalisé pour la section "À propos" */
.other-content {
    height: 100%;
    padding: 20px;
}

.other-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.other-content li {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--color-border);
}

.other-content li:last-child {
    border-bottom: none;
}

.other-content .icon-container {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.other-content .icon-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* popup coordonnées  */
.modal-backdrop {
    position: fixed !important;
    z-index: 1040 !important;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal {
    position: fixed !important;
    z-index: 1050 !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/*************************************************************** FOOTER*********************************************/
/* Animation des icônes du footer */
.footer-icon {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: #e9ecef;
    /* Couleur de fond */
    color: #555;
    /* Couleur de l'icône */
    text-decoration: none;
    /* Supprime le soulignement des liens */
    font-size: 16px;
    /* Taille des icônes */
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    margin: 0 8px;
}

.footer-icon:hover {
    background-color: #007bff;
    color: white;
    transform: scale(1.1);
}

/* Alignement central et espacement */
footer span {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #555;
}

/* Rapprochement des sections */
footer .d-flex {
    gap: 10px;
    /* Espacement modéré entre les groupes */
}

/***********************************************
RESPONSIVE
***********************************************/

/* Ajustements pour les écrans <=768px */
@media (max-width: 768px) {
    .hero-image {
        height: 200px;
        /* Réduit la hauteur de l'image */
    }

    .profile-wrapper {
        margin-top: -50px;
        /* Réduit le chevauchement */
    }

    .profile-badge {
        width: 100px;
        height: 100px;
    }

    .profile-info {
        margin-top: 10px;
    }

    .button-container {
        flex-direction: column;
        /* Boutons affichés en colonne */
        gap: 10px;
        padding: 0 20px;
    }

    .content-section {
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .hero-image {
        height: 150px;
        /* Image plus petite */
    }

    .profile-badge {
        width: 80px;
        height: 80px;
    }

    .profile-info {
        margin-top: 10px;
        padding: 10px;
        /* Réduit les marges */
    }

    .profile-info h1 {
        font-size: 16px;
        /* Taille réduite pour les petits écrans */
    }

    .profile-info h2 {
        font-size: 14px;
    }

    .profile-info p {
        font-size: 12px;
    }
}