/* ===================================================
   MONTRES SOVIÉTIQUES VINTAGE — Feuille de styles
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,300;1,400&family=IM+Fell+English:ital@0;1&display=swap');

/* --- Variables --- */
:root {
  --dark:      #1a0f08;
  --brown:     #2e1a0e;
  --mid-brown: #4a2c1a;
  --gold:      #c9a84c;
  --gold-light:#e8c97a;
  --red:       #9b1c1c;
  --red-bright:#c41e1e;
  --cream:     #f0e8d8;
  --parchment: #e8dcc8;
  --text-dark: #1a0f08;
  --text-mid:  #5a3a22;
  --border:    #8b6030;
  --shadow:    rgba(0,0,0,0.6);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Crimson Pro', Georgia, serif;
  background: var(--dark);
  color: var(--cream);
  min-height: 100vh;
  font-size: 18px;
  line-height: 1.7;
}

/* Grain overlay on body */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.3em;
}

.section-title::before,
.section-title::after {
  content: ' ★ ';
  color: var(--red-bright);
  font-size: 0.7em;
}

.section-divider {
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 3rem;
}

/* --- Ornamental border mixin --- */
.ornate-border {
  border: 1px solid var(--border);
  box-shadow: 0 0 0 4px var(--brown), 0 0 0 5px var(--border), inset 0 0 30px rgba(0,0,0,0.3);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.75em 2em;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  font-size: 0.85rem;
  text-align: center;
}

.btn-primary {
  background: var(--red);
  color: var(--cream);
  border: 1px solid #7a1515;
  box-shadow: 0 4px 15px rgba(155,28,28,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-primary:hover {
  background: var(--red-bright);
  box-shadow: 0 6px 25px rgba(196,30,30,0.5), inset 0 1px 0 rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-secondary:hover {
  background: var(--gold);
  color: var(--dark);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #a07830, var(--gold));
  color: var(--dark);
  border: 1px solid #7a5a20;
  box-shadow: 0 4px 15px rgba(201,168,76,0.3);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-light));
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(201,168,76,0.4);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(20,10,5,0.98) 0%, rgba(20,10,5,0.92) 100%);
  border-bottom: 1px solid rgba(139,96,48,0.4);
  backdrop-filter: blur(8px);
  padding: 0 2rem;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.nav-logo .star-emblem {
  font-size: 2rem;
  color: var(--red-bright);
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(196,30,30,0.6));
}

.nav-logo .logo-text-sub {
  font-family: 'Crimson Pro', serif;
  font-size: 0.7rem;
  color: var(--parchment);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  display: block;
}

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

.nav-links a {
  font-family: 'Playfair Display', serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--parchment);
  opacity: 0.8;
  transition: all 0.3s;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold);
  opacity: 1;
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 70px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(60,30,10,0.7) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(100,40,10,0.4) 0%, transparent 50%),
    linear-gradient(135deg, #0d0704 0%, #2a1408 40%, #1a0c06 100%);
}

