/* ===== DESIGN SYSTEM — Haussmann Sols Résine ===== */

:root {
    --bg-primary: #faf8f5;
    --bg-secondary: #ffffff;
    --text-primary: #2d2d2d;
    --text-secondary: #737373;
    --accent-gold: #b8860b;
    --accent-dark: #3a3a3a;
    --accent-gold-light: rgba(184, 134, 11, 0.08);
    --border-light: rgba(0, 0, 0, 0.06);
    --font-family: 'DM Sans', sans-serif;
    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --section-padding: 100px 60px;
    --section-padding-mobile: 60px 20px;
    --gap: 24px;
    --radius-card: 20px;
    --radius-btn: 50px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-family);
    font-weight: var(--fw-regular);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { line-height: 1.2; font-weight: var(--fw-light); }
h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); }
h2 { font-size: clamp(2rem, 4vw, 2.625rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.375rem); }
h1 strong, h2 strong, h3 strong { font-weight: var(--fw-semibold); }
.text-secondary { color: var(--text-secondary) !important; }
.accent-line { width: 48px; height: 3px; background: var(--accent-gold); border: none; margin: 16px 0; }

/* ===== BUTTONS ===== */
.btn-dark-custom {
    background: var(--accent-dark); color: var(--bg-primary); padding: 16px 36px;
    border: none; border-radius: var(--radius-btn); font-family: var(--font-family);
    font-size: 15px; font-weight: var(--fw-medium); cursor: pointer;
    transition: var(--transition); text-decoration: none; display: inline-block;
}
.btn-dark-custom:hover { background: #555; color: var(--bg-primary); }

.btn-gold {
    background: var(--accent-gold); color: #fff; padding: 16px 40px;
    border: none; border-radius: var(--radius-btn); font-family: var(--font-family);
    font-size: 15px; font-weight: var(--fw-medium); cursor: pointer;
    transition: var(--transition); text-decoration: none; display: inline-block;
}
.btn-gold:hover { background: #9a7209; color: #fff; }

.btn-text { color: var(--accent-gold); font-size: 15px; font-weight: var(--fw-medium); text-decoration: none; transition: var(--transition); }
.btn-text:hover { color: #9a7209; }

/* ===== NAVIGATION ===== */
.navbar { padding: 20px 60px; transition: var(--transition); background: transparent; }
.navbar.scrolled { background: rgba(250, 248, 245, 0.9); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--border-light); }
.navbar-brand { font-size: 16px; letter-spacing: 6px; text-transform: uppercase; font-weight: var(--fw-light); color: var(--accent-dark) !important; }
.nav-link { font-size: 14px; color: var(--text-secondary) !important; font-weight: var(--fw-medium); transition: var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--accent-gold) !important; }
.nav-cta { background: var(--accent-dark); color: var(--bg-primary) !important; padding: 10px 28px !important; border-radius: var(--radius-btn); font-weight: var(--fw-medium); }
.nav-cta:hover { background: #555; }
@media (max-width: 991.98px) {
    .navbar { padding: 16px 20px; flex-wrap: nowrap; }
    .navbar-brand { font-size: 13px; letter-spacing: 3px; }
    .navbar-toggler { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(6px); border-radius: 8px; padding: 6px 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); flex-shrink: 0; }
}

/* ===== SERVICE CARDS ===== */
.service-card { background: var(--bg-secondary); border-radius: var(--radius-card); padding: 48px 36px; transition: var(--transition); border: 1px solid rgba(0, 0, 0, 0.04); height: 100%; }
.service-card:hover { box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06); transform: translateY(-4px); }
.service-icon { width: 48px; height: 48px; background: linear-gradient(135deg, #f5ecd7, #e8d5a8); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 24px; }
.service-card h3 { font-weight: var(--fw-semibold); margin-bottom: 12px; }
.service-card p { font-size: 14px; color: var(--text-secondary); }
.service-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-size: 14px; color: var(--accent-gold); text-decoration: none; font-weight: var(--fw-medium); transition: var(--transition); }
.service-link:hover { color: #9a7209; gap: 12px; }

/* ===== HERO ===== */
.hero { min-height: 85vh; display: flex; align-items: center; padding: var(--section-padding); }
.hero h1 { margin-bottom: 8px; }
.hero p { font-size: 17px; color: var(--text-secondary); max-width: 550px; margin-bottom: 40px; }
.hero-btns { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* ===== TRUST BAND ===== */
.trust-band { display: flex; justify-content: center; gap: 60px; padding: 50px 40px; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); flex-wrap: wrap; }
.trust-item { text-align: center; }
.trust-num { font-size: 36px; font-weight: var(--fw-semibold); color: var(--accent-dark); }
.trust-label { font-size: 13px; color: var(--text-secondary); margin-top: 4px; letter-spacing: 1px; text-transform: uppercase; }

/* ===== SECTIONS ===== */
.section-padding { padding: var(--section-padding); }
.section-title { text-align: center; margin-bottom: 8px; }
.section-subtitle { text-align: center; color: var(--text-secondary); font-size: 15px; margin-bottom: 48px; }

/* ===== CTA SECTION ===== */
.cta-section { padding: 100px 60px; margin: 0 60px 60px; text-align: center; background: var(--accent-dark); border-radius: 24px; color: var(--bg-primary); }
.cta-section h2 { color: var(--bg-primary); margin-bottom: 12px; }
.cta-section p { color: #aaa; font-size: 15px; margin-bottom: 36px; }

/* ===== FOOTER ===== */
.site-footer { padding: 60px; font-size: 13px; color: var(--text-secondary); }
.footer-brand { font-size: 14px; letter-spacing: 4px; text-transform: uppercase; font-weight: var(--fw-light); color: var(--accent-dark); margin-bottom: 12px; }
.site-footer h5 { font-size: 14px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent-dark); font-weight: var(--fw-medium); margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--text-secondary); text-decoration: none; transition: var(--transition); }
.site-footer a:hover { color: var(--accent-gold); }
.footer-bottom { border-top: 1px solid var(--border-light); margin-top: 40px; padding-top: 24px; font-size: 12px; color: var(--text-secondary); }

/* ===== PAGE HEADER (inner pages) ===== */
.page-header { padding: 120px 60px 60px; text-align: center; }
.page-header h1 { margin-bottom: 8px; }
.page-header p { color: var(--text-secondary); font-size: 17px; max-width: 600px; margin: 0 auto; }
.page-header-subtitle { color: var(--text-secondary); font-size: 17px; max-width: 600px; margin: 0 auto; }

/* ===== SERVICE PAGES — Specs card ===== */
.specs-card { background: var(--bg-secondary); border-radius: var(--radius-card); padding: 40px 36px; border: 1px solid var(--border-light); }
.specs-card h3 { font-size: 1rem; letter-spacing: 2px; text-transform: uppercase; font-weight: var(--fw-semibold); color: var(--accent-dark); margin-bottom: 24px; }
.specs-list { margin: 0; }
.specs-list dt { font-weight: var(--fw-medium); font-size: 13px; letter-spacing: 0.5px; color: var(--accent-dark); margin-top: 16px; }
.specs-list dd { font-size: 14px; color: var(--text-secondary); margin-left: 0; padding-bottom: 12px; border-bottom: 1px solid var(--border-light); }
.specs-list dd:last-child { border-bottom: none; padding-bottom: 0; }

/* ===== SERVICE PAGES — Service list ===== */
.service-list { list-style: none; padding: 0; margin-top: 12px; }
.service-list li { padding: 10px 0 10px 24px; position: relative; font-size: 15px; color: var(--text-secondary); border-bottom: 1px solid var(--border-light); }
.service-list li::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; background: var(--accent-gold); border-radius: 50%; }
.service-list li:last-child { border-bottom: none; }

