/* ==========================================================================
   Réplique Subtile — Design System
   Mobile-first, accessible, responsive, smooth (but respectful of RRM)
   ========================================================================== */

/* ===== Tokens ===== */
:root {
  --bg: #fff0de;
  --card: #FCF8F3;
  /* --primary: #7A5C3E; */
  --primary: #4B3A2F;

 
  --primary2: #534134;
  --accent: #B08968;
  --text: #3E2F23;
  --muted: #6d5a45;
  --border: #E5D8C7;

  --radius: 14px;
  --shadow-sm: 0 6px 18px rgba(0,0,0,.06);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

  --container: 1200px;

  /* Typo scale fluide */
  --fs-0: clamp(.9rem, .85rem + .2vw, 1rem);
  --fs-1: clamp(1rem, .95rem + .4vw, 1.125rem);
  --fs-2: clamp(1.15rem, 1rem + .9vw, 1.35rem);
  --fs-3: clamp(1.6rem, 1.1rem + 2.5vw, 3rem);

  --safe-top: env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
}

/* ===== Base ===== */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Color Emoji";
  line-height: 1.5;
  font-size: var(--fs-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; object-fit: cover; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid color-mix(in srgb, var(--primary) 60%, white); outline-offset: 2px; }

/* ===== Layout ===== */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(14px, 3.5vw, 24px);
}

/* ===== Header / Nav ===== */
.header {
   position: sticky;
  top: 32px; /* ≈ hauteur du bandeau */
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, #fff);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding-block: 10px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo {
  width: clamp(56px, 8vw, 86px);
  height: clamp(56px, 8vw, 86px);
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { font-weight: 700; letter-spacing: .3px; white-space: nowrap; }

.nav-links {
  display: flex; align-items: center; gap: clamp(10px, 2.2vw, 18px);
  justify-self: center;
}
.nav-links a {
  font-size: var(--fs-0);
  opacity: .95;
  padding: 6px 8px;
  border-radius: 8px;
}
.nav-links a:hover {text-decoration: none; } 

.nav-cta { display: inline-flex; align-items: center; gap: 10px; }

.cta {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
  border: 1px solid color-mix(in srgb, var(--primary) 20%, #0000);
}

.cta:hover{

  background-color: var(--primary2);

}


.user-email, .user-name { font-size: .95rem; color: var(--muted); }

/* ===== Hero ===== */
.hero { padding: clamp(28px, 4.5vw, 56px) 0 32px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(16px, 3.5vw, 32px);
  align-items: center;
}
.hero h1 { font-size: var(--fs-3); margin: 0 0 10px; line-height: 1.15; }
.hero p  { margin: 0 0 18px; font-size: var(--fs-1); color: var(--muted); }

.hero-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(16px, 3.5vw, 24px);
  box-shadow: var(--shadow);
}

/* ===== Sections & Grids ===== */
.section-title { font-size: var(--fs-2); margin: 26px 0 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 18px);
}

.chip {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: .95rem;
}
.chip.active {
  background: color-mix(in srgb, var(--primary) 12%, white);
  border-color: var(--primary);
}

/* ===== Card ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: clip;
  transition: transform .2s ease, box-shadow .2s ease;
  will-change: transform;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.10); }

.card-img {
  aspect-ratio: 4 / 5;
  background: #fff;
  display: grid; place-items: center;
  padding: 8px;
}
.card-img img { width: 100%; height: 100%; object-fit: contain; }

.card-body {
  padding: 14px clamp(12px, 2.3vw, 16px);
  display: grid; align-content: start; gap: 10px;
}
.price { color: var(--primary); font-weight: 700; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  font-size: .78rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, white);
  border: 1px solid var(--border);
  color: var(--text);
}

/* Actions sous carte */
.card .actions { display: flex; align-items: center; gap: .5rem; margin-top: .35rem; }
.card .actions.with-variant { justify-content: flex-start; }
.card .actions.no-variant .btn { flex: 1 1 0; }
.card .actions.no-variant .btn.add-cart { flex: 2 1 0; }
.variant-dropdown {
  min-width: 110px;
  padding: .45rem .6rem;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  background: #fff;
  font-size: .95rem;
}

