/**
 * Components CSS - Art on a Plate
 * Centralized styles for all components
 */

/* ======================
   LANDING PAGE STYLES
   ====================== */
.art-landing-container {
    position: relative;
    min-height: 70vh;
}

.art-landing-container::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--accent-brown);
    opacity: 0.6;
    z-index: -1;
}

.art-landing-container::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 15%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--accent-brown);
    opacity: 0.4;
    z-index: -1;
}

@media (max-width: 768px) {
    .art-landing-container::before,
    .art-landing-container::after {
        display: none;
    }
}

/* ======================
   COOKIE BANNER STYLES
   ====================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #fdf5e6 0%, #f5f0e6 100%);
    border-top: 3px solid #5d4037;
    box-shadow: 0 -4px 20px rgba(93, 64, 55, 0.1);
    z-index: 9999;
    padding: 1rem 0;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-content {
    font-family: 'Raleway', sans-serif;
}

.cookie-title {
    color: #5d4037;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.cookie-text {
    color: #5d4037;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-link {
    color: #795548;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-link:hover {
    color: #5d4037;
    text-decoration: none;
}

.btn-art-primary {
    background-color: #5d4037;
    border-color: #5d4037;
    color: white;
    font-weight: 500;
}

.btn-art-primary:hover {
    background-color: #4a2c2a;
    border-color: #4a2c2a;
    color: white;
}

.cookie-buttons .btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
}

.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(93, 64, 55, 0.15);
}

.modal-header {
    background: linear-gradient(135deg, #fdf5e6 0%, #f5f0e6 100%);
    border-radius: 15px 15px 0 0;
}

.cookie-category {
    padding: 1rem;
    background: #fafafa;
    border-radius: 8px;
    border-left: 3px solid #5d4037;
}

.form-check-input:checked {
    background-color: #5d4037;
    border-color: #5d4037;
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 1.5rem 0;
    }
    
    .cookie-buttons {
        margin-top: 1rem;
    }
    
    .cookie-buttons .btn {
        margin-bottom: 0.5rem;
        width: 100%;
    }
}

/* ======================
   FOOTER STYLES
   ====================== */
.footer-content {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 3px solid var(--bs-primary);
    padding-top: 2rem !important;    /* Réduction du padding : de 3rem à 2rem */
    padding-bottom: 2rem !important; /* Réduction du padding : de 3rem à 2rem */
}

.footer-content a:hover {
    color: var(--bs-primary) !important;
    transition: color 0.3s ease;
}

.social-links a {
    font-size: 1.2rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
}

.payment-methods img {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.payment-methods img:hover {
    opacity: 1;
}

/* Footer responsive adjustments */
@media (max-width: 768px) {
    .footer-content {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

@media (max-width: 576px) {
    .footer-content {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
}

/* ======================
   FOOTER LOGO STYLES
   ====================== */
.footer-logo {
    height: 1.2em;
    width: auto;
    object-fit: contain;
    vertical-align: baseline;
    display: inline-block;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 0.8;
}

/* Responsivité pour le logo du footer */
@media (max-width: 768px) {
    .footer-logo {
        height: 1em;
    }
}

/* ======================
   TYPOGRAPHY UTILITIES
   ====================== */
.font-playfair {
    font-family: 'Playfair Display', serif !important;
}

.font-raleway {
    font-family: 'Raleway', sans-serif !important;
}

.font-playfair-bold {
    font-family: 'Playfair Display', serif !important;
    font-weight: 700 !important;
}

.font-playfair-italic {
    font-family: 'Playfair Display', serif !important;
    font-style: italic !important;
}

/* ======================
   COMPONENT UTILITIES
   ====================== */
.brand-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.brand-subtitle {
    font-family: 'Raleway', sans-serif;
    font-style: italic;
}

.footer-title {
    font-family: 'Playfair Display', serif;
}

.footer-description {
    font-family: 'Raleway', sans-serif;
}

.catalog-hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.catalog-hero-lead {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--lighter-brown);
}

.legal-page-title {
    font-family: 'Playfair Display', serif;
}

.legal-content {
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
}

.cookie-modal-title {
    font-family: 'Playfair Display', serif;
}

.cookie-modal-text {
    font-family: 'Raleway', sans-serif;
}

.search-modal-content {
    background: transparent;
    border: 0;
    opacity: 0.90;
}

.search-input-transparent {
    background: transparent;
}

.nav-checkout-container {
    width: auto;
}

.stripe-error {
    color: red;
    margin-top: 15px;
}

.hidden-elements {
    display: none;
}

.save-confirmation {
    display: none;
}
