/* ═══════════════════════════════════════════════
   RAFFIA MAISON — app.css
   Palette : Blanc #FFFFFF · Noir #080808 · Or #E8C96E
   Sections alternées : bg-blanc / bg-noir / bg-or
═══════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ── VARIABLES ── */
:root {
  --blanc:      #FFFFFF;
  --blanc-2:    #F8F8F6;
  --blanc-3:    #F2F2EE;
  --noir:       #080808;
  --noir-2:     #101010;
  --noir-3:     #181818;
  --or:         #E8C96E;
  --or-vif:     #F5DC80;
  --or-sombre:  #B8A040;
  --or-trace:   rgba(232,201,110,0.18);
  --or-line:    rgba(232,201,110,0.32);
  --texte:      #1A1A1A;
  --texte-dim:  #666666;
  --line:       rgba(26,26,26,0.08);
}

/* ── BODY ── */
body {
  cursor: none;
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  background: var(--blanc);
  color: var(--texte);
  overflow-x: hidden;
}

/* Grain subtil */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .018;
  pointer-events: none;
  z-index: 9000;
}

/* ── CURSEUR ── */
.cursor {
  width: 8px; height: 8px;
  background: var(--or);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  mix-blend-mode: multiply;
}
.cursor-ring {
  width: 30px; height: 30px;
  border: 1px solid rgba(232,201,110,.4);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width .5s, height .5s, border-color .3s;
}
body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring {
  width: 52px; height: 52px;
  border-color: var(--or);
}

/* ══════════════════════════════════════════════
   NAV
══════════════════════════════════════════════ */
nav {
  position: fixed; top: 0; width: 100%; z-index: 500;
  height: 70px; padding: 0 56px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background .4s, border-color .4s;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--texte); text-decoration: none;
}
.nav-logo span { color: var(--or); }
.nav-center {
  display: flex; gap: 36px; list-style: none;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-center a {
  text-decoration: none; font-size: .6rem;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--texte-dim); transition: color .3s;
}
.nav-center a:hover,
.nav-center a.active { color: var(--or); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-account {
  font-size: .6rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--texte-dim); text-decoration: none;
  cursor: none; transition: color .3s;
}
.nav-account:hover { color: var(--or); }
.nav-cart-btn {
  display: flex; align-items: center; gap: 9px;
  background: var(--noir); color: var(--blanc);
  border: none; padding: 10px 22px;
  font-family: 'Raleway', sans-serif;
  font-size: .6rem; letter-spacing: .18em; text-transform: uppercase;
  cursor: none; text-decoration: none; transition: background .3s;
}
.nav-cart-btn:hover { background: var(--or); color: var(--noir); }
.cart-badge {
  background: var(--or); color: var(--noir);
  border-radius: 50%; width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .6rem; font-weight: 700;
}

/* ══════════════════════════════════════════════
   FONDS ALTERNÉS
══════════════════════════════════════════════ */

/* BLANC */
.bg-blanc { background: var(--blanc); }
.bg-blanc .section-title,
.bg-blanc h1, .bg-blanc h2, .bg-blanc h3 { color: var(--texte); }
.bg-blanc .section-over { color: var(--or); }

/* NOIR */
.bg-noir { background: var(--noir); }
.bg-noir .section-title,
.bg-noir h1, .bg-noir h2, .bg-noir h3 { color: #EDEDED; }
.bg-noir .section-title em { color: var(--or); }
.bg-noir p, .bg-noir .section-over { color: rgba(255,255,255,.5); }
.bg-noir .section-over { color: var(--or); }
.bg-noir .line { background: rgba(232,201,110,.15); }

/* OR */
.bg-or { background: var(--or); }
.bg-or .section-title,
.bg-or h1, .bg-or h2, .bg-or h3 { color: var(--noir); }
.bg-or .section-title em { color: #3A2800; }
.bg-or p { color: rgba(8,8,8,.55); }
.bg-or .section-over { color: rgba(8,8,8,.45); }
.bg-or .line { background: rgba(8,8,8,.12); }

/* ══════════════════════════════════════════════
   FLASH MESSAGES
══════════════════════════════════════════════ */
.flash { padding: 14px 56px; font-size: .8rem; letter-spacing: .04em; }
.flash-success { background: rgba(74,130,74,.1); color: #2d6b2d; border-bottom: 1px solid rgba(74,130,74,.2); }
.flash-error   { background: rgba(180,60,60,.08); color: #8b2020; border-bottom: 1px solid rgba(180,60,60,.2); }

/* ══════════════════════════════════════════════
   TICKER
══════════════════════════════════════════════ */
.ticker { background: var(--noir); padding: 14px 0; overflow: hidden; }
.ticker-track { display: flex; white-space: nowrap; animation: ticker 44s linear infinite; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 18px;
  padding: 0 28px; font-size: .58rem;
  letter-spacing: .24em; text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.t-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--or); flex-shrink: 0; }
@keyframes ticker { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
footer {
  background: var(--noir);
  border-top: 1px solid rgba(232,201,110,.12);
  padding: 80px 56px 40px;
}
.foot-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px; padding-bottom: 64px;
  border-bottom: 1px solid rgba(232,201,110,.1);
}
.foot-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; letter-spacing: .1em;
  color: var(--or); display: block;
  margin-bottom: 18px; text-decoration: none;
}
.foot-tag {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-size: .88rem;
  color: rgba(255,255,255,.35); line-height: 1.9;
}
.foot-social { display: flex; gap: 8px; margin-top: 28px; }
.f-soc {
  width: 34px; height: 34px;
  border: 1px solid rgba(232,201,110,.18);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.3); text-decoration: none;
  font-size: .6rem; transition: all .3s; cursor: none;
}
.f-soc:hover { border-color: var(--or); color: var(--or); }
.foot-col h5 {
  font-size: .56rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--or); margin-bottom: 20px; opacity: .8;
}
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 10px; }
.foot-col a {
  color: rgba(255,255,255,.35); text-decoration: none;
  font-size: .76rem; transition: color .3s; cursor: none;
}
.foot-col a:hover { color: var(--or); }
.foot-bottom {
  padding-top: 26px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .56rem; letter-spacing: .08em;
  color: rgba(255,255,255,.25);
}

