:root {
  --green-deep: #4A5D4E;
  --green-sapin: #2F3D33;
  --beige-lin: #F4F2EE;
  --beige-papier: #E9E5DF;
  --cream: #FBF9F5;
  --accent-gold: #C2B8A3;
  --accent-sauge: #BFC8C1;
  --accent-brun: #7A6E61;
  --text-primary: #2D2A26;
  --text-secondary: #7A6E61;
  --white: #ffffff;
  --primary: var(--green-deep);
  --secondary: var(--beige-lin);
  --text: var(--text-primary);
  --primary-light: #D9D2C2;
}

body,
p,
.product-description {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-primary);
}

h1,
h2,
h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-deep);
}

h1 {
  font-size: 2.4rem;
}

h2 {
  font-size: 1.9rem;
}

h3 {
  font-size: 1.5rem;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
}

label,
input,
select,
textarea,
button {
  font-family: 'Inter', sans-serif;
}

label {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 500;
}

.card {
  background: #FBF9F5 url('img/paper-light.jpeg');
  border-radius: 14px;
  border: 1px solid #E9E5DF;
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
  padding: 1.6rem;
}
/*.card {
  background: var(--beige-papier);
  border: 1px solid rgba(194, 184, 163, 0.6);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 24px 60px rgba(47, 61, 51, 0.12);
  background-image:
    linear-gradient(rgba(251, 249, 245, 0.94), rgba(251, 249, 245, 0.94)),
    url('img/paper-light.jpeg');
  background-size: cover;
  background-position: center;
  color: var(--text-primary);
}
*/
#shop-view {
  margin: 1.5rem;
}

header.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--green-deep), var(--green-sapin));
  color: var(--white);
  padding: 1.2rem 1.6rem;
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(47, 61, 51, 0.22);
}

header.topbar h1 {
  margin: 0;
  font-size: 2.25rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.welcome-banner {
  text-align: center;
  padding: 18px 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  color: var(--green-deep);
  border-bottom: 1px solid var(--beige-papier);
  margin-bottom: 24px;
  letter-spacing: 0.08em;
}
.welcome-banner span {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
  opacity: 0.78;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.06em;
  text-transform: none;
}

/* Style global des boutons */
button {
  background: linear-gradient(135deg, #4A5D4E, #2F3D33);
  border-radius: 10px;
  padding: 0.65rem 1.4rem;
  color: white;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
  transition: 0.25s ease;
}

/* Effet hover */
button:hover {
  background: #3E4F41;
  transform: translateY(-1px);
}

/* Effet clic (après clic) */
button:active {
  color: var(--green-sapin);
  background: linear-gradient(135deg, #fdfaf6, #e9e5df);
  transform: translateY(1px);
  box-shadow: 0 8px 16px rgba(122, 110, 97, 0.25);
}

/* --- Champs de saisie --- */
input[type="email"],
input[type="text"],
input[type="password"],
input[type="number"],
input[type="search"],
select {
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--beige-lin);
  border: 1px solid rgba(74, 93, 78, 0.25);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  max-width: 300px;
}

/* Effet focus (quand on clique dans le champ) */
input:focus,
select:focus {
  outline: none;
  border-color: var(--green-deep);
  box-shadow: 0 0 0 3px rgba(194, 184, 163, 0.45);
  background: var(--white);
}

table.catalog, #cart-table {
  width: 80%;
  border-collapse: collapse;
  table-layout: fixed;
  margin: 1rem auto 0;
}

table.catalog th, table.catalog td,
#cart-table th,  #cart-table td{
  padding: .35rem .6rem;               /* réduit la hauteur */
  line-height: 1.2;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
  font-size: 0.95rem;
}

/* En-tête */
table.catalog thead th, #cart-table thead th{
  height: 32px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.05em;
  background: var(--green-deep);
  color: var(--white);
  position: sticky; top: 0; z-index: 1;
}

/* Largeurs via <colgroup> */
.c-fav   { width: 60px; }
.c-ref   { width: 130px; }
.c-name  { width: auto; }              /* prend l'espace restant */
.c-unit  { width: 140px; }
.c-qty   { width: 100px; }
.c-total { width: 140px; }

/* Alignements */
.col-fav, .c-fav, td.c-fav{ text-align: center; padding-left: 0; padding-right: 0; }
table.catalog td:nth-child(4),
table.catalog td:nth-child(7){ text-align:right; font-variant-numeric: tabular-nums; }

/* --- Colonne Favoris : alignement & largeur fixe --- */
table.catalog .col-fav { width: 30px; padding: 0; text-align: center; }
table.catalog .col-fav svg { display: block; margin: 0 auto; }     /* corrige l'alignement baseline du SVG */
.cart-table td:nth-child(3),
.cart-table td:nth-child(5){ text-align:right; font-variant-numeric: tabular-nums; }

/* Nom: coupe proprement si trop long */
.c-name + /* rien */ * {} /* (juste pour le ciblage) */
table.catalog td:nth-child(3), #cart-table td:nth-child(3){
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Bouton cœur (cellules) */
.fav-btn{
  display:inline-flex; align-items:center; justify-content:center;
  width:28px; height:28px; border-radius:9999px;
  background:#fff; border:1px solid #ddd; box-shadow:0 1px 2px rgba(0,0,0,.08);
}

