/* Vacance.css - Styles for Ylang Immo */

/* ========== VARIABLES ET RESET ========== */
:root {
    --primary-color: #2E7D32;
    --secondary-color: #f39c12;
    --light-color: #f9f9f9;
    --dark-color: #333;
    --overlay-color: rgba(10, 90, 125, 0.8);
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-banner {
    background: var(--secondary-color);
    margin-top: 20px;
    font-size: 16px;
    padding: 15px 35px;
}

.btn-service {
    background: #fff;
    color: var(--primary-color);
    margin-top: 20px;
}

.btn-service:hover {
    background: var(--secondary-color);
    color: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* ========== LOADER ========== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-logo {
    width: 150px;
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(10, 90, 125, 0.2);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    margin-top: 20px;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* ========== BACK TO TOP ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 100;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* ========== HEADER ========== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffc107;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    height: 60px;
}

nav ul {
    display: flex;
    gap: 25px;
}

nav ul li a {
    font-weight: 600;
    font-size: 16px;
    position: relative;
    padding: 5px 0;
}

nav ul li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.grid-icon {
    font-size: 28px;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.grid-icon:hover {
    color: var(--secondary-color);
    transform: rotate(90deg);
}

.dropdown {
    position: absolute;
    top: 70px;
    right: 15px;
    background: #fff;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    padding: 15px;
    width: 250px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.app-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.app-icon {
    display: block;
    padding: 10px;
    text-align: center;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
}

.app-icon:hover {
    background: var(--primary-color);
    color: #fff;
}

.hamburger {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    display: none;
}

/* ========== HERO BANNER ========== */
.hero-banner {
    height: 100vh;
    background: linear-gradient(
        rgba(0, 0, 0, 0.5),
        rgba(0, 0, 0, 0.5)
      ),
      url('https://images.unsplash.com/photo-1560448204-e02f11c3d0e2?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1170&q=80') 
      center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 90px;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 90, 125, 0.6);
    display: flex;
    align-items: center;
    justify-content: center; /* si tu veux centrer horizontalement */
}


.banner-content {
    max-width: 800px;
    padding: 0 20px;
    color: #fff;
    text-align: center;
    margin: 0 auto;
}

.banner-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.banner-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

/* ========== SERVICES SECTION ========== */
.services-section {
    padding: 100px 0;
    background: var(--light-color);
}

.intro-box {
    background: var(--primary-color);
    color: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-bottom: 50px;
    box-shadow: var(--box-shadow);
}

.intro-box h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.intro-box h3 span {
    color: var(--secondary-color);
}

.intro-box p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--primary-color);
    z-index: -1;
    transition: var(--transition);
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-card:hover i,
.service-card:hover h4,
.service-card:hover p {
    color: #fff;
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    transition: var(--transition);
}

.service-card p {
    color: #666;
    transition: var(--transition);
}

/* ========== PHOTO GALLERY ========== */
.photo-gallery {
    padding: 100px 0;
    background: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 300px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: #fff;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.price-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary-color);
    color: #fff;
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
}

.gallery-cta {
    text-align: center;
}

.btn-gallery {
    background: var(--secondary-color);
    padding: 15px 40px;
    font-size: 1rem;
}

/* ========== VACATION RENTALS ========== */
.vacation-rentals {
    padding: 100px 0;
    background: var(--light-color);
}

.vacation-rentals .intro-box {
    background: rgba(255, 255, 255, 0.8);
    color: var(--dark-color);
}

.vacation-rentals .intro-box h3 span {
    color: var(--primary-color);
}

/* ========== PROPERTY MANAGEMENT ========== */
.property-management {
    padding: 100px 0;
    background: #fff;
}

.management-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 50px 0;
}

.step-card {
    background: var(--light-color);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.step-card h4 {
    margin: 20px 0 10px;
    color: var(--primary-color);
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.benefit-icon {
    background: var(--primary-color);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.benefit-item h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* ========== FOOTER ========== */
footer {
    background: #2E7D32;
    color: #fff;
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col {
    padding: 0 15px;
}

.footer-logo {
    width: 180px;
    margin-bottom: 20px;
}

.footer-col p {
    margin-bottom: 20px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.footer-col h4 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-col p i {
    margin-right: 10px;
    width: 20px;
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

.newsletter input {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    margin-bottom: 10px;
    font-size: 14px;
}

.newsletter button {
    width: 100%;
    background: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter button:hover {
    background: #e67e22;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-bottom p {
    margin-bottom: 5px;
}

.footer-bottom i {
    color: var(--secondary-color);
    margin: 0 5px;
}

/* ========== ANIMATIONS ========== */
.service-card,
.gallery-item,
.section-header,
.intro-box,
.gallery-cta,
.step-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 992px) {
    .banner-content h1 {
        font-size: 2.8rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    nav ul {
        position: fixed;
        top: 90px;
        left: 0;
        background: #fff;
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: var(--transition);
    }
    
    nav ul.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .banner-content h1 {
        font-size: 2.3rem;
    }
    
    .banner-content p {
        font-size: 1.2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .btn-banner {
        padding: 12px 25px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .intro-box {
        padding: 25px;
    }
    
    .intro-box h3 {
        font-size: 1.5rem;
    }
    
    .service-card {
        padding: 25px;
    }
    
    .gallery-item {
        height: 250px;
    }
}