/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light, warm, architectural palette */
    --paper: #f4f1ea;
    --paper-2: #fbf9f5;
    --white: #ffffff;
    --ink: #16120c;          /* dark feature sections */
    --ink-2: #201a12;
    --text: #1c1813;
    --text-muted: #766c5f;
    --line: #e6ded1;
    --line-dark: #2c2519;
    --accent: #c0832e;       /* warm ochre / amber */
    --accent-d: #9c6720;
    --accent-l: #dca44e;
    --accent-tint: #f3ead9;
    --shadow-sm: 0 2px 10px rgba(26, 18, 8, 0.05);
    --shadow: 0 12px 34px rgba(26, 18, 8, 0.08);
    --shadow-lg: 0 30px 70px rgba(26, 18, 8, 0.15);
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --container: 1200px;
    --radius: 20px;
    --radius-sm: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }

/* ===== BUTTONS ===== */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 15px 32px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    border: none;
    overflow: hidden;
    transition: var(--transition);
}

.btn svg { transition: transform var(--transition); }

.btn-primary {
    background: linear-gradient(135deg, var(--accent-l) 0%, var(--accent) 60%, var(--accent-d) 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(192, 131, 46, 0.28);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}
.btn-primary:hover::before { left: 130%; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(192, 131, 46, 0.4); }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--accent);
    color: var(--accent-d);
}
.btn-outline:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }

.btn-nav {
    padding: 11px 26px;
    background: var(--text);
    color: var(--paper);
    border-radius: 50px;
    font-size: 0.85rem;
}
.btn-nav:hover { background: var(--accent); }

.btn-lg { padding: 18px 42px; font-size: 1rem; }
.btn-full { width: 100%; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 22px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(244, 241, 234, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

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

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

.logo-icon {
    width: 46px; height: 46px;
    background: var(--ink);
    color: var(--paper);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em;
}

.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--text); }
.logo-sub { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--accent-d); font-weight: 600; }

/* Hero is dark -> navbar links light until scrolled */
.nav-links { display: flex; align-items: center; gap: 38px; list-style: none; }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: rgba(255,255,255,0.75); position: relative; }
.nav-links a:not(.btn):hover { color: #fff; }
.navbar.scrolled .nav-links a { color: var(--text-muted); }
.navbar.scrolled .nav-links a:not(.btn):hover { color: var(--text); }
.navbar.scrolled .logo-name { color: var(--text); }

.nav-links a:not(.btn)::after {
    content: ''; position: absolute; bottom: -5px; left: 0;
    width: 0; height: 2px; background: var(--accent); transition: var(--transition);
}
.nav-links a:not(.btn):hover::after { width: 100%; }

/* navbar over dark hero: logo text light */
.logo-name { color: #fff; }
.navbar.scrolled .logo-icon { background: var(--ink); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: #fff; transition: var(--transition); }
.navbar.scrolled .hamburger span { background: var(--text); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO (dark feature) ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(ellipse 80% 60% at 72% 8%, rgba(192, 131, 46, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 8% 95%, rgba(180, 200, 220, 0.06) 0%, transparent 55%),
        linear-gradient(150deg, #1c160d 0%, #110d08 55%, #0d0b08 100%);
    color: #fff;
    overflow: hidden;
}

.hero::before {
    content: ''; position: absolute; top: -40%; right: -15%;
    width: 760px; height: 760px;
    background: radial-gradient(circle, rgba(192, 131, 46, 0.16) 0%, transparent 70%);
    border-radius: 50%; animation: float1 14s ease-in-out infinite;
}
.hero::after {
    content: ''; position: absolute; bottom: -35%; left: -12%;
    width: 620px; height: 620px;
    background: radial-gradient(circle, rgba(220, 164, 78, 0.10) 0%, transparent 70%);
    border-radius: 50%; animation: float2 18s ease-in-out infinite;
}
@keyframes float1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-40px,40px) scale(1.1)} }
@keyframes float2 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(50px,-30px) scale(1.08)} }

.hero-overlay {
    /* Quadrillage supprime - fond du hero reste uni avec les orbes flottants seulement */
    display: none;
}

.hero-content { position: relative; z-index: 2; padding-top: 120px; }