/* ══════════════════════════════════════════════
   BOUTONS
══════════════════════════════════════════════ */
.btn-noir {
  background: var(--noir); color: var(--blanc);
  border: none; padding: 14px 36px;
  font-family: 'Raleway', sans-serif;
  font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  cursor: none; text-decoration: none; display: inline-block;
  transition: background .3s, transform .3s; font-weight: 500;
}
.btn-noir:hover { background: var(--or); color: var(--noir); transform: translateY(-2px); }

.btn-or {
  background: var(--or); color: var(--noir);
  border: none; padding: 14px 36px;
  font-family: 'Raleway', sans-serif;
  font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  cursor: none; text-decoration: none; display: inline-block;
  transition: background .3s; font-weight: 500;
}
.btn-or:hover { background: var(--or-vif); }

.btn-outline {
  background: transparent; color: var(--texte-dim);
  border: 1px solid var(--line);
  padding: 13px 32px;
  font-family: 'Raleway', sans-serif;
  font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
  cursor: none; text-decoration: none; display: inline-block;
  transition: all .3s;
}
.btn-outline:hover { border-color: var(--or); color: var(--or); }

.btn-line {
  background: none; border: none;
  color: var(--texte-dim);
  font-family: 'Raleway', sans-serif;
  font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
  cursor: none; text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px; transition: color .3s;
}
.btn-line:hover { color: var(--or); }