/* ===== Buttons ===== */
button, .btn, .chip, .card { transition: all .2s ease; }
.btn {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn.primary {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.btn.primary:hover { filter: brightness(1.1); }
.btn.ghost { background: #fff; color: var(--primary); border: 1px solid var(--primary); }

/* ===== Modal ===== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  display: none; place-items: center;
  z-index: 100; padding: 16px;
  overflow-y: auto;
}
.modal {
  width: min(920px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  grid-template-areas: "img body";
  position: relative;
  max-height: 90vh; overflow: hidden;
}
.modal-img { grid-area: img; background: #fff; padding: 18px; display: grid; place-items: center; }
.modal-img img { width: 100%; height: auto; border-radius: 10px; object-fit: contain; }
.modal-body {
  grid-area: body;
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px;
  overflow-y: auto; max-height: 90vh;
  -webkit-overflow-scrolling: touch;
}
.modal-body .actions {
  display: flex; gap: 10px; justify-content: flex-end;
}
.close-x {
  position: absolute; top: 10px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; border: 1px solid var(--border);
  cursor: pointer; z-index: 10;
}

/* ===== Drawer Panier ===== */
.icon-btn {
  border: 1px solid var(--border);
  background: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.badge-pill {
  display: inline-block; min-width: 18px; padding: 0 6px;
  border-radius: 999px; background: var(--primary); color: #fff;
  font-size: 12px; line-height: 18px; margin-left: 6px;
}

/* Backdrop plein écran */
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
  z-index: 120;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

/* Container du drawer */
.drawer {
  position: fixed; top: 0; right: 0;
  height: 100svh; width: min(420px, 92vw);
  background: var(--card);
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 30px rgba(0,0,0,.08);
  transform: translateX(100%); transition: transform .25s ease;
  z-index: 130; display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0%); }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--border); background: #fff;
}
.drawer-body { padding: 12px 14px; overflow: auto; flex: 1 1 auto; }
.drawer-foot { border-top: 1px solid var(--border); padding: 14px 16px; background: #fff; }
.drawer .totals { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.drawer .drawer-actions { display: flex; gap: 10px; }

.cart-row {
  display: grid; grid-template-columns: 84px 1fr;
  gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border);
}
.cart-img {
  width: 84px; height: 84px; background: #fff;
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  display: grid; place-items: center;
}
.cart-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cart-info { display: grid; gap: 6px; }
.cart-title { font-weight: 600; }
.cart-meta  { color: var(--muted); font-size: .92rem; }
.cart-actions { display: inline-flex; align-items: center; gap: 8px; }
.qty-btn, .rm-btn {
  border: 1px solid var(--border); background: #fff;
  padding: 6px 10px; border-radius: 8px; cursor: pointer;
}
.qty-input {
  width: 56px; padding: 6px 8px;
  border: 1px solid var(--border); border-radius: 8px;
}

#cartPay {
  background: linear-gradient(135deg, #111, #333);
  color: #fff; font-weight: 600; letter-spacing: .3px; border: none;
}
#cartPay:hover { background: linear-gradient(135deg, #222, #000); transform: scale(1.02); }

/* ===== Auth ===== */
.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.auth-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.auth-tab {
  padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px;
  background: #fff; cursor: pointer;
}
.auth-tab.active { background: color-mix(in srgb, var(--primary) 12%, white); border-color: var(--primary); }
.auth-form { display: grid; gap: 10px; }
.auth-form.hidden { display: none; }
.auth-form input {
  padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: #fff;
}
.auth-hint { opacity: .8; margin-top: 10px; }

/* ===== Footer ===== */
footer {
  margin-top: 36px; padding: 28px 0 calc(50px + var(--safe-bottom));
  border-top: 1px solid var(--border);
  color: var(--muted); text-align: center;
}

/* ===== Address suggestions ===== */
.addr-suggest {
  position: absolute; z-index: 50; margin-top: 4px;
  padding: 0; list-style: none; background: #fff;
  border: 1px solid #e5e7eb; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  max-height: 240px; overflow: auto; width: 70%;
}
.addr-suggest li { padding: .6rem .8rem; cursor: pointer; border-bottom: 1px solid #f3f4f6; }
.addr-suggest li:last-child { border-bottom: 0; }
.addr-suggest li:hover, .addr-suggest li.active { background: #f9fafb; }

/* ===== Micro-optimisations ===== */
.hidden { display: none !important; }

/* ===== Responsive ===== */

/* Phones small */
@media (max-width: 420px) {
  .cart-row { grid-template-columns: 72px 1fr; }
  .cart-img { width: 72px; height: 72px; }
}

/* Tablets & down */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}



/* Narrow phones */
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .nav-links { display: none; } /* épuré sur mobile; CTA + panier suffisent */
  .brand-name { display: none; } /* keep logo only to save space */
}

/* ===== Burger propre ===== */
.burger {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 40px;
  height: 40px;
}

/* Barres visuelles */
.burger span {
  position: absolute;
  width: 22px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: .25s ease;
}

.burger span:nth-child(1) { top: 12px; }
.burger span:nth-child(2) { top: 19px; }
.burger span:nth-child(3) { top: 26px; }

/* ===== Animation "X" quand le menu est ouvert ===== */
.burger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 19px;
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 19px;
}

/* ===== En mobile seulement ===== */
@media (max-width: 700px){
  .burger { display: inline-flex; }
}

/* ===== Menu mobile ===== */
.mnav-full{
  position:fixed; inset:0;
  background:rgba(255,255,255,.96);
  backdrop-filter:saturate(1.2) blur(6px);
  display:none;
  opacity:0;
  transition: opacity .22s ease;
  z-index:999;
}

.mnav-full.open{
  display:flex;
  opacity:1;
}

.mnav-inner{
  width:100%;
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:22px;
  padding:24px;
}

.mnav-x{
  position:absolute; top:14px; right:14px;
  border:1px solid var(--border); background:#fff; border-radius:10px; padding:8px 10px; cursor:pointer;
}

.mnav-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit}
.mnav-brand img{width:40px;height:40px;border-radius:8px;object-fit:cover}