.hero-tag {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.2em;
    color: var(--accent-l); margin-bottom: 28px;
    padding: 9px 22px; border: 1px solid rgba(220, 164, 78, 0.3);
    border-radius: 50px; background: rgba(192, 131, 46, 0.08);
    backdrop-filter: blur(10px);
}
.hero-tag-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--accent-l);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 164, 78, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(220, 164, 78, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 164, 78, 0); }
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 6.5vw, 5.4rem);
    font-weight: 600; line-height: 1.05; margin-bottom: 24px; letter-spacing: -0.02em;
}
.highlight {
    position: relative; font-style: italic;
    background: linear-gradient(120deg, var(--accent-l), var(--accent));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.highlight::after {
    content: ''; position: absolute; left: 0; bottom: 6px;
    width: 100%; height: 10px; background: rgba(220, 164, 78, 0.22); border-radius: 4px; z-index: -1;
}

.hero-desc { font-size: 1.12rem; color: rgba(255,255,255,0.72); max-width: 540px; margin-bottom: 40px; line-height: 1.8; }
.hero-actions { display: flex; gap: 16px; margin-bottom: 80px; flex-wrap: wrap; }
.hero .btn-outline { border-color: rgba(220,164,78,0.5); color: var(--accent-l); }
.hero .btn-outline:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.hero-stats { display: flex; gap: 60px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.12); }
.stat { display: flex; flex-direction: column; }
.stat-number, .stat-suffix {
    font-family: var(--font-heading); font-size: 2.6rem; font-weight: 700;
    color: var(--accent-l); line-height: 1;
}
.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-top: 8px; text-transform: uppercase; letter-spacing: 0.1em; }

.scroll-indicator { position: absolute; bottom: 40px; right: 40px; display: flex; flex-direction: column; align-items: center; gap: 12px; z-index: 2; }
.scroll-indicator span { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(255,255,255,0.45); writing-mode: vertical-rl; }
.scroll-line { width: 1px; height: 60px; background: linear-gradient(to bottom, var(--accent-l), transparent); animation: scrollLine 2s infinite; }
@keyframes scrollLine {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ===== MARQUEE BAND ===== */
.marquee { position: relative; background: var(--ink); padding: 18px 0; overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; align-items: center; gap: 18px; animation: marquee 32s linear infinite; }
.marquee-track span { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; color: var(--accent-l); font-style: italic; }
.marquee-track .dot { font-style: normal; color: rgba(220,164,78,0.4); }
@keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ===== SECTION COMMON ===== */
.section-header { text-align: center; margin-bottom: 44px; }
.section-tag {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.28em;
    color: var(--accent-d); font-weight: 600; margin-bottom: 18px;
}
.section-header .section-tag::before,
.section-header .section-tag::after {
    content: ''; width: 28px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent));
}
.section-header .section-tag::after { background: linear-gradient(90deg, var(--accent), transparent); }

.section-header h2, .about-content h2, .contact-info h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.1rem, 4.2vw, 3.2rem);
    font-weight: 600; line-height: 1.15; margin-bottom: 16px; letter-spacing: -0.02em; color: var(--text);
}
.section-header p { font-size: 1.05rem; color: var(--text-muted); max-width: 520px; margin: 0 auto; }

/* ===== SERVICES (explorateur interactif) ===== */
.services { padding: 84px 0; background: var(--paper); }

