/* ==========================================================================
   1. COULEURS & TYPOGRAPHIE
   ========================================================================== */
:root {
    --primary-color: #A31E5D; /* Rose/Rouge foncé de la charte graphique */
    --text-dark: #333;
    --text-light: #555;
    --footer-bg: #222;
    --footer-text: #b5b5b5;
    --border-color: #ddd;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    font-size: 14px;
    background-color: #fff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */
header {
    background: #fff;
    padding: 25px 0 15px 0;
    border-bottom: 1px solid #eee;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
}

.agency-name {
    font-family: 'Times New Roman', Times, serif;
    font-size: 38px;
    color: var(--primary-color);
    font-weight: bold;
    text-transform: capitalize;
    letter-spacing: -0.5px;
}

.by-team {
    font-size: 13px;
    color: #555;
    align-self: flex-end;
    margin-top: -6px;
    margin-right: 15px;
}

.by-team .med {
    color: var(--primary-color);
    font-weight: bold;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.top-nav ul, .sub-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 15px;
}

.top-nav a {
    color: #666;
    font-size: 13px;
}

.top-nav a.active, .top-nav a:hover {
    color: var(--primary-color);
    font-weight: bold;
}

.sub-nav {
    margin-top: 12px;
}

.sub-nav a {
    color: var(--text-dark);
    font-weight: bold;
    font-size: 14px;
}

.sub-nav i {
    color: #888;
    font-size: 15px;
}

.fav {
    position: relative;
}

.fav .badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    padding: 1px 5px;
    font-size: 10px;
    font-weight: bold;
}

#lang-select {
    border: none;
    background: transparent;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    color: var(--text-dark);
    padding: 0;
}

/* ==========================================================================
   3. BANNIÈRE COMMUNE
   ========================================================================== */
.banner {
    background-image: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.2)), url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?q=80&w=1600&auto=format&fit=crop');
    background-size: cover;
    background-position: center 35%;
    height: 140px;
    color: #fff;
    display: flex;
    align-items: center;
    border-bottom: 4px solid var(--primary-color);
}

.banner-title-wrapper h1 {
    margin: 0;
    font-size: 30px;
    font-weight: normal;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* ==========================================================================
   4. STRUCTURE DE LA PAGE "NOTRE AGENCE"
   ========================================================================== */
.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    padding: 40px 0;
}

.main-text p {
    margin-bottom: 22px;
    color: var(--text-light);
    text-align: justify;
}

.main-text strong {
    color: #000;
}