/* ===== SERVICE PAGES — Advantage cards ===== */
.section-alt { background: var(--bg-secondary); }
.advantage-card { padding: 32px 28px; border-radius: var(--radius-card); border: 1px solid var(--border-light); background: var(--bg-primary); height: 100%; transition: var(--transition); }
.advantage-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.06); transform: translateY(-2px); }
.advantage-icon { width: 40px; height: 40px; background: var(--accent-gold-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; margin-bottom: 16px; color: var(--accent-gold); }
.advantage-card h4 { font-size: 1rem; font-weight: var(--fw-semibold); margin-bottom: 8px; }
.advantage-card p { font-size: 14px; color: var(--text-secondary); margin: 0; }

/* ===== LEGAL PAGE ===== */
.legal-section { margin-bottom: 48px; }
.legal-section h2 { font-size: 1.1rem; font-weight: 600; letter-spacing: 0.5px; margin-bottom: 16px; }
.legal-section p, .legal-section address { font-size: 15px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 12px; }
.legal-section a { color: var(--accent-gold); text-decoration: none; }
.legal-section a:hover { color: #9a7209; }

/* ===== GALLERY PREVIEW (homepage) ===== */
.gallery-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-preview-item { aspect-ratio: 4/3; border-radius: 16px; overflow: hidden; cursor: pointer; transition: var(--transition); background: linear-gradient(135deg, #efe8dc, #e5ddd0); display: flex; align-items: center; justify-content: center; color: #bbb; font-size: 14px; }
.gallery-preview-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-preview-item:hover { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08); }
.gallery-preview-item:hover img { transform: scale(1.05); }

/* ===== SCROLL ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== FOCUS (accessibility) ===== */
:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 2px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 2px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
    .hero { padding: var(--section-padding-mobile); min-height: 70vh; }
    .section-padding { padding: var(--section-padding-mobile); }
    .cta-section { margin: 0 20px 40px; padding: 60px 24px; }
    .site-footer { padding: 40px 20px; }
    .page-header { padding: 100px 20px 40px; }
    .trust-band { gap: 32px; padding: 40px 20px; }
    .gallery-preview { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
    .gallery-preview { grid-template-columns: 1fr; }
    .trust-band { flex-direction: column; gap: 24px; }
}