.svc-explorer {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    align-items: stretch;
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.svc-explorer.visible { opacity: 1; transform: translateY(0); }

/* Liste gauche */
.svc-list { display: flex; flex-direction: column; gap: 6px; }
.svc-item {
    position: relative;
    display: flex; align-items: center; gap: 16px;
    width: 100%;
    padding: 20px 22px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    transition: var(--transition);
}
.svc-item .svc-num { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 700; color: var(--accent); opacity: 0.55; transition: var(--transition); }
.svc-item .svc-name { flex: 1; font-family: var(--font-heading); font-size: 1.2rem; font-weight: 600; color: var(--text); transition: var(--transition); }
.svc-arrow { width: 20px; height: 20px; color: var(--accent); opacity: 0; transform: translateX(-8px); transition: var(--transition); }

.svc-item:hover { background: var(--white); }
.svc-item.active {
    background: var(--white);
    border-color: var(--line);
    box-shadow: var(--shadow);
}
.svc-item.active .svc-num { opacity: 1; }
.svc-item.active .svc-arrow { opacity: 1; transform: translateX(0); }
.svc-item.active::before {
    content: ''; position: absolute; left: 0; top: 16px; bottom: 16px;
    width: 3px; border-radius: 4px; background: var(--accent);
}

/* Panneau droite (accent) */
.svc-display {
    position: relative;
    min-height: 340px;
    border-radius: var(--radius);
    background: linear-gradient(145deg, var(--accent) 0%, var(--accent-d) 100%);
    color: #fff;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.svc-display::after {
    content: ''; position: absolute; bottom: -35%; right: -12%;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 70%);
    pointer-events: none;
}
.svc-panel {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; justify-content: center;
    padding: 48px;
    opacity: 0; transform: translateY(16px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
}
.svc-panel.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.svc-panel-icon {
    width: 74px; height: 74px; padding: 16px; margin-bottom: 22px;
    color: #fff; background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.25); border-radius: 18px;
}
.svc-panel h3 { font-family: var(--font-heading); font-size: 1.9rem; font-weight: 600; margin-bottom: 14px; }
.svc-panel p { font-size: 1rem; line-height: 1.75; color: rgba(255,255,255,0.9); max-width: 440px; }

/* Description repliable affichee uniquement en mobile */
.svc-mobile-desc { display: none; }

/* ===== PROCESS (layout editorial : intro a gauche, etapes a droite) ===== */
.process { padding: 84px 0; background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.process-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 80px;
    align-items: start;
}
.process-intro {
    position: sticky; top: 110px;
    opacity: 0; transform: translateY(20px); transition: var(--transition);
}
.process-intro.visible { opacity: 1; transform: translateY(0); }
.process-intro .section-tag { margin-bottom: 18px; }
/* La section-tag ici n'est pas dans un .section-header centre -> pas de tirets */
.process-intro .section-tag::before,
.process-intro .section-tag::after { display: none; }
.process-intro h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    font-weight: 600; line-height: 1.15;
    margin-bottom: 18px; letter-spacing: -0.02em;
    color: var(--text);
}
.process-intro > p { color: var(--text-muted); font-size: 0.96rem; line-height: 1.7; }

/* Liste des etapes : empilees verticalement, horizontales en interne */
.process-steps {
    list-style: none;
    display: flex; flex-direction: column;
    gap: 0;
    padding: 0; margin: 0;
}
.step {
    position: relative;
    display: flex; align-items: flex-start; gap: 22px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(20px); transition: var(--transition);
}
.step:last-child { border-bottom: none; padding-bottom: 0; }
.step:first-child { padding-top: 0; }
.step.visible { opacity: 1; transform: translateY(0); }

/* Numero : grand chiffre en accent, vertical */
.step-number {
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    width: 52px; height: 52px;
    font-family: var(--font-heading);
    font-size: 1.05rem; font-weight: 700;
    color: var(--accent-d);
    background: var(--accent-tint);
    border: 1px solid rgba(192, 131, 46, 0.25);
    border-radius: 50%;
    letter-spacing: 0;
    margin: 0;
    transition: var(--transition);
}
.step:hover .step-number {
    background: var(--accent);
    color: #fff;
    transform: scale(1.05);
}

.step-content { flex: 1; padding-top: 6px; }
.step h3 {
    font-family: var(--font-heading);
    font-size: 1.18rem; font-weight: 600;
    margin-bottom: 6px; color: var(--text);
}
.step p {
    font-size: 0.92rem; color: var(--text-muted);
    line-height: 1.6; margin: 0;
}

