/*
Theme Name: Maison Rémy Brèque
Theme URI: https://www.remy-breque.com
Author: Votre Nom
Author URI: https://www.remy-breque.com
Description: Thème élégant et moderne pour la Maison Rémy Brèque - Crémants de Bordeaux depuis 1927
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: remy-breque
Tags: wine, cremant, elegant, modern, responsive
*/

/* === RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === VARIABLES CSS === */
:root {
    --champagne-gold: #D4AF37;
    --deep-burgundy: #4A0E23;
    --soft-cream: #FBF8F3;
    --pearl-white: #F5F1EC;
    --elegant-gray: #6B6B6B;
    --dark-plum: #2D1B2E;
    --rose-gold: #B76E79;
    --forest-green: #3C5241;
}

/* === STYLES DE BASE === */
body {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark-plum);
    background: var(--soft-cream);
    overflow-x: hidden;
    line-height: 1.7;
}

/* === ANIMATIONS BULLES === */
.bubbles {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    top: 0;
    left: 0;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -100px;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2), transparent);
    border-radius: 50%;
    opacity: 0.5;
    animation: rise 15s infinite ease-in;
}

.bubble:nth-child(1) { width: 20px; height: 20px; left: 10%; animation-delay: 0s; }
.bubble:nth-child(2) { width: 30px; height: 30px; left: 20%; animation-delay: 2s; }
.bubble:nth-child(3) { width: 25px; height: 25px; left: 35%; animation-delay: 4s; }
.bubble:nth-child(4) { width: 35px; height: 35px; left: 50%; animation-delay: 0s; }
.bubble:nth-child(5) { width: 22px; height: 22px; left: 65%; animation-delay: 3s; }
.bubble:nth-child(6) { width: 28px; height: 28px; left: 80%; animation-delay: 5s; }
.bubble:nth-child(7) { width: 32px; height: 32px; left: 90%; animation-delay: 1s; }

@keyframes rise {
    0% {
        bottom: -100px;
        transform: translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        bottom: 100vh;
        transform: translateX(100px);
        opacity: 0;
    }
}

/* Import des polices Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Raleway:wght@300;400;500;600;700&display=swap');

/* ========================================
   STYLES BOUTIQUE WOOCOMMERCE - RÉMY BRÈQUE
   ======================================== */

/* Container principal boutique */
.woocommerce-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    background: white;
    min-height: 80vh;
}

/* Titre Boutique */
.page-title,
.woocommerce-products-header__title {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: #2C2C2C;
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Barre de tri */
.woocommerce-result-count {
    font-size: 1rem;
    color: #6B6B6B;
}

.woocommerce-ordering select {
    padding: 0.8rem 1.5rem;
    border: 2px solid #F5F5F5;
    border-radius: 50px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
}

/* ==========================================
   GRILLE PRODUITS - 3 COLONNES
   ========================================== */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 3rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 3rem 0 !important;
}

/* ==========================================
   CARTE PRODUIT
   ========================================== */
.woocommerce ul.products li.product {
    background: white !important;
    border: 1px solid #F5F5F5 !important;
    border-radius: 20px !important;
    padding: 2rem !important;
    text-align: center !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05) !important;
    transition: all 0.4s ease !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 550px !important;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.15) !important;
    border-color: #FF6B35 !important;
}

/* ==========================================
   LIEN ET IMAGE PRODUIT
   ========================================== */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
    display: block !important;
    text-decoration: none !important;
}

.woocommerce ul.products li.product img,
.woocommerce ul.products li.product .attachment-woocommerce_thumbnail,
.woocommerce ul.products li.product .wp-post-image {
    width: 40% !important;  /* ✅ 40% = très petit */
    max-width: 150px !important;  /* ✅ Max 150px */
    height: 180px !important;  /* ✅ Hauteur réduite */
    object-fit: contain !important;
    margin: 0 auto 1.5rem !important;
    border-radius: 10px !important;
    background: transparent !important;
    padding: 0.5rem !important;
    display: block !important;
}

/* ==========================================
   TITRE PRODUIT
   ========================================== */
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Cinzel', serif !important;
    font-size: 1.1rem !important;
    color: #2C2C2C !important;
    margin: 1rem 0 !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    min-height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.woocommerce ul.products li.product a:hover h2 {
    color: #FF6B35 !important;
}

/* ==========================================
   PRIX
   ========================================== */
.woocommerce ul.products li.product .price {
    font-family: 'Cinzel', serif !important;
    font-size: 2rem !important;
    color: #FF6B35 !important;
    font-weight: 700 !important;
    margin: 1.5rem 0 !important;
    display: block !important;
}

/* ==========================================
   BOUTON AJOUTER AU PANIER
   ========================================== */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
    background: #FF6B35 !important;
    color: white !important;
    padding: 1rem 2rem !important;
    border-radius: 50px !important;
    border: 2px solid #FF6B35 !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    width: 100% !important;
    margin-top: auto !important;
}

