/* ==========================================================================
   1. LAYOUT PRINCIPAL & CONFIGURATION GLOBALE
   ========================================================================== */
main
{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: calc(100vh - 80px);
    margin-block: 10px;
    z-index: 997;
}

/* Application globale des couleurs secondaires (gérées par votre :root) */
p, h1, h2, h3, h5, a 
{
    color: var(--secondary-color);
}

/* Base commune pour tous les boutons de type pilule */
.haut a, 
.nous_vendons .texte a, 
.nous_louons .texte a, 
.nos_contacts .contacter a 
{
    display: inline-block;
    padding: 6px 16px;
    color: var(--accent-color); /* Texte Vert par défaut */
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    border: 2px solid var(--accent-color); /* Bordure Verte */
    border-radius: 20px;
    transition: all 0.4s ease;
}

.haut a:hover, 
.nous_vendons  .texte a:hover, 
.nous_louons  .texte a:hover,
.nos_contacts .contacter a:hover {
    color: #ffffff;
    background-color: var(--hover-color); /* Fond Bleu cyan au survol */
    border-color: var(--hover-color);
}

/* ==========================================================================
   2. SECTION EN-TÊTE / HERO (`.haut`)
   ========================================================================== */
.haut 
{
    width: 80%;
    max-width: 50rem;
    margin-top: 20px;
}

.haut h3 
{
    font-size: 4rem;
}

.haut span 
{
    display: block;
    padding: 10px 0;
    color: var(--accent-color); /* Remplacement de l'orange par le Vert Logo */
    font-size: 2rem;
    line-height: 1.5;
}

.haut p 
{
    max-width: 400px;
    padding: 10px 0;
    color: var(--text-muted); /* Utilisation de la variable de texte adoucie */
    font-size: 1.3rem;
    line-height: 1.5;
}

/* ==========================================================================
   3. SECTION NOUS VENDONS
   ========================================================================== */
.nous_vendons, 
.nous_louons
{
    display: flex;
    width: 80%;
    margin-top: 80px;
    background: rgba(0, 174, 239, 0.05); 
    border-radius: 20px;
}

.nous_vendons  .texte,
.nous_louons  .texte 
{
    width: 40%;
    margin: 130px 0 0 50px;
}

.nous_vendons  .texte h3,
.nous_louons  .texte h3
{
    font-size: 2rem;
}

.nous_vendons  .texte p,
.nous_louons  .texte p 
{
    width: 70%;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.nous_vendons  img, 
.nous_louons  img
{
    width: 60%;
    height: 500px;
    border-radius: 0 20px 20px 0;
    object-fit: cover;
}

/* --- LE CONTENEUR DE L'IMAGE --- */
.nous_vendons .wrapper_image,
.nous_louons .wrapper_image {
    position: relative;
    width: 60%;
    height: 500px;
    border-radius: 0 20px 20px 0;
    overflow: hidden;
}

/* --- ADAPTATION COLORIMÉTRIQUE DE L'IMAGE --- */
.nous_vendons .wrapper_image img,
.nous_louons .wrapper_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    
    /* Filtre CSS : Réduit la chaleur de l'orange d'origine et augmente le contraste */
    filter: sepia(15%) hue-rotate(160deg) saturate(110%) contrast(105%);
}

/* --- OVERLAY AUX COULEURS DE HAM BURKINA (Vert & Cyan) --- */
.nous_vendons .wrapper_image::after,
.nous_louons .wrapper_image::after {
    content: '';
    position: absolute;
    inset: 0;
    
    /* Dégradé allant du vert au bleu cyan de votre logo avec une forte transparence (88% et 92%) */
    background: linear-gradient(135deg, rgba(57, 181, 74, 0.12) 0%, rgba(0, 174, 239, 0.08) 100%);
    
    /* Permet de fusionner parfaitement le dégradé couleur avec les textures de la villa */
    mix-blend-mode: multiply; 
    pointer-events: none; /* Laisse l'image cliquable si besoin */
}

