/* palette moderne et chaleureuse */
:root {
    --primary: #f3dfc1; /* Crème chaleureux */
    --primary-hover: #e5cdab;
    --dark: #1a1512; /* Brun très sombre presque noir */
    --light-bg: #fbf8f5; /* Fond beige très clair */
    --white: #ffffff;
    --gray: #7a736c;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background-color: var(--white);
    margin: 0;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

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

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 50px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }

/* Boutons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--dark);
    border: none;
    box-shadow: 0 4px 15px rgba(243, 223, 193, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 223, 193, 0.5);
}

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

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

/* Header */
/* --- Header & Navigation --- */
.main-header {
    background: var(--white);
    padding: 15px 0;
    position: sticky; /* Reste collé sur ordinateur */
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

/* 👇 LA CORRECTION POUR MOBILE 👇 */
@media (max-width: 992px) {
    .main-header {
        position: relative; /* Le menu ne suit plus le scroll sur mobile */
        box-shadow: none;   /* On enlève l'ombre pour un look plus léger */
    }
}

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

.logo {
    font-size: 22px;
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
}

.logo-bold {
    font-weight: 800;
    color: var(--gray);
}

.nav-bar ul {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-bar a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

.nav-bar a:hover, .nav-bar a.active {
    color: var(--gray);
}

.btn-cta-phone {
    text-decoration: none;
    background-color: #f5f5f5;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
    transition: var(--transition);
}

.btn-cta-phone:hover {
    background-color: var(--primary);
}

/* Hero */
.hero {
    position: relative;
    background-image: url('header.jpg'); /* On utilise ta 4eme photo en fond d'ambiance floutée/sombre */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 160px 0;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26, 21, 18, 0.75); /* Voile sombre pour lisibilité */
}

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

.hero-tagline {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    color: #e0e0e0;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Features Boxes */
.features {
    padding: 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.feature-box {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    text-align: center;
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-box i {
    font-size: 36px;
    color: var(--gray);
    margin-bottom: 20px;
}

.feature-box h3 {
    margin-bottom: 15px;
}

/* Section Général Titles */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.subtitle {
    display: block;
    color: var(--gray);
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

/* Services */
.services {
    padding: 100px 0;
    background-color: var(--light-bg);
}

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

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid #f0e6db;
}

.service-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.service-icon {
    font-size: 32px;
    color: var(--dark);
    margin-bottom: 24px;
    background: var(--primary);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

/* Galerie Portfolio (Tes 4 Photos) */
.realisations {
    padding: 100px 0;
}

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

.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 350px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    cursor: pointer; /* Change le curseur en main au survol */
}

.portfolio-item:hover img {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: var(--transition);

    /* 👇 LA LIGNE À AJOUTER ICI 👇 */
    pointer-events: none; 
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay span {
    color: var(--white);
    font-weight: 600;
    font-size: 16px;
}

/* Contact Area & Form */
.contact-area {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.geo-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 40px;
}

.geo-list li {
    margin-bottom: 12px;
    font-weight: 500;
}

.geo-list i {
    color: var(--gray);
    margin-right: 10px;
}

.contact-details p {
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-form-container {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.contact-form-container h3 {
    margin-bottom: 24px;
}

input, textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
}

.btn-block {
    width: 100%;
}

/* Footer */
.main-footer {
    background: var(--dark);
    color: var(--white);
    padding: 40px 0;
    font-size: 14px;
}

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

.footer-links a {
    color: var(--white);
    text-decoration: underline;
}
/* ==========================================================================
   🌀 Style de la Lightbox (Agrandissement Photo)
   ========================================================================== */

/* Conteneur principal (le fond sombre) */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 21, 18, 0.9); /* Utilisation de ta couleur var(--dark) */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000; /* Au-dessus de la nav-bar */
    opacity: 0; /* Caché par défaut */
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    cursor: zoom-out; /* Indique qu'on peut fermer en cliquant */
}

/* Quand la lightbox est active */
.lightbox.active {
    opacity: 1;
    visibility: visible;
}

/* L'image à l'intérieur de la lightbox */
.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    
    /* Animation d'entrée : zoom depuis le petit */
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Animation finale de l'image */
.lightbox.active .lightbox-content {
    transform: scale(1);
}
/* ==========================================================================
   📱 Menu Mobile (Burger)
   ========================================================================== */

.mobile-menu-btn {
    display: none; /* Caché sur ordinateur */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    z-index: 2001;
}

@media (max-width: 992px) {
    .mobile-menu-btn {
        display: block; /* Visible sur mobile/tablette */
    }

    .header-flex {
        justify-content: space-between;
        padding: 10px 0;
    }

    .nav-bar {
        position: fixed;
        top: 0;
        right: -100%; /* Caché hors de l'écran à droite */
        width: 80%;
        height: 100vh;
        background: var(--white);
        box-shadow: -10px 0 20px rgba(0,0,0,0.1);
        z-index: 2000;
        transition: 0.4s ease-in-out;
        padding-top: 100px;
    }

    /* Quand on ajoute la classe 'active' via JS */
    .nav-bar.active {
        right: 0;
    }

    .nav-bar ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .nav-bar a {
        font-size: 1.2rem;
    }

    .btn-cta-phone {
        display: none; /* On cache le bouton téléphone du header sur petit mobile pour gagner de la place */
    }
}

/* On s'assure que les colonnes passent à 1 seule sur mobile */
@media (max-width: 600px) {
    .hero h1 { font-size: 28px; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
}