/* Bouton cœur et input quantité compacts */
button.fav{
  display:inline-flex; align-items:center; justify-content:center;
  width:26px; height:26px; border-radius:9999px; border:1px solid #ddd;
  background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.06);
}
.qty-input{
  width: 72px;                         /* tient dans la colonne c-qty */
  padding: .25rem .4rem; height: 32px; line-height: 1.1;
}

/* Lisibilité: zébrage + hover léger */
table.catalog tbody tr:nth-child(even),
#cart-table  tbody tr:nth-child(even){ background:var(--beige-lin); }
table.catalog tbody tr:hover,
#cart-table  tbody tr:hover{ background:var(--beige-papier); }

.hidden {
  display: none;
}

.certification-note {
  margin: 1.5rem auto 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid #4a5d4e;
  background: #f9f6f2;
  color: #2f4a3e;
  font-size: 0.9rem;
  line-height: 1.4;
  max-width: 900px;
}

.certification-note p {
  margin: 0;
}

.certification-note p + p {
  margin-top: 0.25rem;
}

.footer-banner {
  text-align: center;
  font-size: 0.6rem;
  line-height: 1.4;
  color: #333;
  background: #fdfbf8;
  padding: 0.5rem 0.75rem;
  width: 100%;
  box-sizing: border-box;
}

.footer-banner p {
  margin: 0;
}

.footer-banner p + p {
  margin-top: 0.25rem;
}

.site-footer {
  margin: 2rem auto 1rem;
  max-width: 960px;
}

.site-logo {
  width: 100%;
  margin: 0 0 24px;
  overflow: hidden;
}
.site-logo img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.company-banner {
  font-size: 0.6rem;
}

#basket-summary {
  font-weight: bold;
  font-size:18px;
  color: var(--primary);
}

