* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --green: #095357;
    --gold: #D4AF37;
    --cream: #F5F1E8;
    --dark: #2C2C2C;
    --white: #ffffff;
    --gray: #f8f9fa;
    --border: #e0e0e0;
    --nav-width: 280px;
}

body { 
    font-family: 'Lato', sans-serif; 
    color: var(--dark);
    background: var(--cream);
    overflow-x: hidden;
    padding-bottom: 0;
}

/* NAVIGATION SIDEBAR */
.side-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--nav-width);
    height: 100vh;
    background: var(--green);
    z-index: 100;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.logo-section {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--gold);
    margin-bottom: 2rem;
}

.logo {
    display: block;
    height: 100px;
    width: auto;
    margin: 0 auto;
}

.nav-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-divider {
    height: 2px;
    background: rgba(245, 241, 232, 0.2);
    margin: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    color: var(--cream);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: var(--gold);
    transition: width 0.3s ease;
    z-index: -1;
}

.nav-item:hover::before,
.nav-item.active::before {
    width: 100%;
}

.nav-item:hover,
.nav-item.active {
    color: var(--dark);
    transform: translateX(10px);
}

.nav-icon {
    font-size: 1.3rem;
    min-width: 30px;
}

.nav-footer {
    padding-top: 1.5rem;
    border-top: 2px solid rgba(245, 241, 232, 0.2);
    text-align: center;
}

.user-info {
    color: var(--cream);
}

.theme-badge {
    background: var(--gold);
    color: var(--dark);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-block;
    margin-top: 0.5rem;
}

/* FLOATING MENU MOBILE */
.floating-menu {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(9, 83, 87, 0.4);
}

.floating-menu-items {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.floating-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(245, 241, 232, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cream);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.floating-item:hover,
.floating-item.active {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
    transform: scale(1.15);
}

/* MAIN CONTENT */
.main-content {
    margin-left: var(--nav-width);
    min-height: 100vh;
}

/* HERO SECTION */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(9, 83, 87, 0.1), rgba(212, 175, 55, 0.1)), var(--cream);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    padding: 0 5%;
    position: relative;
}

.hero-text {
    max-width: 600px;
}

.hero-label {
    display: inline-block;
    background: var(--gold);
    color: var(--cream);
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    animation: slideInLeft 0.8s ease;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--green);
    line-height: 1.1;
    margin-bottom: 2rem;
    animation: slideInLeft 0.8s ease 0.2s backwards;
}

.hero h1 .highlight {
    color: var(--gold);
    font-style: italic;
}

.hero p {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 3rem;
    line-height: 1.8;
    animation: slideInLeft 0.8s ease 0.4s backwards;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    animation: slideInLeft 0.8s ease 0.6s backwards;
}

.btn {
    padding: 1.2rem 3rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--green);
    color: var(--cream);
    box-shadow: 0 5px 20px rgba(9, 83, 87, 0.3);
}

.btn-primary:hover {
    background: var(--gold);
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--green);
    border: 2px solid var(--green);
}

.btn-secondary:hover {
    background: var(--green);
    color: var(--cream);
}

.btn-gold {
    background: var(--gold);
    color: var(--dark);
}

.btn-gold:hover {
    background: var(--green);
    color: var(--cream);
}

.hero-visual {
    position: relative;
    height: 600px;
    animation: slideInRight 0.8s ease 0.4s backwards;
}

.visual-card {
    position: absolute;
    background: var(--green);
    border-radius: 20px;
    padding: 2rem;
    color: var(--cream);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.visual-card-1 {
    width: 300px;
    height: 150px;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, var(--green), var(--gold));
}

.visual-card-2 {
    width: 300px;
    height: 150px;
    bottom: 0;
    right: 0;
    background: var(--gold);
    color: var(--dark);
}

.visual-stat {
    margin-bottom: 2rem;
}

.visual-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.visual-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* SECTIONS */
.section {
    padding: 5rem 5%;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-tag {
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--green);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--dark);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* PROPERTIES GRID */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.property-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.property-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.property-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--green), var(--gold));
    position: relative;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--cream);
    color: var(--green);
    padding: 0.5rem 1.2rem;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 5px;
}

.property-price {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--gold);
    color: var(--dark);
    padding: 0.8rem 1.5rem;
    font-weight: 700;
    font-size: 1.3rem;
    border-radius: 10px;
}

.property-info {
    padding: 2rem;
}

.property-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--green);
    margin-bottom: 0.8rem;
}

.property-location {
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.property-features {
    display: flex;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--cream);
    color: var(--dark);
    flex-wrap: wrap;
}

/* FORMS */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Lato', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(9, 83, 87, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

select.form-control {
    cursor: pointer;
}

.form-text {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.3rem;
}

/* ALERTS */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* CARDS */
.card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.card-header {
    border-bottom: 2px solid var(--cream);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--green);
}

.card-body {
    padding: 1rem 0;
}

/* TABLE */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.table thead {
    background: var(--green);
    color: var(--cream);
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table tbody tr:hover {
    background: var(--gray);
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-danger  { background: #f8d7da; color: #721c24; }
.badge-info    { background: #d1ecf1; color: #0c5460; }

/* FOOTER */
footer {
    background: var(--green);
    color: var(--cream);
    padding: 4rem 5% 2rem;
    margin-left: var(--nav-width);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--gold);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--cream);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--gold);
}

.footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(245, 241, 232, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--gold);
    color: var(--dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid rgba(245, 241, 232, 0.2);
    opacity: 0.7;
}

/* ANIMATIONS */
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* UTILITY — globales, en dehors de tout media query */
.hidden {
    opacity: 0;
    transform: translateY(30px);
}

.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.error {
    border-color: red;
}

.file-selected {
    color: var(--green);
    font-weight: 600;
}

.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.price-display {
    color: var(--gold);
    margin-left: 10px;
    font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .side-nav {
        display: none;
    }

    .floating-menu {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

    footer {
        margin-left: 0;
    }

    body {
        padding-bottom: 100px;
    }

    .hero {
        grid-template-columns: 1fr;
        height: auto;
        padding: 4rem 5%;
    }

    .hero-visual {
        display: none;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .properties-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .floating-menu {
        bottom: 10px;
        padding: 0.6rem 1rem;
    }

    .floating-item {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 2rem 1.5rem;
    }
}