/* ===== ATELIERS BRUGIER - SITE STATIQUE ===== */

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

/* --- TYPOGRAPHIE --- */
body {
    font-family: 'Red Hat Text', 'Red Hat Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.7;
    color: #0d0c0c;
    overflow-x: hidden;
}

a { color: #820505; text-decoration: none; }
a:hover { color: #990000; text-decoration: underline; }

h1 { font-size: 42px; font-weight: 400; line-height: 1.3; margin-bottom: 0.5em; }
h2 { font-size: 26px; font-weight: 400; line-height: 1.4; margin-bottom: 0.6em; }
h3 { font-size: 18px; font-weight: 600; line-height: 1.5; margin-bottom: 0.5em; }
p { margin-bottom: 1.2em; }
img { max-width: 100%; height: auto; }

/* --- HEADER --- */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: none;
    text-transform: uppercase;
    padding: 12px 0;
    transition: box-shadow 0.3s;
}
#header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#site-logo a img { width: 250px; height: auto; display: block; }

/* --- MENU --- */
#main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}
#main-nav > ul > li { position: relative; }
#main-nav a {
    display: block;
    color: #0d0c0c;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 500;
    padding: 0.5em 0.6em;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}
#main-nav a:hover { color: #b9a380; text-decoration: none; }
#main-nav .current a { color: #b9a380; }

/* Dropdown */
#main-nav > ul > li > ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    border-radius: 0 0 8px 8px;
    min-width: 220px;
    padding: 8px 0;
    z-index: 100;
}
#main-nav > ul > li:hover > ul { display: block; }
#main-nav > ul > li > ul > li a {
    padding: 8px 16px;
    font-size: 13px;
    text-transform: none;
    white-space: nowrap;
}
#main-nav > ul > li > ul > li a:hover { background: #f8f5f0; }

/* Hamburger */
#menu-toggle { display: none; font-size: 28px; cursor: pointer; background: none; border: none; color: #0d0c0c; }

/* --- HERO --- */
.hero {
    position: relative;
    width: 100%;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: 72px;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.38);
}
.hero-content { position: relative; z-index: 1; padding: 60px 24px; max-width: 800px; }
.hero h1 { color: #fff; text-transform: uppercase; font-size: clamp(28px, 5vw, 42px); margin-bottom: 16px; }
.hero-divider {
    width: 70px;
    height: 2px;
    background: #fff;
    margin: 0 auto 20px;
}

/* --- CONTENU --- */
#content { padding-top: 0; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px;
}
.container.narrow { max-width: 800px; }

/* --- SECTIONS PAGE D'ACCUEIL --- */
.home-section {
    text-align: center;
    padding: 50px 24px;
    max-width: 1100px;
    margin: 0 auto;
}
.home-section h2 {
    text-align: center;
    margin-bottom: 16px;
}
.home-section a.btn-home {
    display: inline-block;
    margin-top: 12px;
    padding: 12px 28px;
    background: #990000;
    color: #fff;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.03em;
    transition: background 0.3s;
}
.home-section a.btn-home:hover { background: #820505; text-decoration: none; }

.home-activity { border-top: 1px solid #eee; }
.home-activity:last-child { border-bottom: 1px solid #eee; }

/* --- PORTEFOLIO / COLLECTIONS --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 30px;
}
.portfolio-item {
    text-align: center;
    overflow: hidden;
    border-radius: 8px;
}
.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}
.portfolio-item:hover img { transform: scale(1.03); }
.portfolio-item h3 { margin-top: 12px; }
.portfolio-item a { color: #0d0c0c; text-decoration: none; }
.portfolio-item a:hover { color: #820505; }

/* --- ACTUALITES / BLOG --- */
.blog-list { max-width: 800px; margin: 0 auto; }
.blog-item {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}
.blog-item img { width: 180px; height: 120px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.blog-item-content h3 { margin-bottom: 6px; }
.blog-item-content h3 a { color: #0d0c0c; text-decoration: none; }
.blog-item-content h3 a:hover { color: #820505; }
.blog-item-date { font-size: 13px; color: #999; margin-bottom: 8px; }
.blog-empty { text-align: center; padding: 40px; color: #888; }

/* --- CONTACT --- */
.contact-info { display: flex; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.contact-info-item { flex: 1; min-width: 250px; }
.contact-info-item h3 { color: #820505; margin-bottom: 10px; }
.contact-form { max-width: 600px; margin-top: 30px; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    margin-bottom: 16px;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: #820505; }
.contact-form button {
    background: #820A03;
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s;
}
.contact-form button:hover { background: #990000; }
.contact-map { margin-top: 40px; }
.contact-map iframe { width: 100%; height: 400px; border: 0; border-radius: 8px; }

/* --- GALERIE D'IMAGES --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin: 30px 0;
}
.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s;
}
.gallery-grid img:hover { transform: scale(1.03); }

/* --- DIVIDER --- */
.divider {
    width: 70px;
    height: 2px;
    background: #820505;
    margin: 20px auto;
    border: none;
}

/* --- 404 --- */
.error-page {
    text-align: center;
    padding: 120px 24px 60px;
    max-width: 800px;
    margin: 0 auto;
}
.error-page h1 { margin-bottom: 16px; }
.error-page .btn-home {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 28px;
    background: #990000;
    color: #fff;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 14px;
}
.error-page .btn-home:hover { background: #820505; text-decoration: none; }
.error-page img { max-width: 500px; margin-top: 30px; border-radius: 8px; }

/* --- FOOTER --- */
#footerwrap {
    background: #820505;
    color: #fff;
    padding: 40px 24px 20px;
    margin-top: 60px;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-menu { display: flex; gap: 24px; list-style: none; }
.footer-menu a {
    color: #fff;
    text-decoration: underline;
    text-transform: uppercase;
    font-size: 13px;
}
.footer-menu a:hover { color: #b9a380; }
.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    opacity: 0.8;
}

/* --- MENTIONS LEGALES --- */
.mentions-legales h3 { color: #b51a00; margin-top: 30px; margin-bottom: 10px; font-size: 16px; }
.mentions-legales p { margin-bottom: 12px; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    #site-logo a img { width: 220px; }
    #main-nav ul { gap: 12px; }
    #main-nav a { font-size: 12px; padding: 0.5em 0.4em; }
}

@media (max-width: 768px) {
    #header { padding: 10px 0; }
    .header-inner { flex-wrap: wrap; }
    #menu-toggle { display: block; order: 3; }
    #site-logo { flex: 1; }
    #site-logo a img { width: 200px; }

    #main-nav {
        order: 4;
        width: 100%;
        display: none;
    }
    #main-nav.open { display: block; }
    #main-nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    #main-nav > ul > li > ul {
        position: static;
        display: block;
        box-shadow: none;
        padding: 0 0 0 20px;
        min-width: auto;
    }
    #main-nav > ul > li > ul > li a { padding: 6px 16px; }
    #main-nav a { padding: 10px 0; border-top: 1px solid #eee; }

    .hero { background-attachment: scroll; min-height: 40vh; margin-top: 60px; }
    h1 { font-size: 28px; }
    h2 { font-size: 22px; }

    .blog-item { flex-direction: column; }
    .blog-item img { width: 100%; height: 200px; }

    .footer-inner { flex-direction: column; text-align: center; }
    .footer-menu { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
    #site-logo a img { width: 180px; }
    body { font-size: 16px; }
    h1 { font-size: 24px; }
    .hero h1 { font-size: 22px; }
    .container { padding: 40px 16px; }
    .portfolio-grid { grid-template-columns: 1fr; }
}