/* Sidebar & Contacts */
.sidebar h2 {
    color: var(--primary-color);
    font-size: 22px;
    font-weight: normal;
    margin-top: 0;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.contact-block {
    margin-bottom: 30px;
}

.contact-block h3 {
    font-size: 14px;
    margin: 0 0 8px 0;
    font-weight: bold;
    color: #000;
}

.contact-block p {
    margin: 0;
    font-size: 13px;
    color: #555;
}

.contact-details {
    margin-top: 15px;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
}

.contact-details p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.contact-details i {
    color: #444;
    width: 15px;
    text-align: center;
    font-size: 13px;
}

.contact-details a {
    color: var(--text-dark);
}
.contact-details a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.map-container {
    border: 1px solid var(--border-color);
    margin-top: 25px;
    padding: 4px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.map-container iframe {
    display: block;
}

/* ==========================================================================
   5. STRUCTURE DE LA PAGE "TÉMOIGNAGES"
   ========================================================================== */
.testimonials-container {
    padding: 40px 0;
}

.intro-text {
    color: #666;
    font-size: 15px;
    margin-bottom: 25px;
}

.news-item, .testimonial-item {
    border-bottom: 1px dashed #ccc;
    padding: 30px 0;
}

.news-item:last-of-type, .testimonial-item:last-child {
    border-bottom: none;
}

.item-title {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.item-text {
    font-size: 13px;
    color: #444;
    line-height: 1.8;
    margin-bottom: 15px;
}

.item-author {
    font-size: 12px;
    font-weight: bold;
    color: #222;
}

/* Boutons Réseaux Sociaux Internes */
.inline-share {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.inline-share a {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
}

.inline-share a:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.bg-fb { background: #3b5998; }
.bg-tw { background: #00aced; }
.bg-gp { background: #dd4b39; }
.bg-ln { background: #007bb6; }
.bg-bg { background: #f26522; }
.bg-pt { background: #cb2027; }

.btn-read-more {
    display: inline-block;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 18px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
    margin-top: 15px;
    text-decoration: none;
}

.btn-read-more:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ==========================================================================
   6. FOOTER COMPLET
   ========================================================================== */
footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    font-size: 12px;
    padding: 45px 0 25px;
    margin-top: 50px;
}

footer a {
    color: #fff;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

footer strong {
    color: #fff;
    text-transform: uppercase;
}

.footer-top, .footer-middle, .footer-logo-section {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    border-bottom: 1px solid #3d3d3d;
    padding-bottom: 25px;
}

.footer-logo-section {
    border: none;
    margin-bottom: 15px;
    padding-bottom: 0;
}

.agency-info {
    max-width: 42%;
}
.agency-info p {
    margin: 0 0 6px 0;
    line-height: 1.5;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}
.social-links span {
    font-weight: bold;
    color: #fff;
}
.social-links a {
    background: #444;
    color: #fff;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
}
.social-links a:hover {
    background: var(--primary-color);
}

.footer-links {
    display: flex;
    gap: 20px;
    align-items: center;
}
.footer-links a {
    color: var(--footer-text);
}
.footer-links a:hover {
    color: #fff;
}

.share-links {
    display: flex;
    align-items: center;
    gap: 8px;
}
.share-links span {
    font-weight: bold;
    margin-right: 5px;
}
.share-links i {
    color: #fff;
    font-size: 13px;
    border: 1px solid #444;
    padding: 6px;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.share-links a:hover i {
    background: #fff;
    color: var(--footer-bg);
    border-color: #fff;
}

.responsive-design, .adapt-immo {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 48%;
}

.responsive-design i {
    font-size: 28px;
    color: #666;
}

.responsive-design span {
    line-height: 1.5;
    color: #8a8a8a;
}

.adapt-immo {
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}
.adapt-immo span {
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}
.adapt-immo .immo {
    color: var(--primary-color);
    font-weight: bold;
}
.adapt-immo .details {
    font-size: 10px;
    text-transform: none;
    text-align: right;
    color: #777;
    margin-top: 4px;
}

/* Grille des Communes */
.footer-locations {
    display: flex;
    justify-content: space-between;
    color: #777;
    font-size: 11px;
    border-top: 1px solid #3d3d3d;
    padding-top: 20px;
}
.footer-locations ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 22%;
}
.footer-locations li {
    margin-bottom: 5px;
}
.footer-locations li:hover {
    color: #bbb;
    cursor: pointer;
}

/* ==========================================================================
   7. RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Tablettes et petits écrans d'ordinateurs */
@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 18px;
    }
    
    .header-right {
        align-items: center;
    }
    
    .logo {
        align-items: center;
    }
    
    .by-team {
        align-self: center;
        margin-right: 0;
    }
    
    .agency-info {
        max-width: 100%;
        width: 100%;
    }
}

/* Écrans Mobiles */
@media (max-width: 768px) {
    .banner {
        height: 110px;
    }
    
    .banner h1 {
        font-size: 24px;
    }
    
    .top-nav ul, .sub-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .footer-top, .footer-middle, .footer-locations, .footer-logo-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    
    .footer-links, .share-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-locations ul {
        width: 100%;
        margin-bottom: 0;
    }
    
    .responsive-design, .adapt-immo {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .adapt-immo {
        align-items: center;
    }
    
    .adapt-immo .details {
        text-align: center;
    }
}