/* ============================================================
   DESIGN SYSTEM — Lina MC
   ============================================================ */

:root {
  --cream:       #F5F0EB;
  --charcoal:    #2C2C2C;
  --terra:       #8B6F5E;
  --terra-light: #C4A99A;
  --terra-pale:  #EDE0D9;
  --white:       #FFFFFF;

  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;
  --font-script: 'Dancing Script', cursive;

  --max-width: 1200px;
  --header-h:  72px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }

/* ── Typography ────────────────────────────────────────────── */
.font-serif   { font-family: var(--font-serif); }
.font-script  { font-family: var(--font-script); }
.font-sans    { font-family: var(--font-sans); }
.uppercase    { text-transform: uppercase; letter-spacing: 0.15em; }
.italic       { font-style: italic; }

/* ── Layout helpers ────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 240, 235, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--terra-pale);
  height: var(--header-h);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}
.logo-signature {
  height: 40px; /* à ajuster selon le rendu voulu */
  width: auto;
  display: block;
}
.logo-img {
  height: 52px;
  width: auto;
  mix-blend-mode: multiply;
  display: block;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
@media (min-width: 769px) {
  .main-nav { display: flex; }
  .mobile-dropdown { display: none !important; }
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}
.nav-link:hover { color: var(--terra); }
.nav-active {
  color: var(--terra);
  border-bottom: 1px solid var(--terra);
}

.header-right {
  display: none;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
@media (min-width: 769px) {
  .header-right { display: flex; }
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-btn {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  opacity: 0.5;
  transition: opacity 0.2s, color 0.2s;
}
.lang-btn:hover  { opacity: 0.8; }
.lang-active     { opacity: 1; color: var(--terra); font-weight: 600; }

/* Auth links */
.header-auth {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Cart icon */
.cart-icon {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--charcoal);
  transition: color 0.2s;
}
.cart-icon:hover { color: var(--terra); }

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--terra);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-right: 48px;
}

.hero-quote {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--charcoal);
  font-style: italic;
}

.hero-quote2 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 300;
  color: var(--charcoal);
}

.hero-signature {
  font-family: var(--font-script);
  font-size: 36px;
  color: var(--terra);
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--terra);
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.3s;
}
.btn-primary:hover { background: var(--charcoal); }

.btn-outline {
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid var(--charcoal);
  color: var(--charcoal);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
}
.btn-outline:hover { background: var(--charcoal); color: var(--white); }

/* Photo collage (right column) */
.hero-collage {
  position: relative;
  height: 520px;
}
.hero-collage-bg {
  position: absolute;
  inset: 0;
  background: var(--terra-pale);
  border-radius: 2px;
  z-index: 0;
}
.hero-img {
  position: absolute;
  object-fit: cover;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}
.hero-img-1 {
  width: 200px; height: 260px;
  top: 20px; left: 20px;
  filter: grayscale(1);
  z-index: 1;
}
.hero-img-2 {
  width: 220px; height: 280px;
  top: 100px; left: 150px;
  transform: rotate(2deg);
  z-index: 2;
}
.hero-img-3 {
  width: 180px; height: 230px;
  bottom: 30px; right: 20px;
  transform: rotate(-3deg);
  z-index: 3;
}

/* ============================================================
   GALLERY PAGE
   ============================================================ */
.page-header {
  text-align: center;
  padding: 56px 24px 40px;
}
.page-title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 300;
  color: var(--charcoal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.page-subtitle {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terra);
  margin-top: 10px;
}
.page-divider {
  width: 40px;
  height: 1px;
  background: var(--terra-light);
  margin: 16px auto 0;
}

/* Masonry grid */
.gallery-grid {
  columns: 1;
  column-gap: 16px;
  padding: 0 24px 60px;
  max-width: var(--max-width);
  margin: 0 auto;
}
@media (min-width: 640px)  { .gallery-grid { columns: 2; } }
@media (min-width: 1024px) { .gallery-grid { columns: 3; } }
@media (min-width: 1280px) { .gallery-grid { columns: 4; } }