.woocommerce ul.products li.product .button:hover {
    background: transparent !important;
    color: #FF6B35 !important;
    transform: scale(1.05) !important;
}

/* ==========================================
   RESPONSIVE BOUTIQUE
   ========================================== */
@media (max-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
    }
    
    .woocommerce ul.products li.product {
        min-height: auto !important;
    }
}

/* ═══════════════════════════════════════
   HEADER - CORRECTION NAVIGATION
   ═══════════════════════════════════════ */

header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    background: rgba(251, 248, 243, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    border-bottom: 1px solid rgba(74, 14, 35, 0.1) !important;
}

nav {
    max-width: 1600px !important;
    margin: 0 auto !important;
    padding: 1rem 2rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 2rem !important;
    flex-wrap: nowrap !important;
}

.logo {
    font-family: 'Cinzel', serif !important;
    font-size: 1.5rem !important;
    color: #2C2C2C !important;
    text-decoration: none !important;
    letter-spacing: 2px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.nav-menu {
    display: flex !important;
    gap: 2rem !important;
    list-style: none !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: nowrap !important;
}

.nav-menu a {
    text-decoration: none !important;
    color: #6B6B6B !important;
    font-weight: 500 !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
    transition: color 0.3s ease !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

.nav-menu a:hover {
    color: #2C2C2C !important;
}

.cart-icon-container {
    position: relative !important;
    flex-shrink: 0 !important;
}

.cart-icon {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    color: #2C2C2C !important;
    text-decoration: none !important;
    font-size: 1.3rem !important;
}

.cta-nav {
    background: #FF6B35 !important;
    color: white !important;
    padding: 0.7rem 1.5rem !important;
    border-radius: 30px !important;
    font-weight: 600 !important;
    border: 2px solid #FF6B35 !important;
    white-space: nowrap !important;
    font-size: 0.85rem !important;
}

.cta-nav:hover {
    background: transparent !important;
    color: #FF6B35 !important;
}

.cta-contact {
    background: transparent !important;
    color: #FF6B35 !important;
    padding: 0.7rem 1.5rem !important;
    border-radius: 30px !important;
    font-weight: 600 !important;
    border: 2px solid #FF6B35 !important;
    white-space: nowrap !important;
    font-size: 0.85rem !important;
}

.cta-contact:hover {
    background: #FF6B35 !important;
    color: white !important;
}

/* ═══════════════════════════════════════
   RESPONSIVE - S'ADAPTE À TOUS LES ÉCRANS
   ═══════════════════════════════════════ */

@media (max-width: 1200px) {
    .nav-menu {
        gap: 1.5rem !important;
    }
    
    .nav-menu a {
        font-size: 0.8rem !important;
    }
    
    .cta-nav, .cta-contact {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 1024px) {
    .nav-menu {
        gap: 1rem !important;
    }
    
    .logo {
        font-size: 1.3rem !important;
    }
    
    .nav-menu a {
        font-size: 0.75rem !important;
    }
}

@media (max-width: 768px) {
    .nav-menu li:not(.cart-icon-container):not(:has(.cta-nav)):not(:has(.cta-contact)) {
        display: none !important;
    }
    
    nav {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 1rem !important;
    }
    
    .logo {
        width: 100% !important;
        text-align: center !important;
        font-size: 1.2rem !important;
    }
    
    /* Textes responsive */
    h1 {
        font-size: 2rem !important;
    }
    
    .hero-text h1 {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.1rem !important;
    }
    
    nav {
        padding: 1rem !important;
    }
    
    .cta-nav, .cta-contact {
        font-size: 0.75rem !important;
        padding: 0.6rem 1rem !important;
    }
    
    .hero-text h1 {
        font-size: 2rem !important;
    }
}

/* ═══════════════════════════════════════
   FIX HEADER - FORCE TOUT SUR UNE LIGNE
   ═══════════════════════════════════════ */

/* Force le logo sur une ligne */
.logo {
    white-space: nowrap !important;
    font-size: 1.2rem !important;
    margin-left: 0 !important;
}

/* Réduit TOUT pour que ça rentre */
nav {
    gap: 1rem !important;
    padding: 1rem 1.5rem !important;
}

.nav-menu {
    gap: 1.2rem !important;
}

.nav-menu a {
    font-size: 0.75rem !important;
}

.cta-nav, .cta-contact {
    padding: 0.6rem 1.2rem !important;
    font-size: 0.75rem !important;
    white-space: nowrap !important;
}

.cart-icon {
    font-size: 1.2rem !important;
}

.cart-icon-container {
    margin-right: 1rem !important;
}

/* Responsive ultra small */
@media (max-width: 1500px) {
    .logo {
        font-size: 1.1rem !important;
    }
    
    .nav-menu {
        gap: 1rem !important;
    }
    
    .nav-menu a {
        font-size: 0.7rem !important;
    }
    
    .cta-nav, .cta-contact {
        padding: 0.5rem 1rem !important;
        font-size: 0.7rem !important;
    }
}