/* =========================================================
   OUMINA SHOP — Design system
   Palette premium "atelier enfant" : crème, encre, or doux.
   ========================================================= */

:root {
    --ink:        #161616;
    --ink-soft:   #4a4a4a;
    --cream:      #faf8f4;
    --cream-2:    #f1ede5;
    --white:      #ffffff;
    --gold:       #c9a14a;
    --gold-soft:  #e8d8b0;
    --red:        #e6533f;
    --green:      #2f9e5b;
    --blue:       #3a7bd5;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow-sm: 0 2px 10px rgba(22,22,22,0.06);
    --shadow-md: 0 10px 30px rgba(22,22,22,0.10);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Manrope', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--white);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0);
}

/* ===== HEADER / NAV ===== */
.site-header {
    position: fixed; top: 0; left: 0; right: 0;
    display: flex; align-items: center; gap: 16px;
    padding: 16px 5%;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(22,22,22,0.06);
    z-index: 1000;
}
.page-accueil .site-header {
    background: transparent;
    border-bottom-color: transparent;
}
.page-accueil .site-header.is-scrolled {
    background: rgba(255,255,255,0.92);
    border-bottom-color: rgba(22,22,22,0.06);
}
.page-accueil .site-header .logo-img,
.page-accueil .site-header .icon-link,
.page-accueil .site-header .burger-bar {
    filter: invert(0);
}
.page-accueil .site-header:not(.is-scrolled) .icon-link,
.page-accueil .site-header:not(.is-scrolled) .burger-bar {
    color: var(--white);
    background: var(--white);
}

.logo-link { display: block; height: 38px; flex-shrink: 0; }
.logo-img { height: 100%; border-radius: 4px; }

.search-box { position: relative; flex: 1; max-width: 420px; margin: 0 auto; }
.search-box input {
    width: 100%; padding: 10px 16px 10px 38px; border-radius: 30px;
    border: 1px solid rgba(22,22,22,0.1); outline: none; font-size: 14px;
    background: var(--cream); transition: border-color .2s var(--ease);
}
.search-box input:focus { border-color: var(--gold); }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--ink-soft); }

