/* RESET & FONTS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #4a4a4a;
    background-color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
}

/* HEADER */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    border-bottom: 1px solid #e0e0e0;
}

/* STYLE DU NOUVEAU LOGO TEXTUEL */
.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.logo-brand {
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    color: #c2245c; /* Rose de la charte graphique */
    letter-spacing: 2px;
}

.logo-sub {
    font-size: 11px;
    text-transform: uppercase;
    color: #333333;
    letter-spacing: 1px;
    font-weight: 400;
}

.nav-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.top-nav a, .bottom-nav a {
    text-decoration: none;
    color: #828282;
    font-size: 13px;
}

.top-nav {
    display: flex;
    gap: 20px;
}

.top-nav a.active-link {
    color: #c2245c;
    font-weight: bold;
}

.bottom-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.bottom-nav a {
    color: #333;
    font-weight: 500;
}

.bottom-nav i {
    font-size: 16px;
    color: #666;
}

.heart-icon {
    display: flex;
    align-items: center;
    color: #c2245c !important;
}

.heart-icon span {
    background: #c2245c;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
    margin-left: 3px;
}

.lang-select {
    border: none;
    border-bottom: 2px solid #c2245c;
    font-weight: bold;
    cursor: pointer;
}

/* CSS GRID - GRILLE D'IMAGES ASYMÉTRIQUE */
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 280px 280px;
    gap: 15px;
    padding: 20px;
}

.grid-item {
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

/* Attribution des fausses images en arrière-plan */
.ventes { grid-column: 1 / 4; grid-row: 1; background-image: url('img/imageye___-_imgi_45_home-grid1.jpg'); }
.locations { grid-column: 4 / 5; grid-row: 1 / 3; background-image: url('img/imageye___-_imgi_46_home-grid2.jpg'); }
.vendus { grid-column: 1 / 2; grid-row: 2; background-image: url('img/imageye___-_imgi_47_home-grid3.jpg'); }
.gestion { grid-column: 2 / 4; grid-row: 2; background-image: url('img/imageye___-_imgi_48_home-grid4.jpg'); }
.exclusivites { grid-column: 2 / 4; grid-row: 3; background-image: url('img/imageye___-_imgi_49_home-grid5.jpg'); display: none; } 

/* Effet overlay et boutons sur la grille */
.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
}

.grid-item:hover .overlay {
    background: rgba(0, 0, 0, 0.4);
}

.grid-btn {
    border: 2px solid #ffffff;
    color: #ffffff;
    text-decoration: none;
    padding: 8px 20px;
    font-weight: bold;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.grid-item:hover .grid-btn {
    background: #ffffff;
    color: #333;
}

.hover-text {
    color: white;
    margin-top: 10px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
}

.grid-item:hover .hover-text {
    opacity: 1;
}

/* BANDEAU ROSE (ESTIMATION) */
.estimation-banner {
    background-color: #c2245c;
    color: white;
    text-align: center;
    padding: 40px 20px;
}

.estimation-banner h2 {
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 400;
}

.btn-outline {
    border: 2px solid white;
    color: white;
    text-decoration: none;
    padding: 10px 25px;
    font-weight: bold;
    display: inline-block;
    transition: background 0.3s;
}

.btn-outline:hover {
    background: white;
    color: #c2245c;
}

/* NOTRE AGENCE & ACTUALITÉS */
.info-section {
    display: flex;
    padding: 40px 20px;
    gap: 30px;
    background: #fdfdfd;
}

.about-box {
    flex: 2;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('img/imageye___-_imgi_50_bg-home-agence.jpg');
    background-size: cover;
    padding: 30px;
    border: 1px solid #eee;
    opacity: 0.5;
}

.about-box h3, .news-box h3 {
    font-size: 20px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    color:white;
}

.about-box h3::after, .news-box h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #c2245c;
    margin: 8px auto 0 auto;
}

.about-box p {
    margin-bottom: 15px;
    color: #fff;
    text-align: justify;
    font-size: 13px;
}

.btn-filled {
    display: block;
    width: fit-content;
    margin: 20px auto 0 auto;
    background: #c2245c;
    color: white;
    text-decoration: none;
    padding: 10px 25px;
    font-weight: bold;
}

.news-box {
    flex: 1;
    background: #F3F5F6;
    border: 1px solid #eee;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    color: #333;
}
.news-box h3 {
    color: #333;
}
.slider-container {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    margin: 30px 0;
}

