/* ============================================================
   BOUCHERIE AMIOT — MARKET CSS GLOBAL
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Lato:wght@300;400;700&display=swap');

:root {
    --rouge-profond:  #1a0000;
    --rouge-sombre:   #2d0000;
    --rouge-principal:#7a0000;
    --rouge-vif:      #a00000;
    --rouge-accent:   #c0392b;
    --or:             #c9a84c;
    --or-clair:       #e8c96d;
    --creme:          #fdf6f0;
    --creme2:         #f5ebe0;
    --blanc:          #ffffff;
    --texte:          #1a1a1a;
    --texte-clair:    #f0e8e0;
    --muted:          #8a7a70;
    --border:         #e0d5cc;
    --border-sombre:  rgba(255,255,255,0.1);
    --vert:           #27ae60;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }

body {
    font-family: 'Lato', sans-serif;
    background: var(--rouge-profond);
    color: var(--texte-clair);
    min-height: 100vh;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(26,0,0,0.3) 100%);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid var(--border-sombre);
    position: sticky;
    top: 0;
    z-index: 200;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.logo strong {
    font-family: 'Playfair Display', serif;
    color: white !important;
    font-size: 1.2rem;
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
    text-decoration: none;
}
.hero-logo {
    width: 100px;
    height: auto;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.6));
    flex-shrink: 0;
}
.hero-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    text-align: left;
}
.hero-header h1 { margin-bottom: 6px; }
@media (max-width: 500px) {
    .hero-header { flex-direction: column; text-align: center; gap: 12px; }
    .hero-logo { width: 70px; }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-compte {
    color: var(--texte-clair);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 7px 14px;
    border-radius: 3px;
    border: 1px solid var(--border-sombre);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.btn-compte:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.25);
}

.btn-panier {
    background: var(--or);
    color: var(--rouge-profond);
    padding: 9px 18px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'Lato', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}
.btn-panier:hover { background: var(--or-clair); }

.panier-badge {
    background: var(--rouge-principal);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ============================================================
   HERO / BANNER
   ============================================================ */
.hero {
    background: linear-gradient(135deg, var(--rouge-sombre) 0%, var(--rouge-profond) 60%, #0d0000 100%);
    text-align: center;
    padding: 56px 24px 48px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    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.02'%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");
}
.hero-content { position: relative; z-index: 1; }
.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--blanc);
    margin-bottom: 10px;
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero h1 em {
    color: var(--or);
    font-style: normal;
}
.hero p {
    color: rgba(240,232,224,0.75);
    font-size: 1rem;
    margin-bottom: 24px;
    font-weight: 300;
}
.hero-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.hero-badge {
    background: rgba(201,168,76,0.15);
    border: 1px solid rgba(201,168,76,0.4);
    color: var(--or-clair);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px;
}

/* ============================================================
   BARRE LIVRAISON
   ============================================================ */
.livraison-bar {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-sombre);
    border-radius: 4px;
    padding: 16px 24px;
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    backdrop-filter: blur(4px);
}
.livraison-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
}
.livraison-icon { font-size: 1.5rem; }
.livraison-item strong {
    display: block;
    color: var(--or-clair);
    font-size: 0.9rem;
}
.livraison-item span {
    color: rgba(240,232,224,0.6);
    font-size: 0.78rem;
}

/* ============================================================
   FILTRES CATÉGORIE
   ============================================================ */
.filtres {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.filtre-btn {
    padding: 7px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-sombre);
    background: rgba(255,255,255,0.05);
    color: rgba(240,232,224,0.8);
    font-size: 0.85rem;
    font-family: 'Lato', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.filtre-btn:hover {
    background: rgba(201,168,76,0.15);
    border-color: var(--or);
    color: var(--or-clair);
}
.filtre-btn.active {
    background: var(--or);
    color: var(--rouge-profond);
    border-color: var(--or);
    font-weight: 700;
}

/* ============================================================
   SECTION TITRE
   ============================================================ */
.section-titre {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--or-clair);
    margin: 36px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(201,168,76,0.3);
    letter-spacing: 0.04em;
}

/* ============================================================
   GRILLE PRODUITS
   ============================================================ */
.produits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}

.produit-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-sombre);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.25s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(4px);
}
.produit-card:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(201,168,76,0.4);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    transform: translateY(-3px);
}

.produit-img {
    width: 100%;
    aspect-ratio: 4/3;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    overflow: hidden;
    position: relative;
}
.produit-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.produit-card:hover .produit-img img { transform: scale(1.05); }

.produit-body {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.produit-cat {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--or);
    margin-bottom: 4px;
}
.produit-nom {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: var(--blanc);
    margin-bottom: 6px;
    line-height: 1.3;
}
.produit-desc {
    font-size: 0.82rem;
    color: rgba(240,232,224,0.55);
    flex: 1;
    margin-bottom: 12px;
    line-height: 1.5;
}
.produit-prix {
    font-size: 1.05rem;
    color: var(--or-clair);
    font-weight: 700;
}
.produit-prix span {
    font-size: 0.78rem;
    color: rgba(240,232,224,0.5);
    font-weight: 400;
}
.btn-voir {
    display: block;
    margin-top: 12px;
    padding: 9px;
    background: var(--rouge-principal);
    color: white;
    text-align: center;
    border-radius: 3px;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    transition: background 0.2s;
    border: 1px solid transparent;
}
.produit-card:hover .btn-voir {
    background: var(--or);
    color: var(--rouge-profond);
    font-weight: 700;
}

