/* ==========================================================================
   VARIABLES ET PALETTE DE COULEURS - MK CALVEZ (Version Flash)
   ========================================================================== */
:root {
    --dark: #181715;          /* Noir Anthracite / Ardoise de chantier */
    --flash-brown: #c26d2b;   /* Marron Cuivré Éclatant / Terre Cuite Flash */
    --accent: #e07a2c;        /* Orange Ambre au survol */
    --light-bg: #fdfbf7;      /* Fond Crème clair et chaleureux */
    --white: #ffffff;
    --title-font: 'Oswald', sans-serif;
    --main-font: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   RESET & STYLES GÉNÉRAUX
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--main-font);
    background-color: var(--light-bg);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

/* Titres */
h1, h2, h3, h4 {
    font-family: var(--title-font);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Boutons */
.btn-main {
    display: inline-block;
    padding: 14px 35px;
    background: var(--flash-brown);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-family: var(--title-font);
    text-transform: uppercase;
    font-size: 1.05rem;
    border-radius: 4px;
    border: none;
    box-shadow: 0 4px 15px rgba(194, 109, 43, 0.3);
    transition: var(--transition);
    cursor: pointer;
}

.btn-main:hover {
    background: var(--dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Titre de Section Universel */
.section-title {
    text-align: center;
    font-size: 2.6rem;
    margin-bottom: 50px;
    color: var(--dark);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--flash-brown);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ==========================================================================
   HEADER / NAVIGATION (Design Moderne Flottant)
   ========================================================================== */
#main-header {
    position: fixed;
    width: 94%;
    left: 3%;
    top: 20px;
    z-index: 1000;
    background: rgba(24, 23, 21, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--flash-brown);
    padding: 12px 30px;
    border-radius: 2px;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-box {
    text-decoration: none;
    color: var(--white);
}

.logo-title {
    font-family: var(--title-font);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    display: block;
    letter-spacing: -1px;
}

.logo-title .accent-text {
    color: var(--flash-brown);
}

.logo-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--flash-brown);
    letter-spacing: 2px;
    display: block;
    font-weight: 600;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--flash-brown);
}

/* Bouton d'action monolithique */
.btn-call-modern {
    background: transparent;
    border: 1px solid var(--flash-brown);
    color: var(--white);
    padding: 10px 22px;
    text-transform: uppercase;
    font-family: var(--title-font);
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    position: relative;
    transition: all 0.4s ease;
    display: inline-block;
}

.btn-call-modern:hover {
    background: var(--flash-brown);
    color: var(--white);
    box-shadow: 4px 4px 0px var(--white);
}

.hero-spacer {
    height: 85px;
}

/* Ancien bouton conservé si nécessaire */
.btn-call {
    background: var(--flash-brown);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    font-family: var(--title-font);
    text-transform: uppercase;
}

.btn-call:hover {
    background: var(--white);
    color: var(--dark);
}

/* ==========================================================================
   PAGE ACCUEIL & HERO
   ========================================================================== */
#hero {
    padding: 140px 0;
    background: linear-gradient(rgba(24, 23, 21, 0.8), rgba(24, 23, 21, 0.85)), url('https://images.unsplash.com/photo-1590069261209-f8e9b8642343?q=80&w=1200&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    text-align: center;
    color: var(--white);
}

#hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

#hero h1 span {
    color: var(--flash-brown);
}

#hero p {
    max-width: 750px;
    margin: 0 auto 40px;
    font-size: 1.25rem;
    opacity: 0.95;
    font-weight: 300;
}

/* Grille Accueil Services simplifiée */
#services {
    padding: 90px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

.service-card {
    background: var(--light-bg);
    border: 1px solid #ebdccb;
    padding: 45px 35px;
    border-radius: 6px;
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--flash-brown);
    box-shadow: 0 15px 35px rgba(194, 109, 43, 0.1);
}

.service-card i {
    font-size: 3rem;
    color: var(--flash-brown);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--dark);
}

/* SECTION CONTACT ACCUEIL */
#contact {
    padding: 90px 0;
    background: var(--dark);
    color: var(--white);
}

.contact-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-method i {
    width: 55px;
    height: 55px;
    background: rgba(194, 109, 43, 0.15);
    border: 2px solid var(--flash-brown);
    color: var(--flash-brown);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 1.4rem;
}

.contact-method a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: var(--transition);
}

.contact-method a:hover {
    color: var(--flash-brown);
}

.contact-badge-box {
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(194, 109, 43, 0.4);
    padding: 50px;
    border-radius: 6px;
    text-align: center;
}

