/* Demo de boutique Maison Cuir Sn (NETAL CREATION). Les couleurs viennent du
   logo (brun cuir, dore) ; js/config.js (bloc couleurs) les ecrase au
   chargement : changer config.js suffit.
   Style sobre et luxueux : beaucoup d'espace, grandes photos, filets fins,
   aucune ombre lourde. Titres Cormorant Garamond, texte Inter (Google Fonts,
   avec des polices de secours si le reseau manque).
   Mobile d'abord : tout est pense a 375 px et tient de 320 a 414 px ; les
   grilles s'ouvrent a 640 et 960 px. Texte courant 16 px, zones tactiles
   48 px, marges laterales 16 px. */
:root {
  --principale: #5A3A22;
  --principale-foncee: #3F2816;
  --principale-claire: #F1E9E0;
  --fond: #FAF7F2;
  --carte: #FFFFFF;
  --texte: #1F1B18;
  --texte-doux: #6B5F55;
  --bordure: #E6DCCF;
  --accent: #B58A4C;
  --accent-texte: #FFFFFF;
  --whatsapp: #25D366;
  --whatsapp-fonce: #1DA851;
  --attention: #8A5A1E;
  --attention-fond: #FBF1E0;
  --rouge: #A3362B;
  --police: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --police-titre: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --rayon: 6px;
  --rayon-petit: 4px;
  --entete-h: 64px;
  --barre-h: 60px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--police); font-size: 1rem; color: var(--texte); background: var(--fond); line-height: 1.6; overflow-x: hidden; }
