/* ─────────────────────────────────────────────────────
   My Dream Shop — Site vitrine
───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --bordeaux: #6B1C2E;
    --or: #C9A84C;
    --creme: #FAF6F0;
    --creme-2: #FBF0F4;
    --nuit: #1A0A0F;
    --rose: #C44870;
    --sombre: #1E0A12;
    --vert-wa: #25D366;
}
html, body { background: var(--creme); color: var(--sombre); font-family: 'Montserrat', sans-serif; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

.site-main { padding-top: 75px; min-height: 60vh; }
@media (max-width: 768px) { .site-main { padding-top: 0; padding-bottom: 70px; } }

.serif { font-family: 'Playfair Display', serif; }
.italic-serif { font-family: 'Cormorant Garamond', serif; font-style: italic; }
.label { font-family: 'Raleway', sans-serif; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.75rem; color: var(--bordeaux); }
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section-title { font-family: 'Playfair Display', serif; color: var(--bordeaux); font-size: clamp(1.75rem, 4vw, 2.75rem); text-align: center; margin-bottom: 0.5rem; }
.section-sub { font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--rose); font-size: 1.15rem; text-align: center; margin-bottom: 2.5rem; }

/* Navbar desktop */
.desktop-navbar { position: fixed; top: 4px; left: 50%; transform: translateX(-50%); width: calc(100% - 2rem); max-width: 1280px; background: rgba(255,255,255,0.96); backdrop-filter: blur(8px); border-radius: 50px; padding: 0.6rem 1.5rem; display: flex; align-items: center; justify-content: space-between; z-index: 100; box-shadow: 0 4px 20px rgba(107,28,46,0.08); }
.desktop-navbar .nav-logo img { height: 44px; }
.desktop-navbar .nav-links { display: flex; gap: 1.5rem; align-items: center; }
.desktop-navbar .nav-links a { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em; color: var(--sombre); transition: color 0.2s; }
.desktop-navbar .nav-links a:hover, .desktop-navbar .nav-links a.active { color: var(--rose); }
.desktop-navbar .nav-cart { background: var(--rose); color: #fff; padding: 0.55rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: 0.85rem; position: relative; }
.cart-badge { background: #fff; color: var(--rose); font-size: 0.7rem; font-weight: 700; padding: 1px 6px; border-radius: 999px; margin-left: 0.4rem; }
@media (max-width: 768px) { .desktop-navbar { display: none; } }

/* Mobile bottom nav */
.mobile-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid rgba(107,28,46,0.1); z-index: 200; padding: 0.4rem 0; }
.mobile-nav-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.mobile-nav a { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; font-size: 0.65rem; color: #666; padding: 0.4rem 0; position: relative; }
.mobile-nav a.active { color: var(--rose); }
.mobile-nav a svg { width: 22px; height: 22px; }
.mobile-nav .badge-dot { position: absolute; top: 4px; right: calc(50% - 18px); background: var(--rose); color: #fff; font-size: 0.6rem; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
@media (max-width: 768px) { .mobile-nav { display: block; } }

/* Hero */
.hero { position: relative; height: 100vh; min-height: 600px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url('/images/hero-boutique.jpg') center/cover no-repeat; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,10,15,0.15) 0%, rgba(26,10,15,0.6) 100%); }
.hero-content { position: absolute; left: 50%; bottom: 22%; transform: translateX(-50%); text-align: center; color: #fff; padding: 0 1rem; max-width: 90%; }
.hero-content .label { color: rgba(255,255,255,0.85); margin-bottom: 1rem; }
.hero-content h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 700; line-height: 1.05; margin-bottom: 1rem; }
.hero-content p { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: clamp(1.1rem, 2vw, 1.5rem); margin-bottom: 2rem; max-width: 640px; margin-left: auto; margin-right: auto; }
.btn-primary { display: inline-block; background: var(--rose); color: #fff; padding: 0.85rem 2rem; border-radius: 999px; font-weight: 600; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; transition: all 0.2s; border: none; }
.btn-primary:hover { background: var(--bordeaux); transform: translateY(-2px); }
.btn-ghost { display: inline-block; background: transparent; color: var(--bordeaux); border: 1.5px solid var(--bordeaux); padding: 0.7rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; transition: all 0.2s; }
.btn-ghost:hover { background: var(--bordeaux); color: #fff; }

/* Univers */
.univers { background: var(--creme); padding: 5rem 0; }
.univers-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
.univers-item { position: relative; aspect-ratio: 3/4; overflow: hidden; border-radius: 6px; background: linear-gradient(135deg, var(--bordeaux), var(--rose)); }
.univers-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.univers-item:hover img { transform: scale(1.05); }
.univers-item .ov { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(26,10,15,0.85) 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 1rem; color: #fff; }
.univers-item h3 { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; }
.univers-item p { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 0.85rem; color: rgba(255,255,255,0.85); }
@media (max-width: 1024px) { .univers-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .univers-grid { grid-template-columns: repeat(2, 1fr); } }

/* Sections alternées */
.section { padding: 5rem 0; }
.section.alt { background: var(--creme-2); }

/* Coup de cœur / produits */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.product-card { background: #fff; border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; transition: all 0.3s; box-shadow: 0 2px 12px rgba(107,28,46,0.05); }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(107,28,46,0.12); }
.product-card .img { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--creme); }
.product-card .img img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.4s, transform 0.4s; }
.product-card .img img.alt { position: absolute; inset: 0; opacity: 0; }
.product-card:hover .img img.alt { opacity: 1; }
.product-card .badge { position: absolute; top: 0.75rem; left: 0.75rem; background: var(--rose); color: #fff; font-size: 0.65rem; padding: 0.25rem 0.6rem; border-radius: 999px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.product-card .body { padding: 1rem; display: flex; flex-direction: column; flex: 1; }
.product-card .cat { font-family: 'Raleway', sans-serif; text-transform: uppercase; font-size: 0.65rem; letter-spacing: 0.15em; color: var(--rose); margin-bottom: 0.3rem; }
.product-card h3 { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: var(--sombre); margin-bottom: 0.5rem; flex: 1; }
.product-card .price { font-weight: 700; color: var(--bordeaux); font-size: 1rem; margin-bottom: 0.75rem; }
.product-card .price small { font-weight: 400; font-size: 0.7rem; color: #888; }
.product-card .actions { display: flex; gap: 0.4rem; }
.product-card .btn-card { flex: 1; padding: 0.55rem; border-radius: 6px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; text-align: center; border: none; }
.product-card .btn-card.primary { background: var(--rose); color: #fff; }
.product-card .btn-card.primary:hover { background: var(--bordeaux); }
.product-card .btn-card.ghost { background: transparent; color: var(--bordeaux); border: 1px solid var(--bordeaux); }
.product-card .btn-card.ghost:hover { background: var(--bordeaux); color: #fff; }
.product-card .btn-wa { background: var(--vert-wa); color: #fff; }

/* Stats */
.stats { background: var(--nuit); color: #fff; padding: 4rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stats-item .num { font-family: 'Playfair Display', serif; font-size: 3rem; color: var(--or); font-weight: 700; }
.stats-item .lbl { font-family: 'Raleway', sans-serif; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.15em; color: rgba(255,255,255,0.7); margin-top: 0.5rem; }
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }

/* Citation */
.citation { background: linear-gradient(rgba(26,10,15,0.55), rgba(26,10,15,0.55)), url('/images/citation.jpg') center/cover; padding: 6rem 0; text-align: center; color: #fff; }
.citation blockquote { font-family: 'Playfair Display', serif; font-style: italic; font-size: clamp(1.5rem, 3vw, 2.25rem); max-width: 720px; margin: 0 auto; line-height: 1.4; }
.citation cite { display: block; margin-top: 1rem; font-family: 'Raleway', sans-serif; font-style: normal; font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--or); }

/* IdeeCadeau / AmbianceBoutique / Experience generic split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }
.split h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3.5vw, 2.5rem); color: var(--bordeaux); margin-bottom: 1rem; }
.split p { color: #555; margin-bottom: 1rem; }
@media (max-width: 768px) { .split { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Coverflow */
.coverflow { padding: 5rem 0; background: var(--creme); overflow: hidden; }
.coverflow-track { display: flex; gap: 1rem; overflow-x: auto; padding: 1rem 1.5rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.coverflow-track::-webkit-scrollbar { display: none; }
.coverflow-track > div { flex: 0 0 280px; scroll-snap-align: center; aspect-ratio: 3/4; border-radius: 6px; overflow: hidden; }
.coverflow-track img { width: 100%; height: 100%; object-fit: cover; }

/* Newsletter */
.newsletter { background: var(--bordeaux); color: #fff; padding: 4rem 0; text-align: center; }
.newsletter h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 1rem; }
.newsletter p { color: rgba(255,255,255,0.85); margin-bottom: 2rem; }
.newsletter form { display: flex; gap: 0.5rem; max-width: 500px; margin: 0 auto; }
.newsletter input { flex: 1; padding: 0.85rem 1.25rem; border: none; border-radius: 999px; font-size: 0.9rem; }
.newsletter button { background: var(--or); color: var(--sombre); border: none; padding: 0.85rem 1.5rem; border-radius: 999px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; }
@media (max-width: 600px) { .newsletter form { flex-direction: column; } .newsletter input, .newsletter button { width: 100%; } }

/* Footer */
.footer { background: #3D1A24; color: rgba(255,255,255,0.85); padding: 3rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer h4 { font-family: 'Playfair Display', serif; color: var(--or); font-size: 1rem; margin-bottom: 1rem; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.5rem; font-size: 0.85rem; }
.footer ul a { color: rgba(255,255,255,0.7); }
.footer ul a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 2rem; padding-top: 1.5rem; text-align: center; font-size: 0.75rem; color: rgba(255,255,255,0.5); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* WhatsApp button */
.wa-btn { position: fixed; bottom: 90px; right: 1.25rem; z-index: 150; background: var(--vert-wa); color: #fff; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(37,211,102,0.5); transition: transform 0.2s; }
.wa-btn:hover { transform: scale(1.08); }
.wa-btn svg { width: 28px; height: 28px; }
@media (min-width: 769px) { .wa-btn { bottom: 1.5rem; } }

/* Boutique */
.boutique-cat-nav { position: sticky; top: 75px; background: var(--creme); z-index: 50; padding: 1rem 0; border-bottom: 1px solid rgba(107,28,46,0.1); }
@media (max-width: 768px) { .boutique-cat-nav { top: 0; } }
.boutique-cat-nav-inner { display: flex; gap: 0.75rem; overflow-x: auto; padding: 0 1.5rem; -webkit-overflow-scrolling: touch; }
.boutique-cat-nav-inner::-webkit-scrollbar { display: none; }
.boutique-cat-nav a { flex: 0 0 auto; padding: 0.5rem 1.1rem; background: #fff; border: 1px solid rgba(107,28,46,0.15); border-radius: 999px; font-size: 0.8rem; color: var(--sombre); white-space: nowrap; }
.boutique-cat-nav a:hover, .boutique-cat-nav a.active { background: var(--rose); color: #fff; border-color: var(--rose); }
.cat-section { padding: 3rem 0; }
.cat-section.alt { background: var(--creme-2); }

/* Fiche produit */
.produit-wrap { padding: 3rem 0; }
.produit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 768px) { .produit-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
.produit-gallery .main { aspect-ratio: 3/4; overflow: hidden; border-radius: 6px; background: var(--creme); }
.produit-gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.produit-gallery .thumbs { display: flex; gap: 0.5rem; margin-top: 0.75rem; flex-wrap: wrap; }
.produit-gallery .thumbs img { width: 70px; height: 70px; object-fit: cover; border-radius: 4px; cursor: pointer; opacity: 0.7; transition: opacity 0.2s; }
.produit-gallery .thumbs img.active, .produit-gallery .thumbs img:hover { opacity: 1; outline: 2px solid var(--rose); outline-offset: 2px; }
.produit-info h1 { font-family: 'Playfair Display', serif; color: var(--bordeaux); font-size: 2rem; margin-bottom: 0.75rem; }
.produit-info .price { font-size: 1.5rem; color: var(--bordeaux); font-weight: 700; margin: 1rem 0; }
.produit-info .desc { color: #555; line-height: 1.7; margin-bottom: 2rem; white-space: pre-line; }
.produit-info .stock-info { font-size: 0.85rem; margin-bottom: 1rem; }
.stock-ok { color: #166534; }
.stock-low { color: #F59E0B; }
.stock-out { color: #DC2626; }

/* Panier */
.cart-wrap { padding: 3rem 0; }
.cart-grid { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; }
@media (max-width: 768px) { .cart-grid { grid-template-columns: 1fr; } .cart-recap { order: -1; } }
.cart-line { display: grid; grid-template-columns: 90px 1fr auto auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid rgba(107,28,46,0.1); }
.cart-line img { width: 90px; height: 90px; object-fit: cover; border-radius: 6px; }
.cart-line h3 { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--sombre); }
.cart-line .pq { display: flex; align-items: center; gap: 0.5rem; }
.cart-line .pq button { width: 28px; height: 28px; border: 1px solid rgba(107,28,46,0.3); background: #fff; border-radius: 4px; }
.cart-recap { background: #fff; border-radius: 6px; padding: 1.5rem; height: fit-content; box-shadow: 0 2px 12px rgba(107,28,46,0.05); }
.cart-recap .row { display: flex; justify-content: space-between; padding: 0.5rem 0; font-size: 0.9rem; }
.cart-recap .row.total { font-size: 1.1rem; font-weight: 700; color: var(--bordeaux); border-top: 1px solid rgba(107,28,46,0.1); margin-top: 0.5rem; padding-top: 1rem; }

/* Forms */
.form-row { margin-bottom: 1rem; }
.form-row label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--bordeaux); margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.05em; }
.form-row input, .form-row textarea, .form-row select { width: 100%; padding: 0.7rem 0.9rem; border: 1px solid rgba(107,28,46,0.2); border-radius: 4px; font-size: 0.9rem; background: #fff; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: none; border-color: var(--rose); }

/* Page header */
.page-header { text-align: center; padding: 3rem 1rem 1.5rem; }
.page-header h1 { font-family: 'Playfair Display', serif; color: var(--bordeaux); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.5rem; }
.page-header p { font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--rose); }

/* Static pages */
.prose { max-width: 760px; margin: 0 auto; padding: 2rem 1.5rem 4rem; line-height: 1.8; color: #444; }
.prose h2 { font-family: 'Playfair Display', serif; color: var(--bordeaux); margin-top: 2rem; margin-bottom: 0.75rem; font-size: 1.5rem; }
.prose p { margin-bottom: 1rem; }

.flash { padding: 1rem 1.25rem; border-radius: 4px; margin: 1rem auto; max-width: 720px; }
.flash.success { background: #ECFDF5; color: #065F46; }
.flash.error   { background: #FEF2F2; color: #B91C1C; }