/* Actions (icônes) */
.actions { display:flex; gap:16px; align-items:center; }
.icon-btn { position:relative; display:inline-flex; align-items:center; justify-content:center;
  width:72px; height:72px; border-radius:18px; border:none; background:linear-gradient(145deg,var(--green-deep),var(--green-sapin)); color:#fff; cursor:pointer;
  box-shadow: 0 15px 30px rgba(47,61,51,.25); font-size:32px;
}
.icon-btn img,
.button.secondary img {
  width:42px;
  height:42px;
  object-fit:contain;
  pointer-events:none;
  display:block;
}
.icon-btn:hover { background:linear-gradient(145deg,#5c6d5f,#2f3d33); }
.icon-btn.cart { padding-right:10px; }
.badge { position:absolute; top:-10px; right:-10px; min-width:22px; height:22px; padding:0 6px;
  background:var(--accent-sauge); color:var(--green-sapin); border-radius:11px; font-size:13px; display:flex; align-items:center; justify-content:center; font-weight:600; }
.badge.added {
  animation: pulse 0.3s ease-out;
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.drawer-header .icon-btn { width:40px; height:40px; font-size:22px; border-radius:10px; box-shadow:none; }
.icon-btn--trash {
  width: 36px;
  height: 36px;
  font-size: 20px;
  border-radius: 10px;
}

/* Bandeau d’onglets de catégories */
.catalog-tabs { display:flex; gap:14px; flex-wrap:wrap; align-items:center; margin:12px 0 8px; }
#catalog-tabs{ position:sticky; top:68px; z-index:10; background:rgba(251,249,245,.9); backdrop-filter:saturate(1.2) blur(6px); padding: 12px 0; }
.catalog-tab { padding:8px 18px; border-radius:999px; background:#EEF2EF; color:var(--green-sapin); cursor:pointer;
  font-weight:600; letter-spacing:0.06em; border:1px solid transparent; text-transform:uppercase; font-family:'Inter',sans-serif; font-size:.85rem; }
.catalog-tab:hover { background:rgba(191,200,193,0.65); border-color:rgba(74,93,78,0.2); }
.catalog-tab.active { background:var(--green-deep); color:#fff; border-color:var(--green-sapin); box-shadow:0 10px 24px rgba(47,61,51,0.25); }
.catalog-tab .count { opacity:.8; font-weight:500; margin-left:6px; font-size:.75rem; }

/* Catalogue structuré */
.structured-catalog {
  display:flex;
  flex-direction:column;
  gap:28px;
}
.structured-section > h3 {
  margin-bottom:12px;
  font-size:2rem;
  color:#2f4a3e;
  font-weight:700;
  letter-spacing:.02em;
}
.structured-groups {
  display:flex;
  flex-direction:column;
  gap:18px;
}
.structured-group {

  overflow:hidden;
  background:var(--group-panel-bg,#fff);

  border-radius: 16px;
  border: 1px solid rgba(160,140,130,0.35);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.35), /* liseré blanc interne */
    0 4px 12px rgba(47,74,62,0.10),         /* ombre douce */
    0 18px 36px rgba(47,74,62,0.12);        /* profondeur luxe */
  
    /* Palette interne */
  --group-accent:#2f4a3e;
  --group-panel-bg:#fff;
  --group-border-strong:#a08c82;
  --group-accent-border:rgba(47,74,62,.25);
  --group-border-grid:#dcd4cc;
  --group-row-border:rgba(47,74,62,.12);
  --group-row-base:#fbfaf8;
  --group-row-alt:#ffffff;
  --group-row-hover:#f4f1ee;
  --group-header-bg:#f7f2ef;
  --group-header-text:#01180f;
  --group-table-header-text:#f8faf9;
  --group-table-header-text2:#f1f6f4;

  /*padding: 0;*/
}
.structured-group-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  /*padding:24px 18px;*/
  border-left:20px solid var(--group-border-strong,#2f4a3e);
  font-weight:700;
  font-size:18px;
  letter-spacing:0.02em;
  /* background:var(--group-header-bg,#f7f2ef); */
  background: linear-gradient(135deg, var(--group-header-bg), #ede6e0);
  border-bottom: 1px solid var(--group-border-grid);
  color:var(--group-header-text,#2f4a3e);
}
.structured-group-title {
  margin-right:20px;
  margin-left:20px;
  /*font-size:18px;
  text-transform:uppercase;*/
  color: var(--group-table-header-text2,#e6edea);
  font-size:1.4rem;
  font-weight:700;
  letter-spacing:0.04em;
  /*text-transform:uppercase;*/
  /*padding:32px 32px;*/
}
.structured-group-count {
  font-size:1.4rem;
  font-weight:700;
  letter-spacing:0.04em;
  color: var(--group-table-header-text2,#e6edea);
  opacity:.90;
}
.structured-group table.catalog {
  width:100%;
  margin:0;
  border-collapse:collapse;
  background:#fff;
}
.structured-group table.catalog thead th {
  background: var(--group-header-bg,#f7f2ef);
  color: var(--group-table-header-text,#e5ece9);
  font-size:1.1rem;
  font-weight:700;
  letter-spacing:0.04em;
  text-transform:uppercase;
  /*padding:16px 12px;*/
}
.structured-group table.catalog th,
.structured-group table.catalog td{
  border:1px solid var(--group-border-grid,#dcd4cc);
}
.structured-group table.catalog tbody tr {
  border-left:4px solid var(--group-border-strong,#2f4a3e);
  transition: background-color .15s ease, border-color .15s ease;
}
.structured-group table.catalog tbody tr:nth-child(odd) {
  background: var(--group-row-base,#ffffff);
}
.structured-group table.catalog tbody tr:nth-child(even) {
  background: var(--group-row-alt,#f7f7f2);
}
.structured-group table.catalog tbody tr:hover {
  background: var(--group-row-hover,#efefe9);
}
.structured-group-missing {
  margin:12px 18px 18px;
  font-size:.95rem;
  color:#4a4a4a;
  font-style:italic;
}
.catalog-empty {
  padding:32px;
  text-align:center;
  border:1px dashed #cbd4cc;
  border-radius:18px;
  background:#f6f8f5;
  color:#4b5b50;
  font-size:1rem;
}
.cgv-content{
  line-height:1.45;
  color:#25352c;
  font-size:0.95rem;
}
.cgv-content .cgv-section{
  margin-bottom:1rem;
}
.cgv-content .cgv-section h2{
  margin:0 0 .35rem;
  font-size:1.05rem;
  color:#203428;
}
.cgv-content .cgv-section p{
  margin:0 0 .35rem;
}
.cgv-panel-content{
  max-height:70vh;
  overflow:auto;
}
.cgv-consent{
  display:flex;
  margin:8px 0 6px;
  font-size:0.92rem;
  color:#2f4a3e;
}
.cgv-consent label{
  display:flex;
  align-items:center;
  gap:8px;
}
.cgv-consent input[type="checkbox"]{
  width:18px;
  height:18px;
  accent-color:var(--green-deep);
}
.link-button{
  background:none;
  border:none;
  color:var(--green-deep);
  text-decoration:underline;
  padding:0;
  font:inherit;
  cursor:pointer;
}
.link-button:hover{
  color:var(--green-sapin);
}
.link-button:focus-visible{
  outline:2px solid var(--accent-gold);
  outline-offset:2px;
}

/* Colonne favoris (cœur) */
td .fav {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid #d8e0db;
  background: #fff; color: #8a9a93;
  cursor: pointer; font-size: 14px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
td .fav.on {
  background: #ffeff0; color: #c2185b; border-color: #f4c1cc;
}
td .fav:hover { transform: scale(1.05); }

/* --- panier Panier --- */
.panier { 
  position: fixed; inset: 0; z-index: 999;
  background: transparent !important; /* ← important : pas d'écran blanc */
  pointer-events: none;               /* fermé = n'intercepte rien */
  visibility: hidden;                 /* fermé = caché aux lecteurs d'écran */
}

.panier.open { 
  pointer-events: auto;
  visibility: visible;
}

.drawer {
  position: fixed; inset: 0; z-index: 999;
  pointer-events: none;
  visibility: hidden;
}

.drawer.open {
  pointer-events: auto;
  visibility: visible;
}
.panier-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.18);        /* ajuste l’opacité à ton goût (0 ⇒ aucun voile) */
  opacity: 0; transition: opacity .28s ease;
}
.panier.open .panier-overlay { opacity: 1; }
.panier-overlay { z-index: 1; }
.drawer-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.18);
  opacity: 0; transition: opacity .28s ease;
  z-index: 1;
}
.drawer.open .drawer-overlay { opacity: 1; }
.panier-panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: 50vw;                         /* ← occupe 50% de l'écran */
  max-width: none;
  background: #fff;
  background-image:
    linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)),
    url('img/paper-light.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: -16px 0 32px rgba(0,0,0,.20);
  transform: translateX(100%);         /* caché à droite */
  transition: transform .30s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column;
  will-change: transform;
  z-index: 2;
}

.orientation-prompt {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 9px);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(47, 61, 51, 0.2);
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  box-shadow: 0 16px 36px rgba(47, 61, 51, 0.25);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: #2d2a26;
  text-align: center;
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.orientation-prompt.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.panier.open .panier-panel { transform: translateX(0); }

.drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: 50vw;                         /* ← occupe 50% de l'écran */
  max-width: 100vw;
  background: #fff;
  background-image:
    linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.92)),
    url('img/paper-light.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: -16px 0 32px rgba(0,0,0,.20);
  transform: translateX(100%);
  transition: transform .30s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column;
  will-change: transform;
  z-index: 2;
  outline: none;
}

.drawer.open .drawer-panel { transform: translateX(0); }

@media (max-width: 768px){
  .panier-panel{ width: 100vw; }
  .drawer-panel{ width: 100vw; }
}
@media (max-width: 900px) and (orientation: landscape){
  .panier-panel,
  .drawer-panel {
    width: 100vw;
  }
}
.body-no-scroll{ overflow: hidden; }

.panier-header { display:flex; justify-content:space-between; align-items:center;
  padding: 12px 16px; border-bottom: 1px solid #eee; }
.drawer-header { display:flex; justify-content:space-between; align-items:center;
  padding: 12px 16px; border-bottom: 1px solid #eee; }
.panier-content { display:flex; flex-direction:column; gap: 12px; padding: 12px 16px; height: 100%; overflow: hidden; }
.drawer-content { display:flex; flex-direction:column; gap: 16px; padding: 16px; height: 100%; overflow:auto; }
.help-faq{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px; font-size:.92rem; }
.help-faq li strong{ color:var(--primary); }
.help-intro{ font-size:.95rem; margin:0; }
.help-footer{ font-size:.9rem; color:#2f4a3e; font-weight:600; margin:0; }
.contact-form{ display:flex; flex-direction:column; gap:14px; }
.contact-form label{ display:flex; flex-direction:column; gap:6px; font-size:.95rem; color:var(--text); }
.contact-form textarea{ resize:vertical; min-height:160px; font-size: 1.0rem;}
.contact-feedback{ margin:0; font-size:.9rem; color:#2f4a3e; min-height:1.2em; }
.contact-feedback.is-error{ color:#a11f1f; }
.cart-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cart-table thead th { height: 40px; font-weight: 700; background: #2f4a3e; color: #fff; position: sticky; top: 0; z-index: 1; }
.cart-table th, .cart-table td { padding: .35rem .6rem; border-bottom: 1px solid #eee; vertical-align: middle; font-size: .95rem; }
.cart-table td:nth-child(3), .cart-table td:nth-child(5) { text-align: right; font-variant-numeric: tabular-nums; }
.cart-table .empty-cart { text-align: center; padding: 1.6rem .8rem; font-size: .95rem; color: #555; }

.panier-content{
  display:flex; flex-direction:column; gap:12px;
  padding:12px 16px; height:100%; overflow:auto;
}

.qty-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f5f3ee;
  padding: 4px 6px;
  border-radius: 12px;
  box-shadow: inset 0 -2px 0 rgba(47, 61, 51, 0.05), 0 6px 12px rgba(0, 0, 0, 0.05);
}
.qty-box .qty-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: none;
  background: #ede6e0;
  color: #2f4a3e;
  font-size: 22px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.qty-box .qty-btn:hover {
  background: #e0d7ce;
}
.qty-box .qty-input {
  width: 58px;
  height: 42px;
  text-align: center;
  font-size: 18px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fff;
  color: #2f4a3e;
  font-weight: 500;
  -moz-appearance: textfield;
}
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.panier-footer {
  margin-top: auto; display:flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 12px 0 0; border-top: 1px solid #eee;
}
.totals {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 240px;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: .96rem;
}
.cart-total-label {
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}
.cart-total-value {
  font-variant-numeric: tabular-nums;
  text-align: right;
  min-width: 120px;
  font-weight: 600;
}
.cart-total-row--grand .cart-total-label {
  font-weight: 600;
}
.cart-total-row--grand .cart-total-value {
  font-size: 1.05rem;
}
.panier-actions{
  display:flex; flex-direction:column; align-items:flex-end; gap:8px;
}
.cart-discount{ display:flex; flex-direction:column; gap:6px; width:100%; }
.cart-discount label{ font-size:.9rem; color:var(--text-secondary); letter-spacing:0.04em; }
.cart-discount-row{ display:flex; gap:8px; width:100%; }
.cart-discount-row input{ flex:1; padding:10px; border:1px solid rgba(74,93,78,0.25); border-radius:12px; font-size:.95rem; background:var(--beige-lin); }
.cart-discount-row .button{ white-space:nowrap; }
.cart-warning{
  margin:0; font-size:.9rem; color:#b00020; min-height:1.2em; text-align:right;
}
.qty-input { width: 72px; padding: .25rem .4rem; height: 32px; line-height: 1.1; }
.button.disabled,
.button:disabled{
  opacity:.5;
  cursor:not-allowed;
  pointer-events:none;
}
.button.secondary{
  background: var(--beige-lin);
  color: var(--green-sapin);
  box-shadow: none;
}
.button.secondary:hover{
  background: var(--beige-papier);
  color: var(--green-deep);
}
.button-outline{
  background: transparent;
  border: 1px solid var(--green-deep);
  color: var(--green-deep);
}
.button-outline:hover{
  background: var(--green-deep);
  color: #fff;
}
.product-outofstock{
  opacity: .6;
}

/* Particuliers */
body.retail {
  background-color: #f6f3ef;
}
.retail-auth-card {
  max-width: 980px;
}
.retail-auth-intro {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: #2f4a3e;
}
.retail-auth-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.retail-auth-block {
  flex: 1 1 280px;
  border: 1px solid rgba(47,74,62,0.12);
  border-radius: 14px;
  padding: 1.5rem;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}
.retail-auth-block--signup {
  background: #fbf7f3;
}
.retail-auth-block h2 {
  margin-top: 0;
}
.retail-auth-block label {
  display: block;
  font-size: .95rem;
  color: #2f4a3e;
  margin-bottom: .75rem;
}
.retail-auth-block input {
  margin-top: .35rem;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .75rem;
  margin-bottom: .5rem;
}
.retail-auth-note {
  font-size: .85rem;
  color: #5d665f;
}
.retail-auth-text {
  color: #4a554e;
}
.retail-shop .stock-headline {
  color: #2f4a3e;
}
.retail-top-note {
  margin: .2rem 0 0;
  color: #5e6a62;
  font-size: .95rem;
}
.cart-section td {
  background: #f9f6f1;
  font-weight: 600;
  color: #2f4a3e;
}
.payment-panel .modal-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.payment-panel .button {
  width: 100%;
  text-align: center;
}

.product-name{
  cursor: pointer;
  color: var(--primary);
  text-decoration: underline;
}

.product-name:focus,
.product-name:hover{
  outline: none;
  color: #1f3128;
}

.product-detail{
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-detail-grid{
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.product-detail-side{
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-detail-image-wrapper{
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: var(--beige-lin);
  border: 1px solid rgba(194, 184, 163, 0.6);
  position: relative;
  max-inline-size: 420px;
  max-block-size: 420px;
}

#product-detail-image{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity .3s ease;
}
#product-detail-image.is-visible{
  opacity: 1;
}

.product-detail-image-placeholder{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
  background: linear-gradient(135deg, rgba(233,229,223,0.6), rgba(251,249,245,0.9));
  text-align: center;
  padding: 1rem;
}
.product-detail-image-placeholder.hidden{
  display: none;
}

.product-detail-price{
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.05em;
}
.product-detail-price span{
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}
.product-detail-price strong{
  font-size: 0.95rem;
  color: var(--green-deep);
}

.product-detail-volume{
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-primary);
}


.product-detail-link{
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-detail-link a{
  color: var(--green-deep);
  text-decoration: underline;
  font-weight: 600;
  width: fit-content;
}

#product-detail-link[hidden]{
  display: none;
}

.product-detail-info{
  flex: 1 1 360px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-detail-info h3{
  margin: 0;
  font-size: 2rem;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.08em;
  color: var(--green-sapin);
}

.product-detail-ref{
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.product-detail-desc{
  margin: 0;
  font-size: 1rem;
  color: var(--text-primary);
  white-space: pre-line;
}

.product-detail-section{
  background: rgba(249, 247, 243, 0.75);
  border: 1px solid rgba(233, 229, 223, 0.8);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-detail-section.hidden{
  display: none;
}
.product-detail-section h4{
  margin: 0;
  font-size: 1.05rem;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.08em;
  color: var(--green-deep);
}
.product-detail-section div{
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.inci-block{
  margin-top: 4px;
}
.inci-block[hidden]{
  display: none;
}
.inci-block details {
  background: #FBF9F5;
  border: 1px solid #E9E5DF;
  padding: 14px;
  border-radius: 8px;
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.45;
}

.inci-block summary {
  font-family: "Inter", sans-serif;
  color: #4A5D4E;
  cursor: pointer;
  font-weight: 600;
}

.inci-block p {
  margin-top: 10px;
  white-space: pre-wrap;
  color: #5B615D;
}

.inci-block small {
  display: block;
  margin-top: 8px;
  opacity: 0.6;
}

.admin-panel .drawer-content{
  gap: 24px;
}
.admin-status{
  min-height: 1.2em;
  margin: 0;
  font-size: 0.95rem;
  color: var(--primary);
}
.admin-status.is-error{
  color: #b00020;
}
.admin-status.is-loading{
  color: var(--primary);
}
.admin-section{
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border: 1px solid #d9d4cc;
  border-radius: 8px;
  background: #fff;
}
.admin-section h3{
  margin: 0;
  font-size: 1.05rem;
  color: var(--primary);
}
.admin-structure-controls{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:flex-end;
}
.admin-structure-controls label{
  display:flex;
  flex-direction:column;
  gap:6px;
  flex:1 1 220px;
  font-weight:600;
}
.admin-structure-tab-select{
  border:1px solid #d9d4cc;
  border-radius:8px;
  padding:8px 10px;
  font-size:1rem;
  background:#fbf9f6;
  color:#1f2a24;
}
.admin-structure-tab-select:disabled{
  opacity:0.6;
}
.admin-structure-controls__hint{
  flex:1 1 200px;
  margin:0;
  font-size:0.85rem;
  color:#555;
}
.admin-structure-view{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-bottom:12px;
}
.admin-structure-card{
  border:1px solid #d9d4cc;
  border-radius:10px;
  padding:12px;
  background:#fbf9f6;
}
.admin-structure-card h4{
  margin:0 0 6px;
  font-size:1rem;
  color:var(--primary);
}
.admin-structure-section-block{
  margin:6px 0 0;
  padding:8px 0 0;
  border-top:1px solid #e6ded5;
}
.admin-structure-section-block:first-of-type{
  border-top:none;
  padding-top:0;
}
.admin-structure-section-title{
  font-weight:600;
  margin-bottom:4px;
  color:#2f4a3e;
}
.admin-structure-group-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:6px 0;
  border-top:1px dashed #e7e0d7;
}
.admin-structure-group-row:first-of-type{
  border-top:none;
}
.admin-structure-group-info{
  display:flex;
  align-items:center;
  gap:10px;
  flex:1;
}
.admin-structure-swatch{
  width:18px;
  height:18px;
  border-radius:4px;
  border:1px solid #d3cec5;
}
.admin-structure-group-actions{
  display:flex;
  gap:8px;
}
.admin-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-list li{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}
.admin-list li:last-child{
  border-bottom: none;
}
.admin-list li.empty{
  font-style: italic;
  color: #666;
  justify-content: flex-start;
}
.admin-ref{
  flex: 1 1 auto;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.95rem;
}
.admin-form{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.admin-form label{
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 260px;
}
.admin-form select{
  max-width: none;
}
.admin-form.is-loading{
  opacity: 0.6;
  pointer-events: none;
}
.admin-help{
  margin: 0;
  font-size: 0.9rem;
  color: #555;
}
.admin-structure-textarea{
  width: 100%;
  min-height: 220px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9rem;
  border: 1px solid #d9d4cc;
  border-radius: 8px;
  padding: 10px;
  resize: vertical;
  background: #faf9f7;
  color: #1f2a24;
}
.admin-structure-actions{
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.admin-structure-hint{
  font-size: 0.85rem;
  color: #666;
}
.admin-structure-form textarea{
  width: 100%;
  font-family: inherit;
}
.admin-structure-modal{
  position:fixed;
  inset:0;
  background:rgba(32,23,17,0.55);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  z-index:2000;
}
.admin-structure-modal[aria-hidden="true"]{
  display:none;
}
.admin-structure-modal__dialog{
  position:relative;
  background:#fff;
  border-radius:14px;
  padding:28px 24px 24px;
  width:min(520px,100%);
  max-height:90vh;
  overflow:auto;
  box-shadow:0 20px 45px rgba(0,0,0,0.25);
}
.admin-structure-modal__close{
  position:absolute;
  top:12px;
  right:12px;
  font-size:1.3rem;
  line-height:1;
}
.admin-structure-modal h4{
  margin:0 0 16px;
  color:var(--primary);
}
.admin-structure-modal .admin-structure-actions{
  justify-content:flex-end;
  margin-top:4px;
}

#product-detail-link-placeholder.hidden{
  display: none;
}
#product-detail-link-placeholder{
  font-size: .9rem;
  color: var(--text-secondary);
}
.qty-input.is-outofstock{
  background: #f5f5f5;
  cursor: not-allowed;
}

/* Toolbar du catalogue / recherche */
.toolbar{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--beige-lin);
  border-bottom: 1px solid rgba(194, 184, 163, 0.7);
  position: sticky; top: 0; z-index: 100;   /* reste visible au scroll */
}

.stock-headline{
  margin: 12px 0 6px;
  font-size: 0.95rem;
  color: #2f4a3e;
  font-weight: 600;
}

.stock-alert{
  padding: 14px 18px;
  border-left: 5px solid var(--accent-gold);
  border-radius: 14px;
  font-size: .95rem;
  line-height: 1.5;
  margin-bottom: 18px;
  background: rgba(251, 249, 245, 0.9);
  color: var(--text-secondary);
  transition: background-color .2s, color .2s, border-color .2s;
}
.stock-alert.has-ruptures{
  background: rgba(233, 229, 223, 0.85);
  border-left-color: #d89b6e;
  color: #7b4c1f;
}
.stock-alert.is-ok{
  background: rgba(191, 200, 193, 0.35);
  border-left-color: var(--green-deep);
  color: var(--green-sapin);
}
.stock-alert.is-error{
  background: #fff3f3;
  border-left-color: #d64545;
  color: #7d2020;
}

.auth-message{
  margin: 12px 0 24px;
  font-size: .95rem;
  color: #2f4a3e;
  min-height: 1.2em;
}

.auth-message.is-error{ color: #b00020; }
.auth-message.is-success{ color: #1b5e20; }

.account-status{
  margin: 0;
  font-size: .92rem;
  color: #555;
  min-height: 1.2em;
}

.account-status.is-error{
  color: #8a1f1f;
}

.account-status.is-loading{
  color: var(--text);
}

.account-section{
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.account-section .button.button-outline.button-disabled,
.account-section .button.button-outline[disabled],
.account-section .button.button-outline[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

.account-section h3{
  margin: 0;
  font-size: 1rem;
  color: var(--text);
}
.account-profile-table-wrapper{
  width: 100%;
  overflow-x: auto;
}
.account-profile-table{
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  margin-bottom: .5rem;
}
.account-profile-table th,
.account-profile-table td{
  padding: .4rem .5rem;
  border: 1px solid #e4e4e4;
  text-align: left;
}
.account-profile-table th{
  background: var(--green-sapin, #2f4a3e);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: #f7f5f2;
}
.account-profile-table td{
  background: #fff;
  font-weight: 600;
}
.account-documents-wrapper{
  margin-top: .5rem;
  overflow-x: auto;
}
.account-documents-table{
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: .95rem;
}
.account-documents-table th,
.account-documents-table td{
  padding: .65rem .75rem;
  border-bottom: 1px solid #e4e4e4;
  text-align: left;
}
.account-documents-table th{
  font-size: .85rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #2f4a3e;
  background: #f7f5f2;
  white-space: nowrap;
}
.account-documents-table td{
  vertical-align: middle;
  background: #fff;
}
.account-documents-table td.amount-cell{
  white-space: nowrap;
  font-weight: 600;
}
.account-documents-table td.date-cell{
  white-space: nowrap;
}
.account-documents-table td.status-cell{
  font-weight: 600;
  color: #2f4a3e;
}
.account-documents-table tr:last-child td{
  border-bottom: none;
}
.account-documents-message td{
  text-align: center;
  font-style: italic;
  color: #666;
}
.account-documents-empty{
  margin-top: .75rem;
  color: #6e6e6e;
}
.doc-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: opacity .2s ease, transform .2s ease;
}
.doc-link img{
  width: 28px;
  height: 28px;
  display: block;
}
.doc-link:hover{
  transform: translateY(-1px);
}
.doc-link.is-loading{
  opacity: .5;
  pointer-events: none;
}
.doc-link.is-disabled{
  opacity: .35;
  filter: grayscale(1);
  pointer-events: none;
}
.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.account-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.account-list li{
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: .95rem;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfbfb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.account-list .item-title{
  font-weight: 600;
  color: var(--text);
}

.account-list .account-download-link{
  font-size: .85rem;
  text-decoration: underline;
  align-self: flex-start;
}

.account-list a{
  color: var(--primary);
  text-decoration: none;
}

.account-list a:hover{
  text-decoration: underline;
}

.account-list a[aria-disabled="true"]{
  color: #999;
  pointer-events: none;
  text-decoration: none;
}

.account-list a.is-loading{
  color: #999;
  pointer-events: none;
  text-decoration: none;
}

.account-list .meta{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: #555;
}

.account-list .status{
  font-weight: 600;
  color: var(--primary);
}

.account-details{
  display: grid;
  gap: 4px;
  font-size: .85rem;
  color: #555;
}

.account-detail-row{
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.account-detail-label{
  font-weight: 500;
}

.account-detail-value{
  font-weight: 500;
}

.account-detail-value.is-strong{
  font-weight: 700;
  color: var(--text);
}

.account-detail-value a{
  color: var(--primary);
  text-decoration: underline;
}

.account-detail-value a:hover{
  text-decoration: none;
}

.account-list .item-actions{
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .85rem;
}

.account-text{
  white-space: pre-line;
  margin: 0;
  font-size: .9rem;
  color: #444;
}
.account-text-strong{
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
}

.account-text-note{
  font-size: .85rem;
  color: #666;
  margin: 4px 0 8px;
}

.button.button-outline.account-reorder[aria-disabled="true"],
.button.button-outline.account-reorder.button-disabled{
  opacity: 0.6;
  pointer-events: none;
}

.button.button-outline.account-reorder.is-loading{
  cursor: progress;
}

.button.button-outline.account-reorder{
  margin-bottom: 6px;
}

/* Harmonise les inputs avec tes variables existantes */
input[type="search"],
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
select{
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);          /* ← au lieu de --text-dark (inexistant) */
  background: var(--secondary);/* ← au lieu de --ardevie-beige */
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  transition: border-color .2s, box-shadow .2s;
}

input[type="search"]:focus{
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

/* Résumé panier à droite */
#basket-summary{
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.toolbar #search{
  flex: 1;
  max-width: 520px;
  height: 50px;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  box-sizing: border-box;
  border: 1px solid rgba(74,93,78,0.25);
  border-radius: 999px;
  background: #fff;
}

#stock-alert strong{
  display:block;
  font-weight:600;
  margin-bottom:4px;
}

/* Modal calendrier prélèvements */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  pointer-events: none;
}

.modal.open {
  visibility: visible;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 1;
}

.modal-panel {
  position: relative;
  width: min(600px, 92vw);
  max-height: 90vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.26);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
  outline: none;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}

.modal-body {
  padding: 16px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-footer {
  padding: 12px 20px 16px;
  border-top: 1px solid #eee;
  background: #faf9f7;
}

.modal-close {
  width: 36px;
  height: 36px;
  font-size: 20px;
  border-radius: 10px;
  box-shadow: none;
}

.calendar-intro {
  margin: 0;
  font-size: 0.9rem;
  color: #444;
}

.calendar-note {
  margin: 0;
  font-size: 0.85rem;
  color: #555;
  font-style: italic;
}

.calendar-empty {
  margin: 12px 0 4px;
  font-size: 0.95rem;
  color: #666;
}

.calendar-month {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calendar-month-title {
  margin: 0;
  font-size: 1rem;
  text-transform: capitalize;
  color: var(--primary);
}

.calendar-event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calendar-event-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid #ececec;
  border-radius: 10px;
  background: #fcfbf9;
}

.calendar-event-date {
  min-width: 160px;
  font-weight: 600;
  color: var(--primary);
  text-transform: capitalize;
}

.calendar-event-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
  color: #444;
}

.calendar-event-amount {
  font-weight: 600;
  color: var(--text);
}

@media (max-width: 900px) {
  #shop-view {
    margin: 1rem 0.75rem;
  }
  header.topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  header.topbar h1 {
    font-size: 1.2rem;
  }
  .actions {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
  }
  .icon-btn {
    width: 52px;
    height: 52px;
    font-size: 26px;
    border-radius: 12px;
  }
  .toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .toolbar #search {
    max-width: none;
    width: 100%;
    height: 44px;
    font-size: 1rem;
  }
  #basket-summary {
    font-size: 1rem;
    text-align: left;
  }
  table.catalog, #cart-table {
    width: 100%;
    margin: 0.5rem 0;
  }
  table.catalog td:nth-child(3), #cart-table td:nth-child(3) {
    white-space: normal;
  }
  .qty-input {
    width: 64px;
  }
.panier-footer {
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}
  .totals {
    min-width: 0;
    width: 100%;
  }
  .panier-actions {
    width: 100%;
    align-items: stretch;
  }
}

/* Appliquer un padding plus large aux sections principales */
.page-section,
.product-container,
.main-content {
  padding-top: 50px;
  padding-bottom: 50px;
}

@media (max-width: 768px) {
  .page-section,
  .product-container,
  .main-content {
    padding-top: 30px;
    padding-bottom: 30px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 0.95rem;
  }
  .card {
    margin: 0.75rem 0.5rem;
    padding: 1rem;
  }
  #shop-view {
    margin: 0.75rem 0.5rem;
  }
  header.topbar {
    gap: 0.5rem;
  }
  .icon-btn {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
  .catalog-tabs {
    gap: 8px;
  }
  table.catalog {
    min-width: 560px;
  }
  #products {
    overflow-x: auto;
  }
  .panier-panel,
  .drawer-panel {
    width: 100vw;
  }
  .calendar-event-item {
    flex-direction: column;
    gap: 10px;
  }
  .calendar-event-date {
    min-width: 0;
  }
}
/* ====== MODE MOBILE PREMIUM (max 768px) ====== */
@media (max-width: 768px) {

  table.mobile-collapse {
    width: 100%;
    table-layout: fixed;
  }

  table.mobile-collapse td:nth-child(2),
  table.mobile-collapse td:nth-child(4),
  table.mobile-collapse th:nth-child(2),
  table.mobile-collapse th:nth-child(4) {
    display: none;
  }

  table.mobile-collapse td:nth-child(1),
  table.mobile-collapse th:nth-child(1) {
    width: 100%;
    white-space: normal !important;
    text-overflow: initial;
  }

  table.mobile-collapse td:nth-child(3) {
    display: block;
    width: 100%;
    margin-top: 8px;
  }

  table.mobile-collapse tr {
    display: block;
    padding: 14px;
    margin-bottom: 16px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    position: relative;
  }

  table.mobile-collapse td:last-child {
    position: absolute;
    top: 12px;
    right: 12px;
  }

  table.mobile-collapse td {
    overflow: visible;
  }
}
/* ====== RESPONSIVE PRODUITS ====== */
@media (max-width: 768px) {

  table.catalog,
  table.catalog thead,
  table.catalog tbody,
  table.catalog tr,
  table.catalog td,
  table.catalog th {
    display: block;
    width: 100%;
  }

  table.catalog thead {
    display: none;
  }

  table.catalog tr {
    margin-bottom: 18px;
    padding: 12px 14px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  }

  table.catalog td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 16px;
  }

  table.catalog td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #2F4A3E;
    margin-right: 12px;
  }

  table.catalog td.product-name {
    font-size: 17px;
    font-weight: 600;
    color: #2F4A3E;
    padding-bottom: 10px;
  }

  table.catalog td.product-name::before {
    content: "";
  }
}
