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

:root {
    --primary-color: #DC143C;
    --secondary-color: #000000;
    --accent-color: #8B0000;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-align: center;
}

.section__description {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background: #333;
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.nav__logo img {
    height: 50px;
}

.nav__list {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav__link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav__link:hover, .nav__link.active {
    color: var(--primary-color);
}

.nav__cta {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 50px;
}

.nav__cta:hover {
    background: var(--accent-color);
}

.nav__toggle, .nav__close {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    margin-top: 80px;
    overflow: hidden;
}

.hero__slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero__slide.active {
    opacity: 1;
}

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

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(220,20,60,0.3));
}

.hero__content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero__subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    max-width: 700px;
}

.hero__buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.hero__controls {
    position: absolute;
    bottom: 100px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
    z-index: 20;
}

.hero__prev, .hero__next {
    background: rgba(255,255,255,0.2);
    border: 2px solid var(--white);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.hero__prev:hover, .hero__next:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Terrains */
.terrains {
    background: var(--bg-light);
}

.terrains__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.terrain__card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.terrain__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.terrain__card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.terrain__card h3 {
    padding: 20px;
    color: var(--secondary-color);
}

.terrain__card .btn {
    margin: 0 20px 20px;
    display: block;
    text-align: center;
}

/* Villas */
.villa__info {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin: 40px 0;
}

.villa__info h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
}

.villa__info ul {
    list-style: none;
    margin: 20px 0;
}

.villa__info li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.villas__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.villas__gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.villas__gallery img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

/* À Propos */
.apropos {
    background: var(--bg-light);
}

.apropos__slider {
    position: relative;
    height: 400px;
    margin-bottom: 40px;
    border-radius: 15px;
    overflow: hidden;
}

.apropos__slider img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
}

.apropos__slider img.active {
    opacity: 1;
}

.apropos__text {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.apropos__text h3 {
    color: var(--primary-color);
    margin: 30px 0 15px;
}

.apropos__text ul {
    list-style: none;
}

.apropos__text li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.apropos__text li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Rendez-vous */
.rdv__form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.rdv__form input,
.rdv__form select,
.rdv__form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.rdv__form input:focus,
.rdv__form select:focus,
.rdv__form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.rdv__form button {
    width: 100%;
}

/* Contact */
.contact {
    background: var(--secondary-color);
    color: var(--white);
    text-align: center;
}

.contact .section__title {
    color: var(--white);
}

.contact p {
    margin: 15px 0;
    font-size: 1.1rem;
}

.contact a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #0a0a0a;
    color: var(--white);
    padding: 40px 0 20px;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer__section h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.footer__section ul {
    list-style: none;
}

.footer__section a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer__section a:hover {
    color: var(--primary-color);
}

.footer__copy {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        padding: 80px 30px;
        transition: var(--transition);
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    }

    .nav__menu.show {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav__toggle, .nav__close {
        display: block;
    }

    .nav__close {
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1.1rem;
    }

    .hero__buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }

    .section__title {
        font-size: 2rem;
    }

    .terrains__grid,
    .villas__gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 1.5rem;
    }

    .hero__controls {
        padding: 0 20px;
    }

    .hero__prev, .hero__next {
        width: 40px;
        height: 40px;
    }
}

/* Animations supplémentaires */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.nav__cta {
    animation: pulse 2s infinite;
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.show {
    display: flex;
}

.scroll-top:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
}

/* Loading animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.hide {
    opacity: 0;
    pointer-events: none;
}

.loading__spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--bg-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Amélioration des cartes */
.terrain__card, .villa__info {
    position: relative;
    overflow: hidden;
}

.terrain__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220,20,60,0.2), transparent);
    transition: left 0.5s ease;
}

.terrain__card:hover::before {
    left: 100%;
}

/* Amélioration du formulaire */
.rdv__form input:focus,
.rdv__form select:focus,
.rdv__form textarea:focus {
    box-shadow: 0 0 0 3px rgba(220,20,60,0.1);
}

/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 998;
    text-decoration: none;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37,211,102,0.6);
}
