/* ============================================================
   NEW DAY GROUPE SARL — Design System
   Palette : Blanc chaud + Or + Anthracite doux
   Fonts   : Playfair Display (titres) + Raleway (corps)
   ============================================================ */

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

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --color-bg:          #F7F4EF;
    --color-gold:        #B8922A;
    --color-gold-light:  #D4AA4A;
    --color-gold-dark:   #8C6E1E;
    --color-text:        #1E1A14;
    --color-text-muted:  #7A7065;
    --color-surface:     #FFFFFF;
    --color-surface-2:   #EDE9E2;
    --color-border:      #DDD8CE;

    --font-title:  'Playfair Display', Georgia, serif;
    --font-body:   'Raleway', sans-serif;

    --radius:      6px;
    --transition:  0.3s ease;
    --shadow:      0 4px 24px rgba(0,0,0,0.10);
}

/* ── Reset & base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
}

img { display: block; max-width: 100%; }
a  { color: var(--color-gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-gold-light); }

h1, h2, h3, h4 {
    font-family: var(--font-title);
    line-height: 1.2;
    color: var(--color-text);
}

/* ── Utilitaires ───────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-gold  { color: var(--color-gold); }
.text-muted { color: var(--color-text-muted); }
.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }

.divider-gold {
    width: 60px; height: 2px;
    background: var(--color-gold);
    margin: 16px auto 32px;
}
.divider-gold.left { margin-left: 0; }

/* ── Boutons ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
}

.btn-gold {
    background: var(--color-gold);
    color: #0A0A0A;
}
.btn-gold:hover {
    background: var(--color-gold-light);
    color: #0A0A0A;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201,168,76,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
}
.btn-outline:hover {
    background: var(--color-gold);
    color: #0A0A0A;
    transform: translateY(-2px);
}

.btn-dark {
    background: var(--color-surface-2);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}
.btn-dark:hover { border-color: var(--color-gold); color: var(--color-gold); }

.btn-sm { padding: 8px 18px; font-size: 12px; }
.btn-lg { padding: 16px 40px; font-size: 15px; }

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
    background: rgba(247,244,239,0.97);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.12);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    font-family: var(--font-title);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: 0.05em;
}
.navbar-logo span { color: var(--color-gold); }

.navbar-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.navbar-links a {
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}
.navbar-links a:hover,
.navbar-links a.active {
    color: var(--color-gold);
    border-bottom-color: var(--color-gold);
}

.navbar-actions { display: flex; align-items: center; gap: 12px; }

/* Menu burger (mobile) */
.navbar-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}
.navbar-burger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--color-text-muted);
    transition: all var(--transition);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #EDE9E2 0%, #F7F4EF 50%, #EDE9E2 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(ellipse at 70% 50%, rgba(184,146,42,0.10) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 680px; }

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 100px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero h1 em {
    font-style: normal;
    color: var(--color-gold);
}

