/*
Theme Name: Drinks Center
Theme URI: https://drinks-center.com
Author: Drinks Center
Author URI: https://drinks-center.com
Description: Thème e-commerce premium pour la vente de vins, spiritueux et whiskys. Compatible WooCommerce. Charte bordeaux / orange / or, typographies Playfair Display + Poppins. Pensé pour le marché local (FCFA, Mobile Money, vérification d'âge 18+).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: drinks-center
Tags: e-commerce, woocommerce, custom-colors, custom-menu, featured-images, full-width-template, translation-ready, two-columns, right-sidebar
WC requires at least: 7.0
WC tested up to: 8.6
*/

/* =========================================================
   1. DESIGN TOKENS  (charte Drinks Center)
   ========================================================= */
:root {
    --dc-bordeaux:       #722F37;
    --dc-bordeaux-dark:  #5a1f28;
    --dc-orange:         #FF8C00;
    --dc-orange-dark:    #ff7700;
    --dc-gold:           #D4AF37;
    --dc-beige:          #F5F1E8;
    --dc-dark:           #2C2C2C;
    --dc-white:          #ffffff;
    --dc-gray:           #666666;
    --dc-light-gray:     #999999;
    --dc-border:         #e0e0e0;

    --dc-font-body:   'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --dc-font-title:  'Playfair Display', Georgia, 'Times New Roman', serif;

    --dc-radius-sm: 8px;
    --dc-radius:    15px;
    --dc-radius-lg: 25px;
    --dc-radius-pill: 50px;

    --dc-shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
    --dc-shadow:    0 5px 20px rgba(0,0,0,0.08);
    --dc-shadow-lg: 0 15px 40px rgba(0,0,0,0.15);

    --dc-maxwidth: 1400px;
    --dc-transition: all 0.3s ease;
}

/* =========================================================
   2. RESET & BASE
   ========================================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--dc-font-body);
    color: var(--dc-dark);
    background: var(--dc-white);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a { color: var(--dc-bordeaux); text-decoration: none; transition: var(--dc-transition); }
a:hover { color: var(--dc-orange); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--dc-font-title);
    color: var(--dc-bordeaux);
    line-height: 1.2;
    font-weight: 700;
}

ul, ol { list-style-position: inside; }

button { font-family: inherit; cursor: pointer; }

.dc-container { max-width: var(--dc-maxwidth); margin: 0 auto; padding: 0 40px; }

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px,1px,1px,1px);
    width: 1px; height: 1px; overflow: hidden;
}

/* =========================================================
   3. BOUTONS
   ========================================================= */