.mnav-links{display:flex;flex-direction:column;gap:12px; width:min(380px,86vw)}
.mnav-links a, .mnav-links .as-link{
  display:block;text-align:center;padding:14px 16px;border-radius:12px;
  background:#fff;border:1px solid var(--border);color:var(--text);text-decoration:none;font-size:1.05rem
}
.mnav-links a:hover, .mnav-links .as-link:hover{
  background:color-mix(in srgb, var(--accent) 10%, #fff);
}
.mnav-links .as-link{ cursor:pointer; font:inherit }

.logout-icon {
  background: transparent;
  border: none;
  padding: 0;
  margin-left: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logout-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity .2s, transform .2s;
}

.logout-icon:hover img {
  opacity: 1;
  transform: scale(1.05);
}

/* Version mobile = plus petite et isolée */
@media (max-width: 768px) {
  .logout-icon img {
    width: 26px;
    height: 26px;
  }

  


}


/* --- Suggestions d'adresse --- */
.addr-suggest {
  list-style: none;
  padding: 0;
  margin: 6px auto 0;
  width: 100%;
  max-width: 420px;       /* même largeur que l’input */
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  position: relative;
}

.addr-suggest li {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.95rem;
  color: #333;
  transition: background 0.15s ease;
}

.addr-suggest li:hover {
  background: #f5f1ed; /* légère couleur crème */
}

/* masque propre */
.addr-suggest[hidden] {
  display: none !important;
}



/* Historique des commandes */
#ordersSection {
  margin-top: 2.5rem;
}

.orders-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 0.75rem;
}

.order-card {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: #fafafa;
  font-size: 0.9rem;
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  gap: 8px;
}

.order-number {
  font-weight: 600;
}