.btn-danger {
  background: #8b2020; color: #fff; border: none;
  padding: 10px 22px;
  font-family: 'Raleway', sans-serif;
  font-size: .6rem; letter-spacing: .15em; text-transform: uppercase;
  cursor: none; transition: background .3s;
}
.btn-danger:hover { background: #a33030; }

.btn-sm { padding: 8px 18px; font-size: .6rem; letter-spacing: .14em; }

/* ══════════════════════════════════════════════
   FORMULAIRES
══════════════════════════════════════════════ */
.form-group { margin-bottom: 22px; }
.form-label {
  display: block; font-size: .62rem;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--texte-dim); margin-bottom: 8px;
}
.form-control {
  width: 100%; background: var(--blanc-2);
  border: 1px solid var(--line);
  color: var(--texte); padding: 12px 16px;
  font-family: 'Raleway', sans-serif;
  font-size: .88rem; outline: none;
  transition: border-color .3s;
}
.form-control:focus { border-color: var(--or); }
.form-control::placeholder { color: var(--texte-dim); }
select.form-control { cursor: none; }
textarea.form-control { min-height: 110px; resize: vertical; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.form-check { display: flex; align-items: center; gap: 10px; }
.form-check input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--or); cursor: none; }
.form-error { font-size: .72rem; color: #c0392b; margin-top: 5px; }

/* ══════════════════════════════════════════════
   TABLEAUX
══════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  font-size: .58rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--texte-dim); padding: 14px 16px;
  text-align: left; border-bottom: 2px solid var(--line);
}
td {
  padding: 14px 16px; font-size: .82rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
tr:hover td { background: var(--blanc-2); }

/* ══════════════════════════════════════════════
   BADGES STATUT
══════════════════════════════════════════════ */
.badge { display: inline-block; padding: 4px 12px; font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; }
.badge-pending    { background: rgba(232,201,110,.15); color: #7a6000; }
.badge-paid       { background: rgba(40,140,40,.12);  color: #1a6b1a; }
.badge-processing { background: rgba(0,100,180,.1);   color: #005fa3; }
.badge-shipped    { background: rgba(100,50,180,.1);  color: #5a30a0; }
.badge-delivered  { background: rgba(20,150,100,.1);  color: #0d7a55; }
.badge-cancelled  { background: rgba(180,40,40,.1);   color: #8b1a1a; }
.badge-failed     { background: rgba(180,40,40,.1);   color: #8b1a1a; }
.badge-refunded   { background: rgba(120,80,0,.1);    color: #7a5000; }

/* ══════════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════════ */
.pagination { display: flex; gap: 6px; list-style: none; margin-top: 32px; justify-content: center; }
.pagination li a,
.pagination li span {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 1px solid var(--line);
  font-size: .75rem; text-decoration: none;
  color: var(--texte-dim); transition: all .3s; cursor: none;
}
.pagination li.active span { border-color: var(--or); color: var(--or); }
.pagination li a:hover { border-color: var(--noir); color: var(--noir); }

/* ══════════════════════════════════════════════
   ALERTES
══════════════════════════════════════════════ */
.alert { padding: 16px 20px; font-size: .82rem; margin-bottom: 20px; border-left: 3px solid; }
.alert-success { background: rgba(74,130,74,.08); border-color: #4a824a; color: #2d6b2d; }
.alert-error,
.alert-danger  { background: rgba(180,60,60,.08); border-color: #b43c3c; color: #8b2020; }
.alert-info    { background: rgba(0,100,180,.08); border-color: #0064b4; color: #004a8a; }

/* ══════════════════════════════════════════════
   COMMONS SECTIONS
══════════════════════════════════════════════ */
.section-over {
  font-size: .58rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--or); margin-bottom: 18px;
  display: flex; align-items: center; gap: 14px;
}
.section-over::before {
  content: ''; display: block;
  width: 36px; height: 1px; background: var(--or);
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem,3.5vw,3.5rem);
  font-weight: 400; line-height: 1.1;
}
.section-title em { font-style: italic; color: var(--or); }

/* ══════════════════════════════════════════════
   PRODUITS (cards)
══════════════════════════════════════════════ */
.p-card {
  background: var(--blanc-2);
  position: relative; overflow: hidden;
  transition: background .4s; cursor: none;
  border: 1px solid transparent;
}
.p-card:hover { background: var(--blanc-3); border-color: var(--or-trace); }
.p-card--lg { grid-row: span 2; }
.p-img { aspect-ratio: 3/4; overflow: hidden; position: relative; }
.p-card--lg .p-img { aspect-ratio: unset; height: 100%; min-height: 560px; }
.p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.16,1,.3,1); }
.p-card:hover .p-img img { transform: scale(1.04); }
.p-voile {
  position: absolute; inset: 0;
  background: linear-gradient(to top,rgba(8,8,8,.65) 0%,transparent 55%);
  opacity: 0; transition: opacity .4s;
  display: flex; align-items: flex-end; padding: 22px;
}
.p-card:hover .p-voile { opacity: 1; }
.p-ajouter {
  background: var(--or); color: var(--noir);
  border: none; width: 100%; padding: 13px;
  font-family: 'Raleway', sans-serif;
  font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
  cursor: none; font-weight: 500;
  transform: translateY(8px); transition: transform .4s, background .3s;
}
.p-card:hover .p-ajouter { transform: translateY(0); }
.p-ajouter:hover { background: var(--or-vif); }
.p-etiq {
  position: absolute; top: 14px; left: 14px;
  font-size: .52rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 12px; z-index: 2; font-weight: 600;
}
.etiq-or    { background: var(--or);  color: var(--noir); }
.etiq-noir  { background: var(--noir); color: var(--blanc); }
.etiq-line  { border: 1px solid rgba(255,255,255,.7); color: #fff; background: rgba(8,8,8,.3); backdrop-filter: blur(4px); }
.p-info { padding: 20px 24px 24px; }
.p-card--lg .p-info { padding: 26px 30px 30px; }
.p-nom { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 400; color: var(--texte); margin-bottom: 6px; }
.p-card--lg .p-nom { font-size: 1.5rem; }
.p-mat { font-size: .55rem; letter-spacing: .13em; text-transform: uppercase; color: var(--texte-dim); margin-bottom: 12px; }
.p-pied { display: flex; align-items: center; justify-content: space-between; }
.p-prix { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--or-sombre); }
.p-old  { font-size: .72rem; color: var(--texte-dim); text-decoration: line-through; margin-left: 8px; }
.fav {
  background: none; border: 1px solid var(--line);
  color: var(--texte-dim); width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: none; font-size: .8rem; transition: all .3s;
}
.fav:hover, .fav.on { border-color: var(--or); color: var(--or); }

/* ══════════════════════════════════════════════
   ANIMATIONS & REVEAL
══════════════════════════════════════════════ */
@keyframes fadeIn  { from { opacity: 0 } to { opacity: 1 } }
@keyframes slideUp { from { opacity: 0; transform: translateY(36px) } to { opacity: 1; transform: translateY(0) } }
@keyframes scaleIn { from { opacity: 0; transform: scale(.93) } to { opacity: 1; transform: scale(1) } }
@keyframes pulse   { 0%,100% { opacity: .35 } 50% { opacity: 1 } }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .85s cubic-bezier(.16,1,.3,1), transform .85s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .09s; }
.d2 { transition-delay: .18s; }
.d3 { transition-delay: .27s; }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 960px) {
  nav { padding: 0 24px; }
  .nav-center { display: none; }
  footer { padding: 60px 24px 32px; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .flash { padding: 14px 24px; }
}
