:root {
  /* Couleurs de la carte de visite */
  --creme: #fdf0e5;
  --blanc: #fffaf6;
  --texte: #3d2a3c;
  --texte-doux: #76637a;
  --prune: #4a2449;
  --sauge: #8b6197;        /* lavande (boutons) */
  --sauge-fonce: #6b4270;  /* violet foncé */
  --rose: #b48dbd;
  --rose-clair: #f1e1f1;   /* ruban lavande clair */
  --feuille: #7d8c5a;
  --bord: #e8d6e2;
  --erreur: #a23b32;
  --succes: #3f6b3a;
  --rayon: 14px;
  --ombre: 0 4px 18px rgba(74, 36, 73, .09);
  --titres: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; background: var(--creme); color: var(--texte); font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sauge-fonce); }
a:hover { color: var(--texte); }
h1, h2, h3, .logo, .logo-pied { font-family: var(--titres); font-weight: normal; line-height: 1.25; color: var(--prune); }
h1 { font-size: 2rem; margin: .5rem 0 1rem; }
h2 { font-size: 1.45rem; margin: 1.5rem 0 .75rem; }
h3 { font-size: 1.1rem; margin: .5rem 0; }
small { color: var(--texte-doux); }
del { color: var(--texte-doux); margin-left: .4rem; }

