/* --- CONFIGURATION GÉNÉRALE --- */
:root {
    --primary: #2D8B94;
    --primary-dark: #1f636a;
    --gold: #C5A059;
    --dark: #1a1a1a;
    --light-bg: #F4F7F7;
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- ANIMATIONS KEYFRAMES --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* --- SECTION HERO --- */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2)), 
                url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?q=80&w=2000');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Effet parallaxe léger */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-bottom: 100px;
}

.hero-content h1 {
    font-size: 4.2rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto 50px;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

/* --- BARRE DE RECHERCHE --- */
.search-box {
    background: var(--white);
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    width: 95%;
    max-width: 1100px;
    margin: -80px auto 0; /* Chevauchement sur le Hero */
    position: relative;
    z-index: 10;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.search-form {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.input-group label {
    display: block;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.input-group input, .input-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fdfdfd;
    transition: var(--transition);
}

.input-group input:focus, .input-group select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 10px rgba(45, 139, 148, 0.1);
}

.btn-search {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 18px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-search:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(45, 139, 148, 0.3);
}

/* --- SECTION BIENVENUE (INTRO) --- */
.intro-section { padding: 120px 8%; }

.container-flex {
    display: flex;
    align-items: center;
    gap: 60px;
}

.intro-text { flex: 1; }
.intro-text .subtitle {
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 15px;
}

.intro-text h2 {
    font-size: 3rem;
    font-family: 'Playfair Display', serif;
    color: var(--dark);
    margin-bottom: 25px;
    line-height: 1.2;
}

.intro-image { flex: 1; position: relative; }
.intro-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 20px 20px 0 var(--primary); /* Décalage style moderne */
    transition: var(--transition);
}

.intro-image:hover img { transform: translate(-10px, -10px); }

/* --- CARTES PROPRIÉTÉS --- */
.home-section { padding: 100px 8%; }

.grid-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    transition: var(--transition);
    position: relative;
}

.card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(45, 139, 148, 0.15);
}

.card-img {
    height: 280px;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

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

.tag {
    position: absolute;
    top: 20px; left: 20px;
    background: var(--primary);
    color: white;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    z-index: 2;
}

.card-body { padding: 30px; }

.category-label { color: var(--gold); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; }

.ref-text { font-size: 0.8rem; color: #999; margin: 5px 0; }

.card-body h3 { font-family: 'Playfair Display', serif; font-size: 1.6rem; margin: 10px 0; }

.btn-text {
    display: inline-block;
    margin-top: 20px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.btn-text:hover { letter-spacing: 1px; color: var(--gold); }

/* --- TÉMOIGNAGES --- */
.testimonial-card {
    background: var(--white);
    padding: 50px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.testimonial-card:hover {
    border-bottom-color: var(--primary);
    background: #fff;
    transform: scale(1.05);
}

.user-icon {
    width: 70px; height: 70px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center; justify-content: center;
    font-size: 2rem;
}

/* --- CTA SECTION --- */
.cta-section {
    background: linear-gradient(rgba(45, 139, 148, 0.85), rgba(45, 139, 148, 0.85)), 
                url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=1500');
    background-size: cover;
    background-attachment: fixed;
    padding: 120px 5%;
    color: white;
    text-align: center;
}

.nav-contact-btn {
    display: inline-block;
    background: var(--gold);
    color: white;
    padding: 20px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition);
}

.nav-contact-btn:hover { background: white; color: var(--primary); transform: scale(1.1); }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .container-flex { flex-direction: column; }
    .hero-content h1 { font-size: 3rem; }
    .search-form { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .search-form { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.2rem; }
    .intro-text h2 { font-size: 2.2rem; }
}
/* --- SECTION INTRO PREMIUM --- */
.intro-section {
    padding: 120px 10%;
    background-color: #fff;
}

.intro-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.intro-subtitle {
    display: block;
    color: #2D8B94;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.intro-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 30px;
}

.intro-title .highlight {
    color: #2D8B94;
    font-style: italic;
}

.intro-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
}

.intro-link {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1rem;
    border-bottom: 2px solid #2D8B94;
    padding-bottom: 5px;
    transition: 0.3s;
}

.intro-link:hover {
    color: #2D8B94;
    padding-right: 10px;
}

/* --- IMAGE AVEC BADGE --- */
.intro-image-wrapper {
    position: relative;
    animation: slideInRight 1s ease-out;
}

.intro-image-wrapper img {
    width: 100%;
    border-radius: 4px; /* Un rayon léger est plus luxe qu'un gros arrondi */
    box-shadow: 30px 30px 0px rgba(45, 139, 148, 0.1);
}

.image-experience {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: #2D8B94;
    color: white;
    padding: 25px;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.image-experience strong {
    display: block;
    font-size: 1.8rem;
}


.section-header{
    margin-bottom: 2%;
    text-align: center;
}

/* ==========================================================================
   SYSTÈME DE RÉPONSIVITÉ COMPLET
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-content h1 { font-size: 3rem; }
    .intro-container { gap: 40px; padding: 0 5%; }
}

@media (max-width: 768px) {
    /* --- HERO & SEARCH --- */
    .hero { height: auto; padding: 120px 20px 80px; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1.1rem; }

    .search-box { 
        margin-top: 20px; 
        padding: 20px; 
        width: 100%; 
    }
    .search-form { 
        grid-template-columns: 1fr; /* Empilement vertical sur mobile */
        gap: 15px; 
    }

    /* --- INTRO SECTION --- */
    .intro-section { padding: 60px 5%; }
    .intro-container { 
        grid-template-columns: 1fr; /* Image sous le texte */
        text-align: center; 
    }
    .intro-title { font-size: 1.8rem; }
    .intro-image-wrapper img { box-shadow: 15px 15px 0px rgba(45, 139, 148, 0.1); }
    .image-experience { display: none; } /* On cache le badge pour gagner de l'espace */

    /* --- GRILLES (BIENS & RÉALISATIONS) --- */
    .grid-display { 
        grid-template-columns: 1fr; /* Une seule carte par ligne */
        gap: 20px; 
    }
    .home-section { padding: 50px 5%; }
    
    /* --- TÉMOIGNAGES --- */
    .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.8rem; }
    .btn-search, .nav-contact-btn { width: 100%; text-align: center; }
    
    /* Correction spécifique pour tes images tronquées sur mobile */
    .card-img { height: 200px; }
    .card-body { padding: 20px; }
    .card-body h3 { font-size: 1.2rem; }
}