.order-status {
  font-size: 0.8rem;
  padding: 3px 8px;
  border-radius: 999px;
}

.order-status.paid {
  background: #e6f7ec;
  color: #137b3a;
}

.order-status.pending {
  background: #fff7e6;
  color: #b57a00;
}

.order-status.failed {
  background: #fdecea;
  color: #c0392b;
}

.order-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  color: #666;
}

.shipping-info {
  margin-top: 10px;
  background: #FCF8F3;
  border: 1px solid #E5D8C7;
  padding: 12px 14px;
  border-radius: 12px;
  text-align: center;
  font-size: .9rem;
  color: #3E2F23;
  line-height: 1.4;
  animation: fadeIn 0.4s ease-out;
}

.shipping-info .shipping-icon {
  font-size: 1.2rem;
  display: block;
  margin-bottom: 4px;
}

.shipping-info strong {
  color: #7A5C3E;
}

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


.top-banner {
   position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #4B3A2F;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  height: 34px;
  display: flex;
  align-items: center;
}

.top-banner-track {
  display: inline-block;
  font-size: 0.85rem;        /* plus fin */
  font-weight: 400;          /* plus léger */
  letter-spacing: 0.3px;     /* style premium */
  padding-left: 100%;
  animation: banner-scroll 18s linear infinite;
}

@keyframes banner-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}


/* Taille globale d’un produit dans le panier */
.cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}

/* Image du produit */
.cart-item img {
  width: 60px;       /* ← réduit la taille */
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

/* Texte du produit */
.cart-item .cart-info {
  flex: 1;
}

.cart-item .cart-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
}