/* ===== REALISATIONS (light surround, rich tiles) ===== */
.realisations { padding: 84px 0; background: var(--paper); }
.gallery-filters { display: flex; justify-content: center; gap: 8px; margin-bottom: 48px; flex-wrap: wrap; }
.filter-btn {
    padding: 11px 26px; border: 1px solid var(--line); background: var(--white);
    color: var(--text-muted); border-radius: 50px; font-family: var(--font-body);
    font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active { border-color: var(--accent); color: #fff; background: var(--accent); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; box-shadow: var(--shadow-sm); opacity: 0; transform: translateY(30px); transition: var(--transition); }
.gallery-item.visible { opacity: 1; transform: translateY(0); }
.gallery-item:hover { box-shadow: var(--shadow-lg); }
.gallery-item.large { grid-row: span 2; }

.gallery-img {
    position: relative; width: 100%; height: 100%; min-height: 300px;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Real photo fills the tile */
.gallery-photo {
    position: absolute; inset: 0; z-index: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
/* Legibility gradient sits above the photo */
.gallery-img::before {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.1) 45%, transparent 65%);
}
/* Subtle warm tint on hover */
.gallery-img::after {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(160deg, rgba(192,131,46,0.0), rgba(192,131,46,0.18));
    opacity: 0; transition: var(--transition);
}
.gallery-item:hover .gallery-img::after { opacity: 1; }
.gallery-item.large .gallery-img { min-height: 620px; }
.gallery-placeholder { position: relative; z-index: 1; width: 90px; height: 90px; color: rgba(255,255,255,0.6); transition: var(--transition); filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3)); }
.gallery-item:hover .gallery-img { transform: scale(1.06); }
.gallery-item:hover .gallery-placeholder { color: rgba(255,255,255,0.85); transform: scale(1.08); }