.conteneur { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lien-evitement { position: absolute; left: -999px; top: 0; background: var(--texte); color: #fff; padding: .5rem 1rem; z-index: 10; }
.lien-evitement:focus { left: 0; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; }

/* En-tête */
.entete { background: var(--blanc); border-bottom: 1px solid var(--bord); }
.entete-haut { display: flex; align-items: center; gap: 1.5rem; padding-top: 1rem; padding-bottom: 1rem; flex-wrap: wrap; }
.logo { font-size: 1.6rem; color: var(--texte); text-decoration: none; display: flex; flex-direction: column; }
.logo small { font-family: system-ui, sans-serif; font-size: .78rem; letter-spacing: .04em; }
.recherche { flex: 1; display: flex; max-width: 420px; min-width: 200px; }
.recherche input { flex: 1; border-radius: var(--rayon) 0 0 var(--rayon); }
.recherche button { border: 1px solid var(--bord); border-left: 0; background: var(--creme); padding: 0 1rem; border-radius: 0 var(--rayon) var(--rayon) 0; cursor: pointer; }
.entete-liens { display: flex; gap: 1.25rem; margin-left: auto; align-items: center; }
.entete-liens a { text-decoration: none; color: var(--texte); }
.pastille { display: inline-block; min-width: 1.5rem; padding: 0 .4rem; border-radius: 1rem; background: var(--sauge); color: #fff; text-align: center; font-size: .85rem; }
.menu { border-top: 1px solid var(--bord); }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.menu a { display: block; padding: .7rem 0; text-decoration: none; color: var(--texte); }
.menu a:hover { color: var(--sauge-fonce); }
.menu-bouton { display: none; }

main { padding-top: 1.5rem; padding-bottom: 3rem; min-height: 60vh; }

/* Boutons et formulaires */
.bouton { display: inline-block; background: var(--sauge); color: #fff; border: 1px solid var(--sauge); padding: .65rem 1.5rem; border-radius: 999px; box-shadow: 0 2px 8px rgba(107, 66, 112, .18); text-decoration: none; cursor: pointer; font: inherit; }
.bouton:hover { background: var(--sauge-fonce); color: #fff; }
.bouton:disabled { opacity: .5; cursor: not-allowed; }
.bouton-secondaire { background: transparent; color: var(--sauge-fonce); box-shadow: none; }
.bouton-secondaire:hover { background: var(--rose-clair); color: var(--texte); }
.bouton-large { display: block; width: 100%; text-align: center; margin: 1rem 0 .5rem; }
.bouton-danger { background: var(--erreur); border-color: var(--erreur); }
.lien-discret { background: none; border: 0; padding: 0; color: var(--texte-doux); text-decoration: underline; cursor: pointer; font: inherit; font-size: .92rem; }
input, select, textarea { font: inherit; color: inherit; padding: .55rem .7rem; border: 1px solid var(--bord); border-radius: var(--rayon); background: var(--blanc); width: 100%; }
input[type=checkbox], input[type=radio] { width: auto; }
label { display: block; margin: .8rem 0 .3rem; font-weight: 500; }
label.case, label.choix { display: flex; gap: .6rem; align-items: flex-start; font-weight: normal; }
label.case input, label.choix input { margin-top: .35rem; }
.choix { border: 1px solid var(--bord); border-radius: var(--rayon); padding: .7rem 1rem; background: var(--blanc); cursor: pointer; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-family: var(--titres); color: var(--prune); font-size: 1.2rem; margin-bottom: .5rem; }
.formulaire .bouton { margin-top: 1rem; }
.formulaire .lien-discret { margin-left: 1rem; }
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.piege { position: absolute; left: -9999px; }
.en-ligne { display: inline; }
.petit { font-size: .88rem; color: var(--texte-doux); }
.erreur { color: var(--erreur); display: block; }

.alerte { padding: .8rem 1rem; border-radius: var(--rayon); margin: 0 0 1rem; border: 1px solid; }
.alerte ul { margin: 0; padding-left: 1.2rem; }
.alerte-succes { background: #eaf3e7; border-color: #bcd6b4; color: var(--succes); }
.alerte-erreur { background: #f8e8e6; border-color: #e5bdb8; color: var(--erreur); }
.alerte-info { background: #f3efe7; border-color: var(--bord); color: var(--texte); }

.bloc { background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; }
.bloc h2:first-child, .bloc h1:first-child { margin-top: 0; }
.page-etroite { max-width: 560px; margin-left: auto; margin-right: auto; }
.page-compte { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; max-width: 900px; margin: 0 auto; }
.page-simple { text-align: center; padding: 3rem 0; }
.titre-ligne { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.fil { font-size: .9rem; color: var(--texte-doux); }
.intro { max-width: 700px; color: var(--texte-doux); }
.vide { padding: 2rem; text-align: center; background: var(--blanc); border-radius: var(--rayon); }

/* Badges */
.badge { display: inline-block; padding: .15rem .6rem; border-radius: 1rem; font-size: .8rem; background: var(--creme); border: 1px solid var(--bord); }
.badge-promo { background: var(--rose); color: #fff; border: 0; }
.badge-rupture { background: var(--texte-doux); color: #fff; border: 0; }
.statut-payee, .statut-livree { background: #eaf3e7; color: var(--succes); }
.statut-en_preparation, .statut-expediee { background: #e8eef6; color: #2f4f73; }
.statut-annulee, .statut-remboursee { background: #f8e8e6; color: var(--erreur); }
.statut-en_attente_paiement { background: #fbf1dc; color: #7a5a12; }
.etoiles { color: #c99a2e; letter-spacing: .1em; }

/* Accueil */
.banniere { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; background: var(--rose-clair); border-radius: 18px; padding: 2.5rem; }
.banniere h1 { font-size: 2.4rem; }
.surtitre { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--sauge-fonce); margin: 0; }
.banniere-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.atouts { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.atouts li { background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1rem; text-align: center; }
.atouts strong { display: block; color: var(--sauge-fonce); }
.section { margin: 2.5rem 0; }
.section-titre { display: flex; justify-content: space-between; align-items: baseline; }
.newsletter { background: var(--blanc); border: 1px solid var(--bord); border-radius: 18px; padding: 2rem; text-align: center; }
.newsletter-form { max-width: 520px; margin: 0 auto; text-align: left; }
.newsletter-form .bouton { margin-top: .8rem; }

/* Grille produits */
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.carte { background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); overflow: hidden; transition: box-shadow .2s; }
.carte:hover { box-shadow: var(--ombre); }
.carte-lien { display: block; padding: 0 0 1rem; color: inherit; text-decoration: none; }
.carte-image { position: relative; background: var(--creme); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.carte-image img { width: 80%; height: 80%; object-fit: contain; }
.carte-image .badge { position: absolute; top: .6rem; left: .6rem; }
.carte-image .badge-rupture { left: auto; right: .6rem; }
.carte h3, .carte p { padding: 0 1rem; }
.carte-texte { font-size: .88rem; color: var(--texte-doux); margin: .2rem 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.carte-prix { margin: .5rem 0 0; }
.carte-note { margin: 0; font-size: .9rem; }

/* Catalogue */
.catalogue { display: grid; grid-template-columns: 230px 1fr; gap: 2rem; align-items: start; }
.filtres { background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1rem 1.25rem; position: sticky; top: 1rem; }
.filtre-bloc { margin-bottom: 1rem; }
.filtre-bloc legend { font-size: 1rem; font-family: inherit; font-weight: 600; }
.filtre-bloc label.case { margin: .3rem 0; }
.compteur { color: var(--texte-doux); margin-top: 0; }

/* Fiche produit */
.fiche { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.fiche-images > img { background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); width: 100%; aspect-ratio: 1; object-fit: contain; padding: 2rem; }
.vignettes { display: flex; gap: .5rem; margin-top: .5rem; }
.vignettes button { border: 1px solid var(--bord); background: var(--blanc); border-radius: 6px; padding: 4px; width: 70px; cursor: pointer; }
.fiche-accroche { font-size: 1.1rem; }
.fiche-prix { font-size: 1.6rem; margin: 1rem 0; }
.ttc { font-size: .85rem; color: var(--texte-doux); }
.etiquettes { list-style: none; padding: 0; display: flex; gap: .4rem; flex-wrap: wrap; }
.etiquettes li { background: var(--rose-clair); color: var(--sauge-fonce); padding: .2rem .7rem; border-radius: 1rem; font-size: .85rem; }
.ajout-ligne { display: flex; gap: .6rem; }
.ajout-ligne input[type=number] { width: 80px; }
.ajout-ligne input:not([type=number]) { flex: 1; }
.stock-info { font-size: .9rem; color: var(--sauge-fonce); }
.fiche-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.fiche-details section { background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1rem 1.5rem; }
.fiche-details h2 { font-size: 1.2rem; margin-top: .5rem; }
.avis-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.avis { margin: 0; background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1rem 1.25rem; }
.avis footer { font-size: .88rem; color: var(--texte-doux); }
.formulaire-avis { max-width: 560px; margin-top: 1.5rem; }

/* Tableaux */
.tableau { width: 100%; border-collapse: collapse; background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); margin-bottom: 1rem; }
.tableau th, .tableau td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--bord); vertical-align: middle; }
.tableau th { font-size: .85rem; color: var(--texte-doux); font-weight: 600; background: #fbf3f8; }
.tableau tfoot td { border-bottom: 0; padding-top: .35rem; padding-bottom: .35rem; }
.tableau tfoot td:last-child, .tableau tfoot td:first-child { text-align: right; }
.ligne-total td { font-weight: 700; font-size: 1.1rem; }
.ligne-produit { display: flex; gap: .8rem; align-items: center; }
.ligne-produit img { width: 60px; height: 60px; object-fit: contain; background: var(--creme); border-radius: 6px; }
.ligne-produit small { display: block; }
.champ-quantite { width: 75px; }

/* Panier et commande */
.panier, .commande { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
.recap { background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1.25rem 1.5rem; position: sticky; top: 1rem; }
.recap h2 { margin-top: 0; }
.montants { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; margin: 1rem 0; }
.montants dd { margin: 0; text-align: right; }
.total { display: flex; justify-content: space-between; font-size: 1.15rem; border-top: 1px solid var(--bord); padding-top: .8rem; }
.seuil { background: var(--rose-clair); border-radius: var(--rayon); padding: .7rem 1rem; }
.seuil p { margin: 0 0 .4rem; }
.seuil progress { width: 100%; accent-color: var(--sauge); }
.seuil-ok { background: #eaf3e7; color: var(--succes); }
.promo { margin-top: 1rem; }
.commande-etapes .bloc { display: flex; flex-direction: column; gap: .4rem; }
.recap-lignes { list-style: none; padding: 0; margin: 0; }
.recap-lignes li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px dashed var(--bord); font-size: .92rem; }
.recap-lignes small { display: block; }
.confirmation { text-align: center; }
.adresse p { margin: .3rem 0; }
.actions-ligne { display: flex; gap: 1rem; align-items: center; }

/* Pages légales */
.texte-legal { max-width: 820px; background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1.5rem 2rem; }

/* Pied de page */
.pied { background: var(--rose-clair); border-top: 3px solid var(--rose); padding: 2.5rem 0 1rem; font-size: .93rem; }
.pied-colonnes { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin: .3rem 0; }
.pied a { color: var(--texte); }
.logo-pied { font-size: 1.3rem; margin: 0 0 .5rem; }
.titre-pied { font-weight: 600; margin: 0 0 .5rem; }
.pied-bas { border-top: 1px solid var(--bord); margin-top: 2rem; padding-top: 1rem; color: var(--texte-doux); }

.bandeau-cookies { position: fixed; bottom: 1rem; left: 1rem; right: 1rem; max-width: 760px; margin: 0 auto; background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); box-shadow: 0 6px 30px rgba(0,0,0,.15); padding: 1rem 1.25rem; z-index: 20; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.bandeau-cookies[hidden] { display: none; }
.bandeau-cookies p { flex: 1 1 320px; margin: 0; font-size: .9rem; }
.bandeau-cookies div { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Petits écrans */
@media (max-width: 900px) {
  .catalogue, .fiche, .panier, .commande, .banniere, .page-compte { grid-template-columns: 1fr; }
  .pied-colonnes { grid-template-columns: 1fr 1fr; }
  .pied-colonnes > div:first-child { grid-column: 1 / -1; }
  .filtres, .recap { position: static; }
  .banniere { padding: 1.5rem; }
}
@media (max-width: 640px) {
  h1 { font-size: 1.6rem; }
  .banniere h1 { font-size: 1.8rem; }
  .deux-colonnes, .atouts { grid-template-columns: 1fr; }
  .menu-bouton { display: block; background: none; border: 0; padding: .7rem 0; font: inherit; cursor: pointer; }
  .menu ul { display: none; flex-direction: column; }
  .menu ul.ouvert { display: flex; }
  .entete-liens { margin-left: 0; }
  .tableau thead { display: none; }
  .tableau tr { display: block; border-bottom: 1px solid var(--bord); padding: .5rem 0; }
  .tableau td { display: flex; justify-content: space-between; border: 0; padding: .3rem .9rem; }
  .tableau td[data-label]::before { content: attr(data-label); color: var(--texte-doux); font-size: .85rem; }
  .tableau tfoot tr { display: flex; justify-content: space-between; }
  .tableau tfoot td[colspan] { display: block; }
}

/* Catalogue de la caisse */
.info-lot { background: var(--rose-clair); border-radius: var(--rayon); padding: .5rem .8rem; font-size: .92rem; }
.liste-filtres { max-height: 320px; overflow: auto; }

/* Cartes « une senteur » des pages catégorie */
.carte-article { display: flex; flex-direction: column; }
.carte-article .carte-lien { flex: 1; }
.carte-ajout { padding: 0 1rem 1rem; }
.carte-ajout .bouton { width: 100%; padding: .5rem; }

/* ===== Thème « carte de visite » : crème, prune et lavande ===== */
body { background: var(--creme); }
.entete { background: var(--creme); border-bottom: 0; }
.entete-haut { padding-top: 1.2rem; padding-bottom: .9rem; }
.logo { color: var(--prune); }
.logo-nom { font-size: 1.75rem; letter-spacing: .02em; }
.logo small { font-family: var(--titres); font-style: italic; font-size: 1rem; letter-spacing: 0; color: var(--sauge-fonce); }
.recherche input { border-radius: 999px 0 0 999px; border-color: var(--bord); }
.recherche button { border-radius: 0 999px 999px 0; background: var(--rose-clair); color: var(--prune); }
.entete-liens a { color: var(--prune); }
.menu { background: var(--rose-clair); border-top: 1px solid var(--bord); border-bottom: 1px solid var(--bord); }
.menu a { color: var(--prune); font-family: var(--titres); font-size: 1.05rem; }
.menu a:hover { color: var(--sauge); }

/* Bannière d'accueil : la carte de visite */
.banniere { position: relative; grid-template-columns: 1fr 1.05fr; background: var(--creme); border: 2px solid var(--rose); border-radius: 30px; padding: 2.5rem 3rem; overflow: hidden; box-shadow: inset 0 0 0 6px var(--creme), inset 0 0 0 7px var(--bord); }
.banniere .deco { position: absolute; pointer-events: none; z-index: 0; }
.deco-haut { top: -6px; left: -8px; width: 300px; }
.deco-bas { right: -6px; bottom: -6px; width: 200px; }
.banniere-image, .banniere-texte { position: relative; z-index: 1; }
.banniere-image img { width: 100%; max-width: 520px; margin: 3rem auto 0; }
.banniere-texte { text-align: center; }
.banniere-logos { display: flex; justify-content: center; gap: 1.2rem; margin: 0 0 .8rem; }
.banniere-logos img { width: 110px; height: 110px; filter: drop-shadow(0 2px 4px rgba(74, 36, 73, .15)); }
.banniere h1 { font-size: 2.6rem; color: var(--prune); margin: .2rem 0 0; }
.banniere .trait { width: 70%; max-width: 340px; margin: .3rem auto .9rem; }
.ruban { display: inline-block; margin: 0; padding: .35rem 2.6rem; background: var(--rose-clair); color: var(--prune); font-family: var(--titres); font-style: italic; font-size: 1.6rem; clip-path: polygon(0 0, 100% 0, 96% 50%, 100% 100%, 0 100%, 4% 50%); }
.accroche { font-family: var(--titres); font-style: italic; font-size: 1.35rem; color: var(--sauge-fonce); margin: .9rem 0 .3rem; }
.ornement { width: 200px; margin: 0 auto .9rem; }
.banniere-actions { justify-content: center; }

/* Atouts et sections */
.atouts li { background: var(--blanc); border-color: var(--bord); border-radius: 18px; display: flex; flex-direction: column; justify-content: center; }
.atouts strong { color: var(--sauge-fonce); font-family: var(--titres); font-size: 1.05rem; }
.section-titre { border-bottom: 1px solid var(--bord); margin-bottom: 1rem; }
.section-titre h2::after, .newsletter h2::after { content: ""; display: block; width: 150px; height: 26px; margin-top: .25rem; background: url(img/carte/ornement-ane.webp) left center / contain no-repeat; }
.newsletter h2::after { margin-left: auto; margin-right: auto; background-position: center; }
.newsletter { background: var(--blanc); border: 2px solid var(--rose-clair); border-radius: 30px; }

/* Cartes produits */
.carte { background: var(--blanc); border-color: var(--bord); border-radius: 18px; }
.carte:hover { box-shadow: var(--ombre); transform: translateY(-2px); }
.carte { transition: box-shadow .2s, transform .2s; }
.carte-image { background: #fff; }
.carte h3 { color: var(--prune); }
.carte-prix { color: var(--sauge-fonce); font-weight: 600; }
.badge-promo { background: var(--sauge); }

/* Blocs */
.bloc, .recap, .filtres, .fiche-details section, .avis, .texte-legal, .vide, .tableau { border-color: var(--bord); background: var(--blanc); }
.fiche-images > img { background: #fff; border-color: var(--bord); border-radius: 18px; }
.fiche-prix { color: var(--sauge-fonce); }
.alerte-info { background: var(--rose-clair); border-color: var(--bord); color: var(--prune); }
.etoiles { color: var(--sauge); }

/* Pied de page */
.logo-pied { color: var(--prune); font-size: 1.4rem; }
.pied-ruban { display: inline-block; margin: 0 0 .6rem; padding: .15rem 1.4rem; background: var(--blanc); color: var(--prune); font-family: var(--titres); font-style: italic; clip-path: polygon(0 0, 100% 0, 94% 50%, 100% 100%, 0 100%, 6% 50%); }
.pied-logos { display: flex; gap: .7rem; }
.pied-logos img { width: 64px; height: 64px; }
.titre-pied { color: var(--prune); font-family: var(--titres); font-size: 1.1rem; font-weight: normal; }
.pied a { color: var(--sauge-fonce); }
.pied-bas { border-top-color: var(--rose); }

@media (max-width: 900px) {
  .banniere { grid-template-columns: 1fr; padding: 4.5rem 1.5rem 2rem; gap: 1rem; }
  .banniere-texte { order: -1; }
  .banniere-image img { margin-top: 0; max-width: 380px; }
  .deco-haut { width: 190px; }
  .deco-bas { width: 130px; }
}
@media (max-width: 640px) {
  .banniere h1 { font-size: 1.9rem; }
  .ruban { font-size: 1.25rem; padding: .3rem 1.8rem; }
  .accroche { font-size: 1.1rem; }
  .banniere-logos img { width: 80px; height: 80px; }
  .banniere { padding-top: 3.5rem; }
  .deco-haut { width: 150px; }
  .deco-bas { width: 100px; }
  .banniere-actions .bouton { width: 100%; }
  .logo-nom { font-size: 1.4rem; }
  .menu a { font-size: 1rem; }
}

/* ===== Décor sur toutes les pages ===== */
.deco { position: absolute; pointer-events: none; z-index: 0; }

/* En-tête : nom centré, lavande dans les deux coins */
.entete { position: relative; overflow: hidden; }
.deco-entete-g { top: -8px; left: -10px; width: 200px; }
.deco-entete-d { top: -8px; right: -10px; width: 200px; transform: scaleX(-1); }
.entete-haut { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "recherche logo liens"; gap: 1.5rem; padding-top: 1.6rem; padding-bottom: 1.1rem; }
.entete .logo { grid-area: logo; align-items: center; text-align: center; }
.logo-nom { font-size: 2.1rem; }
.logo-trait { width: 230px; margin: .15rem auto .2rem; }
.entete .recherche { grid-area: recherche; justify-self: start; width: 100%; max-width: 290px; min-width: 0; }
.entete .entete-liens { grid-area: liens; justify-self: end; margin-left: 0; }
.entete .recherche input, .entete .entete-liens a { background-color: var(--blanc); }
.entete .entete-liens a { padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--bord); }
.menu { position: relative; z-index: 1; }
.menu ul { justify-content: center; }

/* Cadre « carte de visite » autour du contenu de chaque page */
.cadre-page { position: relative; margin-top: .6rem; padding: 3.2rem 2.5rem 3.5rem; background: var(--creme); border: 2px solid var(--rose); border-radius: 30px; box-shadow: inset 0 0 0 6px var(--creme), inset 0 0 0 7px var(--bord); overflow: hidden; }
.cadre-contenu { position: relative; z-index: 1; }
.deco-page-g { top: -6px; left: -8px; width: 170px; opacity: .9; }
.deco-page-d { right: -6px; bottom: -6px; width: 150px; opacity: .9; }
.cadre-accueil { padding: 0; border: 0; box-shadow: none; background: none; overflow: visible; }
.cadre-accueil > .deco { display: none; }
.cadre-page:not(.cadre-accueil) h1::after { content: ""; display: block; width: 230px; max-width: 80%; height: 22px; margin-top: .3rem; background: url(img/carte/trait.webp) left center / contain no-repeat; }
.page-simple h1::after, .confirmation h1::after { margin-left: auto; margin-right: auto; background-position: center !important; }
.fil { position: relative; }
.cadre-page h2 { color: var(--prune); }
.bloc h2, .recap h2, .fiche-details h2 { border-bottom: 1px dashed var(--bord); padding-bottom: .35rem; }

/* Pied de page */
.pied { position: relative; overflow: hidden; padding-top: 3rem; }
.pied-ornement { position: absolute; top: .4rem; left: 50%; width: 170px; transform: translateX(-50%); }
.deco-pied-g { left: -10px; bottom: -8px; width: 170px; transform: scaleX(-1); opacity: .85; }
.deco-pied-d { right: -10px; bottom: -8px; width: 170px; opacity: .85; }
.pied-colonnes, .pied-bas { position: relative; z-index: 1; }

@media (max-width: 900px) {
  .entete-haut { grid-template-columns: 1fr; grid-template-areas: "logo" "recherche" "liens"; gap: .8rem; justify-items: center; }
  .entete .recherche { justify-self: stretch; max-width: none; }
  .entete .entete-liens { justify-self: center; }
  .deco-entete-g, .deco-entete-d { width: 120px; }
  .cadre-page { padding: 3rem 1.2rem 3rem; border-radius: 22px; }
  .cadre-accueil { padding: 0; }
  .deco-page-g { width: 120px; }
  .deco-page-d { width: 100px; }
  .menu ul { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .logo-nom { font-size: 1.6rem; }
  .logo-trait { width: 170px; }
  .deco-pied-g { display: none; }
}

/* Visiteur non connecté : invitation à se connecter */
.connexion-requise { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; margin: 1rem 0; }
.carte-ajout .bouton { display: block; text-align: center; }

/* Bas de page : l'âne décoratif au-dessus des colonnes, copyright centré entre les brins de lavande */
.pied { padding-top: 5.2rem; }
.pied-bas { text-align: center; padding-left: 170px; padding-right: 170px; }
@media (max-width: 640px) { .pied-bas { padding-left: 1.25rem; padding-right: 110px; text-align: left; } }

/* ===== Menu par familles (Savons, Cosmétiques…) avec sous-menus ===== */
.entete { overflow: visible; }
.entete-decor { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.menu { z-index: 30; }
.menu-famille { position: relative; }
.menu-famille > a::after { content: " ▾"; font-size: .75em; color: var(--sauge); }
.menu .sous-menu { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); min-width: 230px;
  flex-direction: column; flex-wrap: nowrap; gap: 0; padding: .45rem 0; background: var(--blanc); border: 1px solid var(--bord);
  border-radius: 14px; box-shadow: 0 10px 30px rgba(74, 36, 73, .16); z-index: 40; }
.menu-famille:hover > .sous-menu, .menu-famille:focus-within > .sous-menu { display: flex; }
.menu .sous-menu a { padding: .45rem 1.2rem; white-space: nowrap; font-size: 1rem; }
.menu .sous-menu a:hover { background: var(--rose-clair); }
.menu .sous-menu li:first-child a { font-style: italic; color: var(--sauge-fonce); border-bottom: 1px dashed var(--bord); }

/* Raccourcis en haut d'une page de famille */
.famille-raccourcis { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.famille-raccourcis a { display: block; padding: .35rem 1rem; border: 1px solid var(--rose); border-radius: 999px; background: var(--blanc); color: var(--prune); text-decoration: none; font-family: var(--titres); }
.famille-raccourcis a:hover { background: var(--rose-clair); }
.famille-section { scroll-margin-top: 1rem; }

@media (max-width: 640px) {
  .menu .sous-menu { position: static; transform: none; min-width: 0; box-shadow: none; border: 0; border-radius: 0;
    background: transparent; padding: 0 0 .4rem 1rem; }
  .menu ul.ouvert .sous-menu { display: flex; }
  .menu .sous-menu a { padding: .35rem 0; }
  .menu-famille > a::after { content: ""; }
  .menu-famille > a { font-weight: 600; }
}

/* ===== Bandeau des catégories collé en haut de l'écran ===== */
:root { --hauteur-menu: 3.2rem; }
.menu { position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(74, 36, 73, .08); }
/* Les éléments déjà « collants » se placent sous le bandeau */
.filtres, .recap { top: calc(var(--hauteur-menu) + 1rem); }
.famille-section, [id] { scroll-margin-top: calc(var(--hauteur-menu) + 1rem); }
@media (max-width: 640px) {
  /* Menu ouvert sur téléphone : défile à l'intérieur s'il est plus long que l'écran */
  .menu ul.ouvert { max-height: calc(100vh - var(--hauteur-menu)); overflow-y: auto; }
}

/* Page d'annonce « coffrets bientôt disponibles » */
.bientot { max-width: 720px; margin: 0 auto; text-align: center; padding: 1rem 0 2rem; }
.bientot-ornement { width: 220px; margin: 0 auto 1rem; }
.bientot h1 { font-size: 2.2rem; margin: 1rem 0 .5rem; }
.cadre-page:not(.cadre-accueil) .bientot h1::after { margin-left: auto; margin-right: auto; background-position: center; }
.bientot-accroche { font-family: var(--titres); font-style: italic; font-size: 1.25rem; color: var(--sauge-fonce); line-height: 1.6; }
.bientot .banniere-actions { display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap; margin: 1.5rem 0 2rem; }
.bientot-newsletter { background: var(--blanc); border: 2px solid var(--rose-clair); border-radius: 30px; padding: 1.5rem 2rem; }
.bientot-newsletter h2 { margin-top: 0; }
@media (max-width: 640px) { .bientot h1 { font-size: 1.7rem; } .bientot-accroche { font-size: 1.08rem; } }
