/* ─────────────────────────────────────
   RISE UP ÉDITIONS — Global Styles
   ───────────────────────────────────── */

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

:root {
  --noir:      #070e0f;
  --encre:     #0d1a1c;
  --gris:      #122527;
  --gris-clair:#1e3a3d;
  --or:        #1e6471;
  --or-pale:   #3db0c4;
  --creme:     #e8f4f6;
  --blanc:     #ffffff;
  --texte:     #d4edf0;
  --texte-doux:#7ab8bf;
  --rouge:     #8b2020;
  --f-titre:   'Cormorant Garamond', Georgia, serif;
  --f-display: 'Bebas Neue', sans-serif;
  --f-mono:    'DM Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--noir);
  color: var(--texte);
  font-family: var(--f-titre);
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
}

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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 0;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  background: linear-gradient(to bottom, rgba(10,10,10,0.97), rgba(10,10,10,0.0));
  backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(61,176,196,0.06);
}

.nav-logo {
  font-family: var(--f-display);
  font-size: 1.4rem;
  letter-spacing: 0.14em;
  color: var(--or);
  text-decoration: none;
  flex-shrink: 0;
}

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

.nav-links a {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--texte-doux);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--or);
  transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--or); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cart {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--or);
  cursor: pointer;
  border: 1px solid rgba(61,176,196,0.4);
  padding: 0.45rem 1rem;
  transition: all 0.3s;
  background: transparent;
  white-space: nowrap;
}

.nav-cart:hover { background: var(--or); color: var(--noir); }

/* ─── FOOTER ─── */
footer {
  background: var(--encre);
  border-top: 1px solid var(--gris-clair);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.footer-logo {
  font-family: var(--f-display);
  font-size: 1.2rem;
  letter-spacing: 0.14em;
  color: var(--or);
}

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

.footer-links a {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--texte-doux);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--or); }

.footer-copy {
  font-family: var(--f-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--texte-doux);
}

/* ─── SECTION BASE ─── */
section { position: relative; z-index: 1; }

.section-label {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: 0.05em;
  color: #ffffff;
  line-height: 1;
}

.divider {
  width: 60px;
  height: 1px;
  background: var(--or);
  margin: 1.8rem 0;
}

/* ─── BOUTONS ─── */
.btn-or {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--or);
  color: var(--noir);
  border: none;
  padding: 0.85rem 2rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
  display: inline-block;
}

.btn-or:hover { background: var(--or-pale); transform: translateY(-2px); }

.btn-ghost {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: transparent;
  color: var(--texte);
  border: 1px solid var(--gris-clair);
  padding: 0.85rem 2rem;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s;
  display: inline-block;
}

.btn-ghost:hover { border-color: var(--or); color: var(--or); }

.btn-add {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--or);
  color: var(--noir);
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-add:hover { background: var(--or-pale); }

/* ─── PAGE HERO (sous-pages) ─── */
.page-hero {
  padding: 14rem 3rem 6rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Textes hero visibles en toutes circonstances */
.page-hero .section-label,
.page-hero .section-title,
.page-hero .page-sub,
.page-hero h1,
.page-hero p {
  position: relative;
  z-index: 2;
  color: #ffffff;
}
.page-hero .section-label { color: #3db0c4 !important; }
.page-hero .page-sub      { color: #7ab8bf !important; }

.page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 80%, rgba(61,176,196,0.06) 0%, transparent 70%),
    var(--noir);
}

.page-hero-line {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(61,176,196,0.12), transparent);
}

.page-hero .section-label { margin-bottom: 1rem; }
.page-hero .section-title { font-size: clamp(3.5rem, 9vw, 8rem); }
.page-hero .page-sub {
  font-style: italic;
  color: var(--texte-doux);
  font-size: 1.1rem;
  margin-top: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── STAR ─── */
.star { color: var(--or); font-size: 0.85rem; }

/* ─── PANIER DRAWER ─── */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 400px; max-width: 100vw;
  height: 100vh;
  background: var(--encre);
  border-left: 1px solid var(--gris-clair);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }

.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2rem;
  border-bottom: 1px solid var(--gris-clair);
}
.cart-header h3 {
  font-family: var(--f-display);
  font-size: 1.5rem; letter-spacing: 0.1em; color: var(--blanc);
}
.cart-close {
  font-family: var(--f-mono); font-size: 0.68rem;
  letter-spacing: 0.15em; color: var(--texte-doux);
  cursor: pointer; background: none; border: none;
  transition: color 0.3s;
}
.cart-close:hover { color: var(--or); }

.cart-items { flex: 1; overflow-y: auto; padding: 1.5rem 2rem; }
.cart-empty { text-align: center; padding: 4rem 0; font-style: italic; color: var(--texte-doux); }

.cart-item {
  display: flex; gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gris-clair);
}
.cart-item-info { flex: 1; }
.cart-item-title { font-family: var(--f-titre); font-size: 1rem; color: var(--blanc); }
.cart-item-author {
  font-family: var(--f-mono); font-size: 0.58rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--texte-doux); margin-top: 0.2rem;
}
.cart-item-price {
  font-family: var(--f-display); font-size: 1.2rem;
  color: var(--or); margin-top: 0.5rem;
}
.cart-item-remove {
  font-family: var(--f-mono); font-size: 0.6rem;
  color: var(--texte-doux); cursor: pointer;
  background: none; border: none; padding: 0;
  transition: color 0.3s; align-self: flex-start;
}
.cart-item-remove:hover { color: var(--rouge); }

.cart-footer { padding: 2rem; border-top: 1px solid var(--gris-clair); }
.cart-total { display: flex; justify-content: space-between; margin-bottom: 1.5rem; }
.cart-total-label {
  font-family: var(--f-mono); font-size: 0.65rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--texte-doux);
}
.cart-total-val { font-family: var(--f-display); font-size: 1.8rem; color: var(--or); }

.btn-checkout {
  width: 100%;
  font-family: var(--f-mono); font-size: 0.7rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  background: var(--or); color: var(--noir);
  border: none; padding: 1rem; cursor: pointer;
  transition: background 0.3s;
}
.btn-checkout:hover { background: var(--or-pale); }

/* ─── LIVRAISON DRAWER ─── */
.cart-shipping {
  padding: 1.2rem 2rem;
  border-top: 1px solid var(--gris-clair);
  background: var(--gris);
}

.shipping-label {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 0.8rem;
}

.shipping-options { display: flex; flex-direction: column; gap: 0.4rem; }

.shipping-opt {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  padding: 0.7rem 1rem;
  border: 1px solid var(--gris-clair);
  background: var(--encre);
  transition: border-color 0.2s, background 0.2s;
}

.shipping-opt:has(input:checked) {
  border-color: var(--or);
  background: var(--gris);
}

.shipping-opt input[type="radio"] {
  accent-color: var(--or);
  width: 14px; height: 14px;
  flex-shrink: 0;
}

.shipping-opt-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  gap: 0.5rem;
}

.shipping-opt-name {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--texte);
}

.shipping-opt-price {
  font-family: var(--f-display);
  font-size: 1.1rem;
  color: var(--or);
  white-space: nowrap;
}

.shipping-note {
  font-family: var(--f-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--texte-doux);
  margin-top: 0.8rem;
  transition: color 0.3s;
}

/* Sous-total + livraison dans le footer */
.cart-totals { margin-bottom: 1.2rem; }

.cart-subtotal-row,
.cart-shipping-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--texte-doux);
}

.cart-total-divider {
  height: 1px;
  background: var(--gris-clair);
  margin: 0.8rem 0;
}

/* ─── TOAST ─── */
.toast {
  position: fixed; bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--or); color: var(--noir);
  font-family: var(--f-mono); font-size: 0.68rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0.8rem 2rem; z-index: 300;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

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

.modal {
  background: var(--encre);
  border: 1px solid var(--gris-clair);
  max-width: 900px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.3s;
  position: relative;
}
.modal-overlay.open .modal { transform: scale(1); }

.modal-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  font-family: var(--f-mono); font-size: 0.65rem;
  letter-spacing: 0.15em; color: var(--texte-doux);
  background: none; border: none; cursor: pointer;
  transition: color 0.3s; z-index: 10;
}
.modal-close:hover { color: var(--or); }