.gallery-card {
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  background: rgba(237,224,217,0.2);
  cursor: pointer;
}
.gallery-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.7s ease;
  display: block;
}
.gallery-card:hover img { transform: scale(1.05); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44,44,44,0);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: background 0.5s, opacity 0.5s;
  pointer-events: none;
}
.gallery-card:hover .gallery-overlay {
  background: rgba(44,44,44,0.65);
  opacity: 1;
  pointer-events: auto;
}
.overlay-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 300;
  color: var(--white);
  line-height: 1.3;
}
.overlay-price {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  margin-top: 4px;
}
.overlay-btn {
  margin-top: 12px;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.6);
  color: var(--white);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
  text-align: center;
  background: none;
  width: 100%;
}
.overlay-btn:hover { background: var(--white); color: var(--charcoal); }
.overlay-btn.in-cart {
  border-color: var(--terra-light);
  color: var(--terra-light);
  opacity: 0.8;
}

/* ============================================================
   ARTWORK DETAIL PAGE
   ============================================================ */
.detail-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.detail-back {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--terra);
  font-style: italic;
  margin-bottom: 32px;
  transition: opacity 0.2s;
}
.detail-back:hover { opacity: 0.7; }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 768px) {
  .detail-grid { grid-template-columns: 1fr; gap: 32px; }
}

.detail-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.detail-info {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.detail-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1.2;
}
.detail-divider {
  width: 40px;
  height: 1px;
  background: var(--terra-light);
  margin: 20px 0;
}
.detail-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.detail-meta-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.detail-meta-label {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(44,44,44,0.5);
}
.detail-meta-value {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 300;
  color: var(--charcoal);
}
.detail-price {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 300;
  color: var(--charcoal);
  margin: 24px 0;
}
.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.btn-cart {
  padding: 14px 28px;
  border: 1px solid var(--charcoal);
  color: var(--charcoal);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
  text-align: center;
  background: none;
  width: 100%;
}
.btn-cart:hover  { background: var(--charcoal); color: var(--white); }
.btn-cart.in-cart {
  border-color: var(--terra);
  color: var(--terra);
  background: rgba(139,111,94,0.08);
  pointer-events: none;
}
.btn-buy {
  padding: 14px 28px;
  background: var(--terra);
  color: var(--white);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.3s;
  text-align: center;
  display: block;
  width: 100%;
}
.btn-buy:hover { background: var(--charcoal); }

/* ============================================================
   BIOGRAPHY PAGE
   ============================================================ */

/* Hero bandeau défilant continu */
.bio-hero-strip {
  width: 100%;
  height: 420px;
  overflow: hidden;
}
@keyframes heroScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.bio-hero-belt {
  display: flex;
  height: 100%;
  animation: heroScroll 48s linear infinite;
  will-change: transform;
}
.bio-hero-belt img {
  flex: 0 0 auto;
  width: auto;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 30%;
}
/* Images légèrement élargies */
.bio-hero-belt img.bio-hero-wide {
  width: 560px;
  flex: 0 0 560px;
}
/* Image carrée (Lina-Martin-Calvo) : largeur forcée pour couvrir sans bandes */
.bio-hero-belt img.bio-hero-square {
  width: 480px;
  flex: 0 0 480px;
  object-position: center center;
}
@media (max-width: 768px) {
  .bio-hero-strip { height: 220px; }
}

/* Texte centré */
.bio-centered {
  max-width: 780px;
  margin: 0 auto;
  padding: 72px 24px 64px;
  text-align: center;
}
.bio-centered-title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--charcoal);
  margin-bottom: 20px;
}
.bio-centered-divider {
  width: 48px;
  height: 3px;
  background: var(--terra);
  margin: 0 auto 48px;
}
.bio-centered-text p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--charcoal);
  text-align: justify;
  margin-bottom: 20px;
}
.bio-art-quote {
  font-family: var(--font-serif) !important;
  font-size: 22px !important;
  font-style: italic;
  font-weight: 300;
  text-align: center !important;
  color: var(--terra) !important;
  margin-bottom: 36px !important;
}
.bio-art-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  display: inline-block;
}
.bio-art-list li {
  font-size: 15px;
  line-height: 1.9;
  color: var(--charcoal);
  padding: 6px 0 6px 24px;
  position: relative;
  border-bottom: 1px solid var(--terra-pale);
}
.bio-art-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--terra);
}