.dc-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--dc-radius-pill);
    font-weight: 600;
    font-size: 15px;
    border: none;
    text-align: center;
    transition: var(--dc-transition);
}
.dc-btn--primary { background: var(--dc-orange); color: #fff; }
.dc-btn--primary:hover { background: var(--dc-orange-dark); color:#fff; transform: translateY(-3px); box-shadow: 0 10px 25px rgba(255,140,0,0.3); }
.dc-btn--outline { background: transparent; color: var(--dc-bordeaux); border: 2px solid var(--dc-bordeaux); }
.dc-btn--outline:hover { background: var(--dc-bordeaux); color: #fff; }
.dc-btn--bordeaux { background: var(--dc-bordeaux); color:#fff; }
.dc-btn--bordeaux:hover { background: var(--dc-bordeaux-dark); color:#fff; }

/* =========================================================
   4. BANDEAU DE RÉASSURANCE
   ========================================================= */
.dc-top-banner {
    background: linear-gradient(135deg, var(--dc-bordeaux) 0%, var(--dc-bordeaux-dark) 100%);
    color: #fff;
    padding: 10px 0;
    font-size: 13px;
}
.dc-top-banner__inner {
    max-width: var(--dc-maxwidth);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.dc-top-banner span { display: flex; align-items: center; gap: 8px; }
.dc-top-banner span::before {
    content: '✓';
    background: var(--dc-orange);
    width: 20px; height: 20px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 12px;
}

/* =========================================================
   5. HEADER
   ========================================================= */
.dc-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.dc-header__inner {
    max-width: var(--dc-maxwidth);
    margin: 0 auto;
    padding: 18px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
.dc-logo {
    font-family: var(--dc-font-title);
    font-size: 30px;
    font-weight: 700;
    color: var(--dc-bordeaux);
    white-space: nowrap;
}
.dc-logo span { color: var(--dc-orange); }
.dc-logo img { max-height: 50px; width: auto; }

.dc-search { flex: 1; max-width: 500px; position: relative; }
.dc-search input[type="search"], .dc-search input[type="text"] {
    width: 100%;
    padding: 14px 52px 14px 20px;
    border: 2px solid var(--dc-beige);
    border-radius: var(--dc-radius-pill);
    font-size: 15px;
    font-family: inherit;
    transition: var(--dc-transition);
}
.dc-search input:focus {
    outline: none;
    border-color: var(--dc-orange);
    box-shadow: 0 0 0 3px rgba(255,140,0,0.1);
}
.dc-search button {
    position: absolute;
    right: 5px; top: 50%;
    transform: translateY(-50%);
    background: var(--dc-orange);
    border: none;
    width: 44px; height: 44px;
    border-radius: 50%;
    color: #fff; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s;
}
.dc-search button:hover { transform: translateY(-50%) scale(1.08); }

.dc-header__actions { display: flex; gap: 14px; align-items: center; }
.dc-header-btn {
    padding: 11px 22px;
    border-radius: var(--dc-radius-lg);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: var(--dc-transition);
}
.dc-header-btn--account { background: transparent; color: var(--dc-bordeaux); border: 2px solid var(--dc-bordeaux); }
.dc-header-btn--account:hover { background: var(--dc-bordeaux); color: #fff; }
.dc-header-btn--cart { background: var(--dc-orange); color: #fff; position: relative; }
.dc-header-btn--cart:hover { background: var(--dc-orange-dark); color:#fff; transform: translateY(-2px); }
.dc-cart-count {
    background: var(--dc-bordeaux);
    color:#fff;
    border-radius: 50%;
    padding: 1px 7px;
    font-size: 12px;
    margin-left: 4px;
}

.dc-burger { display: none; background: none; border: none; font-size: 26px; color: var(--dc-bordeaux); }

/* =========================================================
   6. NAVIGATION
   ========================================================= */
.dc-nav { background: var(--dc-beige); border-top: 1px solid var(--dc-border); }
.dc-nav__inner {
    max-width: var(--dc-maxwidth);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}
.dc-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; list-style: none; margin: 0; padding: 0; }
.dc-nav li { position: relative; }
.dc-nav a {
    display: block;
    padding: 16px 26px;
    color: var(--dc-dark);
    font-weight: 500;
    font-size: 15px;
}
.dc-nav a:hover { background: #fff; color: var(--dc-orange); }
.dc-nav .current-menu-item > a,
.dc-nav .current_page_item > a { color: var(--dc-orange); }
/* premier item mis en avant comme dans la maquette */
.dc-nav > ul > li:first-child > a { background: var(--dc-orange); color:#fff; border-radius: var(--dc-radius-sm); }
.dc-nav > ul > li:first-child > a:hover { background: var(--dc-orange-dark); }

/* sous-menus */
.dc-nav ul ul {
    display: none;
    position: absolute;
    top: 100%; left: 0;
    flex-direction: column;
    background: #fff;
    min-width: 220px;
    box-shadow: var(--dc-shadow);
    border-radius: 0 0 var(--dc-radius-sm) var(--dc-radius-sm);
    z-index: 50;
    padding: 8px 0;
}
.dc-nav li:hover > ul { display: flex; }
.dc-nav ul ul a { padding: 10px 20px; }
.dc-nav ul ul a:hover { background: var(--dc-beige); }

/* =========================================================
   7. HERO
   ========================================================= */
.dc-hero {
    background: linear-gradient(135deg, var(--dc-bordeaux-dark) 0%, var(--dc-bordeaux) 100%);
    padding: 80px 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.dc-hero::before {
    content: '';
    position: absolute; top: 0; right: 0;
    width: 50%; height: 100%;
    background: radial-gradient(circle, rgba(255,140,0,0.12) 0%, transparent 70%);
    opacity: 0.6;
}
.dc-hero__inner {
    max-width: var(--dc-maxwidth);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.dc-hero h1 { font-size: 56px; color:#fff; margin-bottom: 20px; }
.dc-hero h1 span { color: var(--dc-orange); }
.dc-hero p { font-size: 18px; margin-bottom: 30px; opacity: 0.92; }
.dc-hero__image { text-align: center; }
.dc-hero__showcase {
    width: 300px; height: 400px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
    font-size: 120px;
    overflow: hidden;
}
.dc-hero__showcase img { width:100%; height:100%; object-fit: cover; border-radius: 18px; }

/* =========================================================
   8. SECTIONS GÉNÉRIQUES
   ========================================================= */
.dc-section { padding: 80px 40px; }
.dc-section--beige { background: var(--dc-beige); }
.dc-section-title {
    text-align: center;
    font-size: 42px;
    color: var(--dc-bordeaux);
    margin-bottom: 50px;
}
.dc-section-title--left { text-align: left; }

/* =========================================================
   9. GRILLE CATÉGORIES (homepage)
   ========================================================= */
.dc-categories-grid {
    max-width: var(--dc-maxwidth);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.dc-category-card {
    background: linear-gradient(135deg, var(--dc-beige) 0%, #fff 100%);
    padding: 40px 30px;
    border-radius: var(--dc-radius);
    text-align: center;
    transition: var(--dc-transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    display: block;
}
.dc-category-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--dc-orange), var(--dc-bordeaux));
    transform: scaleX(0);
    transition: transform 0.3s;
}
.dc-category-card:hover::before { transform: scaleX(1); }
.dc-category-card:hover { transform: translateY(-10px); box-shadow: var(--dc-shadow-lg); border-color: var(--dc-orange); }
.dc-category-card__icon { font-size: 50px; margin-bottom: 15px; }
.dc-category-card h3 { font-size: 22px; color: var(--dc-bordeaux); margin-bottom: 10px; }
.dc-category-card p { color: var(--dc-gray); font-size: 14px; }

/* =========================================================
   10. CARTES PRODUITS (générique + promo)
   ========================================================= */
.dc-products-grid {
    max-width: var(--dc-maxwidth);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.dc-product-card {
    background: #fff;
    border-radius: var(--dc-radius);
    overflow: hidden;
    box-shadow: var(--dc-shadow);
    transition: var(--dc-transition);
    display: flex; flex-direction: column;
}
.dc-product-card:hover { transform: translateY(-6px); box-shadow: var(--dc-shadow-lg); }
.dc-product-card__media {
    height: 240px;
    background: linear-gradient(135deg, var(--dc-bordeaux) 0%, var(--dc-bordeaux-dark) 100%);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 80px;
    position: relative;
}
.dc-product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.dc-badge {
    position: absolute; top: 15px; right: 15px;
    background: var(--dc-orange); color: #fff;
    padding: 7px 14px; border-radius: 20px;
    font-weight: 700; font-size: 14px;
    z-index: 2;
}
.dc-badge--gold { background: var(--dc-gold); color: var(--dc-dark); }
.dc-product-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.dc-product-card__body h3 { font-size: 20px; color: var(--dc-bordeaux); margin-bottom: 8px; }
.dc-product-card__meta { color: var(--dc-gray); font-size: 14px; margin-bottom: 14px; }
.dc-price { display: flex; align-items: center; gap: 10px; margin: 12px 0 18px; }
.dc-price__old { text-decoration: line-through; color: var(--dc-light-gray); font-size: 16px; }
.dc-price__new { font-size: 24px; font-weight: 700; color: var(--dc-orange); }
.dc-product-card .dc-btn { margin-top: auto; width: 100%; border-radius: var(--dc-radius-sm); }

/* =========================================================
   11. FIL D'ARIANE
   ========================================================= */
.dc-breadcrumb {
    background: var(--dc-beige);
    padding: 14px 0;
    font-size: 14px;
    color: var(--dc-gray);
}
.dc-breadcrumb .dc-container { display: flex; flex-wrap: wrap; gap: 6px; }
.dc-breadcrumb a { color: var(--dc-bordeaux); }
.dc-breadcrumb a:hover { color: var(--dc-orange); }

/* =========================================================
   12. CONTENU / PAGES / ARTICLES
   ========================================================= */
.dc-main { min-height: 50vh; }
.dc-content-area { max-width: var(--dc-maxwidth); margin: 0 auto; padding: 60px 40px; }
.dc-layout { display: grid; grid-template-columns: 1fr 300px; gap: 50px; }
.dc-layout--full { grid-template-columns: 1fr; }

.dc-entry { background:#fff; }
.dc-entry__title { font-size: 38px; margin-bottom: 16px; }
.dc-entry__meta { color: var(--dc-light-gray); font-size: 14px; margin-bottom: 24px; }
.dc-entry__content { line-height: 1.8; }
.dc-entry__content > * { margin-bottom: 1.2em; }
.dc-entry__content h2 { font-size: 30px; margin: 1.4em 0 0.6em; }
.dc-entry__content h3 { font-size: 24px; margin: 1.2em 0 0.5em; }
.dc-entry__content a { text-decoration: underline; }
.dc-entry__content blockquote {
    border-left: 4px solid var(--dc-orange);
    padding: 8px 20px;
    background: var(--dc-beige);
    font-style: italic;
    border-radius: 0 var(--dc-radius-sm) var(--dc-radius-sm) 0;
}
.dc-entry__content img { border-radius: var(--dc-radius-sm); }
.dc-featured-img { border-radius: var(--dc-radius); margin-bottom: 30px; overflow: hidden; }

.dc-post-card {
    background:#fff;
    border-radius: var(--dc-radius);
    overflow:hidden;
    box-shadow: var(--dc-shadow);
    margin-bottom: 30px;
    transition: var(--dc-transition);
}
.dc-post-card:hover { transform: translateY(-4px); box-shadow: var(--dc-shadow-lg); }
.dc-post-card__thumb { height: 220px; overflow:hidden; }
.dc-post-card__thumb img { width:100%; height:100%; object-fit: cover; }
.dc-post-card__body { padding: 24px; }
.dc-post-card__body h2 { font-size: 24px; margin-bottom: 10px; }
.dc-post-card__body h2 a { color: var(--dc-bordeaux); }
.dc-post-card__body h2 a:hover { color: var(--dc-orange); }

/* =========================================================
   13. SIDEBAR / WIDGETS
   ========================================================= */
.dc-sidebar .widget {
    background: var(--dc-beige);
    border-radius: var(--dc-radius);
    padding: 26px;
    margin-bottom: 30px;
}
.dc-sidebar .widget-title {
    font-size: 20px; color: var(--dc-bordeaux);
    margin-bottom: 16px; padding-bottom: 12px;
    border-bottom: 2px solid var(--dc-orange);
}
.dc-sidebar ul { list-style: none; }
.dc-sidebar ul li { padding: 7px 0; border-bottom: 1px solid rgba(0,0,0,0.06); }

/* =========================================================
   14. PAGINATION
   ========================================================= */
.dc-pagination { display:flex; justify-content:center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.dc-pagination .page-numbers {
    display:inline-flex; align-items:center; justify-content:center;
    min-width: 44px; height: 44px; padding: 0 12px;
    border-radius: var(--dc-radius-sm);
    background: var(--dc-beige); color: var(--dc-bordeaux);
    font-weight: 600;
}
.dc-pagination .page-numbers.current,
.dc-pagination .page-numbers:hover { background: var(--dc-orange); color:#fff; }

/* =========================================================
   15. FOOTER
   ========================================================= */
.dc-footer { background: var(--dc-dark); color: #fff; padding: 60px 40px 30px; }
.dc-footer__inner {
    max-width: var(--dc-maxwidth);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.dc-footer h4 { color: var(--dc-orange); margin-bottom: 18px; font-size: 18px; }
.dc-footer p { color: #ccc; }
.dc-footer ul { list-style: none; }
.dc-footer ul li { margin-bottom: 10px; }
.dc-footer a { color: #ccc; }
.dc-footer a:hover { color: var(--dc-orange); }
.dc-footer__legal {
    max-width: var(--dc-maxwidth); margin: 0 auto;
    border-top: 1px solid #444; padding-top: 20px;
    color: #aaa; font-size: 13px; line-height: 1.7;
}
.dc-footer__bottom {
    text-align: center; padding-top: 20px;
    color: #999; font-size: 14px;
}

/* =========================================================
   16. VÉRIFICATION D'ÂGE (18+)
   ========================================================= */
.dc-agegate {
    position: fixed; inset: 0;
    z-index: 99999;
    background: linear-gradient(135deg, var(--dc-bordeaux-dark) 0%, var(--dc-bordeaux) 100%);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.dc-agegate[hidden] { display: none; }
.dc-agegate__box {
    background:#fff; border-radius: var(--dc-radius);
    max-width: 480px; width: 100%;
    padding: 48px 40px; text-align: center;
    box-shadow: var(--dc-shadow-lg);
}
.dc-agegate__logo { font-family: var(--dc-font-title); font-size: 32px; color: var(--dc-bordeaux); margin-bottom: 8px; }
.dc-agegate__logo span { color: var(--dc-orange); }
.dc-agegate h2 { font-size: 26px; margin: 14px 0; }
.dc-agegate p { color: var(--dc-gray); margin-bottom: 28px; }
.dc-agegate__actions { display:flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.dc-agegate__deny { background: transparent; border: 2px solid var(--dc-gray); color: var(--dc-gray); }
.dc-agegate__deny:hover { background: var(--dc-gray); color:#fff; }
.dc-agegate__warn { margin-top: 26px; font-size: 12px; color: var(--dc-light-gray); }
.dc-agegate__refused { font-size: 18px; color: var(--dc-bordeaux); }

/* message légal alcool sur fiches produit */
.dc-alcohol-notice {
    background: var(--dc-beige);
    border-left: 4px solid var(--dc-orange);
    padding: 14px 18px;
    border-radius: 0 var(--dc-radius-sm) var(--dc-radius-sm) 0;
    font-size: 13px; color: var(--dc-gray);
    margin: 24px 0;
}

/* =========================================================
   17. RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .dc-hero h1 { font-size: 44px; }
}
@media (max-width: 968px) {
    .dc-container, .dc-header__inner, .dc-nav__inner, .dc-content-area, .dc-section { padding-left: 20px; padding-right: 20px; }
    .dc-hero__inner { grid-template-columns: 1fr; text-align: center; }
    .dc-hero__showcase { width: 220px; height: 300px; }
    .dc-layout { grid-template-columns: 1fr; }
    .dc-header__inner { flex-wrap: wrap; }
    .dc-search { order: 3; max-width: 100%; flex-basis: 100%; }
    .dc-burger { display: block; }
    .dc-nav__inner { display: none; }
    .dc-nav.is-open .dc-nav__inner { display: block; }
    .dc-nav ul { flex-direction: column; }
    .dc-nav ul ul { position: static; box-shadow: none; }
    .dc-nav li:hover > ul { display: block; }
}
@media (max-width: 600px) {
    .dc-section-title { font-size: 32px; }
    .dc-hero h1 { font-size: 34px; }
    .dc-top-banner__inner { gap: 14px; font-size: 12px; }
    .dc-header-btn { padding: 10px 16px; font-size: 13px; }
}