/* ============================================================
   NOTIFICATION PANIER
   ============================================================ */
.notif-panier {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--rouge-sombre);
    border: 1px solid var(--or);
    color: var(--texte-clair);
    padding: 14px 20px;
    border-radius: 4px;
    font-size: 0.9rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 320px;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.notif-panier.show { transform: translateX(0); }
.notif-panier .notif-icon { font-size: 1.4rem; flex-shrink: 0; }
.notif-panier strong { color: var(--or-clair); display: block; }

/* ============================================================
   FORMULAIRES
   ============================================================ */
.form-box {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-sombre);
    border-radius: 4px;
    padding: 28px;
    backdrop-filter: blur(4px);
}
.form-box h3 {
    font-family: 'Playfair Display', serif;
    color: var(--or-clair);
    margin-bottom: 20px;
    font-size: 1.1rem;
}
.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(240,232,224,0.6);
    margin-bottom: 5px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-sombre);
    border-radius: 3px;
    color: var(--texte-clair);
    font-size: 0.95rem;
    font-family: 'Lato', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--or);
}
.form-group input::placeholder { color: rgba(240,232,224,0.3); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ============================================================
   BOUTONS
   ============================================================ */
.btn-primary {
    width: 100%;
    padding: 13px;
    background: var(--or);
    color: var(--rouge-profond);
    border: none;
    border-radius: 3px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Lato', sans-serif;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: background 0.2s;
}
.btn-primary:hover { background: var(--or-clair); }

.btn-secondary {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: var(--texte-clair);
    border: 1px solid var(--border-sombre);
    border-radius: 3px;
    font-size: 0.95rem;
    font-family: 'Lato', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.25);
}

.btn-rouge {
    background: var(--rouge-principal);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 3px;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.btn-rouge:hover { background: var(--rouge-vif); }

/* ============================================================
   MESSAGES
   ============================================================ */
.msg-erreur {
    background: rgba(192,57,43,0.2);
    border: 1px solid rgba(192,57,43,0.5);
    color: #f1948a;
    padding: 12px 16px;
    border-radius: 3px;
    font-size: 0.88rem;
    margin-bottom: 16px;
}
.msg-succes {
    background: rgba(39,174,96,0.15);
    border: 1px solid rgba(39,174,96,0.4);
    color: #82e0aa;
    padding: 12px 16px;
    border-radius: 3px;
    font-size: 0.88rem;
    margin-bottom: 16px;
}

/* ============================================================
   PANIER / COMMANDE
   ============================================================ */
.panier-table { width: 100%; border-collapse: collapse; }
.panier-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--or);
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-sombre);
    text-align: left;
}
.panier-table td {
    padding: 14px;
    border-bottom: 1px solid var(--border-sombre);
    vertical-align: middle;
    font-size: 0.92rem;
}
.panier-table tr:last-child td { border-bottom: none; }

.total-ligne {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 0.92rem;
    border-bottom: 1px solid var(--border-sombre);
    color: rgba(240,232,224,0.75);
}
.total-ligne:last-child { border-bottom: none; }
.total-final {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--or-clair);
    font-weight: 700;
}

/* ============================================================
   COMPTE / LOGIN
   ============================================================ */
.compte-wrap {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}
.compte-box {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-sombre);
    border-radius: 4px;
    padding: 36px 32px;
    width: 100%;
    max-width: 420px;
    backdrop-filter: blur(8px);
}
.compte-box .box-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--or-clair);
    margin-bottom: 4px;
}
.compte-box .box-sub {
    font-size: 0.85rem;
    color: rgba(240,232,224,0.5);
    margin-bottom: 24px;
}
.compte-links {
    margin-top: 18px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(240,232,224,0.5);
}
.compte-links a { color: var(--or-clair); text-decoration: none; }
.compte-links a:hover { text-decoration: underline; }
.compte-links .sep { margin: 0 8px; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: var(--rouge-profond);
    border-top: 1px solid var(--border-sombre);
    color: rgba(240,232,224,0.4);
    text-align: center;
    padding: 24px;
    font-size: 0.82rem;
    margin-top: 48px;
}

.hero-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.6));
    flex-shrink: 0;
}
.hero-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    text-align: left;
}
.hero-header h1 { margin-bottom: 6px; }
@media (max-width: 500px) {
    .hero-header { flex-direction: column; text-align: center; gap: 12px; }
    .hero-logo { width: 80px; height: 80px; }
}

/* ============================================================
   UTILITAIRES
   ============================================================ */
.empty {
    text-align: center;
    padding: 60px 20px;
    color: rgba(240,232,224,0.4);
    font-style: italic;
}
.text-or { color: var(--or-clair); }
.text-muted { color: rgba(240,232,224,0.5); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.7rem; }
    .produits-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .livraison-bar { gap: 16px; }
    .form-grid-2 { grid-column: 1fr; }
    .header-inner { padding: 0 14px; }
    .btn-compte span { display: none; }
    .logo img { height: 48px; }
    .logo-nom span { display: none; }
}
@media (max-width: 400px) {
    .produits-grid { grid-template-columns: 1fr; }
    .logo-nom { display: none; }
}
</style>