body.panneau-ouvert { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--police-titre); font-weight: 600; margin: 0 0 .4em; line-height: 1.1; overflow-wrap: anywhere; color: var(--principale); }
h1 { font-size: clamp(2.1rem, 8.2vw, 3.6rem); letter-spacing: -.005em; }
h2 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
h3 { font-size: 1.5rem; }
h4 { font-family: var(--police); font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; margin: 0 0 .6em; color: var(--accent); font-weight: 600; }
p { margin: 0 0 1em; overflow-wrap: anywhere; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
.conteneur { width: min(100% - 32px, 1120px); margin-inline: auto; }
.surtitre { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; color: var(--accent); margin-bottom: .8em; }
.section { padding: 48px 0; }
.section--contraste { background: var(--carte); border-top: 1px solid var(--bordure); border-bottom: 1px solid var(--bordure); }
.section__tete { margin-bottom: 24px; }
.section__tete h2 { margin-bottom: .25em; }
.section__tete p:last-child { margin-bottom: 0; }
.lien { font-weight: 500; color: var(--principale); border-bottom: 1px solid var(--accent); padding-bottom: 1px; cursor: pointer; background: none; border-top: 0; border-left: 0; border-right: 0; padding-left: 0; padding-right: 0; }
.lien:hover { color: var(--accent); }
.lien--discret { font-weight: 500; font-size: 1rem; color: var(--texte-doux); border-bottom-color: transparent; min-height: 44px; }
.lien--discret:hover { border-bottom-color: currentColor; }
.doux { color: var(--texte-doux); }
.obligatoire { color: var(--attention); font-weight: 500; font-size: .9em; }
.numero { white-space: nowrap; }
.picto svg { width: 40px; height: 40px; }

/* Boutons : 48 px de haut au moins, faciles a toucher, angles presque droits */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: var(--rayon-petit); font-weight: 600; font-size: 1rem; letter-spacing: .02em; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .1s; text-align: center; line-height: 1.2; }
.bouton:active { transform: translateY(1px); }
.bouton--plein { background: var(--principale); color: #fff; border-color: var(--principale); }
.bouton--plein:hover { background: var(--principale-foncee); border-color: var(--principale-foncee); }
.bouton--accent { background: var(--accent); color: var(--accent-texte); border-color: var(--accent); }
.bouton--accent:hover { background: #9E7640; border-color: #9E7640; }
.bouton--contour { background: transparent; color: var(--principale); border-color: var(--principale); }
.bouton--contour:hover { background: var(--principale-claire); }
.bouton--grand { min-height: 52px; padding: 14px 28px; font-size: 1.02rem; }
.bouton--large { width: 100%; }
.bouton--whatsapp { background: var(--whatsapp); border-color: var(--whatsapp); color: #fff; min-height: 52px; padding: 14px 22px; }
.bouton--whatsapp:hover { background: var(--whatsapp-fonce); border-color: var(--whatsapp-fonce); }
.bouton--ajoute, .bouton--ajoute:hover { background: #2E6B47; border-color: #2E6B47; color: #fff; }
.bouton[disabled], .bouton[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

/* Etiquettes (prix indicatif, a completer) */
.etiquette { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 500; line-height: 1.3; white-space: nowrap; letter-spacing: .02em; }
.etiquette--attention { background: var(--attention-fond); color: var(--attention); border: 1px dashed rgba(138, 90, 30, .5); }
.etiquette--prix { background: transparent; color: var(--accent); border: 1px solid var(--accent); }

/* Bandeau et en-tete : une seule ligne, logo + nom a gauche, panier a droite */
.bandeau { background: var(--principale-foncee); color: #F3E9DC; text-align: center; font-size: .8rem; line-height: 1.4; letter-spacing: .04em; padding: 8px 16px; }
.entete { position: sticky; top: 0; z-index: 20; background: rgba(250, 247, 242, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--bordure); }
.entete__ligne { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: var(--entete-h); }
.marque { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; }
.marque__logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid var(--bordure); background: #fff; }
.marque__texte { min-width: 0; display: flex; flex-direction: column; }
.marque strong { display: block; font-family: var(--police-titre); font-size: 1.3rem; line-height: 1.05; font-weight: 600; letter-spacing: .02em; white-space: nowrap; color: var(--principale); }
.marque small { display: block; font-family: var(--police-titre); font-style: italic; font-size: .86rem; color: var(--accent); line-height: 1.3; white-space: nowrap; }
.nav { display: none; }
.bouton-panier { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; min-width: 48px; padding: 6px 10px; border-radius: var(--rayon-petit); border: 1px solid var(--principale); background: transparent; color: var(--principale); cursor: pointer; flex-shrink: 0; font-weight: 600; font-size: .92rem; }
.bouton-panier:hover { background: var(--principale-claire); }
.bouton-panier__picto svg { width: 24px; height: 24px; }
.bouton-panier__texte { display: none; }
.compteur { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--accent-texte); font-size: .74rem; font-weight: 700; display: flex; align-items: center; justify-content: center; line-height: 1; box-shadow: 0 0 0 2px var(--fond); }
.compteur--vide { background: var(--texte-doux); color: #fff; }

/* Barre de navigation fixe en bas, mobile seulement (cachee des 640 px).
   Le corps recoit un padding du bas plus haut que la barre : rien ne passe
   dessous, ni le pied de page ni le bouton WhatsApp. */
.barre-bas { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; background: var(--carte); border-top: 1px solid var(--bordure); padding-bottom: env(safe-area-inset-bottom); }
.barre-bas__onglet { position: relative; flex: 1 1 0; min-width: 0; min-height: var(--barre-h); padding: 6px 2px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: none; border: 0; border-top: 2px solid transparent; color: var(--texte-doux); font-weight: 500; font-size: .72rem; letter-spacing: .02em; cursor: pointer; }
.barre-bas__onglet[aria-current="page"] { color: var(--principale); border-top-color: var(--accent); }
.barre-bas__picto svg { width: 24px; height: 24px; }
.barre-bas__texte { white-space: nowrap; }
.barre-bas .compteur { top: 4px; right: auto; left: calc(50% + 4px); min-width: 20px; height: 20px; padding: 0 5px; font-size: .7rem; box-shadow: none; }
body { padding-bottom: calc(var(--barre-h) + 8px + env(safe-area-inset-bottom)); }

/* Accueil : texte sur ivoire, puis la photo du sac en grand, sans voile */
.hero { background: var(--fond); }
.hero__grille { display: grid; gap: 24px; padding: 36px 0 8px; }
.hero__texte { display: flex; flex-direction: column; justify-content: center; }
.hero h1 { max-width: 12em; margin-bottom: .4em; }
.hero__intro { color: var(--texte-doux); font-size: 1.02rem; max-width: 30em; margin-bottom: 1.4em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__actions .bouton { flex: 1 1 100%; }
.hero__visuel { position: relative; border-radius: var(--rayon); overflow: hidden; aspect-ratio: 1 / 1; background: var(--principale-claire); }
.hero__visuel::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 3px; pointer-events: none; }
.hero__visuel img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* Atouts : 3 blocs separes par des filets fins */
.section--atouts { padding: 24px 0 8px; }
.atouts { display: grid; gap: 0; border-top: 1px solid var(--bordure); border-bottom: 1px solid var(--bordure); }
.atout { padding: 16px 0; display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; align-items: center; border-bottom: 1px solid var(--bordure); }
.atout:last-child { border-bottom: 0; }
.atout__picto { grid-row: 1 / 3; color: var(--accent); }
.atout__picto svg { width: 32px; height: 32px; }
.atout h3 { font-size: 1.2rem; margin-bottom: .05em; }
.atout p { margin: 0; font-size: 1rem; }

/* Catalogue : onglets colles sous l'en-tete quand on defile */
.onglets-colle { position: sticky; top: var(--entete-h); z-index: 15; background: var(--fond); padding: 8px 0 10px; margin-bottom: 8px; border-bottom: 1px solid transparent; }
.onglets-colle--collee { border-bottom-color: var(--bordure); }
.onglets { display: flex; gap: 8px; }
.onglet { flex: 1 1 0; min-height: 48px; padding: 10px 10px; border-radius: var(--rayon-petit); border: 1px solid var(--bordure); background: var(--carte); color: var(--texte); font-weight: 500; font-size: 1rem; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; }
.onglet--actif { background: var(--principale); border-color: var(--principale); color: #fff; }
.onglet__nombre { font-size: .76rem; font-weight: 500; opacity: .75; }
.categorie-bloc__intro { margin: 4px 0 16px; }
.mention-prix { margin: 20px 0 0; color: var(--texte-doux); text-align: center; font-style: italic; font-family: var(--police-titre); font-size: 1.05rem; }

/* Fiches produit : pleine largeur sur mobile, photo carree (les photos
   d'annonce font 401-407 px de cote), filet fin, pas d'ombre */
.produits { display: grid; gap: 20px; }
.produit { background: var(--carte); border: 1px solid var(--bordure); border-radius: var(--rayon); overflow: hidden; display: flex; flex-direction: column; }
.produit__visuel { position: relative; background: var(--principale-claire); aspect-ratio: 1 / 1; overflow: hidden; }
.produit__visuel img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.produit__corps { padding: 18px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.produit__nom { margin: 0; font-size: 1.6rem; }
.produit__desc { margin: 0; font-size: 1rem; color: var(--texte-doux); }
.produit__prix { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 0; }
.produit__prix strong { font-size: 1.4rem; color: var(--principale); letter-spacing: .01em; font-weight: 600; }
.produit__prix .etiquette { margin-left: auto; }
.produit__commande { display: flex; gap: 10px; align-items: stretch; margin-top: 6px; }
.produit__commande .bouton--ajouter { flex: 1; padding-inline: 10px; min-width: 0; min-height: 52px; }
.quantite { display: inline-flex; align-items: stretch; border: 1px solid var(--bordure); border-radius: var(--rayon-petit); overflow: hidden; background: #fff; flex-shrink: 0; }
.pas { width: 44px; min-height: 48px; border: 0; background: var(--fond); color: var(--principale); font-size: 1.4rem; font-weight: 500; cursor: pointer; }
.pas:hover { background: var(--principale-claire); }
.champ-quantite { width: 48px; border: 0; text-align: center; font: inherit; font-size: 1rem; font-weight: 600; color: var(--texte); -moz-appearance: textfield; padding: 0; background: #fff; }
.champ-quantite::-webkit-outer-spin-button, .champ-quantite::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Ou nous trouver, carte */
.infos { display: grid; gap: 12px; margin-bottom: 20px; }
.info { display: flex; gap: 14px; align-items: flex-start; background: var(--fond); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 16px; }
.info__picto { color: var(--accent); flex-shrink: 0; }
.info__picto svg { width: 32px; height: 32px; }
.info > div { min-width: 0; flex: 1; }
.info h4 { margin-bottom: .5em; }
.info p { margin: 0 0 .45em; font-size: 1rem; }
.info p:last-child { margin-bottom: 0; }
.carte__cadre { border-radius: var(--rayon); overflow: hidden; border: 1px solid var(--bordure); background: var(--principale-claire); }
.carte iframe { display: block; width: 100%; height: 280px; border: 0; }
.carte__legende { font-size: 1rem; color: var(--texte-doux); margin: 12px 0 0; }

/* Pied */
.pied { background: var(--principale-foncee); color: #EFE4D6; padding: 40px 0 20px; margin-top: 24px; }
.pied__grille { display: grid; gap: 24px; grid-template-columns: 1fr; }
.pied__marque { display: flex; align-items: center; gap: 10px; font-family: var(--police-titre); font-size: 1.5rem; font-weight: 600; margin-bottom: .3em; }
.pied__logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #fff; }
.pied__doux { color: rgba(239, 228, 214, .72); font-size: 1rem; }
.pied h4 { color: var(--accent); }
.pied p { margin-bottom: .6em; }
.pied a { border-bottom: 1px solid rgba(239, 228, 214, .3); }
.pied a:hover { border-bottom-color: currentColor; }
.pied__bas { border-top: 1px solid rgba(239, 228, 214, .15); margin-top: 24px; padding-top: 16px; font-size: .9rem; color: rgba(239, 228, 214, .75); }
.pied__bas p { margin-bottom: .4em; }

/* Toast de confirmation, au-dessus de la barre du bas */
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(var(--barre-h) + 16px + env(safe-area-inset-bottom)); z-index: 40; background: var(--texte); color: #fff; padding: 12px 16px; border-radius: var(--rayon-petit); display: flex; gap: 12px; align-items: center; justify-content: space-between; font-size: 1rem; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s; }
.toast--visible { opacity: 1; transform: none; pointer-events: auto; }
.toast__lien { background: none; border: 0; color: #E2BE7F; font-weight: 600; cursor: pointer; padding: 8px 0; min-height: 44px; white-space: nowrap; }

/* Panier : plein ecran sur mobile, panneau lateral des 640 px */
.voile { position: fixed; inset: 0; background: rgba(31, 27, 24, .5); z-index: 50; }
.panneau { position: fixed; inset: 0; width: 100%; background: var(--fond); z-index: 60; display: flex; flex-direction: column; }
.panneau__tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--principale); color: #fff; padding-top: calc(12px + env(safe-area-inset-top)); }
.panneau__tete h2 { margin: 0; font-size: 1.5rem; color: #fff; }
.panneau__fermer { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #fff; }
.panneau__corps { flex: 1; overflow-y: auto; padding: 16px; -webkit-overflow-scrolling: touch; }
.panneau__vide { text-align: center; padding: 40px 12px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.panneau__vide-picto { color: var(--texte-doux); opacity: .6; }
.panneau__vide-picto svg { width: 56px; height: 56px; }
.lignes { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.ligne { display: flex; gap: 12px; background: var(--carte); border: 1px solid var(--bordure); border-radius: var(--rayon-petit); padding: 12px; }
.ligne__photo { width: 64px; height: 64px; border-radius: 4px; object-fit: cover; background: var(--principale-claire); flex-shrink: 0; }
.ligne__corps { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ligne__corps strong { font-family: var(--police-titre); font-size: 1.2rem; line-height: 1.2; color: var(--principale); }
.ligne__prix { font-size: 1rem; color: var(--texte-doux); font-weight: 500; }
.ligne__actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.ligne__actions .pas { min-height: 44px; width: 44px; }
.ligne__actions .champ-quantite { width: 48px; }
.ligne__retirer { width: 44px; height: 44px; border-radius: var(--rayon-petit); border: 1px solid transparent; background: transparent; color: var(--texte-doux); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ligne__retirer:hover { color: var(--rouge); border-color: var(--rouge); }
.panneau__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; min-width: 0; background: var(--carte); border: 1px solid var(--bordure); border-radius: var(--rayon-petit); padding: 12px 14px; margin-bottom: 16px; font-weight: 600; }
.panneau__total > span { min-width: 0; flex: 1 1 auto; }
.panneau__total strong { font-size: 1.3rem; color: var(--principale); white-space: nowrap; flex-shrink: 0; }
.panneau__total small { display: block; font-weight: 400; font-size: .86rem; color: var(--texte-doux); }
.panneau__champs { display: grid; gap: 14px; }
.champ label { display: block; font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.champ input { width: 100%; min-height: 48px; padding: 10px 12px; border-radius: var(--rayon-petit); border: 1px solid var(--bordure); background: #fff; font: inherit; font-size: 1rem; color: inherit; }
.champ input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.champ input.champ--manque { border-color: var(--rouge); }
.panneau__pied { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--carte); border-top: 1px solid var(--bordure); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.note-envoi { font-size: 1rem; color: var(--texte-doux); margin: 6px 0 0; text-align: center; }

/* Tres petits ecrans (320 px) : le sous-titre de l'en-tete n'a pas la place */
@media (max-width: 359px) {
  .marque small { display: none; }
  .marque strong { font-size: 1.2rem; }
  .onglet { font-size: .92rem; padding-inline: 6px; gap: 5px; }
}
/* Tablette et ordinateur */
@media (min-width: 640px) {
  .section { padding: 64px 0; }
  .hero__grille { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px; padding: 56px 0 24px; }
  .hero__actions .bouton { flex: 0 1 auto; }
  .section--atouts { padding: 32px 0 0; }
  .atouts { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .atout { border-bottom: 0; border-right: 1px solid var(--bordure); padding: 20px 20px; }
  .atout:first-child { padding-left: 0; }
  .atout:last-child { border-right: 0; }
  .onglets { justify-content: flex-start; }
  .onglet { flex: 0 1 auto; padding-inline: 22px; }
  .produits { grid-template-columns: repeat(2, 1fr); }
  .infos { grid-template-columns: 1fr 1fr; }
  .carte iframe { height: 380px; }
  .bouton-panier__texte { display: inline; }
  .bouton-panier { padding: 6px 14px; }
  .marque strong { font-size: 1.5rem; }
  .marque small { font-size: .95rem; }
  .marque__logo { width: 46px; height: 46px; }
  .nav { display: flex; align-items: center; gap: 22px; font-size: .92rem; font-weight: 500; flex-shrink: 0; letter-spacing: .02em; }
  .nav a { padding: 6px 0; border-bottom: 1px solid transparent; }
  .nav a[aria-current="page"] { color: var(--principale); border-bottom-color: var(--accent); }
  .barre-bas { display: none; }
  body { padding-bottom: 0; }
  .toast { left: auto; right: 24px; bottom: 24px; max-width: 420px; }
  .panneau { inset: 0 0 0 auto; width: min(100%, 460px); box-shadow: -10px 0 40px rgba(0, 0, 0, .15); }
  .panneau__tete { padding-top: 12px; }
}
@media (min-width: 960px) {
  .hero__grille { padding: 80px 0 32px; gap: 64px; }
  .produits { grid-template-columns: repeat(3, 1fr); }
  .infos { grid-template-columns: 1fr 1fr; }
  .pied__grille { grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
  .entete__ligne { min-height: 72px; }
  :root { --entete-h: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toast, .bouton { transition: none; }
}
