/* ============================================================
   2MC RÉNOVATION — Feuille de style partagée (pages Expertise)
   Palette "Échoppe & Bois jeune"
   ============================================================ */

/* --- VARIABLES & COULEURS --- */
:root {
    --primary: #1a1a1a;
    --accent: #c89b70;
    --accent-hover: #b5865b;
    --bg-light: #fcfaf8;
    --bg-subtle: #f2ece4;
    --text-main: #333333;
    --text-muted: #666666;
    --border: #e3dcd1;
    --transition: all 0.3s ease;
    --shadow-subtle: 0 4px 20px rgba(0,0,0,0.05);
    --shadow-strong: 0 10px 30px rgba(0,0,0,0.15);
    --whatsapp: #25D366;
}

/* --- RESET & BASES --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; object-fit: cover; }

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

/* --- TYPOGRAPHIE --- */
h1, h2, h3, h4 { font-weight: 600; color: var(--primary); letter-spacing: -0.02em; }
.section-title {
    font-size: 1.8rem; text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 15px; position: relative; display: inline-block;
}
.section-title::after {
    content: ''; display: block; width: 40px; height: 3px;
    background-color: var(--accent); margin: 15px 0 30px 0;
}
.subtitle {
    font-size: 0.85rem; color: var(--accent); text-transform: uppercase;
    letter-spacing: 2px; margin-bottom: 10px; display: block; font-weight: 600;
}

/* --- TOP BAR --- */
.top-bar {
    background-color: var(--primary); color: var(--bg-light); text-align: center;
    padding: 8px 15px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px;
    font-weight: 500; z-index: 1001; position: relative; display: flex;
    justify-content: center; align-items: center; gap: 15px; flex-wrap: wrap;
}
.top-bar span { display: flex; align-items: center; gap: 5px; }

