/* ========================================
   ABGL IMMOBILIER - STYLES COMMUNS
   ======================================== */

/* Reset et Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #910101;
    --primary-dark: #5d0000;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ========================================
   HEADER
   ======================================== */
.header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-red) 100%);
    color: white;
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logo-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-decoration: none;
    color: white;
}

.logo-subtitle {
    font-size: 0.85rem;
    opacity: 0.95;
    font-weight: 300;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.phone {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
}

.client-space {
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.3);
    text-decoration: none;
    color: white;
    display: inline-block;
}

.client-space:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 18px 25px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-red);
    transition: width 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-red);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* ========================================
   CONTENEURS ET SECTIONS
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 20px;
}

.section-light {
    background: var(--bg-light);
}

.section-white {
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--primary-red);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   GRILLES
   ======================================== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* ========================================
   CARDS
   ======================================== */
.card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(145,1,1,0.15);
}

.card-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.card-text {
    color: var(--text-light);
    line-height: 1.8;
}

/* ========================================
   BOUTONS
   ======================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-dark) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(145,1,1,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.btn-outline:hover {
    background: var(--primary-red);
    color: white;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* ========================================
   FORMULAIRES
   ======================================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-red);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-red) 100%);
    color: white;
    padding: 40px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    text-decoration: none;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    color: white;
}

.social-icon:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-3px);
}

.social-icon.facebook:hover {
    background: #3b5998;
}

.social-icon.google:hover {
    background: #db4437;
}

.social-icon.linkedin:hover {
    background: #0077b5;
}

.social-icon.twitter:hover {
    background: #1da1f2;
}

/* ========================================
   UTILITAIRES
   ======================================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.highlight {
    color: var(--primary-red);
    font-weight: bold;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    /* Header fixe et compact */
    .header {
        position: fixed; top: 0; left: 0; right: 0; z-index: 1000; transition: transform 0.3s ease;
    }
    .header.hidden {
        transform: translateY(-100%);
    }
    .header-top {
        padding: 8px 15px; height: 55px;
    }
    .logo-img {
        height: 38px;
    }
    /* Masquer \"Espace Client\" sur mobile */
    .client-space {
        display: none;
    }
    /* Bouton menu hamburger */
    .menu-toggle {
        display: block; background: none; border: none; color: white; font-size: 1.8rem; cursor: pointer; padding: 5px;
    }
    /* Menu en overlay */
    .nav {
        position: fixed; top: 55px; left: 0; right: 0; bottom: 0; background: white; transform: translateX(-100%); transition: transform 0.3s ease; overflow-y: auto; z-index: 999;
    }
    .nav.open {
        transform: translateX(0);
    }
    .nav-menu {
        flex-direction: column;
    }
    /* Ajouter un item \"Espace Client\" au menu mobile */
    .nav-menu::after {
        content: ''; display: block; border-top: 2px solid var(--border-color); margin: 10px 0;
    }
    /* Espace pour le header fixe */
    body {
        padding-top: 55px;
    }
    .logo {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 40px 15px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}