.modal-body { display: grid; grid-template-columns: 1fr 1.2fr; }
.modal-cover { aspect-ratio: 3/4; overflow: hidden; }
.modal-cover img { width: 100%; height: 100%; object-fit: cover; }
.modal-content { padding: 3rem 2.5rem; }
.modal-author {
  font-family: var(--f-mono); font-size: 0.6rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--or); margin-bottom: 0.5rem;
}
.modal-title {
  font-family: var(--f-titre); font-size: 1.6rem;
  color: var(--blanc); line-height: 1.2; margin-bottom: 1rem;
}
.modal-meta {
  font-family: var(--f-mono); font-size: 0.6rem;
  letter-spacing: 0.12em; color: var(--texte-doux); margin-bottom: 1.5rem;
}
.modal-desc {
  font-size: 0.95rem; color: var(--texte);
  line-height: 1.8; margin-bottom: 2rem; font-style: italic;
}
.modal-variants { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.variant-btn {
  font-family: var(--f-mono); font-size: 0.65rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: transparent; color: var(--texte-doux);
  border: 1px solid var(--gris-clair);
  padding: 0.5rem 1rem; cursor: pointer; transition: all 0.3s;
}
.variant-btn.active, .variant-btn:hover { border-color: var(--or); color: var(--or); }
.modal-price-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem; padding: 1rem 0;
  border-top: 1px solid var(--gris-clair);
  border-bottom: 1px solid var(--gris-clair);
}
.modal-price { font-family: var(--f-display); font-size: 2.2rem; color: var(--or); }

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.hidden {
  opacity: 0;
  transform: translateY(20px);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  footer { flex-direction: column; gap: 1.5rem; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .page-hero { padding: 10rem 1.5rem 4rem; }
  .modal-body { grid-template-columns: 1fr; }
  .modal-cover { aspect-ratio: 16/9; }
}

/* ─── MENU BURGER & MOBILE ─── */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--or-pale);
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 120;
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-mobile-overlay.open {
  opacity: 1;
}

.nav-mobile {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: var(--encre);
  border-left: 1px solid var(--gris-clair);
  z-index: 130;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  padding: 5rem 2rem 3rem;
  gap: 0;
}

.nav-mobile.open { transform: translateX(0); }

.nav-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.nav-mobile ul li {
  border-bottom: 1px solid var(--gris-clair);
}

.nav-mobile ul a {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--texte);
  text-decoration: none;
  padding: 1rem 0;
  transition: color 0.3s;
}

.nav-mobile ul a:hover,
.nav-mobile ul a.active { color: var(--or-pale); }

.nav-mobile-shop {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--or);
  color: var(--noir);
  text-decoration: none;
  padding: 1rem;
  text-align: center;
  margin-top: 2rem;
  transition: background 0.3s;
  display: block;
}

.nav-mobile-shop:hover { background: var(--or-pale); }

@media (max-width: 900px) {
  .nav-links { display: none !important; }
  .nav-cart-desktop { display: none !important; }
  .nav-burger { display: flex !important; }
  .nav-mobile-overlay { display: block; pointer-events: none; }
  .nav-mobile-overlay.open { pointer-events: all; }
}

/* ─── HAMBURGER MOBILE ─── */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 102;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--or-pale);
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 103;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.nav-mobile-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.nav-mobile {
  position: fixed;
  top: 0; right: 0;
  width: 280px;
  height: 100vh;
  background: var(--encre);
  border-left: 1px solid var(--gris-clair);
  z-index: 104;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  padding: 5rem 2rem 2rem;
  gap: 0;
}

.nav-mobile.open {
  transform: translateX(0);
}

.nav-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-mobile ul li {
  border-bottom: 1px solid var(--gris-clair);
}

.nav-mobile ul li a {
  display: block;
  padding: 1rem 0;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--texte);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-mobile ul li a:hover,
.nav-mobile ul li a.active {
  color: var(--or-pale);
}

.nav-mobile-shop {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--or);
  color: var(--blanc);
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  text-align: center;
}

@media (max-width: 900px) {
  .nav-links { display: none !important; }
  .nav-cart-desktop { display: none !important; }
  .nav-burger { display: flex !important; }
  nav { padding: 1rem 1.5rem; }
}
