/* Importation de la police Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500&display=swap');

:root {
    --primary-black: #000000;
    --dark-grey: #1a1a1a;
    --hover-blue: #007bff; /* La couleur bleue pour le survol */
    --light-border: #e0e0e0;
}

body { 
    font-family: 'Montserrat', sans-serif; 
    font-weight: 300;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-weight: 400;
    letter-spacing: 1px;
}

/* Bandeau supérieur (Top Bar) */
.top-bar {
    background-color: var(--primary-black);
    color: white;
    font-size: 0.75rem;
    padding: 10px 0;
    letter-spacing: 1px;
}

/* --- NAVIGATION --- */
.navbar-brand img { 
    height: 75px; 
    transition: transform 0.3s ease;
}

.nav-link { 
    color: #000 !important; 
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.nav-item .nav-link:hover {
    color: var(--hover-blue) !important;
}

/* Gestion du Hover pour les Sous-menus (Desktop) */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0; 
        animation: fadeIn 0.3s ease;
    }
}

.dropdown-menu {
    border: none;
    border-radius: 0;
    padding: 15px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.dropdown-item {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 25px; /* Espacement fixe */
    color: #333;
    transition: color 0.3s ease, background-color 0.3s ease; /* Pas de transition sur le padding */
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--hover-blue) !important;
    padding-left: 25px; /* Valeur identique à l'état normal pour éviter tout mouvement */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Bouton CONTACTEZ-NOUS */
.btn-contact {
    background-color: var(--primary-black) !important;
    color: white !important;
    border-radius: 0;
    padding: 12px 25px;
    font-size: 0.75rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border: none;
}

.btn-contact:hover {
    background-color: var(--dark-grey) !important;
    opacity: 0.9;
}

/* --- SECTION HERO --- */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('img/bg2.jpeg'); 
    background-size: cover;
    background-position: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    color: white;
}

.hero-content h1 {
    font-size: 2.5rem;
    text-transform: uppercase;
    font-weight: 300;
    line-height: 1.2;
}

/* --- CARDS SERVICES (Feature Box) --- */
.feature-box {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.card-feature {
    background-color: #ffffff;
    color: #333333;
    padding: 40px 30px;
    height: 100%;
    transition: all 0.4s ease;
    cursor: pointer;
    border: none;
    border-right: 1px solid #f0f0f0;
}

.card-feature .icon-circle {
    width: 60px;
    height: 60px;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.card-feature .description {
    color: #6c757d;
    transition: all 0.4s ease;
}

.card-feature i {
    color: #6c757d;
    transition: all 0.4s ease;
}

.card-feature:hover {
    background-color: var(--primary-black);
    color: #ffffff !important;
}

.card-feature:hover .icon-circle {
    border-color: rgba(255, 255, 255, 0.3);
}

.card-feature:hover i, 
.card-feature:hover .description,
.card-feature:hover h6 {
    color: #ffffff !important;
    opacity: 1;
}

@media (min-width: 768px) {
    .col-md-4:last-child .card-feature {
        border-right: none;
    }
}

/* --- HISTORIQUE & COLLAPSE --- */
.btn-link.text-dark {
    color: var(--primary-black) !important;
    transition: opacity 0.3s ease;
    text-decoration: none;
}

.btn-link.text-dark:hover {
    opacity: 0.7;
}

.collapse {
    transition: height 0.35s ease;
}

.section-title { 
    color: var(--primary-black); 
    margin-bottom: 30px; 
    font-size: 1.4rem;
    position: relative;
    padding-bottom: 15px;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; 
    left: 0;
    width: 50px; 
    height: 2px;
    background: var(--primary-black);
}

/* --- GRILLE ÉQUIPE --- */
.team-card {
    position: relative;
    margin-bottom: 20px;
}

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

.team-img {
    width: 100%;
    height: auto;
    display: block;
    /* Effet Noir et Blanc par défaut */
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.team-card:hover .team-img {
    /* Passage en couleur au survol */
    filter: grayscale(0%);
    transform: scale(1.03); /* Léger zoom pour le dynamisme */
}

.team-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-black);
    padding: 15px 20px;
    width: 90%; /* Pour laisser un petit bord comme sur l'image */
    margin-left: auto;
    transform: translateY(10px); /* Petit décalage stylé */
    transition: all 0.3s ease;
}

.team-card:hover .team-info {
    transform: translateY(0);
    background-color: var(--hover-blue); /* Optionnel : le bloc devient bleu au survol */
}
/* Animation Fade In Up */
.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
   .logo-custom {
        width: 64px;
        height: auto; /* Garde les proportions */
        object-fit: contain; /* Évite les déformations */
        margin-right:20px;
    }
    
    /* Cette règle crée une zone "tampon" au-dessus de l'élément lors d'un lien vers une ancre */
.domain-row {
    scroll-margin-top: 120px; /* Ajustez cette valeur selon la hauteur de votre header */
}

@media (max-width: 991px) {
    .domain-row {
        scroll-margin-top: 80px; 
    }
}

/* Style spécifique pour les contacts de l'annuaire */
#annuaire h3 {
    font-size: 1.5rem;
    letter-spacing: 2px;
}

#annuaire .small a:hover {
    color: var(--hover-blue) !important;
    border-color: var(--hover-blue) !important;
}
/* Animation au survol des cartes */
.actua-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.actua-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.actua-card h2 {
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.actua-card:hover h2 {
    color: #c4a47c; /* Une couleur dorée/notaire si vous en avez une */
}

/* Style de la section Hero */
.hero-section {
    display: flex;
    align-items: center;
    position: relative;
}

/* Ajustement pour les titres d'actus longs */
.card-title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Style Annuaire Epuré */
.annuaire-mail {
    text-decoration: none;
    color: var(--primary-black);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    display: inline-block;
}

.annuaire-mail:hover {
    color: var(--hover-blue);
    border-bottom: 1px solid var(--hover-blue);
}

.contact-item {
    border-left: 1px solid #eee;
    padding-left: 20px;
    height: 100%;
}

/* L'animation Fade est déjà dans vos styles précédents */
.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}
/* --- FOOTER --- */
footer {
    background-color: var(--primary-black);
    color: white;
    font-size: 0.85rem;
    padding: 60px 0 20px 0;
}

.footer-link { 
    color: rgba(255,255,255,0.6); 
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ffffff;
}

   .cookie-banner {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #ffffff;
        border-top: 1px solid #eee;
        z-index: 9999;
        display: none; /* Masqué par défaut */
        animation: slideUp 0.5s ease-out;
    }

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

    .cookie-banner .btn {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    .cookie-banner a:hover {
        color: #666 !important;
    }