/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Palette moderne et sophistiquée */
    --primary-color: #1a202c;
    --secondary-color: #2d3748;
    --accent-color: #e53e3e;
    --accent-light: #feb2b2;
    --luxury-color: #2d3748;
    --nature-color: #38a169;
    --nature-light: #68d391;
    
    /* Couleurs de texte */
    --text-light: #ffffff;
    --text-dark: #1a202c;
    --text-muted: #718096;
    --text-accent: #4a5568;
    
    /* Backgrounds */
    --background-light: #f7fafc;
    --background-white: #ffffff;
    --background-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* Bordures et ombres */
    --border-light: #e2e8f0;
    --border-medium: #cbd5e0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 25px 50px rgba(0, 0, 0, 0.15);
    
    /* Gradients modernes */
    --gradient-luxury: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-nature: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warm: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-cool: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    --gradient-dark: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    
    /* Animations */
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-light);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-luxury);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-warm);
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-normal);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    background: var(--gradient-luxury);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    transition: var(--transition-normal);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition-fast);
    position: relative;
}

.nav-menu a:hover {
    color: var(--accent-color);
    background-color: rgba(102, 126, 234, 0.1);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 100vh;
    padding: 120px 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
}

.hero-content {
    padding-right: 2rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-accent);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-weight: 400;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: var(--gradient-luxury);
    color: var(--text-light);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition-normal);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-hover);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img-container {
    width: 100%;
    height: 400px;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: var(--transition-normal);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-normal);
}

.hero-overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0;
    transition: var(--transition-normal);
}

.hero-img-container:hover .hero-overlay-text {
    opacity: 1;
}

.hero-img-container:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.hero-img-container:hover .hero-img {
    transform: scale(1.1);
}

.hero-placeholder {
    width: 100%;
    height: 400px;
    background: var(--gradient-luxury);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.2rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
}

.hero-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.hero-placeholder:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* Sections */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-luxury);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-luxury);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Experiences Section */
.experiences {
    padding: 5rem 0;
    background: var(--background-white);
    position: relative;
}

.experiences::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.experiences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 1200px) {
    .experiences-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.experience-card {
    background: var(--background-white);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    border: 1px solid var(--border-light);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-luxury);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.experience-card:hover::before {
    transform: scaleX(1);
}

.experience-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.card-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-normal);
    border: none;
    display: block;
    opacity: 1 !important;
    transform: none !important;
}

.experience-card:hover .card-img {
    transform: scale(1.05) !important;
}

/* S'assurer que les cartes d'expériences sont visibles */
.experience-card {
    opacity: 1 !important;
    transform: none !important;
}

/* Styles pour les placeholders (gardés pour compatibilité) */
.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-light);
    transform: none !important; /* Empêcher les effets de parallax sur les cartes */
}

.loft-image {
    background: var(--gradient-luxury);
    position: relative;
}

.loft-image::after {
    content: '✨';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    opacity: 0.7;
}

.nature-image {
    background: var(--gradient-nature);
    position: relative;
}

.nature-image::after {
    content: '🌿';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    opacity: 0.3;
}

.cosy-image {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #4facfe 100%);
    position: relative;
}

.cosy-image::after {
    content: '🏡';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    opacity: 0.3;
}

.experience-card.urban {
    border: 1px solid rgba(240, 147, 251, 0.2);
}

.experience-card.urban:hover {
    box-shadow: 0 25px 50px rgba(240, 147, 251, 0.3);
}

.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.card-location {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 500;
}

.card-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.feature {
    background: var(--background-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-dark);
    border: 1px solid var(--border-light);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-luxury);
    transition: var(--transition-normal);
    z-index: -1;
}

.feature:hover::before {
    left: 0;
}

.feature:hover {
    color: var(--text-light);
    border-color: transparent;
    transform: translateY(-2px);
}

.card-actions {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    padding-top: 1.5rem;
}

.btn-primary, .btn-secondary {
    padding: 0.8rem 1.2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-normal);
    text-align: center;
    display: inline-block;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    isolation: isolate; /* new stacking context to keep pseudo-elements inside */
}

/* Buttons inside cards: fixed width for perfect alignment */
.card-actions .btn-primary,
.card-actions .btn-secondary {
    width: 140px;
    flex-shrink: 0;
}

/* CTA block buttons: allow full text */
.cta-buttons .btn-primary,
.cta-buttons .btn-secondary {
    width: auto;
    min-width: 200px;
}

.btn-primary {
    background: var(--gradient-luxury);
    color: var(--text-light);
    box-shadow: var(--shadow-md);
    overflow: hidden; /* clip the shine effect inside the button */
    box-sizing: border-box;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition-normal);
    z-index: 0;
    border-radius: 30px;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-luxury);
    transition: all 0.3s ease;
    z-index: -1;
    border-radius: 30px;
}

.btn-secondary:hover::before {
    left: 0;
}

.btn-secondary:hover {
    color: var(--text-light);
    border-color: var(--primary-color);
}

/* About Section */
.about {
    padding: 5rem 0;
    background: var(--background-light);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.about p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Language switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.lang-sep { opacity: 0.5; }

.lang-btn {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-light);
    padding: 0.35rem 0.6rem;
    line-height: 1;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
}

.lang-btn:hover, .lang-btn.active {
    background: var(--gradient-luxury);
    color: var(--text-light);
    border-color: transparent;
}

.feature-item {
    text-align: center;
    padding: 2.5rem;
    background: var(--background-white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-luxury);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: var(--gradient-dark);
    color: var(--text-light);
    padding: 3rem 0 1rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

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

.footer-brand h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-links h4, .footer-contact h4 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

/* Footer links: improved visuals */
.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    padding-left: 1.1rem;
    transition: color 0.25s ease;
}

.footer-section ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gradient-luxury);
    box-shadow: 0 0 8px rgba(255,255,255,0.3);
    transition: transform 0.25s ease;
}

.footer-section ul li a::after {
    content: '';
    position: absolute;
    left: 1.1rem;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    border-radius: 2px;
    transition: width 0.25s ease;
}

.footer-section ul li a:hover {
    color: #ffffff;
}

.footer-section ul li a:hover::before {
    transform: translateY(-50%) scale(1.3);
}

.footer-section ul li a:hover::after {
    width: calc(100% - 1.1rem);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 100px 1rem 2rem;
        gap: 2rem;
    }
    
    .hero-content {
        padding-right: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .experiences-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .nav {
        padding: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .card-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-primary, .btn-secondary {
        min-width: auto;
        width: 100%;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .experiences-grid {
        grid-template-columns: 1fr;
    }
    
    .experience-card {
        margin: 0 1rem;
    }
}