.cart-item .cart-variant {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Prix */
.cart-item .cart-price {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Boutons + / - */
.cart-item .qty-controls button {
  padding: 4px 8px;
  font-size: 0.8rem;
}

.checkout-reassure {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background: #f8f5f1;
  font-size: 0.9rem;
  color: #3e2f23;
}
.checkout-reassure .title {
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.checkout-reassure ul {
  margin: 0;
  padding-left: 1.1rem;
}
.checkout-reassure li {
  margin: 0.15rem 0;
}


/* Carte parfums admin en rupture */
.card-admin {
  position: relative;
}


.card-img {
  position: relative;
}

/* Overlay limité UNIQUEMENT à l'image */
.card-admin .soldout-overlay,
.card-pack .soldout-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg); /* léger effet stylé */
  z-index: 6;
  pointer-events: none;
}

/* Image du badge */
.card-admin .soldout-overlay img {
  max-width: 270px;
  opacity: 0.95;
}


/* Effet visuel global si rupture */
.card-admin.out-of-stock,
.card-pack.out-of-stock{
  opacity: 0.7;
}

/* Désactiver visuellement le bouton panier en rupture */
.card-admin.out-of-stock .add-cart,
.card-pack.out-of-stock .add-cart {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.card-admin.out-of-stock .variant-dropdown {
  opacity: 0.6;
  cursor: not-allowed;
}


.card:not(.card-admin) .btn.disabled {
  display: none;
}





/* =========================================================
   OVERRIDES MOBILE — <= 900px / 700px / 600px
   (À mettre TOUT EN BAS de style.css)
   ========================================================= */

/* Tablettes et mobiles */
@media (max-width: 900px) {
  /* Container plus resserré */
  .container {
    padding-inline: 14px;
  }

  /* Hero plus compact */
  .hero {
     padding: 3rem 1.2rem 2.5rem;  /* plus d'air autour du texte */
    min-height: auto;
  }
  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;        /* texte bien à gauche */
    gap: 1.2rem;
  }
  .hero-main {
    order: 1;
  }
  .hero-media {
    order: 0;
    justify-self: center;
  }
  .hero h1 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  .hero p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .hero-card{

    margin-top: 0.8rem;
    width: 100%;
  }

  /* Grille produits : 2 colonnes max */
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Cartes produits un peu plus compactes */
  .product-card {
    padding: 12px;
  }
  .product-card h3 {
    font-size: 1rem;
  }
  .product-card p {
    font-size: 0.9rem;
  }

  /* Footer en colonne sur petit écran */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footer-inner p {
    margin: 0;
  }
}

/* Téléphones standards */
@media (max-width: 700px) {
  /* Typo générale un peu réduite */
  body {
    font-size: 15px;
  }

  /* Header un peu plus compact */
  .header {
    padding-block: 6px;
  }
  .nav {
    gap: 8px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }

  /* CTA dans le header moins larges */
  .btn-primary,
  .btn-outline {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  /* Hero encore plus light */
  .hero h1 {
    font-size: 1.55rem;
  }
  .hero p {
    font-size: 0.9rem;
  }

  /* Grille produits : possibilité de 1 seule colonne */
  .grid {
    gap: 12px;
  }

  /* Chips / filtres : scroll horizontal propre si overflow */
  .filters {
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .filters::-webkit-scrollbar {
    height: 4px;
  }

  /* Sections globales */
  section {
    padding-inline: 14px;
  }
}

/* Téléphones étroits (iPhone SE etc.) */
@media (max-width: 600px) {
  /* Une seule colonne pour les cartes produits */
  .grid {
    grid-template-columns: 1fr;
  }

  /* On garde déjà .nav-links: none; et le menu burger existant */

  /* ========= Page COMPTE (profil.html) ========= */
  /* On force la grille en une seule colonne même si le style inline définit 2 colonnes */
  main.account {
    margin: 72px 14px 32px;
    padding: 1.4rem 1.1rem;
    border-radius: 12px;
  }

  main.account .grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  main.account .row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  main.account label {
    font-size: 0.85rem;
  }

  /* Boutons plus larges et full width */
  main.account .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* ========= Page CHECKOUT / PAIEMENT (shop.html) ========= */

  main.checkout {
    margin: 72px 14px 32px !important;
    padding: 1.4rem 1.1rem !important;
    border-radius: 12px !important;
  }

  /* Ligne de panier en colonne */
  main.checkout .cart-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* Si tu as une image produit dans la ligne (classique : img dans .cart-item) */
  main.checkout .cart-item img {
    width: 90px;
    height: auto;
  }

  /* Lignes de récap (totaux) en colonne aussi */
  main.checkout .row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  main.checkout button[type="submit"],
  main.checkout button#payBtn {
    width: 100%;
  }

  /* ========= Formulaires de façon générale ========= */
  form .row {
    flex-wrap: wrap;
  }

  /* ========= Footer ultra compact ========= */
  .footer-inner {
    padding-inline: 14px;
    text-align: left;
  }
}


/* ========= MODALE : FIX TITRE SUR IMAGE (MOBILE) ========= */
@media (max-width: 700px) {

  .modal {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
  }

  .modal-img {
    width: 100%;
    position: relative;
    flex-shrink: 0;
  }

  .modal-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }

  .modal-body {
    padding: 16px;
    overflow-y: auto;   /* ✅ scroll si description longue */
  }

  .modal-body h3,
  .modal-body .price,
  .modal-body .meta {
    position: relative;
    z-index: 2;
  }
}


/* Bandeau */
.top-banner {
  position: sticky;
  top: 0;
  z-index: 10;   /* petit z-index */
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
}

/* Menu mobile */
.mnav-full {
  z-index: 1800;
}

/* Croix menu mobile */
.mnav-x {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 1200;
  background: white;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  font-size: 20px;
  cursor: pointer;
}


/* Croix du panier */
/* Backdrop du panier : fond assombri */
.drawer-backdrop.cart-backdrop {
  z-index: 1900;
}

/* Tiroir du panier */
.drawer.cart-drawer {
  z-index: 1950;
  position: fixed;   /* normalement déjà le cas */
  top: 0;
  right: 0;
}

/* Croix du panier */
#cartClose {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1960;
  background: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  cursor: pointer;
}


