:root{
  --coral:#ff6b6b;
  --mint:#14b8a6;
  --lemon:#ff6b6b;
  --ink:#2d2a32;
  --ink-2:#534a57;
  --bg:#fff8fb;
  --card:#ffffff;
  --shadow:0 10px 28px rgba(13,12,34,.08);
}

/* ============================
   GLOBAL
   ============================ */
*{box-sizing:border-box}
html,body{
  margin:0;
  padding:0;
  scrollbar-gutter: stable;
  overflow-y: scroll;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,'Helvetica Neue',Arial,sans-serif;
  background:var(--bg);
  color:var(--ink);
}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}

/* bandeau rose du haut */
.topbar{
  background:var(--coral);
  color:#fff;
  text-align:center;
  font-weight:600;
  padding:8px 10px;
}

/* ============================
   HERO COMMUN (même partout)
   ============================ */
.hero{
  position: relative;
  min-height: 450px;                 /* même hauteur sur toutes les pages */
  width: 100%;
  display: grid;
  padding-bottom: 90px;
  place-items: center;
  padding: 28px 16px 90px;           /* 90px = place pour la nav en dessous */
  background-image: url('/assets/hero-island.png?v=307');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border-bottom: 6px solid var(--lemon);  /* la ligne jaune */
}

/* dégradé qui fond dans le fond rose */
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.15) 40%,
    rgba(255,248,251,1) 100%
  );
  pointer-events:none;
  z-index:0;
}

.hero .hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  color: #1f2937;

  /* 👇 le carton blanc transparent */
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(3px);
  display: inline-block;
  padding: 16px 22px 20px;
  border-radius: 16px;
}

.hero .hero-inner h1{
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 10px 0;
  font-weight: 800;
}
.hero .hero-inner p{
  margin: 0 auto;
  max-width: 640px;
  opacity: .9;
}
.hero .hero-inner .cta{
  margin-top: 14px;
  display:inline-block;
  background:var(--lemon);
  color:#0f0e0f;
  padding:12px 20px;
  border-radius:12px;
  font-weight:800;
  text-decoration:none;
}

.hero .hero-textbox {
  background: rgba(205, 15, 119, 0.484); /* blanc transparent */
  backdrop-filter: blur(3px);             /* petit effet glass si supporté */
  padding: 16px 22px;
  border-radius: 16px;
  display: inline-block;
  max-width: 640px;
  margin-bottom: 10px;
}

.hero .hero-textbox h1 {
  margin: 0 0 6px 0;
}

.hero .hero-textbox p {
  margin: 0;
}


/* si une page veut une variante : .hero--no-border { border-bottom:none; } */


/* ============================
   CONTENU
   ============================ */
.container{
  max-width:1200px;
  margin:28px auto;
  padding:0 20px;
}

/* on laisse de l’air sous la nav globale */
main.container,
main .container{
  margin-top: 95px;
}

/* ============================
   GRILLE GÉNÉRIQUE
   ============================ */
.grid{
  display:grid;
  gap:24px;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
}
@media (max-width:1024px){ .grid{--cols:3} }
@media (max-width:720px){ .grid{--cols:2} }
@media (max-width:480px){ .grid{--cols:1} }


/* ============================
   CARTE PRODUIT
   ============================ */
