/* =====================================================
   Chatel Gallay - Styles personnalisés
   ===================================================== */

:root {
    --cg-primary: #1a3a5c;
    --cg-secondary: #2c5282;
    --cg-accent: #f6ad55;
    --cg-dark: #1a1a2e;
    --cg-light: #f7fafc;
}

/* --- Base --- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #2d3748;
}

/* --- Navbar --- */
.navbar {
    background: var(--cg-dark) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.navbar-brand {
    font-size: 1.3rem;
    letter-spacing: 0.5px;
}

.navbar-brand img {
    border-radius: 4px;
}

.navbar .nav-link.active {
    color: var(--cg-accent) !important;
}

/* --- Hero --- */
.hero-section {
    background: linear-gradient(135deg, var(--cg-dark) 0%, var(--cg-primary) 50%, var(--cg-secondary) 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.min-vh-50 {
    min-height: 50vh;
}

/* --- Cards --- */
.category-card,
.product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 12px;
    overflow: hidden;
}

.category-card:hover,
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12) !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--cg-primary), var(--cg-secondary));
}

/* --- Gallery --- */
.gallery-thumb {
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: var(--cg-accent);
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--cg-dark);
    color: white;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

/* --- Footer --- */
footer .footer-link:hover {
    color: #fff !important;
    transition: color 0.2s ease;
}

/* --- Breadcrumb --- */
.breadcrumb-item a {
    color: var(--cg-primary);
}

/* --- Product Description --- */
.product-description {
    line-height: 1.8;
}

.specifications {
    line-height: 1.8;
}

/* --- Page Content --- */
.page-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--cg-primary);
}

.page-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.page-content p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* --- Buttons --- */
.btn-primary {
    background-color: var(--cg-primary);
    border-color: var(--cg-primary);
}

.btn-primary:hover {
    background-color: var(--cg-secondary);
    border-color: var(--cg-secondary);
}

.btn-warning {
    background-color: var(--cg-accent);
    border-color: var(--cg-accent);
    color: var(--cg-dark);
}

.btn-warning:hover {
    background-color: #ed8936;
    border-color: #ed8936;
    color: var(--cg-dark);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-section {
        min-height: 40vh;
    }

    .hero-section h1 {
        font-size: 2rem;
    }
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeIn 0.4s ease-out;
}

/* --- Print --- */
@media print {
    .navbar, footer, .cookie-banner, .btn {
        display: none !important;
    }
}
