/* ============================================
   La Fabrique des Copains - Static Site
   Inspired by Shop Isle WordPress theme
   ============================================ */

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

a { color: #dd9933; text-decoration: none; transition: color .2s; }
a:hover { color: #b8791a; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
    font-family: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, .85);
    backdrop-filter: blur(6px);
    transition: background .3s;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.navbar-brand img {
    width: 55px;
    height: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    color: #fff;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    padding: 8px 12px;
    transition: color .2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #dd9933;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    transition: all .3s;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 20px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 6px;
    margin-bottom: 16px;
}

.hero .tagline {
    font-size: 20px;
    letter-spacing: 4px;
    font-weight: 300;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border: 2px solid #fff;
    border-radius: 25px;
    color: #fff;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    transition: all .3s;
}

.btn:hover {
    background: #fff;
    color: #111;
}

.btn-gold {
    border-color: #dd9933;
    color: #dd9933;
}

.btn-gold:hover {
    background: #dd9933;
    color: #fff;
}

/* --- Section --- */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 24px;
    letter-spacing: 4px;
    margin-bottom: 50px;
    color: #333;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: #dd9933;
    margin: 16px auto 0;
}

/* --- Categories Grid --- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 4/3;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-card .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s;
}

.category-card:hover .overlay {
    background: rgba(0, 0, 0, .5);
}

.category-card .overlay h3 {
    color: #fff;
    font-size: 20px;
    letter-spacing: 4px;
}

/* --- Products Grid --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    text-align: center;
}

.product-card .product-image {
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 12px;
    aspect-ratio: 4/3;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-card h4 {
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 6px;
    color: #333;
}

.product-card .price {
    color: #dd9933;
    font-size: 15px;
    font-weight: 600;
}

.products-cta {
    text-align: center;
    margin-top: 40px;
}

/* --- Page Header --- */
.page-header {
    padding: 120px 0 60px;
    background: #111;
    color: #fff;
    text-align: center;
}

.page-header h1 {
    font-size: 32px;
    letter-spacing: 6px;
}

/* --- Page Content --- */
.page-content {
    padding: 60px 0;
}

.page-content .container {
    max-width: 800px;
}

.page-content h2 {
    font-size: 20px;
    margin: 30px 0 15px;
    color: #333;
    letter-spacing: 2px;
}

.page-content h3 {
    font-size: 18px;
    margin: 25px 0 12px;
    color: #444;
    letter-spacing: 1px;
}

.page-content p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.page-content ul, .page-content ol {
    margin: 10px 0 20px 30px;
}

.page-content li {
    margin-bottom: 6px;
}

/* --- Contact --- */
.contact-info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info p {
    font-size: 18px;
    line-height: 1.8;
}

.contact-email {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 36px;
    background: #dd9933;
    color: #fff;
    border-radius: 25px;
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    transition: background .3s;
}

.contact-email:hover {
    background: #b8791a;
    color: #fff;
}

.contact-social {
    margin-top: 30px;
}

.contact-social a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #555;
}

.contact-social a:hover {
    color: #dd9933;
}

.contact-social svg {
    width: 24px;
    height: 24px;
}

/* --- Footer --- */
.footer {
    background: #111;
    color: #999;
    padding: 40px 0 20px;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links {
    display: flex;
    list-style: none;
    gap: 24px;
}

.footer-links a {
    color: #999;
    font-size: 13px;
    letter-spacing: 1px;
}

.footer-links a:hover {
    color: #dd9933;
}

.footer .copyright {
    font-size: 13px;
}

.footer-social a {
    color: #999;
    margin-left: 12px;
    transition: color .2s;
}

.footer-social a:hover {
    color: #dd9933;
}

.footer-social svg {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 20px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .hero h1 { font-size: 36px; }
}

@media (max-width: 767px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, .95);
        flex-direction: column;
        padding: 20px 0;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 24px; }
    .categories-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 28px; letter-spacing: 4px; }
    .hero .tagline { font-size: 16px; }
    .footer .container { flex-direction: column; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
}

/* --- Scroll to top --- */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: #dd9933;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    opacity: 0;
    transition: opacity .3s;
    z-index: 900;
}

.scroll-top.visible { opacity: 1; }
.scroll-top:hover { background: #b8791a; }