/* Section vidéo + Sinergia */
.bio-video-section {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px 80px;
  text-align: center;
}
.bio-video {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--terra-pale);
}
.bio-sinergia {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.bio-sinergia-label {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(44,44,44,0.5);
}
.bio-sinergia-logo {
  max-width: 220px;
  height: auto;
  mix-blend-mode: multiply;
  transition: opacity 0.2s;
}
.bio-sinergia-logo:hover { opacity: 0.7; }

/* Section portrait + infos */
.bio-extra-wrapper {
  width: 100%;
}
.bio-extra {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 0;
  align-items: stretch;
  max-width: 100%;
  margin: 0;
  padding: 0;
}
.bio-extra-photo {
  overflow: hidden;
}
.bio-extra-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.bio-extra-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #b05c5c;
  padding: 48px 60px;
}
.bio-extra-text p {
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 1.9;
  color: #f0ece6;
  margin: 0;
  font-weight: 300;
}

@media (max-width: 768px) {
  .bio-extra {
    grid-template-columns: 1fr;
  }
  .bio-extra-photo img {
    height: 300px;
  }
  .bio-extra-text {
    padding: 40px 24px;
  }
}

/* Lien galerie bas de page */
.bio-footer-link {
  text-align: center;
  padding: 0 24px 80px;
}
.bio-discover-link {
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
  color: var(--terra);
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}
.bio-discover-link:hover { opacity: 0.7; }

.btn-press {
  display: inline-block;
  padding: 14px 40px;
  border: 1px solid var(--terra);
  color: var(--terra);
  font-family: var(--font-serif);
  font-size: 13px;
  font-style: italic;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.btn-press:hover { background: var(--terra); color: var(--white); }

.btn-press-light {
  border-color: #f0ece6;
  color: #f0ece6;
}
.btn-press-light:hover { background: #f0ece6; color: #b05c5c; }

@media (max-width: 768px) {
  .bio-extra {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 24px 60px;
  }
}

/* ============================================================
   AUTH PAGES (login / register)
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--cream);
}
.auth-logo {
  font-family: var(--font-script);
  font-size: 40px;
  color: var(--charcoal);
  margin-bottom: 40px;
}
.auth-card {
  width: 100%;
  max-width: 400px;
}
.auth-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 300;
  text-align: center;
  margin-bottom: 32px;
  color: var(--charcoal);
}
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--terra-pale);
  font-size: 14px;
  color: var(--charcoal);
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--terra); }
.form-input::placeholder { color: rgba(44,44,44,0.3); }

.form-error {
  color: #c0392b;
  font-size: 13px;
  margin-bottom: 16px;
  text-align: center;
}
.form-success {
  color: #27ae60;
  font-size: 13px;
  margin-bottom: 16px;
  text-align: center;
}

.btn-form {
  width: 100%;
  padding: 14px;
  background: var(--terra);
  color: var(--white);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.3s;
  margin-top: 8px;
  border: none;
  cursor: pointer;
}
.btn-form:hover    { background: var(--charcoal); }
.btn-form:disabled { opacity: 0.6; cursor: not-allowed; }

.auth-switch {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: rgba(44,44,44,0.6);
}
.auth-switch a { color: var(--terra); text-decoration: underline; }

/* ============================================================
   CART PAGE
   ============================================================ */
.cart-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.cart-page-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--charcoal);
  margin-bottom: 40px;
}
.cart-empty {
  text-align: center;
  padding: 60px 0;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 300;
  color: rgba(44,44,44,0.4);
}
.cart-empty a {
  display: inline-block;
  margin-top: 20px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra);
  text-decoration: underline;
  font-family: var(--font-sans);
}
.cart-items { display: flex; flex-direction: column; gap: 0; }

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--terra-pale);
}
.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
}
.cart-item-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 300;
}
.cart-item-price {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--terra);
  margin-top: 4px;
}
.cart-item-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.btn-small-buy {
  padding: 8px 20px;
  background: var(--terra);
  color: var(--white);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-small-buy:hover { background: var(--charcoal); }
.btn-small-remove {
  font-size: 11px;
  color: rgba(44,44,44,0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
}
.btn-small-remove:hover { color: var(--charcoal); }

.cart-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  margin-top: 8px;
}
.cart-total {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 300;
}
.btn-clear {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(44,44,44,0.4);
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
}
.btn-clear:hover { color: var(--charcoal); }

/* ============================================================
   ADMIN PAGE
   ============================================================ */
.admin-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.admin-page-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--charcoal);
  margin-bottom: 40px;
  border-bottom: 1px solid var(--terra-pale);
  padding-bottom: 20px;
}
.admin-section-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 300;
  color: var(--charcoal);
  margin-bottom: 24px;
}

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--terra-light);
  background: rgba(237,224,217,0.3);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
  margin-bottom: 20px;
}
.upload-zone.drag-over {
  border-color: var(--terra);
  background: rgba(139,111,94,0.08);
}
.upload-zone p {
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(44,44,44,0.5);
}
.upload-zone strong { color: var(--terra); cursor: pointer; }
.upload-preview {
  max-width: 240px;
  max-height: 180px;
  object-fit: contain;
  margin: 16px auto 0;
  display: none;
}
#fileInput { display: none; }