/* --- HEADER --- */
header {
    position: sticky; top: 0; width: 100%;
    background-color: rgba(252, 250, 248, 0.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border); z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { font-weight: 700; font-size: 1.3rem; letter-spacing: 2px; color: var(--primary); display: flex; align-items: center; }
.logo span { color: var(--accent); }
.logo-img { height: 54px; width: auto; display: block; }
.nav-menu { display: none; }
.mobile-menu-btn {
    display: flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; margin-left: auto;
    font-size: 1.7rem; line-height: 1; cursor: pointer; color: var(--primary);
    border-radius: 8px; transition: var(--transition); -webkit-tap-highlight-color: transparent;
}
.mobile-menu-btn:hover, .mobile-menu-btn:active { background: var(--bg-subtle); }

/* --- BOUTONS --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 28px; font-size: 0.85rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1px; border-radius: 4px; border: none; cursor: pointer;
    transition: var(--transition); text-align: center;
}
.btn-primary { background-color: var(--primary); color: #fff; }
.btn-primary:hover { background-color: #333; transform: translateY(-2px); box-shadow: var(--shadow-subtle); }
.btn-accent { background-color: var(--accent); color: #fff; }
.btn-accent:hover { background-color: var(--accent-hover); transform: translateY(-2px); box-shadow: var(--shadow-subtle); }
.btn-outline { background-color: transparent; border: 1px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background-color: var(--primary); color: #fff; }

/* --- HERO SERVICE --- */
.hero {
    min-height: 60vh; display: flex; align-items: center;
    padding: 60px 0; text-align: left;
    background-size: cover; background-position: center;
}
.hero h1 { font-size: 2rem; line-height: 1.2; margin-bottom: 20px; text-transform: uppercase; }
.hero p { font-size: 1rem; color: var(--text-muted); margin-bottom: 30px; font-weight: 500; }
.hero-badges { display: flex; gap: 15px; margin-top: 30px; flex-wrap: wrap; }
.badge {
    background: #fff; padding: 10px 15px; border-radius: 4px; color: var(--primary);
    box-shadow: var(--shadow-subtle); font-size: 0.8rem; font-weight: 600;
    display: flex; align-items: center; gap: 8px; border: 1px solid var(--border);
}

/* --- FIL D'ARIANE --- */
.breadcrumb { font-size: 0.8rem; color: var(--text-muted); padding: 15px 0; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .current { color: var(--primary); font-weight: 600; }
.breadcrumb .sep { margin: 0 8px; opacity: 0.5; }

/* --- INTRO SERVICE --- */
.intro-service { background: var(--bg-light); }
.intro-service p { margin-bottom: 20px; color: var(--text-muted); }
.intro-service strong { color: var(--primary); }

/* --- PRESTATIONS / CARTES --- */
.skills { background: var(--bg-subtle); }
.grid-cards { display: grid; grid-template-columns: 1fr; gap: 20px; }
.skill-card {
    background: #fff; padding: 30px; border-radius: 8px; border: 1px solid var(--border);
    transition: var(--transition); text-align: center;
}
.skill-card:hover { border-color: var(--accent); transform: translateY(-5px); box-shadow: var(--shadow-subtle); }
.skill-icon { font-size: 2.5rem; color: var(--accent); margin-bottom: 15px; }
.skill-card h3 { font-size: 1.1rem; text-transform: uppercase; margin-bottom: 10px; }
.skill-card p { font-size: 0.9rem; color: var(--text-muted); }

/* --- PORTFOLIO (AVANT/APRÈS) --- */
.portfolio { background: var(--bg-light); }
.portfolio-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.project-card { border-radius: 8px; overflow: hidden; background: #fff; box-shadow: var(--shadow-subtle); border: 1px solid var(--border); }
.compare-wrapper { position: relative; width: 100%; height: 250px; overflow: hidden; background: var(--bg-light); }
.compare-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.compare-img.before { z-index: 2; clip-path: inset(0 45% 0 0); }
.compare-img.after { z-index: 1; }
.compare-slider-input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; z-index: 4; cursor: ew-resize; margin: 0; }
.compare-handle {
    position: absolute; top: 0; bottom: 0; left: 55%; width: 4px; background: #fff;
    z-index: 3; transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
.compare-handle-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 40px; height: 40px; background: var(--accent); border: 3px solid #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: #fff; font-weight: bold; font-size: 14px;
    box-shadow: var(--shadow-strong);
}
.compare-handle-btn::before { content: '‹'; margin-right: 2px; }
.compare-handle-btn::after { content: '›'; margin-left: 2px; }
.compare-labels { position: absolute; bottom: 15px; left: 15px; right: 15px; display: flex; justify-content: space-between; z-index: 3; pointer-events: none; }
.compare-label {
    background: rgba(26, 26, 26, 0.8); color: #fff; padding: 4px 10px; font-size: 0.75rem;
    border-radius: 4px; text-transform: uppercase; font-weight: 600; letter-spacing: 1px; backdrop-filter: blur(4px);
}
.project-info { padding: 20px; }
.project-info h3 { font-size: 1.1rem; margin-bottom: 5px; text-transform: uppercase; }
.project-info p { font-size: 0.9rem; color: var(--text-muted); }

/* --- ZONE D'INTERVENTION --- */
.zone { background: var(--bg-subtle); text-align: center; }
.zone-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 25px; }
.zone-tag {
    background: #fff; border: 1px solid var(--border); padding: 8px 18px; border-radius: 50px;
    font-size: 0.85rem; font-weight: 500; color: var(--primary);
}

/* --- TÉMOIGNAGE --- */
.reviews { background: var(--bg-light); }
.review-card { background: var(--bg-subtle); padding: 30px; border-radius: 8px; border: 1px solid var(--border); text-align: left; max-width: 750px; margin: 0 auto; }
.stars { color: var(--accent); font-size: 1.2rem; margin-bottom: 15px; }
.review-text { font-style: italic; font-size: 1rem; margin-bottom: 15px; color: var(--text-muted); }
.review-author { font-weight: 600; font-size: 0.9rem; color: var(--primary); }

/* --- FAQ --- */
.faq { background: var(--bg-subtle); }
.faq-list { max-width: 800px; margin: 30px auto 0; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 15px; overflow: hidden; }
.faq-item summary {
    padding: 20px; font-weight: 600; cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center; gap: 15px; color: var(--primary);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.6rem; color: var(--accent); flex-shrink: 0; line-height: 1; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { padding: 0 20px 20px; color: var(--text-muted); margin: 0; }

/* --- CTA FINAL --- */
.cta-final { background: var(--primary); color: #fff; text-align: center; }
.cta-final h2 { color: #fff; }
.cta-final .section-title::after { margin-left: auto; margin-right: auto; }
.cta-final p { color: #ccc; max-width: 600px; margin: 0 auto 30px; }
.cta-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* --- MAILLAGE INTERNE --- */
.maillage { background: var(--bg-light); }
.maillage-grid { display: grid; grid-template-columns: 1fr; gap: 15px; margin-top: 30px; }
.expertise-link {
    background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 20px;
    display: flex; align-items: center; gap: 15px; transition: var(--transition); color: var(--primary); font-weight: 600;
}
.expertise-link:hover { border-color: var(--accent); transform: translateX(5px); box-shadow: var(--shadow-subtle); }
.expertise-link .ico { font-size: 1.8rem; }
.expertise-link .el-arrow { margin-left: auto; color: var(--accent); font-weight: 700; font-size: 1.15rem; transition: var(--transition); }
.expertise-link:hover .el-arrow { transform: translateX(5px); }

/* --- FOOTER --- */
footer { background: var(--primary); color: #fff; padding: 50px 0 20px; }
.footer-top { display: flex; flex-direction: column; gap: 20px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 30px; margin-bottom: 20px; }
.footer-bottom { text-align: center; font-size: 0.8rem; color: #888; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom a:hover { color: #fff; }

/* --- BARRE CTA MOBILE COLLANTE --- */
.mobile-cta { display: none; }

/* --- FEUILLE DE CONTACT (Appel / WhatsApp) --- */
.contact-sheet { position: fixed; inset: 0; z-index: 1002; display: flex; align-items: flex-end; }
.contact-sheet[hidden] { display: none; }
.contact-sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.contact-sheet-panel {
    position: relative; width: 100%; background: #fff; border-radius: 16px 16px 0 0;
    padding: 22px 16px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px rgba(0,0,0,0.25);
    animation: sheet-up 0.25s ease;
}
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cs-title { text-align: center; font-weight: 600; color: var(--primary); margin-bottom: 16px; font-size: 0.95rem; }
.cs-option {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
    padding: 16px; border-radius: 10px; font-weight: 600; font-size: 0.95rem; margin-bottom: 10px;
}
.cs-call { background: var(--primary); color: #fff; }
.cs-wa { background: var(--whatsapp); color: #fff; }
.cs-cancel {
    display: block; width: 100%; padding: 14px; border: 1px solid var(--border); background: #fff;
    border-radius: 10px; color: var(--text-muted); font-weight: 600; cursor: pointer; font-family: inherit; font-size: 0.9rem;
}

/* --- AGRANDIR / LIGHTBOX PLEIN ÉCRAN --- */
.portfolio-grid .compare-wrapper { cursor: zoom-in; }
.compare-expand {
    position: absolute; top: 10px; right: 10px; z-index: 5;
    width: 34px; height: 34px; border: none; border-radius: 8px;
    background: rgba(26,26,26,0.55); color: #fff; font-size: 1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); transition: var(--transition);
}
.compare-expand:hover { background: var(--accent); }
.lightbox { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.9); }
.lightbox-content { position: relative; z-index: 1; width: min(92vw, 1100px); }
.lightbox .compare-wrapper { height: min(75vh, 700px); border-radius: 8px; cursor: default; }
.lightbox-caption { color: #fff; text-align: center; margin-top: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; }
.lightbox-close {
    position: absolute; top: 16px; right: 16px; z-index: 3; width: 46px; height: 46px; border-radius: 50%;
    border: none; background: rgba(255,255,255,0.15); color: #fff; font-size: 1.3rem; cursor: pointer; transition: var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }

/* --- CARTE IMAGE SEULE (Après uniquement) --- */
.single-photo { position: relative; width: 100%; height: 250px; overflow: hidden; background: var(--bg-light); cursor: zoom-in; }
.single-photo img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }

/* --- RESPONSIVE DESKTOP --- */
@media (min-width: 768px) {
    .section-padding { padding: 90px 0; }
    .grid-cards { grid-template-columns: repeat(3, 1fr); gap: 30px; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .maillage-grid { grid-template-columns: repeat(3, 1fr); }
    .nav-menu { display: flex; gap: 30px; }
    .mobile-menu-btn { display: none; }
    .nav-menu a { font-size: 0.85rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; padding: 10px 0; position: relative; color: var(--primary); }
    .nav-menu a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--accent); transition: var(--transition); }
    .nav-menu a:hover::after { width: 100%; }
    /* Sous-menu Expertises (desktop, au survol) */
    .has-submenu { position: relative; }
    .submenu {
        position: absolute; top: 100%; left: 50%; list-style: none;
        background: var(--bg-light); border: 1px solid var(--border); border-radius: 8px;
        box-shadow: var(--shadow-subtle); padding: 8px 0; min-width: 240px;
        opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(8px);
        transition: var(--transition); z-index: 1001;
    }
    .has-submenu:hover .submenu, .has-submenu:focus-within .submenu {
        opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
    }
    .submenu a { display: block; padding: 11px 20px; font-size: 0.8rem; font-weight: 500; text-transform: none; letter-spacing: 0.3px; white-space: nowrap; color: var(--primary); }
    .submenu a::after { content: none; }
    .submenu a:hover { background: var(--bg-subtle); color: var(--accent); }
    .hero h1 { font-size: 3rem; }
    .hero p { font-size: 1.15rem; }
    .compare-wrapper, .single-photo { height: 350px; }
    .intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
    .footer-top { flex-direction: row; justify-content: space-between; text-align: left; align-items: center; }
    .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* --- RESPONSIVE MOBILE (barre CTA collante) --- */
@media (max-width: 767px) {
    body { padding-bottom: 54px; }
    /* Menu déroulant mobile */
    .nav-menu {
        position: absolute; top: 70px; left: 0; right: 0;
        flex-direction: column; gap: 0; padding: 6px 20px 12px;
        background: var(--bg-light); border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-subtle);
    }
    .nav-menu.open { display: flex; }
    .nav-menu li { border-bottom: 1px solid var(--border); }
    .nav-menu li:last-child { border-bottom: none; }
    .nav-menu a {
        display: block; padding: 15px 4px; color: var(--primary); font-weight: 500;
        text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px;
    }
    /* Sous-menu Expertises (mobile, déroulé au tap) */
    .submenu { display: none; list-style: none; padding-left: 14px; }
    .has-submenu.open > .submenu { display: block; }
    .has-submenu > a::after { content: ' ▾'; font-size: 0.7em; vertical-align: middle; }
    .has-submenu.open > a::after { content: ' ▴'; }
    .submenu li { border-bottom: 1px solid var(--border); }
    .submenu li:last-child { border-bottom: none; }
    .submenu a { padding: 12px 4px; text-transform: none; color: var(--text-muted); font-size: 0.8rem; letter-spacing: 0.3px; }
    .mobile-cta { position: fixed; bottom: 0; left: 0; right: 0; display: flex; z-index: 1001; box-shadow: 0 -4px 15px rgba(0,0,0,0.15); }
    .mobile-cta a, .mobile-cta button { flex: 1; padding: 15px; text-align: center; color: #fff; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; border: none; font-family: inherit; cursor: pointer; }
    .mobile-cta .call { background: var(--primary); }
    .mobile-cta .quote { background: var(--accent); }
}