.btn-review {
    display: inline-block;
    margin-top: 6px;
    padding: 8px 14px;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;

    /* Couleurs premium */
    background: #C5A880;   /* beige-or premium */
    color: #3E2F23;        /* brun parfum */
    border: 1px solid #B99668;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
    text-decoration: none;
    text-align: center;
    transition: all .2s ease;
}

.btn-review:hover {
    background: #B99668;   /* plus chaud */
    border-color: #A78459;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,.15);
      text-decoration: none;
}


/* --- SECTION DECANT (FULL WIDTH) --- */
.decant-section {
  width: 100%;
  background: #4B3A2F; /* marron premium */
    padding: 20px 20px 25px; /* haut | côtés | bas */

  color: #F5EEE6;
  height: auto;
}

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

.section-title-light {
  text-align: center;
  font-size: 1.9rem;
  margin-bottom: 15px;
  color: #FFEEDB;
}

/* GRID texte + photos */
.decant-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
}

/* Texte */
.decant-text {
  flex: 1 1 350px;
  color: #F0E6DA;
  line-height: 1.6;
}

.decant-text p {
  margin-bottom: 10px;
}

.decant-highlights {
  margin-top: 8px;
  margin-bottom: 6px;
}

.decant-pill {
  background: rgba(255,255,255,0.08);
  border: 1px solid #7A5C3E;
  padding: 8px 14px;
  border-radius: 12px;
  margin: 0 6px 8px 0;
  color: #FFEBD6;
  display: inline-block;
  font-size: .85rem;
}

.decant-note {
  margin-top: 10px;
  font-weight: 600;
  color: #FFEEDB;
}

/* Photos */
.decant-visual-row {
  display: flex;
  gap: 25px;
  flex: 1 1 350px;
  justify-content: center;
}

.vertical-photo {
  width: 220px;
  height: 270px;
  border-radius: 16px;
  overflow: hidden;
  background: #5A4534;
  border: 1px solid #7A5C3E;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  /* pour l’animation */
  transform: translateZ(0);
}

.vertical-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
}

/* 🔍 Zoom au survol */
.vertical-photo:hover img {
  transform: scale(1.09);
  filter: brightness(1.05);
}

.decant-caption {
  text-align: center;
  margin-top: 25px;
  font-size: .9rem;
  color: #E8D7C8;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .decant-grid {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }

  .decant-text {
    max-width: 520px;
  }
}

/* RESET mobile global pour éviter le vide */
@media (max-width: 600px) {

  .decant-section {
    padding: 20px 20px 25px; /* haut | côtés | bas */
  }

  /* empile proprement */
  .decant-grid {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;   /* 👈 IMPORTANT : plus de "space-between" en colonne */
    gap: 6px !important;
  }

  .decant-text,
  .decant-visual-row {
    flex: 0 0 auto;                /* 👈 empêche les blocs de s'étirer et créer du vide */
  }

  .decant-visual-row {
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    margin-bottom: 15px !important;
  }

  .vertical-photo {
    width: 100px;
    height: 150px;
    margin: 0 !important;
    padding: 0 !important;
  }

  .decant-text p {
    margin: 5px 0 !important;
  }

  .decant-caption {
    margin: 8px 0 0 0 !important;
    padding: 0 !important;
  }

  .decant-inner > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}



/* === MODALE COOKIES === */
.cookie-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;               /* affiché en JS si pas de choix */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.cookie-modal {
  max-width: 420px;
  width: 90%;
  background: #FCF8F3;
  border-radius: 16px;
  padding: 18px 20px 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.30);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #3E2F23;
}

.cookie-modal h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.cookie-modal p {
  margin: 0 0 10px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.cookie-btn {
  flex: 1;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid #E5D8C7;
  font-size: 0.9rem;
  cursor: pointer;
}

.cookie-btn.primary {
  background: #7A5C3E;
  color: #fff;
  border-color: #7A5C3E;
  font-weight: 600;
}

.cookie-btn.secondary {
  background: #fff;
  color: #3E2F23;
}

.cookie-small {
  margin-top: 6px;
  font-size: 0.75rem;
  opacity: 0.7;
}