/* Admin form layout */
.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
@media (max-width: 640px) { .admin-form-grid { grid-template-columns: 1fr; } }

.form-group-full { grid-column: 1 / -1; }

.admin-submit {
  margin-top: 8px;
  padding: 14px 40px;
  background: var(--terra);
  color: var(--white);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}
.admin-submit:hover    { background: var(--charcoal); }
.admin-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.admin-message {
  margin-top: 12px;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 2px;
}
.admin-message.success { background: #d4edda; color: #155724; }
.admin-message.error   { background: #f8d7da; color: #721c24; }

/* Admin list */
.admin-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.admin-card {
  border: 1px solid var(--terra-pale);
  overflow: hidden;
  background: var(--white);
  position: relative;
}
.admin-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.admin-card-body {
  padding: 16px;
}
.admin-card-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 300;
  margin-bottom: 4px;
}
.admin-card-meta {
  font-size: 12px;
  color: rgba(44,44,44,0.5);
  margin-bottom: 12px;
}
.admin-card-actions {
  display: flex;
  gap: 8px;
}
.btn-admin {
  flex: 1;
  padding: 8px 12px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  text-align: center;
  transition: background 0.2s, color 0.2s;
  background: none;
  cursor: pointer;
}
.btn-admin-toggle { color: var(--charcoal); }
.btn-admin-toggle:hover { background: var(--charcoal); color: var(--white); }
.btn-admin-delete { color: #c0392b; }
.btn-admin-delete:hover { background: #c0392b; color: var(--white); }

.unavailable-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(44,44,44,0.7);
  color: var(--white);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 8px;
}

/* ============================================================
   UTILITY
   ============================================================ */
.hidden { display: none !important; }
.text-center { text-align: center; }

/* ============================================================
   RESPONSIVE MOBILE (max 768px)
   ============================================================ */

/* Bouton hamburger — caché sur desktop */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  margin-left: auto;
}
@media (min-width: 769px) {
  .nav-toggle { display: none; }
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {

  /* Header */
  .header-inner {
    flex-wrap: nowrap;
    gap: 0;
    padding: 0 16px;
    height: var(--header-h);
    position: relative;
  }

  /* Cacher nav et header-right desktop sur mobile */
  .main-nav, .header-right { display: none !important; }

  /* Dropdown mobile unique */
  .mobile-dropdown {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(245, 240, 235, 0.99);
    border-top: 1px solid var(--terra-pale);
    box-shadow: 0 8px 24px rgba(44,44,44,0.12);
    z-index: 200;
  }
  .mobile-dropdown.open { display: flex; }
  .mobile-dropdown .nav-link {
    width: 100%;
    padding: 10px 20px;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--terra-pale);
    color: var(--charcoal);
  }
  .mobile-dropdown-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
  }
  .mobile-dropdown-bottom .lang-switcher { flex-wrap: wrap; gap: 8px; }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 16px;
    min-height: auto;
    gap: 40px;
  }
  .hero-text { padding-right: 0; }
  .hero-collage { display: none; }

  /* Galerie */
  .page-header { padding: 40px 16px 24px; }

  /* Biographie */
  .bio-centered { padding: 48px 16px 40px; }
  .bio-centered-title { font-size: 28px; }
  .bio-centered-text p { font-size: 14px; }

  .bio-extra {
    grid-template-columns: 1fr;
  }
  .bio-extra-photo {
    width: 100vw;
    height: 100vw;
    overflow: hidden;
  }
  .bio-extra-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
  }
  .bio-extra-text {
    background: none !important;
    padding: 36px 20px;
  }
  .bio-extra-text p {
    font-size: 16px;
    color: var(--charcoal) !important;
  }
  .btn-press-light {
    border-color: var(--terra) !important;
    color: var(--terra) !important;
  }
  .btn-press-light:hover {
    background: var(--terra) !important;
    color: var(--white) !important;
  }

  /* Panier */
  .cart-page { padding: 32px 16px; }

  /* Auth */
  .auth-card { padding: 32px 20px; }

  /* Actualités */
  .news-grid { grid-template-columns: 1fr !important; }

  /* Contact */
  .contact-layout { grid-template-columns: 1fr !important; }
}

