/* 
 * K2I (Khayrun Immo Impact) - Stylesheet
 * Colors: Dark Green, Gold, White
 * Fonts: Outfit (Headings), Inter (Body)
 */

:root {
    --primary-color: #131C2D; /* Bleu Marine Foncé du logo */
    --primary-light: #1e2b45;
    --secondary-color: #C39953; /* Or du logo */
    --secondary-light: #d6b372;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #F8F9FA;
    --bg-dark: #0a101a; /* Fond très sombre */
    --white: #FFFFFF;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 40px rgba(11, 61, 46, 0.15);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    text-align: justify;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.section-padding {
    padding: 100px 0;
}

.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.text-gold { color: var(--secondary-color) !important; }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.w-100 { width: 100%; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--secondary-light);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

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

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-primary-outline {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 600;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(19, 28, 45, 0.95); /* Assorti au fond du logo */
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(19, 28, 45, 0.98);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
    transition: height 0.3s ease;
    /* Le logo a un fond bleu marine, plus besoin de mix-blend-mode car la navbar est de la même couleur */
}

.navbar.scrolled .logo-img {
    height: 40px; /* Le logo rétrécit au défilement */
}

.footer .logo-img {
    mix-blend-mode: normal; /* Dans le footer sombre, on garde l'affichage normal */
    height: 60px;
    border-radius: 5px; /* Adoucit les bords si fond blanc */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--white);
    position: relative;
}

.nav-links a:not(.btn-primary-outline)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary-outline):hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background-image: url('images/accueil.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(19, 28, 45, 0.9), rgba(19, 28, 45, 0.4));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 20px;
    text-align: left !important;
    word-spacing: normal !important;
    letter-spacing: normal !important;
}

.hero p {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 40px;
    font-weight: 300;
    text-align: left;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Section Titles */
.section-title {
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-title.text-white h2::after {
    background-color: var(--secondary-color);
}

/* About Section */
.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.about-text h3 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: left;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    text-align: left;
}

.about-features {
    margin-top: 30px;
}

.about-features li {
    margin-bottom: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-features i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.about-image {
    flex: 1;
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 30px;
    border-radius: 50%;
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 5px solid var(--white);
    box-shadow: var(--shadow);
}

.experience-badge .number {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--secondary-color);
}

.experience-badge .text {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
}

.ceo-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(19, 28, 45, 0.85);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    border-left: 4px solid var(--secondary-color);
    backdrop-filter: blur(5px);
    z-index: 2;
}

.ceo-title h4 {
    color: var(--secondary-color);
    margin: 0;
    font-size: 1.2rem;
    text-align: left;
}

.ceo-title span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--secondary-color);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--secondary-color);
    color: var(--white);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Valeurs Section */
.valeurs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    text-align: center;
}

.valeur-item {
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.valeur-item:hover {
    transform: translateY(-5px);
}

.valeur-item .icon-box {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: var(--transition);
}

.valeur-item:hover .icon-box {
    color: var(--secondary-color);
    transform: scale(1.1);
}

/* Pourquoi Section */
.pourquoi {
    position: relative;
    background-image: linear-gradient(rgba(7, 40, 30, 0.9), rgba(7, 40, 30, 0.9)), url('images/hero.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
    margin-top: 50px;
}

.stat-box {
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(5px);
}

.stat-number {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* Réalisations Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: auto;
    background-color: var(--white);
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: relative;
    padding: 20px;
    background: var(--white);
    color: var(--text-color);
    text-align: center;
}

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

.gallery-overlay h4 {
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-size: 1.5rem;
}

/* Témoignages Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
}

.quote-icon {
    font-size: 3rem;
    color: rgba(212, 175, 55, 0.2);
    position: absolute;
    top: 20px;
    right: 30px;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.testimonial-author h5 {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.testimonial-author span {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* Contact Section */
.contact-wrapper {
    display: flex;
    gap: 50px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.contact-info {
    flex: 1;
    background: var(--primary-color);
    color: var(--white);
    padding: 50px;
}

.contact-info .section-title h2 {
    color: var(--white);
}

.contact-info .section-title h2::after {
    left: 0;
    transform: none;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.info-item h4 {
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-form-container {
    flex: 1.5;
    padding: 50px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

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

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #ccc;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-col ul li i {
    color: var(--secondary-color);
    margin-right: 10px;
    width: 15px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: var(--white);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #888;
    font-size: 0.9rem;
}

/* Floating Elements */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 999;
    transition: transform 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    color: white;
}

.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 999;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background-color: var(--secondary-color);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible,
.slide-in-left.visible,
.slide-in-right.visible {
    opacity: 1;
    transform: translate(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Lightbox Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.modal-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 5px;
    object-fit: contain;
    animation: zoom 0.3s ease;
}

#modalCaption {
    text-align: center;
    color: var(--secondary-color);
    padding: 15px 0;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    animation: zoom 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--secondary-color);
}

@keyframes zoom {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.gallery-item {
    cursor: pointer;
}
/* Responsive Design */
@media (max-width: 992px) {
    .about-container {
        flex-direction: column;
    }
    
    .experience-badge {
        bottom: -20px;
        right: 20px;
        width: 120px;
        height: 120px;
    }
    
    .contact-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
        transition: right 0.4s ease;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hamburger {
        display: block;
        z-index: 1001;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section-padding {
        padding: 60px 0;
    }
}

@keyframes panBackground {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulseButton {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

@media (max-width: 480px) {
    .hero {
        background-attachment: scroll; /* Fix for mobile */
        animation: panBackground 25s ease-in-out infinite;
    }
    
    .hero h1 {
        font-size: clamp(1.2rem, 7vw, 1.8rem);
        white-space: nowrap;
    }
    
    .about-text h3 {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .hero-buttons .btn-primary {
        animation: pulseButton 2s infinite;
    }
}