.hero p {
    font-size: 18px;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll {
    position: absolute;
    bottom: 40px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

.hero-scroll::after {
    content: '';
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, var(--color-gold), transparent);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── Section titres ────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header.left { text-align: left; }

.section-header .label {
    display: inline-block;
    color: var(--color-gold);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    margin-bottom: 16px;
}

.section-header p {
    color: var(--color-text-muted);
    max-width: 560px;
    margin: 0 auto;
}

/* ── Cards produits ────────────────────────────────────────── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-gold);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(201,168,76,0.2);
}

.product-card-img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--color-surface-2);
}

.product-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }

.product-card-img .badge {
    position: absolute;
    top: 12px; left: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.badge-disponible { background: rgba(34,197,94,0.9); color: #fff; }
.badge-epuise     { background: rgba(239,68,68,0.9);  color: #fff; }

.product-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30,26,20,0.65) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
}
.product-card:hover .product-card-overlay { opacity: 1; }

.product-card-body { padding: 20px; }

.product-card-cat {
    font-size: 11px;
    color: var(--color-gold);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.product-card-title {
    font-family: var(--font-title);
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-price {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-gold);
    font-family: var(--font-title);
}
.product-card-price .currency { font-size: 14px; }

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-top: 1px solid var(--color-border);
    font-size: 13px;
    color: var(--color-text-muted);
}

/* ── Services ──────────────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    transition: border-color var(--transition), transform var(--transition);
}
.service-card:hover {
    border-color: var(--color-gold);
    transform: translateY(-4px);
}

.service-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(184,146,42,0.1);
    border: 1px solid rgba(184,146,42,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 22px;
    color: var(--color-gold);
    transition: all var(--transition);
}
.service-card:hover .service-icon {
    background: var(--color-gold);
    color: #fff;
    border-color: var(--color-gold);
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* ── Boutique filtres ──────────────────────────────────────── */
.boutique-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 100px;
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
    border-color: var(--color-gold);
    color: var(--color-gold);
    background: rgba(201,168,76,0.08);
}

.boutique-search {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
}

.input-search {
    flex: 1;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 12px 20px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 14px;
    transition: border-color var(--transition);
}
.input-search:focus {
    outline: none;
    border-color: var(--color-gold);
}
.input-search::placeholder { color: var(--color-text-muted); }

/* ── Pagination ────────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 56px;
}

.pagination a,
.pagination span {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-muted);
    font-size: 14px;
    transition: all var(--transition);
}
.pagination a:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}
.pagination span.current {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: #0A0A0A;
    font-weight: 700;
}

/* ── Détail produit ────────────────────────────────────────── */
.product-gallery { display: grid; grid-template-columns: 1fr 100px; gap: 12px; }

.gallery-main {
    aspect-ratio: 4/3;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    max-height: 400px;
}

.gallery-thumb {
    width: 90px; height: 70px;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color var(--transition);
    flex-shrink: 0;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active,
.gallery-thumb:hover { border-color: var(--color-gold); }

.product-info-price {
    font-family: var(--font-title);
    font-size: 2.2rem;
    color: var(--color-gold);
    margin-bottom: 24px;
}

/* ── Formulaires ───────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-gold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 12px 16px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 14px;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}
.form-control::placeholder { color: var(--color-text-muted); }

textarea.form-control { min-height: 120px; resize: vertical; }

.form-error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 6px;
}

/* ── Flash messages ────────────────────────────────────────── */
.flash {
    padding: 14px 20px;
    border-radius: var(--radius);
    border-left: 3px solid;
    font-size: 14px;
    margin-bottom: 20px;
}
.flash-success { background: rgba(34,197,94,0.1); border-color: #22c55e; color: #22c55e; }
.flash-error   { background: rgba(239,68,68,0.1);  border-color: #ef4444; color: #ef4444; }
.flash-info    { background: rgba(201,168,76,0.1); border-color: var(--color-gold); color: var(--color-gold); }

/* ── Badges statut ─────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.badge-green  { background: rgba(34,197,94,0.15);  color: #22c55e; }
.badge-red    { background: rgba(239,68,68,0.15);  color: #ef4444; }
.badge-gold   { background: rgba(201,168,76,0.15); color: var(--color-gold); }
.badge-gray   { background: rgba(154,154,154,0.15); color: var(--color-text-muted); }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .navbar-logo { font-size: 20px; margin-bottom: 16px; }

.footer-brand p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 24px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 20px;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
    color: var(--color-text-muted);
    font-size: 14px;
    transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--color-text); }

.footer-contact li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--color-text-muted);
    font-size: 14px;
    margin-bottom: 12px;
}
.footer-contact .icon { color: var(--color-gold); flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--color-text-muted);
    flex-wrap: wrap;
    gap: 12px;
}

/* ── Admin layout ──────────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
    width: 260px;
    background: var(--color-surface);
    border-right: 1px solid var(--color-border);
    padding: 32px 0;
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.admin-logo {
    padding: 0 24px 32px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 24px;
}

.admin-nav { list-style: none; }

.admin-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
    border-left: 3px solid transparent;
}
.admin-nav li a:hover,
.admin-nav li a.active {
    color: var(--color-gold);
    background: rgba(201,168,76,0.06);
    border-left-color: var(--color-gold);
}

.admin-main {
    margin-left: 260px;
    flex: 1;
    padding: 40px;
    min-height: 100vh;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.admin-header h1 { font-size: 24px; }

/* Stats cards (dashboard) */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }

.stat-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    transition: border-color var(--transition);
}
.stat-card:hover { border-color: var(--color-gold); }

.stat-card .stat-value {
    font-family: var(--font-title);
    font-size: 2.4rem;
    color: var(--color-gold);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-card .stat-label {
    font-size: 13px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Table admin */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
}
.admin-table td {
    padding: 16px;
    font-size: 14px;
    border-bottom: 1px solid rgba(42,42,42,0.5);
}
.admin-table tr:hover td { background: rgba(20,20,20,0.8); }

/* ── Espace client ─────────────────────────────────────────── */
.compte-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding-top: 100px; }

.compte-sidebar {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px 0;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.compte-nav { list-style: none; }
.compte-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--color-text-muted);
    font-size: 14px;
    transition: all var(--transition);
    border-left: 2px solid transparent;
}
.compte-nav li a i,
.admin-nav li a i {
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}
.compte-nav li a:hover,
.compte-nav li a.active {
    color: var(--color-gold);
    background: rgba(201,168,76,0.06);
    border-left-color: var(--color-gold);
}

/* Messages fils */
.message-thread { display: flex; flex-direction: column; gap: 16px; }

.message-bubble {
    max-width: 75%;
    padding: 16px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    line-height: 1.6;
    position: relative;
}

.message-bubble.mine {
    background: rgba(201,168,76,0.12);
    border: 1px solid rgba(201,168,76,0.2);
    align-self: flex-end;
}

.message-bubble.theirs {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    align-self: flex-start;
}

.message-bubble .message-meta {
    font-size: 11px;
    color: var(--color-text-muted);
    margin-top: 8px;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid  { grid-template-columns: repeat(2, 1fr); }
    .admin-sidebar { width: 220px; }
    .admin-main    { margin-left: 220px; }
}

@media (max-width: 768px) {
    .navbar-links,
    .navbar-actions .btn-outline { display: none; }
    .navbar-burger { display: flex; }

    .navbar-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(247,244,239,0.99);
        align-items: center;
        justify-content: center;
        gap: 32px;
        font-size: 18px;
        z-index: 999;
    }

    .hero h1 { font-size: 2.2rem; }
    .hero-actions { flex-direction: column; }

    .product-gallery { grid-template-columns: 1fr; }
    .gallery-thumbs  { flex-direction: row; max-height: none; overflow-x: auto; }
    .gallery-thumb   { width: 80px; height: 60px; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .compte-layout { grid-template-columns: 1fr; }
    .compte-sidebar { position: static; }

    .admin-sidebar { transform: translateX(-100%); transition: transform var(--transition); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; padding: 24px 16px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .stats-grid    { grid-template-columns: 1fr; }
    .section { padding: 56px 0; }
}

/* ── Print ─────────────────────────────────────────────────── */
@media print {
    .navbar, .footer, .btn, .boutique-filters,
    .admin-sidebar, .compte-sidebar { display: none !important; }
    body { background: #fff; color: #000; }
    .product-card { border: 1px solid #ccc; }
}