.hero-bg::after {
  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='%23c9a84c' fill-opacity='0.03'%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;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-watch-img {
  position: relative;
}

.hero-watch-img img {
  width: 100%;
  max-width: 500px;
  border-radius: 4px;
  filter: sepia(20%) contrast(1.1);
  box-shadow: 0 30px 80px rgba(0,0,0,0.8);
}

.hero-text {
  text-align: center;
}

.hero-eyebrow {
  font-family: 'Crimson Pro', serif;
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.3em;
  text-shadow: 2px 4px 20px rgba(0,0,0,0.8);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.hero-subtitle .star-sep {
  color: var(--red-bright);
  margin: 0 0.5em;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--parchment);
  opacity: 0.85;
  max-width: 480px;
  margin: 0 auto 2.5rem;
  font-style: italic;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.hero-badge {
  font-family: 'Crimson Pro', serif;
  font-size: 0.8rem;
  color: var(--parchment);
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 0.4em;
  letter-spacing: 0.05em;
}

.hero-badge .icon { color: var(--gold); }

/* --- Sections --- */
.section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-parchment {
  background: var(--parchment);
  color: var(--text-dark);
  max-width: none;
  padding: 6rem 2rem;
}

.section-parchment .section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-parchment .section-title { color: var(--mid-brown); }
.section-parchment .section-title::before,
.section-parchment .section-title::after { color: var(--red); }
.section-parchment .section-divider { background: linear-gradient(90deg, transparent, var(--mid-brown), transparent); }

/* --- Watch Cards --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.watch-card {
  background: var(--parchment);
  color: var(--text-dark);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.watch-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.card-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--mid-brown);
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.3em 0.8em;
  z-index: 2;
}

.card-badge.sold {
  background: var(--red);
  color: white;
}

.card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: sepia(15%) contrast(1.05);
  border-bottom: 2px solid var(--border);
}

.card-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #d4c5a9, #bfae90);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--mid-brown);
  opacity: 0.5;
  border-bottom: 2px solid var(--border);
}

.card-body {
  padding: 1.5rem;
}

.card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dark);
  margin-bottom: 0.1em;
}

.card-era {
  font-size: 0.85rem;
  color: var(--text-mid);
  font-style: italic;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}

.card-era::before, .card-era::after { content: ' · '; color: var(--red); }

.card-desc {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--mid-brown);
  margin-bottom: 1rem;
}

.card-footer {
  padding: 0 1.5rem 1.5rem;
}

.card-footer .btn { width: 100%; }

/* --- Featured grid on homepage --- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* --- Categories --- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.category-card {
  aspect-ratio: 1;
  background: var(--mid-brown);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all 0.3s;
  padding: 1rem;
  text-align: center;
}

.category-card:hover {
  background: var(--brown);
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.category-icon { font-size: 2rem; }

.category-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cream);
}

/* --- Dark section with bg image --- */
.section-dark-collection {
  position: relative;
  padding: 6rem 2rem;
  overflow: hidden;
  background: linear-gradient(135deg, #0d0704, #2a1408);
}

.section-dark-collection::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c9a84c' fill-opacity='0.04'%3E%3Ccircle cx='20' cy='20' r='1'/%3E%3C/g%3E%3C/svg%3E");
}

.section-dark-collection .section-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: start;
}

.collection-decorative-watch {
  width: 280px;
  opacity: 0.3;
  filter: sepia(80%);
  transform: rotate(-10deg);
}

/* --- Product Detail Page --- */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: 90px;
}

.product-main-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  filter: sepia(10%) contrast(1.05);
}

.product-thumbnails {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.product-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 2px solid var(--border);
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s;
  filter: sepia(10%);
}
.product-thumb:hover, .product-thumb.active { opacity: 1; border-color: var(--gold); }

.product-info { padding: 1rem 0; }

.product-brand {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.product-name {
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.3em;
}

.product-era {
  font-style: italic;
  color: var(--parchment);
  opacity: 0.6;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.product-price {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.product-desc {
  color: var(--parchment);
  opacity: 0.85;
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.product-specs {
  border: 1px solid rgba(139,96,48,0.3);
  margin-bottom: 2rem;
}

.spec-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  border-bottom: 1px solid rgba(139,96,48,0.2);
  font-size: 0.9rem;
}
.spec-row:last-child { border-bottom: none; }

.spec-label {
  background: rgba(74,44,26,0.4);
  padding: 0.6em 1em;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

.spec-value {
  padding: 0.6em 1em;
  color: var(--parchment);
}

.product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.listing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.75rem;
  color: var(--parchment);
  opacity: 0.6;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(240,232,216,0.2);
  padding: 0.3em 0.8em;
  transition: all 0.2s;
}
.listing-badge:hover { opacity: 1; border-color: var(--gold); color: var(--gold); }

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-info p {
  color: var(--parchment);
  opacity: 0.8;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--parchment);
  opacity: 0.75;
  font-size: 0.95rem;
}
.contact-item .icon { font-size: 1.2rem; color: var(--gold); }

.form-group { margin-bottom: 1.5rem; }

.form-label {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(139,96,48,0.4);
  color: var(--cream);
  padding: 0.75em 1em;
  font-family: 'Crimson Pro', serif;
  font-size: 1rem;
  transition: border-color 0.3s, background 0.3s;
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--gold);
  background: rgba(201,168,76,0.05);
}

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

.form-select option { background: var(--brown); }

/* --- Page Header (for inner pages) --- */
.page-header {
  padding: 8rem 2rem 4rem;
  text-align: center;
  background: linear-gradient(180deg, #0d0704 0%, var(--brown) 100%);
  border-bottom: 1px solid rgba(139,96,48,0.3);
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(0deg, var(--dark), transparent);
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-transform: uppercase;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--parchment);
  opacity: 0.7;
  font-style: italic;
  font-size: 1.1rem;
}

/* --- Filters Bar --- */
.filters-bar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  align-items: center;
}