/* Gallery empty state */
.gallery-empty {
  text-align: center;
  padding: 80px 24px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 300;
  color: rgba(44,44,44,0.4);
}

/* Separator between admin sections */
.admin-section-sep {
  border: none;
  border-top: 1px solid var(--terra-pale);
  margin: 48px 0 40px;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--terra-pale);
  background: #3a2e2e;
  padding: 28px 24px 32px;
  text-align: center;
}
.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-copy,
.footer-contact {
  font-size: 12px;
  color: rgba(240,236,230,0.7);
  margin: 0;
}
.footer-contact a {
  color: rgba(240,236,230,0.7);
  text-decoration: none;
}
.footer-contact a:hover { color: #f0ece6; }
.footer-legal {
  margin-top: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.footer-legal a {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(240,236,230,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal a:hover { color: #f0ece6; }
.footer-sep { color: rgba(240,236,230,0.25); font-size: 11px; }

/* ── Pages légales ── */
.legal-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}
.legal-page h1 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 8px;
}
.legal-page h2 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--terra);
  margin: 36px 0 10px;
  border-left: 3px solid var(--terra);
  padding-left: 12px;
}
.legal-page p,
.legal-page li {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(44,44,44,0.75);
}
.legal-page ul {
  padding-left: 20px;
}
.legal-page a { color: var(--terra); }
.legal-page em { font-size: 13px; color: rgba(44,44,44,0.45); }

/* ============================================================
   PROMOTIONS — Badge, prix barré galerie & panier
   ============================================================ */

/* Badge –X% sur la vignette */
.promo-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #e74c3c;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 9px;
  border-radius: 2px;
  z-index: 10;
  pointer-events: none;
}

/* Prix barré dans l'overlay galerie */
.price-original {
  text-decoration: line-through;
  opacity: 0.55;
  font-weight: 400;
  margin-right: 4px;
}
.price-discounted {
  color: #ff6b6b;
  font-weight: 700;
}

/* Prix barré dans le panier */
.cart-item-price-original {
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(44,44,44,0.4);
  text-decoration: line-through;
}
.cart-item-price-discounted {
  color: #e74c3c;
  font-weight: 700;
}
.cart-item-promo-badge {
  display: inline-block;
  background: #e74c3c;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 2px;
  letter-spacing: 0.06em;
}

/* ── Bloc code promo (panier) ────────────────────────── */
.promo-input-block input:focus {
  outline: none;
  border-color: #2c2c2c;
}
.promo-input-block button:hover {
  opacity: .85;
}