.arrow-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #333;
}

.news-content {
    text-align: center;
}

.news-content h4 {
    font-size: 16px;
    margin-bottom: 15px;
}

.read-more {
    color: #c2245c;
    text-decoration: underline;
}

.social-follow {
    text-align: center;
}

.social-follow span {
    font-weight: bold;
    font-size: 12px;
    display: block;
    margin-bottom: 10px;
}

.social-icons-pink a, .footer-follow a {
    display: inline-block;
    background: #c2245c;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    line-height: 30px;
    margin: 0 5px;
    text-align: center;
}

/* FOOTER */
.main-footer {
    background-color: #333333;
    color: #b0b0b0;
    padding: 40px 40px 20px 40px;
    font-size: 12px;
}

.footer-top-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-top-info p {
    line-height: 1.8;
}

.footer-top-info strong {
    color: #fff;
}

.footer-top-info a {
    color: #b0b0b0;
    background: #111;
    padding: 2px 5px;
    text-decoration: none;
}

.footer-follow {
    margin-top: 10px;
}

.footer-follow span {
    color: white;
    font-weight: bold;
    margin-right: 10px;
}

.footer-links-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.legal-links a {
    color: #888;
    text-decoration: none;
    margin-right: 15px;
}

.share-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-links a {
    color: #fff;
    border: 1px solid #555;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.footer-divider {
    border: 0;
    height: 1px;
    background: #444;
    margin: 20px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #777;
}

.responsive-tag {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 60%;
}

.responsive-tag i {
    font-size: 24px;
}

.partner-logo {
    text-align: right;
}

.partner-logo span {
    font-weight: bold;
    color: #aaa;
    font-size: 16px;
}

/* ==========================================================================
   CODE RESPONSIVE
   ========================================================================== */

/* --- TABLETTES & ÉCRANS MOYENS (Moins de 992px) --- */
@media screen and (max-width: 992px) {
    .main-header {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .nav-container {
        align-items: center;
        width: 100%;
    }

    .top-nav, .bottom-nav {
        justify-content: center;
        width: 100%;
    }

    .info-section {
        flex-direction: column;
        gap: 20px;
    }

    .about-box {
        opacity: 0.9;
    }
}

/* --- SMARTPHONES (Moins de 768px) --- */
@media screen and (max-width: 768px) {
    .top-nav {
        flex-wrap: wrap;
        gap: 10px 15px;
    }

    .bottom-nav {
        flex-wrap: wrap;
        gap: 10px 12px;
    }

    .grid-container {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 220px);
        gap: 15px;
        padding: 15px;
    }

    .grid-item.ventes, 
    .grid-item.locations, 
    .grid-item.vendus, 
    .grid-item.gestion {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .estimation-banner {
        padding: 30px 15px;
    }

    .estimation-banner h2 {
        font-size: 18px;
    }

    .footer-links-row {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .legal-links {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .legal-links a {
        margin-right: 0;
    }

    .share-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .responsive-tag {
        max-width: 100%;
        flex-direction: column;
        text-align: center;
    }

    .partner-logo {
        text-align: center;
    }
}
/* ==========================================================================
   DESIGN ET POSITIONNEMENT DU LOGO
   ========================================================================== */

.logo {
    display: flex;
    flex-direction: column; /* Aligne le nom de l'agence et le "by TEAM" verticalement */
}

.agency-name {
    font-family: 'Times New Roman', Times, serif; /* Style serif élégant proche de l'original */
    font-size: 38px;
    color: #A31E5D; /* Le rose/bordeaux distinctif de la charte graphique */
    font-weight: bold;
    text-transform: capitalize; /* Met la première lettre en majuscule */
    letter-spacing: -0.5px; /* Rapproche légèrement les lettres */
    line-height: 1;
}

.by-team {
    font-size: 13px;
    color: #555;
    align-self: flex-end; /* Aligne le bloc "by TEAM" sur la droite sous le nom */
    margin-top: -6px;
    margin-right: 15px;
}

.by-team .med {
    color: #A31E5D; /* Rappel de la couleur principale sur le mot "med" */
    font-weight: bold;
}

/* Ajustement responsive pour les smartphones */
@media (max-width: 992px) {
    .logo {
        align-items: center; /* Centre le logo sur mobile et tablette */
    }
    .by-team {
        align-self: center; /* Centre également le sous-texte sur petit écran */
        margin-right: 0;
    }
}