.filter-btn {
  padding: 0.4em 1.2em;
  border: 1px solid rgba(139,96,48,0.4);
  background: transparent;
  color: var(--parchment);
  font-family: 'Crimson Pro', serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.05em;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

.filters-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  opacity: 0.7;
  margin-right: 0.5rem;
}

/* --- Breadcrumb --- */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--parchment);
  opacity: 0.5;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}
.breadcrumb a:hover { opacity: 1; color: var(--gold); }
.breadcrumb span { margin: 0 0.5em; }

/* --- Footer --- */
.footer {
  background: #0a0503;
  border-top: 1px solid rgba(139,96,48,0.3);
  padding: 4rem 2rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(139,96,48,0.2);
}

.footer-brand .star-emblem {
  font-size: 2.5rem;
  color: var(--red-bright);
  display: block;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 8px rgba(196,30,30,0.5));
}

.footer-brand h3 {
  font-size: 1rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--parchment);
  opacity: 0.5;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(139,96,48,0.3);
}

.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  font-size: 0.9rem;
  color: var(--parchment);
  opacity: 0.55;
  transition: all 0.2s;
}
.footer-col ul li a:hover { opacity: 1; color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--parchment);
  opacity: 0.35;
}

/* --- Admin Styles --- */
.admin-body {
  background: #f5f3ef;
  color: #2a1a0e;
  font-family: 'Crimson Pro', serif;
}

.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a0f08, #2e1a0e);
}

.login-box {
  background: var(--parchment);
  padding: 3rem;
  width: 100%;
  max-width: 400px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  text-align: center;
}

.login-box .star-emblem {
  font-size: 3rem;
  color: var(--red-bright);
  display: block;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px rgba(196,30,30,0.5));
}

.login-box h1 {
  font-size: 1.4rem;
  color: var(--mid-brown);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.3rem;
}

.login-box p {
  font-size: 0.85rem;
  color: var(--text-mid);
  opacity: 0.7;
  margin-bottom: 2rem;
  font-style: italic;
}

.login-input {
  width: 100%;
  border: 1px solid var(--border);
  background: white;
  padding: 0.75em 1em;
  font-size: 1rem;
  margin-bottom: 1rem;
  font-family: 'Crimson Pro', serif;
  outline: none;
}
.login-input:focus { border-color: var(--red); }

.login-error {
  color: var(--red);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: none;
}

/* Admin Panel */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: #f0ebe3;
}

.admin-sidebar {
  width: 250px;
  background: var(--dark);
  padding: 2rem 0;
  flex-shrink: 0;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.admin-sidebar-nav {
  flex: 1;
}
.admin-sidebar-bottom {
  padding: 1rem 0;
  border-top: 1px solid rgba(139,96,48,0.2);
  margin-top: 1rem;
  flex-shrink: 0;
}

.admin-sidebar .admin-brand {
  padding: 0 1.5rem 2rem;
  border-bottom: 1px solid rgba(139,96,48,0.2);
  margin-bottom: 1.5rem;
  text-align: center;
}

.admin-sidebar .admin-brand .star-emblem {
  font-size: 2rem;
  color: var(--red-bright);
  display: block;
}

.admin-sidebar .admin-brand h2 {
  font-size: 0.8rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 0.5rem;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1.5rem;
  color: var(--parchment);
  opacity: 0.6;
  font-size: 0.9rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  letter-spacing: 0.05em;
}
.admin-nav-link:hover, .admin-nav-link.active {
  opacity: 1;
  background: rgba(201,168,76,0.1);
  color: var(--gold);
  border-left: 3px solid var(--gold);
}
.admin-nav-link .icon { font-size: 1.1rem; }

.admin-main {
  flex: 1;
  margin-left: 250px;
  padding: 2rem;
  min-height: 100vh;
}

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

.admin-header h1 {
  font-size: 1.6rem;
  color: var(--mid-brown);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.admin-panel {
  display: none;
}
.admin-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-card {
  background: white;
  border: 1px solid #d4c5a9;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.admin-card h3 {
  font-size: 1.1rem;
  color: var(--mid-brown);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #d4c5a9;
}

.admin-form-group { margin-bottom: 1.2rem; }

.admin-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mid);
  margin-bottom: 0.4rem;
}

.admin-input,
.admin-textarea,
.admin-select {
  width: 100%;
  border: 1px solid #c8b89a;
  background: #faf7f2;
  padding: 0.6em 0.9em;
  font-size: 0.95rem;
  font-family: 'Crimson Pro', serif;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s;
}
.admin-input:focus,
.admin-textarea:focus,
.admin-select:focus { border-color: var(--red); }

