/* ==========================================================================
   global.css — CHARTE GRAPHIQUE RAYHANE
   Direction : coffret cadeau luxe oriental discret,
   médecine prophétique, produits naturels, miel, nigelle, huile d’olive.
   Palette : ivoire, brun profond, doré ancien, vert olivier.
   ========================================================================== */

:root {
    --rh-bg:             #F6F0E6;
    --rh-bg-secondary:   #EDE1CF;
    --rh-card:           #FFFDF7;

    --rh-text:           #1D1712;
    --rh-text-secondary: #6A5948;

    --rh-gold:           #9E772E;
    --rh-gold-light:     #C69A52;

    --rh-olive:          #4F5F35;
    --rh-olive-light:    #67794A;
    --rh-olive-soft:     rgba(79, 95, 53, 0.10);

    --rh-honey:          #B96F28;

    --rh-border:         rgba(29, 23, 18, 0.12);
    --rh-border-gold:    rgba(158, 119, 46, 0.28);
    --rh-border-olive:   rgba(79, 95, 53, 0.28);

    --rh-glow-gold:      rgba(158, 119, 46, 0.18);
    --rh-glow-olive:     rgba(79, 95, 53, 0.14);

    --rh-edge-line:      var(--rh-gold);

    --radius:    10px;
    --radius-sm: 7px;

    --font-heading: "Cormorant Garamond", "Georgia", serif;
    --font-body:    "Manrope", "Inter", "Helvetica Neue", sans-serif;
    --font-accent:  "Spectral", "Georgia", serif;
}

/* Reset */

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--rh-bg);
    color: var(--rh-text);
    font-family: var(--font-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a {
    color: inherit;
}

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

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--rh-text);
    letter-spacing: 0.01em;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(246, 240, 230, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--rh-border);
}

@supports not (backdrop-filter: blur(1px)) {
    .site-header {
        background: rgba(246, 240, 230, 0.99);
    }
}

.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.05rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.65rem;
    text-decoration: none;
    color: var(--rh-text);
    letter-spacing: 0.025em;
}

.site-logo span {
    color: var(--rh-gold);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-nav-links {
    display: flex;
    gap: 1.75rem;
    list-style: none;
}

.site-nav-links a {
    text-decoration: none;
    color: var(--rh-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    transition: color 0.2s ease;
}

.site-nav-links a:hover,
.site-nav-links a[aria-current="page"] {
    color: var(--rh-olive);
}

.site-cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--rh-card);
    border: 1px solid var(--rh-border);
    text-decoration: none;
    color: var(--rh-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-cart-link:hover {
    border-color: var(--rh-border-gold);
    box-shadow: 0 8px 22px var(--rh-glow-gold);
}

.site-cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--rh-gold);
    color: var(--rh-card);
    font-size: 0.7rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--rh-border);
    margin-top: 5rem;
    background: var(--rh-bg-secondary);
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.site-footer-text {
    color: var(--rh-text-secondary);
    font-size: 0.875rem;
}

.site-footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.site-footer-links a {
    text-decoration: none;
    color: var(--rh-text-secondary);
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.site-footer-links a:hover {
    color: var(--rh-olive);
}

/* Boutons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.82rem 1.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.86rem;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.btn-primary {
    background: var(--rh-gold);
    color: var(--rh-card);
}

.btn-primary:hover {
    background: var(--rh-olive);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--rh-glow-olive);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--rh-border-gold);
    color: var(--rh-text);
}

.btn-secondary:hover {
    background: var(--rh-card);
    border-color: var(--rh-olive);
    color: var(--rh-olive);
}

/* Badges */

.badge {
    display: inline-block;
    padding: 0.38rem 1rem;
    border-radius: 100px;
    background: var(--rh-olive-soft);
    border: 1px solid var(--rh-border-olive);
    color: var(--rh-olive);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.badge-gold {
    background: rgba(158, 119, 46, 0.08);
    border-color: var(--rh-border-gold);
    color: var(--rh-gold);
}

/* Cards */

.card {
    background: var(--rh-card);
    border: 1px solid rgba(158, 119, 46, 0.18);
    border-radius: var(--radius);
    box-shadow:
        0 22px 60px rgba(29, 23, 18, 0.07),
        0 1px 0 rgba(255, 255, 255, 0.85) inset;
    overflow: hidden;
}

.card:hover {
    border-color: var(--rh-border-gold);
    box-shadow:
        0 26px 70px rgba(29, 23, 18, 0.09),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.card-premium {
    border-color: var(--rh-border-gold);
}

.card-olive {
    border-color: var(--rh-border-olive);
}

/* Liserés */

.edge-line {
    height: 1px;
    background: var(--rh-edge-line);
    opacity: 0.65;
}

.edge-line-olive {
    height: 1px;
    background: var(--rh-olive);
    opacity: 0.45;
}

/* Prix / références produit */

.price,
.product-reference {
    font-family: var(--font-accent);
    color: var(--rh-text);
}

.price {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--rh-gold);
}

.product-reference {
    color: var(--rh-text-secondary);
    font-size: 0.85rem;
}

/* États utilitaires */

.text-gold {
    color: var(--rh-gold);
}

.text-olive {
    color: var(--rh-olive);
}

.bg-olive-soft {
    background: var(--rh-olive-soft);
}

.border-gold {
    border-color: var(--rh-border-gold);
}

.border-olive {
    border-color: var(--rh-border-olive);
}

/* Accessibilité */

:focus-visible {
    outline: 2px solid var(--rh-gold);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Responsive */

@media (max-width: 640px) {
    .site-header-inner {
        padding: 0.95rem 1.1rem;
    }

    .site-logo {
        font-size: 1.45rem;
    }

    .site-nav-links {
        display: none;
    }

    .btn {
        padding: 0.78rem 1.45rem;
        font-size: 0.82rem;
    }
}