.gallery-info { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; padding: 28px 24px; background: linear-gradient(to top, rgba(0,0,0,0.85) 10%, transparent); transition: var(--transition); }
.gallery-info span {
    display: inline-block; font-size: 0.66rem; color: var(--ink); background: var(--accent-l);
    padding: 4px 12px; border-radius: 50px; text-transform: uppercase; letter-spacing: 0.12em;
    font-weight: 700; margin-bottom: 10px; transform: translateY(8px); opacity: 0; transition: var(--transition);
}
.gallery-info h4 { font-family: var(--font-heading); font-size: 1.3rem; margin: 0; color: #fff; }
.gallery-item:hover .gallery-info span { transform: translateY(0); opacity: 1; }
.gallery-item.hidden { display: none; }

/* ===== AVANT / APRES (tuiles portillon, cloture, fenetre) ===== */
/* Interaction : un clic bascule l'image. Pas d'effet au survol. */
.gallery-img.has-ba { cursor: pointer; }

.gallery-img.has-ba .ba-after,
.gallery-img.has-ba .ba-before {
    position: absolute; inset: 0; z-index: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: opacity 0.45s ease;
}
.gallery-img.has-ba .ba-after  { opacity: 1; z-index: 1; }
.gallery-img.has-ba .ba-before { opacity: 0; }

/* Etat "show-before" = active par le clic (toggle) */
.gallery-img.has-ba.show-before .ba-after  { opacity: 0; }
.gallery-img.has-ba.show-before .ba-before { opacity: 1; }

/* Badge "AVANT / APRES" en haut a droite, indique l'etat actuel */
.ba-badge {
    position: absolute; top: 14px; right: 14px; z-index: 3;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px;
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    pointer-events: none;
    user-select: none;
}
.ba-badge span { transition: color 0.3s ease; }
/* Par defaut on voit l'APRES (mot APRES surligne) */
.gallery-img.has-ba .ba-badge span:last-child { color: var(--accent-l); }
/* Apres clic -> on voit l'AVANT (mot AVANT surligne, APRES grise) */
.gallery-img.has-ba.show-before .ba-badge span:first-child { color: var(--accent-l); }
.gallery-img.has-ba.show-before .ba-badge span:last-child  { color: rgba(255,255,255,0.55); }

/* Hint visuel discret au survol pour montrer que c'est cliquable */
.gallery-img.has-ba::after { display: none; } /* desactive l'overlay ambre */
.gallery-item:has(.has-ba):hover .ba-badge {
    background: rgba(0, 0, 0, 0.78);
    transform: scale(1.04);
}

/* ===== ABOUT (light) ===== */
.about { padding: 84px 0; background: var(--paper-2); border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-image { position: relative; opacity: 0; transform: translateX(-30px); transition: var(--transition); }
.about-image.visible { opacity: 1; transform: translateX(0); }
/* Mosaique 2x2 des chantiers (a la place de la photo de Maxence) */
.about-mosaic {
    width: 100%;
    aspect-ratio: 4/5;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 6px;
    background: var(--white);
    padding: 6px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.mosaic-tile {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
}
.mosaic-tile img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.mosaic-tile::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(192, 131, 46, 0.0) 0%, rgba(192, 131, 46, 0.0) 100%);
    transition: background 0.4s ease;
    pointer-events: none;
}
.mosaic-tile:hover img { transform: scale(1.08); }
.mosaic-tile:hover::after { background: linear-gradient(160deg, rgba(192, 131, 46, 0.15) 0%, transparent 100%); }
.about-badge { position: absolute; bottom: -20px; right: -20px; background: linear-gradient(135deg, var(--accent-l), var(--accent-d)); color: #fff; padding: 24px; border-radius: var(--radius-sm); text-align: center; box-shadow: var(--shadow); }
.badge-number { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; line-height: 1; display: block; }
.badge-text { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; line-height: 1.4; }

.about-content { opacity: 0; transform: translateX(30px); transition: var(--transition); }
.about-content.visible { opacity: 1; transform: translateX(0); }
.about-content h2 { margin-top: 8px; }
.about-content > p { color: var(--text-muted); margin-bottom: 16px; font-size: 0.96rem; }
.about-values { margin-top: 40px; display: flex; flex-direction: column; gap: 24px; }
.value { display: flex; gap: 16px; align-items: flex-start; }
.value-icon { width: 44px; height: 44px; min-width: 44px; color: var(--accent-d); padding: 10px; background: var(--accent-tint); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.value-icon svg { width: 20px; height: 20px; }
.value h4 { font-family: var(--font-heading); font-size: 1.05rem; margin-bottom: 4px; }
.value p { font-size: 0.86rem; color: var(--text-muted); }

/* ===== ZONE D'INTERVENTION (light) ===== */
.zone { padding: 84px 0; background: var(--paper-2); position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.zone::before {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 700px; height: 700px; background: radial-gradient(circle, rgba(192,131,46,0.07) 0%, transparent 65%); pointer-events: none;
}
.zone-cities { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 880px; margin: 0 auto; position: relative; }
.city { padding: 12px 24px; border: 1px solid var(--line); border-radius: 50px; font-size: 0.92rem; color: var(--text-muted); background: var(--white); box-shadow: var(--shadow-sm); transition: var(--transition); cursor: default; }
.city:hover { border-color: var(--accent); color: var(--accent-d); background: var(--accent-tint); transform: translateY(-3px); }

/* ===== CTA (dark feature) ===== */
.cta {
    padding: 110px 0; color: #fff;
    background:
        radial-gradient(ellipse 60% 100% at 50% 0%, rgba(192,131,46,0.25) 0%, transparent 60%),
        linear-gradient(135deg, #1c160d 0%, #0f0c08 100%);
}
.cta-content { text-align: center; }
.cta h2 { font-family: var(--font-heading); font-size: clamp(2.3rem, 4.6vw, 3.5rem); margin-bottom: 16px; }
.cta p { color: rgba(255,255,255,0.7); font-size: 1.1rem; margin-bottom: 40px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta .btn-outline { border-color: rgba(220,164,78,0.5); color: var(--accent-l); }
.cta .btn-outline:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ===== CONTACT (light) ===== */
.contact { padding: 84px 0; background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-info { opacity: 0; transform: translateX(-30px); transition: var(--transition); }
.contact-info.visible { opacity: 1; transform: translateX(0); }
.contact-info > p { color: var(--text-muted); margin-bottom: 40px; font-size: 0.96rem; }
.contact-details { display: flex; flex-direction: column; gap: 24px; margin-bottom: 40px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon { width: 46px; height: 46px; min-width: 46px; background: var(--accent-tint); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--accent-d); }
.contact-icon svg { width: 20px; height: 20px; }
.contact-item strong { display: block; font-size: 0.92rem; margin-bottom: 2px; }
.contact-item span, .contact-item a { font-size: 0.88rem; color: var(--text-muted); }
.contact-item a:hover { color: var(--accent-d); }

.social-links { display: flex; gap: 12px; }
.social-link { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); background: var(--white); transition: var(--transition); }
.social-link svg { width: 18px; height: 18px; }
.social-link:hover { border-color: var(--accent); color: var(--accent-d); background: var(--accent-tint); transform: translateY(-3px); }

/* ===== QR code dans la section contact ===== */
.contact-qr {
    display: flex; align-items: center; gap: 16px;
    margin-top: 28px; padding: 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    max-width: 360px;
}
.contact-qr-code {
    flex-shrink: 0;
    width: 96px; height: 96px;
    display: flex; align-items: center; justify-content: center;
    background: #fff; border-radius: 8px; overflow: hidden;
}
.contact-qr-code img { width: 96px; height: 96px; object-fit: contain; display: block; }
.contact-qr-text { display: flex; flex-direction: column; gap: 3px; }
.contact-qr-text strong { font-family: var(--font-heading); font-size: 1rem; color: var(--text); }
.contact-qr-text span { font-size: 0.82rem; color: var(--text-muted); line-height: 1.45; }
.share-btn {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 10px; padding: 8px 16px;
    background: var(--ink); color: #fff;
    border: none; border-radius: 50px; cursor: pointer;
    font-family: var(--font-body); font-size: 0.82rem; font-weight: 600;
    transition: var(--transition); align-self: flex-start;
}
.share-btn svg { width: 15px; height: 15px; }
.share-btn:hover { background: var(--accent); transform: translateY(-2px); }

/* Menu de partage */
.share-wrap { position: relative; margin-top: 10px; align-self: flex-start; }
.share-menu {
    position: absolute; bottom: calc(100% + 8px); left: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    padding: 6px;
    min-width: 200px;
    display: none;
    flex-direction: column; gap: 2px;
    z-index: 50;
}
.share-menu.open { display: flex; animation: shareIn .18s ease; }
@keyframes shareIn { from { opacity:0; transform: translateY(6px); } to { opacity:1; transform: translateY(0); } }
.share-opt {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 10px;
    font-family: var(--font-body); font-size: 0.9rem; font-weight: 500;
    color: var(--text); background: none; border: none; cursor: pointer;
    width: 100%; text-align: left; transition: background .2s;
}
.share-opt:hover { background: var(--paper-2); }
.share-opt svg { width: 20px; height: 20px; flex-shrink: 0; }
.sh-wa svg { color: #25D366; }
.sh-fb svg { color: #1877F2; }
.sh-sms svg { color: var(--accent-d); }
.sh-mail svg { color: var(--accent-d); }
.sh-copy svg { color: var(--text-muted); }
.share-opt.copied { color: #1faa54; }
.share-opt.copied svg { color: #1faa54; }

/* ===== Bloc Contact Direct (WhatsApp / Tel / SMS / Email) ===== */
.contact-direct {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    opacity: 0; transform: translateX(30px); transition: var(--transition);
    display: flex; flex-direction: column; gap: 12px;
}
.contact-direct.visible { opacity: 1; transform: translateX(0); }
.contact-direct-head { margin-bottom: 8px; }
.contact-direct-head h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem; font-weight: 600;
    color: var(--text); margin-bottom: 4px;
}
.contact-direct-head p { font-size: 0.92rem; color: var(--text-muted); margin: 0; }

.ct-btn {
    display: flex; align-items: center; gap: 18px;
    padding: 16px 20px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    transition: var(--transition);
    color: var(--text);
    min-width: 0;
    overflow: hidden;
}
.ct-btn:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); border-color: rgba(0,0,0,0.12); }
.ct-btn svg { flex-shrink: 0; width: 28px; height: 28px; }
.ct-btn-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.ct-btn-label { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; color: var(--text); }
.ct-btn-sub {
    font-size: 0.85rem; color: var(--text-muted);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    max-width: 100%;
}
.ct-btn-arrow { font-size: 1.2rem; color: var(--text-muted); transition: var(--transition); }
.ct-btn:hover .ct-btn-arrow { color: var(--accent); transform: translateX(4px); }

/* WhatsApp en vert WhatsApp - bouton principal */
.ct-btn-whatsapp {
    background: #25D366;
    border-color: #1faa54;
    color: #fff;
}
.ct-btn-whatsapp:hover { background: #20bf5b; border-color: #20bf5b; transform: translateX(4px) scale(1.01); box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3); }
.ct-btn-whatsapp .ct-btn-label,
.ct-btn-whatsapp .ct-btn-sub,
.ct-btn-whatsapp .ct-btn-arrow { color: #fff; }
.ct-btn-whatsapp .ct-btn-sub { color: rgba(255,255,255,0.85); }
.ct-btn-whatsapp svg { color: #fff; }

/* Tel / SMS / Email : icone en accent ambre */
.ct-btn-tel svg, .ct-btn-sms svg, .ct-btn-mail svg { color: var(--accent-d); }

/* ===== ancien formulaire de contact (conserve si tu veux le reactiver) ===== */
.contact-form-wrapper { opacity: 0; transform: translateX(30px); transition: var(--transition); }
.contact-form-wrapper.visible { opacity: 1; transform: translateX(0); }
.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 14px 18px; background: var(--paper-2);
    border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text);
    font-family: var(--font-body); font-size: 0.9rem; transition: var(--transition); outline: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); opacity: 0.6; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 3px rgba(192,131,46,0.12); }
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23766c5f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { margin-top: 8px; }

.form-success { text-align: center; padding: 40px; }
.form-success svg { width: 60px; height: 60px; color: var(--accent); margin-bottom: 20px; }
.form-success h3 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 8px; }
.form-success p { color: var(--text-muted); }

/* ===== FOOTER (dark) ===== */
.footer { background: var(--ink); color: rgba(255,255,255,0.65); border-top: 1px solid var(--line-dark); padding-top: 80px; }
.footer .logo-name { color: #fff; }
.footer .logo-icon { background: var(--accent); color: var(--ink); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 60px; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.9rem; margin-top: 20px; max-width: 300px; line-height: 1.7; }
.footer-contact-quick { margin-top: 20px; }
.footer-contact-quick a { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-size: 1.25rem; color: var(--accent-l); font-weight: 600; }
.footer-contact-quick a:hover { color: #fff; }
.footer-links h4 { font-family: var(--font-heading); font-size: 1.05rem; margin-bottom: 20px; color: #fff; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a, .footer-links li { font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.footer-links a:hover { color: var(--accent-l); }
.footer-bottom { padding: 24px 0; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* ===== FLOATING CALL BUTTON ===== */
.float-call {
    position: fixed; bottom: 26px; right: 26px; z-index: 900;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 15px 22px; border-radius: 50px;
    background: linear-gradient(135deg, var(--accent-l), var(--accent-d));
    color: #fff; font-weight: 600; font-size: 0.92rem;
    box-shadow: 0 10px 30px rgba(192,131,46,0.45);
    animation: callPulse 2.4s infinite;
}
.float-call svg { width: 20px; height: 20px; }
.float-call:hover { transform: translateY(-3px) scale(1.03); }
@keyframes callPulse {
    0% { box-shadow: 0 10px 30px rgba(192,131,46,0.45), 0 0 0 0 rgba(192,131,46,0.5); }
    70% { box-shadow: 0 10px 30px rgba(192,131,46,0.45), 0 0 0 16px rgba(192,131,46,0); }
    100% { box-shadow: 0 10px 30px rgba(192,131,46,0.45), 0 0 0 0 rgba(192,131,46,0); }
}

/* ===== ANIMATIONS ===== */
[data-aos] { transition: opacity 0.8s ease, transform 0.8s ease; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .svc-explorer { grid-template-columns: 0.95fr 1.05fr; gap: 20px; }
    .svc-panel { padding: 36px; }
    .svc-item { padding: 16px 18px; }
    .svc-item .svc-name { font-size: 1.08rem; }
    .process-grid { grid-template-columns: 1fr; gap: 36px; }
    .process-intro { position: static; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item.large { grid-row: span 1; }
    .gallery-item.large .gallery-img { min-height: 300px; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 80%; max-width: 360px; height: 100vh;
        background: var(--paper-2); flex-direction: column; justify-content: center; gap: 32px; padding: 40px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg);
    }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.1rem; color: var(--text-muted); }
    .hero-stats { gap: 32px; }
    .svc-explorer { grid-template-columns: 1fr; gap: 18px; }
    .svc-display { min-height: 300px; order: 2; }
    .svc-panel { padding: 32px 28px; }
    .svc-panel h3 { font-size: 1.55rem; }
    .svc-item .svc-name { font-size: 1.1rem; }
    .process-steps { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .about-badge { right: 20px; bottom: -10px; }
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 36px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .scroll-indicator { display: none; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .cta-actions .btn { width: 100%; }
    .marquee-track span { font-size: 0.9rem; }
    .marquee { padding: 13px 0; }
    .float-call span { display: none; }
    .float-call { padding: 16px; bottom: 18px; right: 18px; }

    /* ----- Mobile : sections plus compactes ----- */
    .services, .process, .realisations, .about, .zone, .contact { padding: 56px 0; }
    .cta { padding: 64px 0; }
    .section-header { margin-bottom: 28px; }
    .section-header h2, .about-content h2, .contact-info h2 { font-size: 1.7rem; line-height: 1.2; }
    .section-header p { font-size: 0.95rem; }

    /* Hero : pas besoin de 100vh sur mobile, plus court */
    .hero { min-height: auto; }
    .hero-content { padding-top: 110px; padding-bottom: 60px; }
    .hero h1 { font-size: 2.5rem; line-height: 1.1; }
    .hero-desc { font-size: 0.98rem; margin-bottom: 28px; }
    .hero-actions { margin-bottom: 48px; }
    .stat-number, .stat-suffix { font-size: 2rem; }
    .stat-label { font-size: 0.7rem; }
    .hero-stats { padding-top: 28px; }

    /* Services explorer : panneau de droite plus petit */
    .svc-display { min-height: 240px; }
    .svc-panel { padding: 26px 24px; }
    .svc-panel-icon { width: 56px; height: 56px; padding: 12px; margin-bottom: 14px; }
    .svc-panel h3 { font-size: 1.3rem; margin-bottom: 8px; }
    .svc-panel p { font-size: 0.92rem; }
    .svc-item { padding: 14px 16px; }
    .svc-item .svc-name { font-size: 1rem; }
    .svc-item .svc-num { font-size: 0.82rem; }

    /* Process : steps horizontaux, intro au-dessus */
    .process-grid { gap: 28px; }
    .process-intro h2 { font-size: 1.6rem; }
    .process-intro > p { font-size: 0.92rem; }
    .step { padding: 18px 0; gap: 16px; }
    .step-number { width: 42px; height: 42px; font-size: 0.92rem; }
    .step-content { padding-top: 4px; }
    .step h3 { font-size: 1.02rem; margin-bottom: 4px; }
    .step p { font-size: 0.85rem; line-height: 1.55; }

    /* Galerie : tuiles moins hautes */
    .gallery-grid { gap: 14px; }
    .gallery-img { min-height: 230px; }
    .gallery-item.large .gallery-img { min-height: 240px; }
    .gallery-info { padding: 22px 18px; }
    .gallery-info h4 { font-size: 1.1rem; }
    .gallery-filters { gap: 6px; margin-bottom: 28px; }
    .filter-btn { padding: 9px 18px; font-size: 0.8rem; }

    /* About : mosaique plus compacte, badge ajuste */
    .about-grid { gap: 32px; }
    .about-mosaic { aspect-ratio: 5/4; gap: 4px; padding: 4px; }
    .mosaic-tile { border-radius: 10px; }
    .about-badge { padding: 16px 20px; right: 12px; bottom: 12px; }
    .badge-number { font-size: 1.6rem; }
    .badge-text { font-size: 0.6rem; }
    .about-content > p { font-size: 0.92rem; margin-bottom: 12px; }
    .about-values { margin-top: 28px; gap: 18px; }
    .value h4 { font-size: 0.98rem; }
    .value p { font-size: 0.82rem; }

    /* Zone d'intervention : pills plus serrees */
    .zone-cities { gap: 8px; }
    .city { padding: 9px 16px; font-size: 0.85rem; }
    .zone::before { width: 360px; height: 360px; }


    /* CTA tighter */
    .cta h2 { font-size: 2rem; }
    .cta p { font-size: 0.98rem; margin-bottom: 24px; }

    /* Contact */
    .contact-grid { gap: 32px; }
    .contact-info > p { margin-bottom: 24px; }
    .contact-details { gap: 18px; margin-bottom: 28px; }

    /* Footer */
    .footer { padding-top: 56px; }
    .footer-top { padding-bottom: 36px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.1rem; }
    /* Stats en ligne (3 colonnes), plus compactes */
    .hero-stats { flex-direction: row; justify-content: space-between; gap: 12px; padding-top: 22px; }
    .hero-stats .stat { flex: 1; }
    .stat-number, .stat-suffix { font-size: 1.6rem; }
    .stat-label { font-size: 0.62rem; letter-spacing: 0.06em; margin-top: 4px; }
    .contact-form { padding: 24px; }
}

/* ===== ACCESSIBILITE : mouvement reduit ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    [data-aos] { opacity: 1 !important; transform: none !important; }
}

/* Focus visible pour navigation clavier */
a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
