/* CSS critique : hero + navigation (affichage initial). Le reste est dans styles.css (chargé en async). */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/site/montserrat-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/site/opensans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --font-body: 'Open Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-heading: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
    --hero-carrelage-image: url('images/gallery/carrelage-interieur-millau.webp');
    --hero-faience-image: url('images/gallery/salle-de-bain-apres-faience.webp');
    --hero-exterieur-image: url('images/gallery/carrelage-exterieur-finition.webp');
    --hero-zone-image: url('images/gallery/carrelage-interieur-millau.webp');
    --hero-carreleur-image: url('images/gallery/pose-carrelage-cuisine.webp');
    --hero-home-image: url('images/gallery/salle-de-bain-apres-faience.webp');
    --hero-home-image-mobile: url('images/gallery/salle-de-bain-apres-faience-mobile.jpg');
    --hero-carrelage-image-mobile: url('images/gallery/carrelage-interieur-millau-mobile.jpg');
    --hero-faience-image-mobile: url('images/gallery/salle-de-bain-apres-faience-mobile.jpg');
    --hero-exterieur-image-mobile: url('images/gallery/carrelage-exterieur-finition-mobile.jpg');
    --hero-zone-image-mobile: url('images/gallery/carrelage-interieur-millau-mobile.jpg');
    --hero-carreleur-image-mobile: url('images/gallery/pose-carrelage-cuisine-mobile.jpg');
    --hero-carrelage-position: center 38%;
    --hero-faience-position: center 32%;
    --hero-exterieur-position: center 36%;
    --hero-zone-position: center 40%;
    --hero-carreleur-position: center 42%;
    --hero-carrelage-position-mobile: center 40%;
    --hero-faience-position-mobile: center 30%;
    --hero-exterieur-position-mobile: center 42%;
    --hero-zone-position-mobile: center 38%;
    --hero-carreleur-position-mobile: center 44%;
    --btn-action-bg: #2c3e50;
    --btn-action-bg-hover: #34495e;
    --btn-action-text: #ffffff;
    --btn-action-text-hover: #f8fafc;
    --btn-action-border: rgba(255, 255, 255, 0.22);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { background-color: #ebe5dc; }
body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background-color: #ebe5dc;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); }

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    color: #333;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 70px;
}
.nav-menu { display: flex; list-style: none; gap: 2rem; margin: 0; padding: 0; }
.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.8125rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.hamburger { display: none; flex-direction: column; cursor: pointer; }
.bar { width: 25px; height: 3px; background: #333; margin: 3px 0; }

.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.26) 0%, rgba(0, 0, 0, 0.45) 100%), var(--hero-home-image);
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    color: #fff;
    padding: 100px 0 50px;
    position: relative;
    overflow: hidden;
}
.hero--lcp-image { background-image: none; }
.hero-media { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; margin: 0; pointer-events: none; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero--lcp-image .hero-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.26) 0%, rgba(0, 0, 0, 0.45) 100%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.14) 0%, rgba(0, 0, 0, 0.28) 100%);
}
.sub-hero { min-height: 60vh; padding: 100px 0 40px; }
.hero-carrelage { background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.44) 100%), var(--hero-carrelage-image); background-size: cover; background-position: var(--hero-carrelage-position); }
.hero-faience { background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.24) 0%, rgba(0, 0, 0, 0.41) 100%), var(--hero-faience-image); background-size: cover; background-position: var(--hero-faience-position); }
.hero-exterieur { background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.4) 100%), var(--hero-exterieur-image); background-size: cover; background-position: var(--hero-exterieur-position); }
.hero-zone-intervention { background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.24) 0%, rgba(0, 0, 0, 0.43) 100%), var(--hero-zone-image); background-size: cover; background-position: var(--hero-zone-position); }
.hero-carreleur-millau { background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.24) 0%, rgba(0, 0, 0, 0.43) 100%), var(--hero-carreleur-image); background-size: cover; background-position: var(--hero-carreleur-position); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0, 0, 0, 0.14) 0%, rgba(0, 0, 0, 0.28) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.logo-hero-small {
    display: block;
    height: 70px;
    width: 70px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.hero-name {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff, #f8f9fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-title {
    font-size: 2.2rem;
    font-weight: 300;
    color: #e9ecef;
    margin-bottom: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.hero-subline { font-size: 1rem; color: #f1f3f5; max-width: 520px; margin: 0 auto 2rem; }
.hero-actions { display: inline-flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 0.5rem; }
.hero-tile-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 210px;
    padding: 1rem 1.25rem;
    text-decoration: none;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
    color: #111;
    text-align: center;
}
.hero-tile-secondary { background: var(--btn-action-bg); color: var(--btn-action-text); border-color: var(--btn-action-border); }
.hero-tile-detail { font-size: 1.1rem; font-weight: 600; }

@media (max-width: 768px) {
    .hero:not(.hero--lcp-image):not(.hero-carrelage):not(.hero-faience):not(.hero-exterieur):not(.hero-zone-intervention):not(.hero-carreleur-millau) {
        background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.26) 0%, rgba(0, 0, 0, 0.45) 100%), var(--hero-home-image-mobile);
    }
    .hero-carrelage { background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.44) 100%), var(--hero-carrelage-image-mobile); background-position: var(--hero-carrelage-position-mobile); }
    .hero-faience { background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.24) 0%, rgba(0, 0, 0, 0.41) 100%), var(--hero-faience-image-mobile); background-position: var(--hero-faience-position-mobile); }
    .hero-exterieur { background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.4) 100%), var(--hero-exterieur-image-mobile); background-position: var(--hero-exterieur-position-mobile); }
    .hero-zone-intervention { background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.24) 0%, rgba(0, 0, 0, 0.43) 100%), var(--hero-zone-image-mobile); background-position: var(--hero-zone-position-mobile); }
    .hero-carreleur-millau { background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.24) 0%, rgba(0, 0, 0, 0.43) 100%), var(--hero-carreleur-image-mobile); background-position: var(--hero-carreleur-position-mobile); }
    .nav-container { flex-direction: row; justify-content: flex-end; align-items: center; min-height: 60px; padding: 10px 20px; }
    .hamburger { display: flex; }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    .nav-menu.active { left: 0; }
    .nav-menu li { margin: 1rem 0; }
    .hero-name { font-size: 3.5rem; }
    .hero-title { font-size: 1.8rem; }
}

@media (max-width: 600px) {
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-tile-button { width: 100%; }
}