/* ==========================================================================
   PAGES INTERNES : SERVICES & GALERIE
   ========================================================================== */
.internal-hero {
    padding: 110px 20px 60px;
    text-align: center;
    background: linear-gradient(rgba(24, 23, 21, 0.9), rgba(24, 23, 21, 0.95)), url('https://images.unsplash.com/photo-1541535650810-10d26f5c2ab3?q=80&w=1200&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.internal-hero h1 {
    font-size: 3.5rem;
}

/* Page Services Détaillés */
.services-detailed {
    padding: 90px 0;
    background: var(--white);
}

.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 90px;
}

.service-row:nth-child(even) {
    direction: rtl;
}

.service-row:nth-child(even) .service-text {
    direction: ltr;
}

.service-img {
    height: 400px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    border-bottom: 5px solid var(--flash-brown);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.service-text h2 {
    font-size: 2.4rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.feature-list {
    list-style: none;
    margin-top: 20px;
}

.feature-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.feature-list li i {
    color: var(--flash-brown);
    font-size: 1.1rem;
}

/* Page Galerie */
.gallery-section {
    padding: 80px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    height: 300px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
    border: 1px solid #ebdccb;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(24, 23, 21, 0.95) 15%, rgba(24, 23, 21, 0.3) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
    color: var(--white);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--flash-brown);
}

/* ==========================================================================
   FOOTER (Design Grille Asymétrique & Modélisation Archi)
   ========================================================================== */
#main-footer {
    background: #0b0a0a;
    padding: 80px 0 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-grid-modern {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 50px;
    align-items: start;
}

.footer-logo-big {
    font-size: 2.5rem;
    letter-spacing: 2px;
    color: var(--white);
    margin-bottom: 5px;
}

.footer-tagline {
    opacity: 0.6;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.footer-geo {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--flash-brown);
}

.footer-contact-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.4;
}

.footer-phone-link {
    font-family: var(--title-font);
    font-size: 1.8rem;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    line-height: 1;
}

.footer-phone-link:hover {
    color: var(--flash-brown);
}

.footer-email-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.95rem;
}

.visitor-counter-modern {
    border-left: 2px solid var(--flash-brown);
    padding-left: 20px;
}

.counter-num {
    display: block;
    font-family: var(--title-font);
    font-size: 2rem;
    color: var(--white);
    line-height: 1;
    letter-spacing: 3px;
}

.counter-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.5;
    letter-spacing: 1px;
}

.footer-bottom-bar {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    opacity: 0.5;
}

.footer-bottom-bar .savoir-faire {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--flash-brown);
    font-weight: 600;
}

/* ==========================================================================
   RESPONSIVE & MEDIA QUERIES GLOBALES
   ========================================================================== */

/* Responsive Mobile standard ancien */
@media (max-width: 768px) {
    .header-container, .main-nav ul, .contact-block, .service-row, .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .service-row:nth-child(even) { direction: ltr; }
    #hero h1 { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
}

.internal-hero {
    padding-top: 160px !important;
}

/* Bouton Burger */
.mobile-burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
    padding: 10px;
}

.mobile-burger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--white);
    transition: var(--transition);
    border-radius: 2px;
}

/* États d'animation du burger */
.mobile-burger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--flash-brown);
}
.mobile-burger.active span:nth-child(2) {
    opacity: 0;
}
.mobile-burger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--flash-brown);
}

/* Media Query Mobile Global - Limite des 900px */
@media (max-width: 900px) {
    #main-header {
        width: 100%;
        left: 0;
        top: 0;
        border-left: none;
    }

    .mobile-burger {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: #11100e;
        border-left: 3px solid var(--flash-brown);
        padding: 120px 40px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 35px;
        align-items: flex-start;
    }

    .nav-link {
        font-size: 1.3rem;
        font-family: var(--title-font);
        display: block;
        width: 100%;
    }

    .btn-call {
        display: inline-block;
        margin-top: 15px;
        width: 100%;
        text-align: center;
        font-size: 1.1rem;
    }

    .btn-call-modern {
        display: inline-block;
        margin-top: 15px;
        width: 100%;
        text-align: center;
        font-size: 1.1rem;
    }

    #hero h1 {
        font-size: 2.4rem !important;
    }
    #hero p {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .section-title {
        font-size: 2rem !important;
    }

    .contact-block, .service-row {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }

    .service-row:nth-child(even) {
        direction: ltr;
    }

    .service-img {
        height: 250px;
    }

    #hero {
        background-attachment: scroll !important;
    }

    .footer-grid-modern {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}