.card{
  background:var(--card);
  border-radius:20px;
  box-shadow:var(--shadow);
  overflow:hidden;
  border:1px solid #f1e6ef;
  display:flex;
  flex-direction:column;
  position:relative;
}
.card .media{position:relative;height:240px;overflow:hidden}
.card .media img{width:100%;height:100%;object-fit:cover}
.card .flags{position:absolute;top:10px;left:10px;display:flex;gap:8px}
.flag{padding:6px 10px;border-radius:999px;color:#fff;font-weight:800;font-size:.8rem}
.flag.halal{background:#24c06b}
.flag.veggie{background:#29b6f6}
.flag.out{background:#2d2a32;opacity:.9}

.card .body{padding:18px}
.card h3{margin:0 0 6px;font-size:1.25rem;line-height:1.3}
.card .desc{color:#7a6f79;min-height:42px}
.price{color:var(--coral);font-weight:800;font-size:1.15rem;margin:.35rem 0 .75rem}
.btn{
  display:inline-block;
  background:var(--coral);
  color:#fff;
  text-decoration:none;
  border:none;
  border-radius:12px;
  padding:12px 16px;
  font-weight:800;
  cursor:pointer;
}
.btn[disabled]{opacity:.5;cursor:not-allowed}
.small{font-size:.85rem;color:#7a6f79}


/* ============================
   MODALE PRODUIT
   ============================ */
.modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
  z-index:60;
}
.modal.open{display:flex}
.modal .panel{
  background:#fff;
  border-radius:18px;
  max-width:960px;
  width:100%;
  overflow:hidden;
  box-shadow:var(--shadow);
}
.modal .panel .wrap{display:grid;grid-template-columns:1fr 1fr}
.modal .panel img{width:100%;height:100%;object-fit:cover}
.modal .panel .content{padding:22px}
.modal .close{
  position:absolute;
  top:14px;
  right:14px;
  background:#fff;
  border-radius:50%;
  border:1px solid #eee;
  padding:8px 10px;
  cursor:pointer;
}
@media (max-width:880px){
  .modal .panel .wrap{grid-template-columns:1fr}
}


/* ============================
   BANDEAU ADMIN
   ============================ */
.admin-banner{
  position:sticky;
  top:0;
  z-index:30;
  background:#0ea5a5;
  color:#052;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:8px 14px;
  border-bottom:2px solid #ffc;
  box-shadow:0 2px 10px rgba(0,0,0,.08);
}
.admin-actions{display:flex;gap:8px}
.btn-min{
  background:#fff;
  border:1px solid #0b8;
  border-radius:10px;
  padding:6px 10px;
  font-weight:700;
  cursor:pointer;
}
.btn-outline{background:transparent;border:1px solid #fff;color:#fff}


/* ============================
   PANIER LATÉRAL
   ============================ */
.cart-panel{
  position:fixed;
  top:0;
  right:-360px;                 /* caché */
  width:360px;
  height:100vh;
  background:#fff;
  box-shadow:-4px 0 16px rgba(0,0,0,.08);
  transition:right .25s ease-out;
  z-index:9999;
  display:flex;
  flex-direction:column;
}
.cart-panel.open{ right:0; }
.cart-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:.85rem 1rem;
  border-bottom:1px solid #f3f3f3;
  font-weight:600;
}
.cart-body{
  flex:1;
  overflow-y:auto;
  padding:.75rem 1rem;
  display:flex;
  flex-direction:column;
  gap:.6rem;
}
.cart-footer{
  border-top:1px solid #f3f3f3;
  padding:.7rem 1rem 1rem;
  background:#fff;
}
.cart-total{
  display:flex;
  justify-content:space-between;
  margin-bottom:.6rem;
  font-weight:600;
}
.cart-item{
  display:flex;
  gap:.6rem;
  align-items:center;
}
.cart-item__img{
  width:50px;
  height:50px;
  border-radius:.5rem;
  background:#f3f3f3;
}
.cart-item__info{flex:1;}
.cart-item__name{font-weight:600;}
.cart-item__qty{font-size:.75rem;color:#666;}
.cart-item__price{font-weight:600;}


/* ============================
   GRILLES PRODUITS PAR PAGE
   ============================ */
#productsGrid,
#allProducts,
#vracGrid,
#embGrid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:1.5rem;
  align-items:stretch;
}
.card.product{
  height:100%;
  display:flex;
  flex-direction:column;
}
@media (max-width:1024px){
  #productsGrid,
  #allProducts,
  #vracGrid,
  #embGrid{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
}
@media (max-width:800px){
  #productsGrid,
  #allProducts,
  #vracGrid,
  #embGrid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
@media (max-width:520px){
  #productsGrid,
  #allProducts,
  #vracGrid,
  #embGrid{ grid-template-columns:1fr; }
}


/* ============================
   SECTION CONTACT
   ============================ */
.contact-section{
  max-width: 900px;
  margin: 3rem auto;
  padding: 2.5rem;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}
.contact-section h2{
  text-align: center;
  color: #222;
  font-size: 1.8rem;
  margin-bottom: 1.8rem;
}
.contact-section input,
.contact-section textarea{
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-section input:focus,
.contact-section textarea:focus{
  border-color: #ffb74d;
  box-shadow: 0 0 0 3px rgba(255, 183, 77, 0.25);
  outline: none;
}
.contact-section button{
  width: 100%;
  background: #ffcc66;
  border: none;
  color: #222;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1rem;
  border-radius: 50px;
  margin-top: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
}
.contact-section button:hover{
  background: #ffb84d;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.checkout-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 16px 60px;
  background: #fff8fb;
}

.checkout-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.checkout-subtitle {
  margin-bottom: 22px;
  color: #555;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.6fr;
  gap: 20px;
}

.checkout-cart,
.checkout-customer,
.checkout-summary {
  background: #fff;
  border-radius: 18px;
  padding: 18px 18px 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.checkout-cart h2,
.checkout-customer h2,
.checkout-summary h2 {
  margin-bottom: 14px;
  font-size: 1.1rem;
  font-weight: 700;
}

.checkout-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checkout-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  padding: 10px 0;
}
.checkout-item:last-child {
  border-bottom: none;
}

.checkout-item-name {
  font-weight: 600;
}
.checkout-item-qty {
  font-size: .85rem;
  color: #666;
}
.checkout-item-price {
  font-weight: 600;
}

.checkout-empty {
  color: #666;
  font-style: italic;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.checkout-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: .85rem;
  color: #1f2937;
}
.checkout-form input,
.checkout-form select {
  border: 1px solid #ece3ec;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: .9rem;
  background: #fff;
}

.checkout-submit {
  margin-top: 8px;
  background: var(--lemon, #ffe066);
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}

.checkout-message {
  margin-top: 8px;
  font-size: .85rem;
  color: #38a169;
}

.checkout-summary .summary-line,
.checkout-summary .summary-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.checkout-summary .summary-total {
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 10px;
  font-size: 1.1rem;
  font-weight: 700;
}

.summary-note {
  font-size: .75rem;
  color: #666;
  margin-top: 12px;
}

@media (max-width: 1024px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .checkout-summary {
    order: 3;
  }
}

.cart-footer {
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(0,0,0,0.04);
  background: #fff;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: 600;
  color: #1f2937;
}

.cart-checkout-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--lemon, #ffe066);
  color: #1b1b1b;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.05s ease-out, box-shadow 0.05s ease-out;
  box-shadow: 0 6px 20px rgba(255, 224, 102, 0.4);
  cursor: pointer;
}

.cart-checkout-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 224, 102, 0.55);
}

.cart-checkout-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 14px rgba(255, 224, 102, 0.4);
}

.product-card {
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  transition: transform .12s ease-out, box-shadow .12s ease-out;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0,0,0,.04);
}
.product-thumb {
  display: block;
  background: #fff4f6;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-body {
  padding: .85rem .9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  flex: 1;
}
.product-title {
  margin: 0;
  font-size: 1rem;
}
.product-title a {
  color: #18212f;
  text-decoration: none;
}
.product-price {
  font-weight: 600;
  margin-top: .1rem;
}
.product-add {
  margin-top: auto;
}

/* descendre un peu la fiche produit parce que la nav est flottante */
.product-page {
  margin-top: 6.5rem !important; /* ajuste 6.5 → 7 si besoin */
}
/* Fix topbar collée propre */
.topbar{
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ff7a00;
  background-image: none !important;
  background-repeat: no-repeat !important;
  background-size: auto !important;
  background-position: center !important;
}

/* Sécurité fond hero */
.hero{ background-repeat:no-repeat; background-size:cover; background-position:center; }
/* Vignettes plus petites quand le panier est ouvert */
.cart-panel.open .cart-thumb{ width:42px; height:42px; }
.cart-panel.open .cart-item{ padding:8px 12px; gap:10px; }
.cart-panel.open .cart-item__name{ font-size:14px; }

/* Forcer des vignettes dans le panier quel que soit le markup */
.cart-panel .cart-body img{
  width: 56px !important;
  height: 56px !important;
  object-fit: cover !important;
  border-radius: 10px;
  display: block;
}

/* Mise en ligne compacte si le markup n'a pas .cart-thumb */
.cart-panel .cart-body .cart-item{
  display: flex; align-items: center; gap: 12px;
}
.cart-panel .cart-body .cart-item__info{ flex: 1; min-width: 0; }
.cart-panel .cart-body .cart-item__price{ margin-left: auto; white-space: nowrap; font-weight: 700; }

.cart-thumb-img{ width:56px; height:56px; object-fit:cover; border-radius:10px; display:block; }
.cart-thumb-fallback{ width:56px; height:56px; background:#f3f3f3; border-radius:10px; }

.cart-thumb-img{ width:56px; height:56px; object-fit:cover; border-radius:10px; display:block; }
.cart-item{ display:flex; align-items:center; gap:12px; padding:10px 14px; border-bottom:1px solid #eee; }
.cart-item__info{ flex:1; min-width:0; }
.cart-item__name{ font-weight:600; font-size:15px; line-height:1.2; }
.cart-item__qty{ margin-top:6px; display:flex; align-items:center; gap:6px; }
.qty-btn{ width:28px; height:28px; border:1px solid #ddd; border-radius:8px; background:#fff; cursor:pointer; font-size:18px; line-height:1; }
.qty-input{ width:42px; text-align:center; border:1px solid #ddd; border-radius:8px; height:28px; }
.remove-btn{ border:none; background:transparent; color:#b00020; cursor:pointer; font-size:13px; text-decoration:underline; margin-left:8px; }
.cart-item__price{ font-weight:700; white-space:nowrap; margin-left:auto; }
/* compact à l’ouverture */
.cart-panel.open .cart-thumb-img{ width:42px; height:42px; }
.cart-panel.open .cart-item{ padding:8px 12px; gap:10px; }

/* ============================
   PANIER LATÉRAL – compléments
   ============================ */

/* Overlay (créé par cart-panel.js) */
.cart-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 9998;
}
.cart-overlay.open{
  opacity: 1;
  pointer-events: auto;
}

/* Miniatures – sûres même si une <img> orpheline est rendue */
.cart-panel .cart-body img{
  width: 56px !important;
  height: 56px !important;
  object-fit: cover !important;
  border-radius: 10px;
  display: block;
}

/* Ligne d’article compacte & infos flexibles */
.cart-panel .cart-body .cart-item{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #eee;
}
.cart-panel .cart-body .cart-item__info{ flex: 1; min-width: 0; }
.cart-panel .cart-body .cart-item__name{ font-weight: 600; font-size: 15px; line-height: 1.2; }
.cart-panel .cart-body .cart-item__price{ margin-left: auto; white-space: nowrap; font-weight: 700; }

/* Contrôles d’édition (+ / − / entrée / supprimer) */
.qty-btn{
  width: 28px;
  height: 28px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.qty-input{
  width: 42px;
  height: 28px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 8px;
}
.remove-btn{
  border: none;
  background: transparent;
  color: #b00020;
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
  margin-left: 8px;
}

/* Quand le panneau est ouvert, on compacte visuellement */
.cart-panel.open .cart-body img{ width: 42px !important; height: 42px !important; }
.cart-panel.open .cart-item{ padding: 8px 12px; gap: 10px; }
.cart-panel.open .cart-item__name{ font-size: 14px; }

/* Mobile : encore plus compact si besoin */
@media (max-width: 420px){
  .cart-panel .cart-body img{ width: 48px !important; height: 48px !important; }
  .cart-panel.open .cart-body img{ width: 36px !important; height: 36px !important; }
}

/* ====== Cartes produit : espacement des actions ====== */

/* si tu utilises <article class="card product"> ... <div class="product-actions"> */
.card.product .product-actions{
  display: flex;
  gap: 10px;               /* <-- espace horizontal entre les deux boutons */
  margin-top: 10px;        /* <-- espace au-dessus du groupe de boutons */
  align-items: stretch;
}

.card.product .product-actions .btn{
  flex: 1;                 /* boutons de même largeur */
}

.card.product .product-actions .btn.btn-light{
  background: #fff;
  color: #1b1b1b;
  border: 1px solid #ece3ec;
}

/* un peu plus d’air sous le prix */
.card.product .product-price{
  margin: .25rem 0 .5rem;
}

/* Sur mobile: empile les boutons pour plus de confort */
@media (max-width: 520px){
  .card.product .product-actions{
    flex-direction: column;
    gap: 8px;
  }
}

/* Variante product-card */
.product-card .product-actions{
  display: flex;
  gap: 10px;
  margin-top: 10px;
  align-items: stretch;
}
.product-card .product-actions .btn{ flex: 1; }
@media (max-width: 520px){
  .product-card .product-actions{ flex-direction: column; gap: 8px; }
}

/* Rendre "Voir" (btn-light) orange comme "Ajouter" */
.card.product .product-actions .btn.btn-light,
.product-card .product-actions .btn.btn-light{
  background: var(--coral);
  color: #fff;
  border: none;
}

/* Petits effets au survol/au clic pour les deux boutons */
.card.product .product-actions .btn,
.product-card .product-actions .btn{
  transition: transform .06s ease, box-shadow .06s ease;
}
.card.product .product-actions .btn:hover,
.product-card .product-actions .btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.card.product .product-actions .btn:active,
.product-card .product-actions .btn:active{
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0,0,0,.06);
}

/* Centrer parfaitement le texte dans tous les boutons (a ou button) */
.btn,
.card.product .product-actions .btn,
.product-card .product-actions .btn{
  display: inline-flex;           /* homogène entre <a> et <button> */
  align-items: center;            /* centre vertical */
  justify-content: center;        /* centre horizontal */
  text-align: center;             /* fallback */
  line-height: 1.2;
}

/* S'assure que les deux boutons ont la même largeur dans la rangée */
.card.product .product-actions .btn,
.product-card .product-actions .btn{
  flex: 1;
}

/* Si tu veux un rendu encore plus régulier */
.card.product .product-actions .btn,
.product-card .product-actions .btn{
  min-height: 40px;               /* même hauteur visible */
  padding: 10px 14px;
}

/* Titre "Notre sélection en vrac" centré */
.vrac-title{
  text-align: center;
  margin: 0 0 12px;
}

/* La carte produit occupe toute la hauteur disponible */
.card.product {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Image avec ratio fixe pour éviter que ça décale tout */
.card.product .product-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;      /* carré */
  overflow: hidden;
}

/* Le corps devient une colonne : titre + prix + actions en bas */
.card.product .product-body {
  display: flex;
  flex-direction: column;
  flex: 1;                  /* occupe tout l'espace vertical disponible */
  padding: 1rem 0 1.25rem;
}

/* Les boutons sont poussés en bas */
.card.product .product-actions {
  margin-top: auto;         /* pousse les actions au bas du body */
  display: flex;
  gap: 0.75rem;
}

/* Optionnel : largeur uniforme des boutons dans la carte */
.card.product .product-actions .btn {
  flex: 1;
  text-align: center;
}

/* Grille produits : on étire toutes les cartes à la même hauteur */
#productsGrid,
#allProducts,
#vracGrid,
#embGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem 2rem;
  align-items: stretch; /* <-- important pour avoir des cartes de même hauteur */
}

/* Wrapper d’image : carré + centrage parfait */
.card.product .product-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;         /* carré */
  overflow: hidden;
  display: flex;               /* centrage avec flexbox */
  align-items: center;         /* vertical */
  justify-content: center;     /* horizontal */
}

/* Image du produit : bien centrée dans le carré */
.card.product .product-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;           /* recadre si l’image est trop haute/large */
}

/* Carte produit : léger contour + ombre douce */
.card.product {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.06);     /* léger contour */
  border-radius: 14px;                        /* angles doux */
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04); /* ombre très légère */
  background: #fff;
  overflow: hidden;
}

/* Optionnel : petit effet au survol */
.card.product:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

/* Carte produit : contour bien visible + fond blanc */
.card.product {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border: 1px solid #f2b6b6;        /* rose clair mais bien visible */
  border-radius: 16px;
  padding: 1.25rem 1.25rem 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

/* Si jamais un autre style écrase le border, décommente la ligne ci-dessous */
/*
.card.product {
  border: 1px solid #f2b6b6 !important;
}
*/
.card.product .product-img-wrap {
  margin-bottom: 0.75rem;
}

/* ===== FOOTER GLOBAL ===== */

.site-footer {
  background: #ffe5e5;                /* même esprit que le reste du site */
  margin-top: 3rem;
  padding: 2rem 1rem 1.5rem;
  font-size: 0.95rem;
  color: #444;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Conteneur centré comme le contenu principal */
.footer-inner {
  max-width: 1200px;
  margin: 0 auto 1.5rem;              /* <-- centre le bloc */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem 2rem;
}

/* Colonnes du footer */
.footer-col h4,
.footer-col h5 {
  margin: 0 0 0.75rem;
  color: #c44a55;
  font-weight: 600;
}

.footer-col p {
  margin: 0;
}

/* Listes propres, sans puces */
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li + li {
  margin-top: 0.35rem;
}

.footer-col a {
  text-decoration: none;
  color: #444;
}

.footer-col a:hover {
  text-decoration: underline;
}

/* Bas de page */
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 0.75rem;
  text-align: center;
  font-size: 0.85rem;
  color: #666;
}

.product-price {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-price .product-unit {
  font-weight: 400;
  font-size: 0.9em;
  color: #666;
  margin-left: 0.25rem;
}

/* Ligne quantité sur les cartes produit */
.product-qty-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.4rem 0 0.8rem;
}

/* On annule les styles globaux des labels (display:block, margin-bottom, etc.) */
.product-qty-row .product-qty-label {
  display: inline-flex;
  margin: 0;
  font-size: 0.9rem;
  color: #555;
  white-space: nowrap; /* évite le retour à la ligne entre Qté et (unités) */
}

/* On annule le width:100% global sur les inputs */
.product-qty-row .product-qty-input {
  width: 4rem;
  max-width: 4rem;
  padding: 0.25rem 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  text-align: center;
  font-size: 0.9rem;
  flex: 0 0 auto;
}

/* ===========================
   Page "Livraison & délais"
   =========================== */


body.page-livraison .page-container {
  max-width: 960px;
  /* ⬇️ On descend encore légèrement le bloc principal */
  margin: 7rem auto 3.5rem;  /* au lieu de 3.5rem auto 3.5rem */
  padding: 0 1rem;
}

/* Bloc d’info générique */
body.page-livraison .info-block {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}

body.page-livraison .info-block h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

body.page-livraison .info-block p {
  margin-bottom: 0.75rem;
}

body.page-livraison .info-block ul {
  list-style: disc;
  padding-left: 1.4rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

body.page-livraison .info-note {
  font-size: 0.85rem;
  color: #6b7280;
}

body.page-livraison .info-cta {
  text-align: center;
  margin-top: 2rem;
}

body.page-livraison .text-success {
  color: #16a34a;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  body.page-livraison .hero.hero--no-border {
    padding-top: 3.5rem;    /* un peu moins sur mobile pour éviter un trop gros vide */
    padding-bottom: 2rem;
  }

  body.page-livraison .page-container {
    margin: 3rem auto 3rem;
  }
}

/* ===========================
   Page "Paiement & sécurité"
   =========================== */


body.page-paiement main.page-container {
  max-width: 960px;
  margin: 7rem auto 3.5rem;  /* gros offset vers le bas comme tu l’avais mis */
  padding: 0 1rem;
}

/* Blocs d’info de la page paiement */
body.page-paiement .info-block {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}

body.page-paiement .info-block h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

body.page-paiement .info-block p {
  margin-bottom: 0.75rem;
  color: #374151;
  line-height: 1.6;
}

body.page-paiement .info-block ul {
  list-style: disc;
  padding-left: 1.4rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

body.page-paiement .info-block li {
  margin-bottom: 0.3rem;
}

body.page-paiement .info-note {
  font-size: 0.85rem;
  color: #6b7280;
}

/* Zone du bouton "Retour à la boutique" */
body.page-paiement .cta-zone {
  text-align: center;
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  body.page-paiement .hero.hero--no-border {
    padding-top: 4rem;
    padding-bottom: 2rem;
  }

  body.page-paiement main.page-container {
    margin: 3rem auto 3rem;
  }
}

/* Page compte / Mes commandes */
.account-container {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1rem 3rem;
}

.account-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  padding: 2rem 2rem 2.5rem;
}

.account-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 1.5rem;
}

.account-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.account-table th,
.account-table td {
  padding: 0.85rem 0.8rem;
  text-align: left;
}

.account-table thead th {
  background: #f9fafb;
  font-weight: 600;
  border-bottom: 1px solid #e5e7eb;
}

.account-table tbody tr:nth-child(even) {
  background: #fcfcff;
}

.account-table tbody tr + tr td {
  border-top: 1px solid #f1f1f6;
}

/* Bouton Payer dans le tableau */
.account-table .btn.btn-pay-order {
  background: var(--coral);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 600;
}

.account-table .btn.btn-pay-order:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* =========================================
   Pages résultat de paiement (success )
   ========================================= */

   /* carte centrale "pro" */
.payment-result-card {
  width: 100%;
  max-width: 640px;
  background: #ffffff;
  border-radius: 18px;
  padding: 1.75rem 2rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 182, 193, 0.35); /* rappel rose Lilobonbon */
}

.hero--payment-success .hero-inner h1 {
  font-size: clamp(1.9rem, 2.4vw, 2.3rem);
}

.hero--payment-success .hero-inner p {
  max-width: 520px;
  margin: 0.5rem auto 1.5rem;
}

/* bloc texte sous le hero */
.payment-result-main {
  max-width: 800px;
  margin: 6rem auto 3rem;
  padding: 0 1rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #000000;
}

.payment-result-main p + p {
  margin-top: 1rem;
}

.payment-result-main a {
  color: var(--coral);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* #1234abcd dans le texte */
.order-ref {
  font-weight: 600;
}


/* =========================================
   Ruban "Rupture de stock" sur les cartes
   (structure : .card.product .product-img-wrap .badge-rupture)
   ========================================= */

.card.product .product-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

/* image de la carte */
.card.product .product-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

/* Ruban "Rupture de stock" en diagonale */
.card.product .badge-rupture {
  position: absolute;
  top: 14px;
  left: -60px;                 /* décale vers la gauche pour traverser le coin */
  padding: 4px 60px;           /* longueur du ruban */
  background: #ff4b4b;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  transform: rotate(-45deg);   /* diagonale */
  transform-origin: 0 0;       /* pivot en haut à gauche */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 2;
  white-space: nowrap;
}


/* petit effet visuel quand rupture */
.card.product.product--rupture .product-img {
  filter: grayscale(0.15) brightness(0.95);
}

/* Conteneur image produit */
.card.product .product-img-wrap {
  position: relative;
  border-radius: 16px;
  /* IMPORTANT : on laisse dépasser le ruban */
  overflow: visible;
}

/* Image produit */
.card.product .product-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

/* Ruban "Rupture de stock" en diagonale */
.card.product .badge-rupture {
  position: absolute;
  top: 120px;
  left: -40px;                 /* un peu en dehors, mais plus autant */
  padding: 4px 55px;
  background: #ff4b4b;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  transform: rotate(-45deg);   /* diagonale */
  transform-origin: 0 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 2;
  white-space: nowrap;
}

/* Option : léger effet "rupture" sur l’image */
.card.product.product--rupture .product-img {
  filter: grayscale(0.15) brightness(0.95);
}

/* ============================
   Pages paiement (cancel)
   ============================ */

/* Variante hero pour la page d'annulation */
.hero--payment-cancel .hero-inner h1 {
  font-size: clamp(1.9rem, 2.4vw, 2.3rem);
}

.hero--payment-cancel .hero-inner p {
  max-width: 520px;
  margin: 0.5rem auto 1.5rem;
}

/* Variante visuelle de la carte d’info quand le paiement est annulé */
.payment-result-card--cancel {
  border-color: rgba(248, 113, 113, 0.55); /* rouge doux */
}

.payment-result-card--cancel .payment-result-title {
  color: #b91c1c;
}