.admin-textarea { resize: vertical; min-height: 100px; }

.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.admin-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

/* Watch list in admin */
.watch-admin-list { display: grid; gap: 1rem; }

.watch-admin-item {
  background: white;
  border: 1px solid #d4c5a9;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: box-shadow 0.2s;
}
.watch-admin-item:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.1); }

.watch-admin-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border: 1px solid #d4c5a9;
  flex-shrink: 0;
}

.watch-admin-img-placeholder {
  width: 70px;
  height: 70px;
  background: #e8dcc8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--mid-brown);
  opacity: 0.5;
  flex-shrink: 0;
}

.watch-admin-info { flex: 1; }
.watch-admin-info h4 { font-size: 1rem; color: var(--mid-brown); margin-bottom: 0.2rem; }
.watch-admin-info p { font-size: 0.8rem; color: var(--text-mid); opacity: 0.7; }

.watch-admin-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-btn {
  padding: 0.4em 1em;
  font-size: 0.8rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  border: 1px solid;
  transition: all 0.2s;
}

.admin-btn-edit {
  background: transparent;
  border-color: var(--mid-brown);
  color: var(--mid-brown);
}
.admin-btn-edit:hover { background: var(--mid-brown); color: white; }

.admin-btn-toggle {
  background: transparent;
  border-color: #2a7a3a;
  color: #2a7a3a;
}
.admin-btn-toggle.sold {
  border-color: var(--red);
  color: var(--red);
}
.admin-btn-toggle:hover { background: currentColor; color: white; }

.admin-btn-delete {
  background: transparent;
  border-color: #c0392b;
  color: #c0392b;
}
.admin-btn-delete:hover { background: #c0392b; color: white; }

.admin-btn-primary {
  background: var(--red);
  color: white;
  border-color: var(--red);
}
.admin-btn-primary:hover { background: var(--red-bright); }

.admin-btn-save {
  background: #2a7a3a;
  color: white;
  border-color: #2a7a3a;
  padding: 0.6em 1.5em;
}
.admin-btn-save:hover { background: #1e5c2b; }

.status-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.2em 0.6em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.status-badge.available { background: #d4edda; color: #155724; }
.status-badge.sold { background: #f8d7da; color: #721c24; }

/* Image URLs list in admin */
.image-url-list { display: grid; gap: 0.5rem; }
.image-url-row { display: flex; gap: 0.5rem; }
.image-url-row .admin-input { flex: 1; }
.remove-url-btn {
  background: #c0392b;
  color: white;
  border: none;
  width: 36px;
  cursor: pointer;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #2a7a3a;
  color: white;
  padding: 1rem 1.5rem;
  font-family: 'Crimson Pro', serif;
  font-size: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { background: var(--red); }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: #f0ebe3;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.3s;
}
.modal-overlay.open .modal { transform: scale(1); }

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 2px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--dark);
}

.modal-header h2 {
  font-size: 1.1rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.modal-close {
  background: none;
  border: none;
  color: var(--parchment);
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.6;
  line-height: 1;
}
.modal-close:hover { opacity: 1; }

.modal-body { padding: 2rem; }

.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid #d4c5a9;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-watch-img { order: -1; max-width: 400px; margin: 0 auto; }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .product-layout { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-sidebar { transform: translateX(-100%); transition: transform 0.3s; z-index: 200; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .section-dark-collection .section-inner { grid-template-columns: 1fr; }
  .collection-decorative-watch { display: none; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .featured-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: rgba(20,10,5,0.98);
    padding: 1rem 2rem 2rem;
    border-bottom: 1px solid rgba(139,96,48,0.3);
    gap: 1rem;
  }
  .admin-grid-2, .admin-grid-3 { grid-template-columns: 1fr; }
}

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.7s ease forwards;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.fade-up-delay-1 { animation-delay: 0.1s; }
.fade-up-delay-2 { animation-delay: 0.2s; }
.fade-up-delay-3 { animation-delay: 0.3s; }
.fade-up-delay-4 { animation-delay: 0.4s; }

/* --- Mentions légales --- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
  color: var(--parchment);
  opacity: 0.85;
}

.legal-content h2 {
  font-size: 1.2rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 2.5rem 0 0.8rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(139,96,48,0.2);
}
.legal-content h2:first-child { border-top: none; margin-top: 0; padding-top: 0; }

.legal-content p { margin-bottom: 1rem; font-size: 0.95rem; line-height: 1.8; }

/* ── Logo image uploadé ── */
.nav-logo-img {
  height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}