.nav-right { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.icon-link { position: relative; font-size: 19px; color: var(--ink); text-decoration: none; }
.cart-count {
    position: absolute; top: -8px; right: -11px; background: var(--gold); color: var(--ink);
    font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 50%; min-width: 16px; text-align: center;
}

.burger-menu {
    border: none; background: transparent; cursor: pointer;
    display: flex; flex-direction: column; gap: 5px; width: 24px; padding: 4px;
}
.burger-bar { width: 100%; height: 1.5px; background: var(--ink); transition: all .4s var(--ease); }

.menu-overlay {
    position: fixed; top: 0; right: -380px; width: min(340px, 88vw); height: 100vh;
    background: var(--ink); color: var(--white); z-index: 2000;
    display: flex; flex-direction: column; justify-content: center; padding: 0 48px;
    transition: right .5s var(--ease);
}
.menu-overlay.is-active { right: 0; }
.close-menu {
    position: absolute; top: 26px; right: 26px; font-size: 20px; cursor: pointer;
    background: none; border: none; color: var(--white);
}
.menu-links { display: flex; flex-direction: column; gap: 8px; }
.menu-links a {
    text-decoration: none; color: rgba(255,255,255,0.7);
    font-family: var(--font-display); font-size: 2rem; font-weight: 500;
    padding: 8px 0; transition: color .3s, padding-left .3s;
}
.menu-links a:hover, .menu-links a.is-active { color: var(--gold-soft); padding-left: 8px; }
.menu-footer-tag { position: absolute; bottom: 40px; left: 48px; font-size: 11px; letter-spacing: 2px; color: rgba(255,255,255,0.4); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px; border-radius: 30px; border: none; cursor: pointer;
    font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
    text-decoration: none; transition: transform .25s var(--ease), background .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: #000; box-shadow: var(--shadow-md); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #b8924a; }
.btn-whatsapp { background: #25D366; color: var(--white); }
.btn-whatsapp:hover { background: #1ebc59; }
.btn-wave { background: #1ba0da; color: var(--white); }
.btn-wave:hover { background: #1690c4; }
.btn-outline { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.btn-block { width: 100%; }

/* ===== HERO (accueil) ===== */
.hero {
    height: 100svh; min-height: 560px; position: relative; overflow: hidden;
    background: var(--ink); display: flex; align-items: flex-end;
}
.hero-slide {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.4s var(--ease);
}
.hero-slide.is-active { opacity: 1; }
.hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 0 5% 90px; color: var(--white); max-width: 720px; }
.hero-eyebrow { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 16px; }
.hero-title { font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 500; line-height: 1.05; margin-bottom: 22px; }
.hero-sub { font-size: 1rem; color: rgba(255,255,255,0.85); margin-bottom: 32px; max-width: 480px; }

/* ===== SECTIONS GÉNÉRIQUES ===== */
.section { padding: 90px 5%; max-width: 1280px; margin: 0 auto; }
.section-head { text-align: center; max-width: 600px; margin: 0 auto 56px; }
.section-eyebrow { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 12px; }
.section-title { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 500; }
.section-sub { color: var(--ink-soft); margin-top: 14px; font-size: .95rem; }

/* ===== CATEGORY STRIP (accueil) ===== */
.category-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 800px) { .category-strip { grid-template-columns: repeat(4, 1fr); } }
.category-card {
    position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 3/4;
    text-decoration: none; color: var(--white); display: flex; align-items: flex-end; padding: 18px;
}
.category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.category-card:hover img { transform: scale(1.06); }
.category-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.6)); }
.category-card span { position: relative; z-index: 1; font-weight: 700; font-size: .8rem; letter-spacing: 1px; text-transform: uppercase; }

/* ===== PRODUCT GRID ===== */
.grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 14px;
}
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.card {
    background: var(--white); border: none; cursor: pointer; text-align: left;
    display: flex; flex-direction: column; content-visibility: auto; contain-intrinsic-size: 360px;
}
.card-img-wrap { position: relative; width: 100%; border-radius: var(--radius-md); overflow: hidden; background: var(--cream-2); margin-bottom: 12px; }
.card-img-wrap img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-img-wrap img { transform: scale(1.04); }

.badge { position: absolute; padding: 5px 9px; font-size: 9px; font-weight: 800; border-radius: 5px; letter-spacing: .5px; z-index: 2; }
.badge-stock { top: 10px; left: 10px; background: var(--green); color: var(--white); }
.badge-out { top: 10px; left: 10px; background: var(--red); color: var(--white); }
.badge-promo { top: 10px; right: 10px; background: var(--gold); color: var(--ink); }

.card-ref { font-size: 10px; color: #999; margin-bottom: 3px; }
.card-name {
    font-size: 13px; font-weight: 600; line-height: 1.35;
    height: 2.6em; overflow: hidden; margin-bottom: 6px;
}
.card-sizes { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.size-chip { font-size: 8px; font-weight: 700; padding: 3px 6px; background: var(--cream-2); border-radius: 4px; color: var(--ink-soft); }
.size-chip.is-disabled { opacity: .35; text-decoration: line-through; }

.card-price { font-weight: 800; font-size: 15px; margin-bottom: 12px; }
.card-price .old-price { text-decoration: line-through; color: #aaa; font-weight: 500; font-size: 12px; margin-right: 6px; }
.card-price .now-price { color: var(--red); }

.add-btn {
    width: 100%; padding: 12px; background: var(--ink); color: var(--white); border: none;
    font-size: 10px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
    cursor: pointer; border-radius: var(--radius-sm); transition: background .25s;
}
.add-btn:hover { background: var(--gold); color: var(--ink); }
.add-btn:disabled { background: #ddd; color: #999; cursor: not-allowed; }

/* ===== FILTERS (catalogue) ===== */
.filters-bar { position: sticky; top: 70px; z-index: 900; background: var(--white); border-bottom: 1px solid rgba(0,0,0,0.06); padding: 10px 0; }
.filter-row { display: flex; gap: 8px; overflow-x: auto; padding: 4px 5%; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.tag {
    flex-shrink: 0; padding: 7px 16px; background: var(--cream-2); border-radius: 30px;
    font-size: 11px; font-weight: 700; color: var(--ink-soft); cursor: pointer; border: none;
    white-space: nowrap; transition: background .2s, color .2s;
}
.tag.is-active { background: var(--ink); color: var(--white); }

/* ===== MODAL PRODUIT ===== */
.modal {
    position: fixed; inset: 0; background: rgba(15,15,15,0.78); z-index: 3000;
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal.is-open { display: flex; }
.modal-box {
    background: var(--white); width: 100%; max-width: 880px; max-height: 92vh; overflow-y: auto;
    border-radius: var(--radius-lg); display: grid; grid-template-columns: 1fr 1fr; position: relative;
}
.modal-close {
    position: absolute; top: 16px; right: 16px; font-size: 22px; cursor: pointer; z-index: 5;
    background: var(--white); width: 36px; height: 36px; border-radius: 50%; border: none;
    display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
}
.modal-img-box { background: var(--cream-2); }
.modal-img-box img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.modal-info { padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.modal-ref { font-size: 11px; color: #999; }
.modal-title { font-family: var(--font-display); font-size: 1.6rem; }
.modal-price { font-size: 1.3rem; font-weight: 800; color: var(--gold); }
.modal-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.6; }
.modal-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.modal-size-btn {
    padding: 8px 14px; background: var(--cream-2); border: 1px solid transparent; border-radius: var(--radius-sm);
    font-size: 12px; font-weight: 700; cursor: pointer; transition: .2s;
}
.modal-size-btn.is-selected { background: var(--ink); color: var(--white); }
.modal-size-btn:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.qty-row { display: flex; align-items: center; gap: 12px; }
.qty-row input { width: 60px; padding: 10px; border: 1px solid #ddd; border-radius: var(--radius-sm); text-align: center; }

@media (max-width: 760px) {
    .modal-box { grid-template-columns: 1fr; }
    .modal-img-box img { min-height: 260px; }
}

/* ===== PANIER ===== */
.cart-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 50px; padding: 130px 5% 80px; max-width: 1200px; margin: 0 auto; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; padding-top: 110px; } }

.cart-line { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--cream-2); }
.cart-line img { width: 72px; height: 92px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-line-info { flex: 1; }
.cart-line-ref { font-size: 10px; color: #999; text-transform: uppercase; font-weight: 700; }
.cart-line-name { font-size: .9rem; margin: 2px 0 6px; }
.qty-badge { background: var(--cream-2); padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; margin-left: 6px; }
.cart-line-price { font-weight: 800; margin-top: 4px; }
.remove-btn { color: var(--red); font-size: 11px; cursor: pointer; text-decoration: underline; margin-top: 6px; display: inline-block; background: none; border: none; }
.empty-cart { padding: 60px 0; color: #999; text-align: center; }

.checkout-box { background: var(--cream); padding: 32px; border-radius: var(--radius-lg); height: fit-content; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; color: var(--ink-soft); font-weight: 700; }
.field input, .field select {
    width: 100%; padding: 13px; border: 1px solid rgba(0,0,0,0.12); border-radius: var(--radius-sm);
    outline: none; font-family: inherit; font-size: .95rem; background: var(--white);
}
.field input:focus, .field select:focus { border-color: var(--gold); }
.total-row { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 18px; border-top: 2px solid rgba(0,0,0,0.1); font-weight: 800; font-size: 1.2rem; }

/* ===== CONTACT ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; padding: 140px 5% 90px; max-width: 1100px; margin: 0 auto; }
@media (max-width: 850px) { .contact-layout { grid-template-columns: 1fr; gap: 50px; padding-top: 110px; } }
.contact-info h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 500; margin-bottom: 28px; }
.info-block { margin-bottom: 32px; }
.info-block h3 { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.info-block p { line-height: 1.6; color: var(--ink-soft); }
.contact-form { background: var(--cream); padding: 44px; border-radius: var(--radius-lg); }
.contact-form textarea { width: 100%; padding: 12px 0; border: none; border-bottom: 1px solid #ccc; background: transparent; font-family: inherit; resize: vertical; outline: none; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .9rem; }
.alert-success { background: #e3f6ea; color: #1d6b3e; }
.alert-error { background: #fbe5e2; color: #a3331f; }

/* ===== FOOTER ===== */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.75); padding: 60px 5% 30px; margin-top: 0; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start; }
.footer-logo { height: 32px; border-radius: 4px; margin-bottom: 12px; }
.footer-brand p { max-width: 280px; font-size: .85rem; line-height: 1.5; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { text-decoration: none; font-size: .85rem; color: rgba(255,255,255,0.75); }
.footer-links a:hover { color: var(--gold-soft); }
.footer-social { display: flex; gap: 16px; font-size: 18px; }
.footer-social a { color: rgba(255,255,255,0.75); }
.footer-copy { text-align: center; font-size: .75rem; color: rgba(255,255,255,0.4); margin-top: 40px; }

/* ===== UTILITAIRES ===== */
.skeleton { background: linear-gradient(90deg, var(--cream-2) 25%, #e8e4da 37%, var(--cream-2) 63%); background-size: 400% 100%; animation: skeleton 1.4s ease infinite; border-radius: var(--radius-md); }
@keyframes skeleton { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