/* ==========================================================================
   4. SECTION SERVICES (CARTES INTERACTIVES)
   ========================================================================== */
.nos_services 
{
    width: 80%;
    margin: 120px auto 0;
    padding-top: 50px;
    text-align: center;
}

.nos_services h2 
{
    margin-bottom: 15px;
}

.nos_services .p 
{
    margin-bottom: 25px;
}

.les_services 
{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.le_service 
{
    position: relative;
    height: 410px;
    flex-basis: 30%;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.le_service img
 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Overlay de description */
.le_service .desc 
{
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    background: transparent;
    transition: background 0.4s ease, transform 0.4s ease;
}

.le_service .desc h3 
{
    position: absolute;
    bottom: 4%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    color: #ffffff; /* Blanc pour un contraste optimal sur l'image */
    font-size: 26px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Ombre pour garantir la lisibilité */
    transition: all 0.4s ease;
}

.le_service .desc p 
{
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    color: #ffffff;
    font-size: 0.7rem;
    text-align: left;
    opacity: 0;
    transition: all 0.4s ease;
}

.le_service .desc ul 
{
    margin-top: 15px;
    color: #ffffff;
    font-size: 0.7rem;
    text-align: left;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.le_service .desc li 
{
    list-style: circle;
    margin-left: 15px;
}

/* Effets au Survol (Hover) des Services */
.le_service .desc:hover 
{
    background: rgba(59, 181, 74, 0.95); /* Remplacement de l'orange par le Vert institutionnel HAM BURKINA */
    justify-content: flex-start;
}

.le_service .desc:hover h3
 {
    position: relative;
    bottom: unset;
    left: unset;
    transform: none;
    margin-top: 10px;
    color: #ffffff; /* Reste blanc pour briller sur le fond vert */
    text-shadow: none;
}

.le_service .desc:hover p 
{
    position: relative;
    bottom: unset;
    left: unset;
    transform: none;
    padding: 10px 0 0;
    color: #ffffff;
    opacity: 1;
}

.le_service .desc:hover ul 
{
    opacity: 1;
}

.partenaires_section {
    width: 80%;
    margin: 100px auto 0 auto;
    text-align: center;
}

.partenaire_titre h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.partenaire_titre p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.partenaire_logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    padding: 30px;
    background-color: rgba(0, 174, 239, 0.02); /* Voile ultra-léger bleu cyan du logo */
    border-radius: 15px;
}

.logo_item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 80px;
    filter: grayscale(100%); /* Uniformise les logos partenaires en noir et blanc */
    opacity: 0.5;
    transition: all 0.3s ease;
}

.logo_item:hover {
    filter: grayscale(0%); /* Restitue les couleurs d'origine au survol */
    opacity: 1;
    transform: scale(1.05); /* Léger effet de zoom dynamique */
}

.logo_item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Évite de déformer les logos des partenaires */
}

/* ==========================================================================
   5. SECTION CONTACTS
   ========================================================================== */
.nos_contacts 
{
    display: flex;
    align-items: center;
    width: 80%;
    height: 300px;
    margin-top: 120px;
    margin-bottom: 90px;
    background-color: white;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 16px 70px -8px rgba(0, 0, 0, 0.15); /* Ombre allégée */
}

.nos_contacts .contacter 
{
    width: 60%;
}

.nos_contacts .contacter h5, 
.nos_contacts .contacter h3, 
.nos_contacts .contacter .p_contact
{
    margin-bottom: 12px;
}

.nos_contacts .contacter .p_contact 
{
    margin-bottom: 15px;
    color: var(--text-muted);
}

.nos_contacts img {
    width: 40%;
    height: 100%;
    border-radius: 0 10px 10px 0;
    object-fit: cover;
}

/* ==========================================================================
   6. DESIGN RESPONSIVE (MEDIA QUERIES)
   ========================================================================== */

/* Écrans Intermédiaires / Tablettes Paysage (Max 900px) */
@media screen and (max-width: 900px) 
{
    .haut h3 { font-size: 3.5rem; }
    .haut span { font-size: 1.8rem; }
    .haut p { font-size: 1.1rem; }

    .nous_vendons .texte,
    .nous_louons .texte
     { 
        width: 60%;
     }
    
     .nous_vendons  .texte h3, 
     .nous_louons  .texte h3
     { 
        font-size: 1.7rem;
     }

    .nous_vendons  img, 
    .nous_louons  img
    {
        width: 40%;
        height: 400px;
        border-radius: 0 20px 20px 0;
    }

    .nos_contacts .contacter .p_contact { margin-left: 10px; }
}

/* Tablettes Portrait (Max 810px) */
@media screen and (max-width: 810px) {
    .nos_services h2 { font-size: 1.3rem; }
    .nos_services .p { font-size: 0.9rem; }
    .le_service { height: 300px; }
    .le_service .desc h3 { font-size: 0.9rem; }
    .le_service .desc p { font-size: 0.7rem; }
}

/* Petites Tablettes & Grands Mobiles (Max 651px) */
@media screen and (max-width: 651px) 
{
    main { margin: 20px 0; }
    .haut h3 { font-size: 2.0rem; }
    .haut span { font-size: 1.1rem; }
    .haut p { font-size: 0.8rem; }

    .nous_vendons  .texte, 
    .nous_louons  .texte
    { 
        margin-top: 100px; 
    }

    
    .nous_vendons  .texte h3 ,
    .nous_louons  .texte h3
    { 
        font-size: 1.2rem; 
    }

    
    .nous_vendons  .texte p ,
    .nous_louons  .texte p
    { 
        font-size: 0.7rem; 
    }

    .nous_vendons  .texte a ,
    .nous_louons  .texte a
    { 
        font-size: 0.6rem; 
    }

    .nous_vendons  img ,
    .nous_louons  img
    { 
        height: 275px; 
    }

    .partenaires_section 
    {
        margin-top: 60px;
    }
    
    .partenaire_titre h2 
    {
        font-size: 1.5rem;
    }

    .partenaire_logos
     {
        gap: 25px;
        padding: 20px;
    }

    .logo_item 
    {
        width: 120px;
        height: 60px;
    }

    .nos_services h2 
    {
        font-size: 1.1rem; 
    }

    .nos_services .p 
    {
        font-size: 0.8rem; 
    }

    .le_service 
    { 
        height: 250px; 
    }
   
    .le_service .desc h3 
    { 
        font-size: 0.7rem; 
    }
    
    .le_service .desc p 
    {
        font-size: 0.6rem; 
    }

    .nos_contacts h3
    { 
        font-size: 0.9rem; 
    }
    
    .nos_contacts .p_contact 
    { 
        font-size: 0.8rem; 
    }
}

/* Smartphones (Max 500px) */
@media screen and (max-width: 500px)
 {
    .haut, 
    .nous_vendons , 
    .nous_louons,
    .nos_services, 
    .nos_contacts 
    {
        width: 95%;
    }

    .le_service 
    {
        flex-basis: 45%;
    }

    .nous_vendons  .texte ,
    .nous_louons  .texte 
    {
         margin-left: 15px;
    }

    .nous_vendons  .texte h3 ,
    .nous_louons  .texte h3
    { 
        font-size: 1rem; 
    }

    .nous_vendons  .texte p ,
    .nous_louons  .texte p 
    { 
        font-size: 0.8rem; 
    }

    
    .nous_vendons  .texte a ,
    .nous_louons .texte a
    { 
        font-size: 0.6rem; 
    }

    .partenaires_section 
    {
        width: 95%; /* S'aligne sur vos autres blocs principaux à 95% */
    }

    .partenaire_titre p 
    {
        font-size: 0.8rem;
        margin-bottom: 25px;
    }

    .partenaire_logos 
    {
        gap: 20px;
    }

    .logo_item 
    {
        width: 100px;
        height: 50px;
    }
}
