/* --- 0. Polices hébergées par nous ---------------------------------------- */
/* Elles venaient de fonts.googleapis.com, ce qui transmettait l’adresse IP de
   chaque visiteuse à Google — un tiers, hors Québec, sans consentement. Les
   servir depuis notre propre domaine supprime ce transfert : il n’y a plus
   AUCUNE requête vers un tiers au chargement, donc plus de bannière de
   consentement à poser. Les trois familles sont sous licence SIL Open Font,
   qui autorise explicitement la redistribution (voir assets/fonts/LICENCE.txt).

   font-display: swap — le texte s’affiche tout de suite dans la police de
   secours, puis bascule. Jamais de page blanche en attendant. */

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/playfair-display-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/playfair-display-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/playfair-display-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/montserrat-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/montserrat-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/montserrat-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/montserrat-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Parisienne';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/parisienne-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   SAMPLE AFFAIR — feuille de style principale
   Palette et typographies tirées de la charte de marque (IMG_1127.jpg)
   ========================================================================== */

/* --- 1. Jetons de design -------------------------------------------------- */
:root {
  /* Palette officielle */
  --blush:      #F8E7E7;
  --rose:       #D4B2B2;
  --mauve:      #A67C7C;
  --wine:       #5A3A3A;
  --ink:        #000000;
  --white:      #FFFFFF;

  /* Nuances dérivées */
  --blush-050:  #FDF8F7;
  --blush-100:  #FBF1EF;
  --rose-200:   #EDD9D6;
  --rose-600:   #C79C9C;
  --burgundy:   #8C2F45;   /* teinte du logo */
  --card:       #FEF8F8;   /* fond exact des visuels produits découpés */
  --mauve-text: #7A5252;                 /* mauve lisible : 4.5:1 sur fonds clairs */
  --line:       rgba(90, 58, 58, .14);
  --line-strong: rgba(90, 58, 58, .62);  /* contours de champs : 3,06:1 sur blanc (WCAG 1.4.11) */
                                         /* Mesuré, pas supposé : voir a11y-contraste.test.js. */
  --line-soft:  rgba(90, 58, 58, .08);
  --body:       #3A2E2E;
  --muted:      #6F5D5A;                 /* 5.2:1 sur le rose pâle de l'infolettre */

  /* Typographies */
  --serif:  "Playfair Display", "Times New Roman", Times, serif;
  --sans:   "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --script: "Parisienne", "Brush Script MT", cursive;

  /* Rythme */
  --wrap: 1240px;
  --gutter: clamp(1.15rem, 4vw, 3rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 3px;
  --shadow: 0 18px 45px -28px rgba(90, 58, 58, .45);
  --shadow-lift: 0 26px 60px -28px rgba(90, 58, 58, .55);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --- 2. Réinitialisation --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--wine);
  line-height: 1.14;
  letter-spacing: -.01em;
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%);
  z-index: 200; background: var(--wine); color: var(--white);
  padding: .85rem 1.6rem; font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- 3. Utilitaires de mise en page ---------------------------------------- */
[id] { scroll-margin-top: 96px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.bg-blush { background: var(--blush-050); }
.bg-blush-deep { background: var(--blush); }
.center { text-align: center; }

/* --- 4. Typographie d'affichage -------------------------------------------- */
.eyebrow {
  font-size: .68rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--mauve-text); font-weight: 500; margin: 0 0 1.1rem;
}
.script { font-family: var(--script); color: var(--wine); font-weight: 400; line-height: 1; }

.section-head {
  display: flex; align-items: baseline; gap: 1.5rem; flex-wrap: wrap;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); white-space: nowrap; }
/* Sous 640px, un titre insécable est plus large que l'écran : il doit pouvoir
   se replier, sinon il élargit tout le document (et donc la barre d'onglets). */
@media (max-width: 640px) {
  .section-head { gap: .4rem 1rem; }
  .section-head h2 { white-space: normal; }
  .section-head .rule { display: none; }
}
.section-head .rule { flex: 1; height: 1px; background: var(--line); }
.section-head .more {
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--wine); white-space: nowrap; border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.section-head .more:hover { border-color: var(--wine); }
.section-head.is-centered { flex-direction: column; align-items: center; text-align: center; gap: .75rem; }
.section-head.is-centered .rule { width: 64px; flex: none; }

/* --- 5. Boutons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  padding: 1.02rem 2.1rem;
  font-size: .69rem; font-weight: 600; letter-spacing: .19em; text-transform: uppercase;
  border-radius: var(--radius); border: 1px solid transparent;
  transition: background-color .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease);
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--primary { background: var(--rose); color: #3B2323; }
.btn--primary:hover { background: var(--rose-600); }

.btn--dark { background: var(--wine); color: var(--white); }
.btn--dark:hover { background: #452B2B; }

.btn--ghost { border-color: var(--line); color: var(--wine); background: transparent; }
.btn--ghost:hover { background: var(--blush-100); border-color: var(--mauve); }

.btn--soft { background: var(--blush); color: var(--wine); }
.btn--soft:hover { background: var(--rose-200); }

.btn--block { display: flex; width: 100%; }
.btn--sm { padding: .78rem 1.35rem; font-size: .64rem; letter-spacing: .16em; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* --- 6. Bandeau d'annonce -------------------------------------------------- */
.announce {
  background: var(--rose);
  color: var(--wine);
  font-size: .66rem; letter-spacing: .19em; text-transform: uppercase;
  text-align: center; padding: .72rem var(--gutter);
}
.announce .inner { display: flex; align-items: center; justify-content: center; gap: .6rem; }
@media (max-width: 430px) { .announce { font-size: .58rem; letter-spacing: .1em; } }
.announce svg { flex: none; }

/* --- 7. En-tête ------------------------------------------------------------ */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.header__bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 1rem; min-height: 78px;
}
.header__nav { display: flex; gap: clamp(1rem, 2.2vw, 2rem); }
.header__nav a {
  font-size: .69rem; letter-spacing: .17em; text-transform: uppercase;
  color: var(--body); padding-block: .4rem; position: relative; white-space: nowrap;
}
.header__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--burgundy); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.header__nav a:hover::after, .header__nav a[aria-current="page"]::after { transform: scaleX(1); }
.header__nav a[aria-current="page"] { color: var(--burgundy); }

.header__bar > *:first-child, .header__bar > *:last-child { min-width: 0; }
.header__logo { justify-self: center; }
.header__logo img { width: clamp(128px, 15vw, 172px); }

.header__tools { display: flex; align-items: center; justify-content: flex-end; gap: clamp(.6rem, 1.5vw, 1.15rem); }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; color: var(--wine); position: relative;
  transition: background-color .25s var(--ease);
}
.icon-btn:hover { background: var(--blush-100); }
.badge {
  position: absolute; top: 2px; right: 1px;
  min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--burgundy); color: var(--white);
  border-radius: 9px; font-size: .58rem; font-weight: 600; letter-spacing: 0;
  display: grid; place-items: center; line-height: 1;
}
.burger { display: none; }

@media (max-width: 940px) {
  .header__bar { grid-template-columns: auto 1fr auto; min-height: 66px; }
  .header__nav { display: none; }
  .burger { display: grid; }
}

/* Tiroir de navigation mobile */
.drawer {
  position: fixed; inset: 0 30% 0 0; min-width: 290px; z-index: 90;
  background: var(--white); padding: 1.5rem var(--gutter);
  transform: translateX(-102%); transition: transform .38s var(--ease);
  display: flex; flex-direction: column; gap: 1.5rem; overflow-y: auto;
  box-shadow: 22px 0 60px -30px rgba(90, 58, 58, .5);
}
.drawer[data-open="true"] { transform: translateX(0); visibility: visible; }
/* visibility:hidden retire les liens du parcours clavier tant que le tiroir est
   ferme, tout en laissant jouer la transition. */
.drawer { visibility: hidden; transition: transform .38s var(--ease), visibility .38s; }
.drawer__nav a {
  display: block; padding: .95rem 0; border-bottom: 1px solid var(--line-soft);
  font-family: var(--serif); font-size: 1.32rem; color: var(--wine);
}
.scrim {
  position: fixed; inset: 0; z-index: 80; background: rgba(58, 36, 36, .38);
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
}
.scrim[data-open="true"] { opacity: 1; pointer-events: auto; }

/* Recherche */
.searchbar {
  border-bottom: 1px solid var(--line-soft); background: var(--white);
  max-height: 0; overflow: hidden; transition: max-height .35s var(--ease);
}
.searchbar[data-open="true"] { max-height: 130px; visibility: visible; }
.searchbar { visibility: hidden; }
.searchbar form { display: flex; align-items: center; gap: 1rem; padding-block: 1.15rem; }
.searchbar input {
  /* min-width:0 : sans cela, la largeur intrinsèque du champ empêche le
     rétrécissement et le bouton déborde sur petit écran. */
  flex: 1; min-width: 0; border: 0; border-bottom: 1px solid var(--line); background: transparent;
  padding: .6rem 0; font-family: var(--serif); font-size: 1.15rem; color: var(--wine);
}
.searchbar input::placeholder { color: var(--muted); font-style: italic; }
.searchbar input:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 2px; border-color: var(--mauve); }

/* --- 8. Héros -------------------------------------------------------------- */
.hero { position: relative; background: var(--blush-100); overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1fr 1.25fr; align-items: stretch;
  /* Ratio proche de celui de la photo : évite de rogner le texte manuscrit.
     Borné à la hauteur visible pour qu'on voie le héros entier sans défiler. */
  min-height: min(clamp(420px, 44vw, 545px), calc(100vh - var(--header-h)));
  min-height: min(clamp(420px, 44vw, 545px), calc(100svh - var(--header-h)));
}
.hero__copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2.75rem, 6vw, 5rem) clamp(1.15rem, 5vw, 4.5rem);
  padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  position: relative; z-index: 2;
}
.hero__title {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  text-transform: uppercase; letter-spacing: .012em; line-height: 1.06;
  color: #2E2020; max-width: 12ch;
}
.hero__script { display: block; font-size: clamp(2.3rem, 4.6vw, 3.5rem); margin-top: .24em; text-transform: none; letter-spacing: 0; max-width: none; }
.hero__sub {
  margin: 1.85rem 0 2.35rem; max-width: 42ch;
  font-size: .74rem; letter-spacing: .21em; text-transform: uppercase; color: var(--body);
}
.hero__media { position: relative; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--blush-100) 0%, rgba(251, 241, 239, .55) 12%, transparent 34%);
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__copy { order: 2; padding-inline: var(--gutter); text-align: left; }
  .hero__media { order: 1; aspect-ratio: 16 / 11; }
  .hero__media::before {
    background: linear-gradient(180deg, transparent 55%, rgba(251, 241, 239, .75) 100%);
  }
}

/* Héros secondaire (pages internes) */
.pagehero { background: var(--blush-100); padding-block: clamp(2.75rem, 6vw, 4.5rem); position: relative; overflow: hidden; }
.pagehero__inner { position: relative; z-index: 2; max-width: 44ch; }
.pagehero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.pagehero p { margin: 1rem 0 0; font-size: .73rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mauve-text); }
/* Pleine hauteur + dégradé de fondu : le visuel se fond dans le bandeau
   au lieu d'y poser un rectangle aux bords nets. */
.pagehero__deco {
  position: absolute; right: 0; top: 0; height: 100%;
  width: min(52%, 560px); object-fit: cover; object-position: center;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, #000 30%, transparent 96%);
          mask-image: linear-gradient(to left, #000 30%, transparent 96%);
}
@media (max-width: 780px) { .pagehero__deco { display: none; } }

/* --- 9. Bandeau de réassurance --------------------------------------------- */
.trust { background: var(--blush-050); border-block: 1px solid var(--line-soft); }
.trust__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  padding-block: clamp(1.5rem, 3vw, 2.2rem);
}
.trust__item { display: flex; align-items: center; gap: .95rem; justify-content: center; }
.trust__item svg { flex: none; color: var(--wine); }
.trust__item strong {
  display: block; font-size: .67rem; font-weight: 600; letter-spacing: .17em;
  text-transform: uppercase; color: var(--wine);
}
.trust__item span { font-size: .74rem; color: var(--muted); letter-spacing: .02em; }
@media (max-width: 860px) {
  .trust__grid { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1rem; }
  .trust__item { justify-content: flex-start; }
}
@media (max-width: 460px) { .trust__item svg { display: none; } }

/* --- 10. Bandeau de marques ------------------------------------------------ */
.brands { background: var(--white); border-block: 1px solid var(--line-soft); }
.brands__grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: clamp(1.1rem, 3vw, 2.75rem);
  padding-block: clamp(2rem, 4vw, 3rem);
}
.brands__name {
  font-family: var(--serif); font-size: clamp(.92rem, 1.9vw, 1.22rem);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--wine); opacity: .74; white-space: nowrap;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.brands__name:hover { opacity: 1; transform: translateY(-2px); }
@media (max-width: 620px) { .brands__grid { gap: .85rem 1.4rem; } }

/* --- 11. Catégories -------------------------------------------------------- */
.cats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.cat { text-align: center; display: block; }
.cat__disc {
  display: block;
  width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  margin: 0 auto .95rem; max-width: 210px;
  box-shadow: 0 14px 34px -22px rgba(90, 58, 58, .6);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.cat__disc img { width: 100%; height: 100%; object-fit: cover; }
.cat:hover .cat__disc { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.cat__label {
  font-size: .68rem; letter-spacing: .21em; text-transform: uppercase;
  color: var(--wine); font-weight: 500;
}
@media (max-width: 620px) { .cats__grid { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1.25rem; } }

/* --- 12. Grille et fiches produits ----------------------------------------- */
.grid-products {
  display: grid; gap: clamp(1.1rem, 2.2vw, 1.9rem);
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
}
.grid-products--5 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.card { display: flex; flex-direction: column; position: relative; }
.card__media {
  position: relative; display: block; background: var(--card);
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1;
}
.card__media img {
  width: 100%; height: 100%; object-fit: contain; padding: 6%;
  transition: transform .55s var(--ease);
}
.card:hover .card__media img { transform: scale(1.055); }
.card__media::after {
  content: ""; position: absolute; inset: 0; border: 1px solid var(--line-soft);
  border-radius: var(--radius); pointer-events: none;
}

.card__fav {
  position: absolute; top: .6rem; right: .6rem; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: var(--wine);
  background: rgba(255, 255, 255, .78); backdrop-filter: blur(4px);
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.card__fav:hover { background: var(--white); transform: scale(1.08); }
.card__fav[aria-pressed="true"] { color: var(--burgundy); }
.card__fav[aria-pressed="true"] svg { fill: currentColor; }

.card__tag {
  position: absolute; top: .6rem; left: .6rem; z-index: 3;
  background: var(--wine); color: var(--white);
  font-size: .55rem; letter-spacing: .16em; text-transform: uppercase;
  padding: .35rem .6rem; border-radius: 2px;
}
.card__tag--soft { background: var(--rose); color: #3B2323; }

.card__body { padding-top: 1rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.card__brand {
  display: block;
  font-size: .67rem; font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; color: var(--wine);
}
.card__name {
  display: block; margin-top: .18rem;
  font-family: var(--serif); font-size: 1.02rem; color: var(--body); line-height: 1.3;
}
.card__size {
  align-self: flex-start; margin-top: .3rem;
  border: 1px solid var(--line); border-radius: 2px;
  padding: .18rem .5rem; font-size: .62rem; letter-spacing: .08em; color: var(--muted);
}
.card__price { font-size: .95rem; font-weight: 600; color: var(--wine); margin-top: .45rem; }
/* margin-top:auto aligne tous les boutons sur une même ligne, quel que soit
   le nombre de lignes du nom du produit. */
.card__body .btn { margin-top: auto; padding-top: .78rem; }
.card__body > .card__price { margin-bottom: .9rem; }

/* --- 13. Filtres boutique --------------------------------------------------- */
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  padding-block: 1.15rem; border-bottom: 1px solid var(--line-soft);
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip {
  padding: .6rem 1.15rem; border-radius: 40px; border: 1px solid var(--line-strong);
  font-size: .65rem; letter-spacing: .16em; text-transform: uppercase; color: var(--wine);
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.chip:hover { background: var(--blush-100); }
.chip[aria-pressed="true"] { background: var(--rose); border-color: var(--rose); color: #3B2323; font-weight: 600; }
.toolbar__right { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; min-width: 0; }
.toolbar__right .select { min-width: 0; }
@media (max-width: 760px) {
  .toolbar__right { margin-left: 0; width: 100%; }
  .toolbar__right #shop-search { flex: 1 1 140px; }
}
.toolbar__count { font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.select {
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--white);
  padding: .6rem 2.2rem .6rem .9rem; font-size: .65rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--wine); appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235A3A3A' stroke-width='1.3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center;
}
.empty { padding: clamp(3rem, 8vw, 6rem) 0; text-align: center; }
.empty h2 { font-size: 1.5rem; margin-bottom: .6rem; }
.empty p { color: var(--muted); margin: 0 0 1.75rem; }

/* --- 14. Éditorial --------------------------------------------------------- */
.editorial { background: var(--rose-200); overflow: hidden; }
.editorial__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.editorial__media { min-height: 340px; max-height: min(34rem, 72svh); overflow: hidden; }
.editorial__media img { width: 100%; height: 100%; object-fit: cover; }
.editorial__copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.15rem, 5vw, 4.5rem);
  padding-right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  gap: 1.4rem;
}
.editorial__copy h2 { font-size: clamp(1.9rem, 4vw, 3rem); text-transform: uppercase; }
.editorial__copy .rule { width: 58px; height: 1px; background: var(--mauve); }
.editorial__copy p { margin: 0; font-family: var(--serif); font-size: 1.12rem; color: var(--body); max-width: 32ch; }
.editorial__layout { display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: start; }
.editorial__links { display: grid; gap: .85rem; text-align: right; }
.editorial__links a {
  font-size: .68rem; letter-spacing: .19em; text-transform: uppercase; color: var(--wine);
  transition: color .25s var(--ease);
}
.editorial__links a:hover { color: var(--burgundy); }
@media (max-width: 860px) {
  .editorial__grid { grid-template-columns: 1fr; }
  .editorial__media { aspect-ratio: 3 / 2; min-height: 0; }
  .editorial__copy { padding-inline: var(--gutter); }
  .editorial__layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .editorial__links { text-align: left; grid-template-columns: repeat(2, auto); justify-content: start; gap: .7rem 2rem; }
}

/* Bandeau ruban */
.ribbon { position: relative; overflow: hidden; background: var(--rose-200); }
.ribbon__inner {
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
  padding-block: clamp(2rem, 4vw, 3rem);
}
/* Le visuel a son propre fond rosé, plus soutenu que le bandeau : un fondu sur
   les quatre côtés l'y intègre au lieu d'y poser un rectangle. */
.ribbon__inner img {
  max-width: 340px; width: 100%;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
  mask-composite: intersect;
}
.ribbon h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.ribbon .script { font-size: clamp(1.9rem, 4vw, 2.8rem); }
@media (max-width: 700px) { .ribbon__inner { grid-template-columns: 1fr; } }

/* --- 15. Page produit ------------------------------------------------------ */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.pdp__media { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); position: relative; }
.pdp__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; padding: 8%; }
.pdp__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .65rem; margin-top: .65rem; }
.pdp__thumbs button {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  aspect-ratio: 1; overflow: hidden; transition: border-color .25s var(--ease);
}
.pdp__thumbs button[aria-pressed="true"] { border-color: var(--mauve); }
.pdp__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pdp__brand { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--mauve-text); margin-bottom: .7rem; }
.pdp h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: .8rem; }
.pdp__price { font-size: 1.5rem; color: var(--wine); font-weight: 600; margin-bottom: 1.4rem; }
.pdp__desc { color: var(--body); margin-bottom: 1.9rem; max-width: 46ch; }
.pdp__row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: stretch; margin-bottom: 1.5rem; }
.qty { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.qty button { width: 42px; height: 100%; min-height: 48px; color: var(--wine); font-size: 1.1rem; }
.qty button:hover { background: var(--blush-100); }
.qty input {
  width: 46px; text-align: center; border: 0; background: transparent;
  font-size: .9rem; font-weight: 600; color: var(--wine); -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdp__row .btn { flex: 1; min-width: 190px; }

.notes { border-top: 1px solid var(--line-soft); padding-top: 1.75rem; margin-top: .5rem; }
.notes h2 { font-size: 1.15rem; margin-bottom: 1rem; }
.notes dl { display: grid; gap: .85rem; margin: 0; }
.notes .note-row { display: grid; grid-template-columns: 92px 1fr; gap: 1rem; align-items: baseline; }
.notes dt { font-size: .63rem; letter-spacing: .17em; text-transform: uppercase; color: var(--mauve-text); }
.notes dd { margin: 0; font-family: var(--serif); font-size: 1rem; color: var(--body); }

.accordion { border-top: 1px solid var(--line-soft); }
.accordion__item { border-bottom: 1px solid var(--line-soft); }
.accordion__btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 0; text-align: left;
  font-size: .7rem; letter-spacing: .17em; text-transform: uppercase; color: var(--wine); font-weight: 600;
}
.accordion__btn .sign { position: relative; width: 13px; height: 13px; flex: none; }
.accordion__btn .sign::before, .accordion__btn .sign::after {
  content: ""; position: absolute; background: var(--wine); transition: transform .3s var(--ease);
}
.accordion__btn .sign::before { inset: 6px 0 6px 0; height: 1px; }
.accordion__btn .sign::after { inset: 0 6px 0 6px; width: 1px; }
.accordion__btn[aria-expanded="true"] .sign::after { transform: scaleY(0); }
.accordion__panel { overflow: hidden; max-height: 0; visibility: hidden; transition: max-height .38s var(--ease), visibility .38s; }
.accordion__panel[data-open="true"] { visibility: visible; }
.accordion__panel > div { padding-bottom: 1.4rem; color: var(--body); max-width: 62ch; }
.accordion__panel p { margin: 0 0 .8rem; }
.accordion__panel p:last-child { margin-bottom: 0; }

@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; } }

/* --- 16. Panier ------------------------------------------------------------ */
.cart { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.cart__line {
  display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 1.25rem;
  padding: 1.4rem 0; border-bottom: 1px solid var(--line-soft); align-items: center;
}
.cart__info { min-width: 0; }
@media (max-width: 560px) {
  /* Le prix passe sous les commandes plutot que d'elargir la page. */
  .cart__line { grid-template-columns: 72px minmax(0, 1fr); gap: .9rem; }
  .cart__lineprice { grid-column: 2; text-align: left; min-width: 0; }
  .cart__actions { flex-wrap: wrap; gap: .75rem; }
}
.cart__thumb { background: var(--card); border-radius: var(--radius); aspect-ratio: 1; overflow: hidden; position: relative; }
.cart__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.cart__info h3 { font-family: var(--serif); font-size: 1.05rem; margin-bottom: .2rem; }
.cart__info .b { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mauve-text); display: block; margin-bottom: .3rem; }
.cart__actions { display: flex; align-items: center; gap: 1.1rem; }
.cart__remove { font-size: .64rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.cart__remove:hover { color: var(--burgundy); border-color: var(--burgundy); }
.cart__lineprice { font-weight: 600; color: var(--wine); min-width: 78px; text-align: right; }

.summary { background: var(--blush-050); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.2rem); position: sticky; top: 100px; }
.summary h2 { font-size: 1.35rem; margin-bottom: 1.4rem; }
.summary__row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; font-size: .84rem; }
.summary__row.total {
  border-top: 1px solid var(--line); margin-top: .8rem; padding-top: 1.1rem;
  font-size: 1.15rem; font-weight: 600; color: var(--wine);
}
.ship-progress { margin-bottom: 1.4rem; }
.ship-progress p { margin: 0 0 .6rem; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mauve-text); }
.ship-progress .track { height: 4px; background: var(--rose-200); border-radius: 3px; overflow: hidden; }
.ship-progress .fill { height: 100%; background: var(--mauve); border-radius: 3px; transition: width .45s var(--ease); }
@media (max-width: 860px) { .cart { grid-template-columns: 1fr; } .summary { position: static; } }

/* --- 17. Contenu éditorial (à propos / FAQ / contact) ---------------------- */
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 2.75rem 0 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.15rem; }
.prose strong { color: var(--wine); font-weight: 600; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.value { padding: clamp(1.5rem, 3vw, 2.1rem); background: var(--blush-050); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.value .num { font-family: var(--serif); font-size: 2rem; color: var(--mauve); line-height: 1; margin-bottom: .8rem; }
.value h3 { font-size: 1.2rem; margin-bottom: .55rem; }
.value p { margin: 0; font-size: .88rem; color: var(--muted); }
@media (max-width: 780px) { .values { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split img { border-radius: var(--radius); width: 100%; }
@media (max-width: 780px) { .split { grid-template-columns: 1fr; } }

/* Formulaires */
.field { display: grid; gap: .5rem; margin-bottom: 1.15rem; }
.field label { font-size: .64rem; letter-spacing: .17em; text-transform: uppercase; color: var(--wine); font-weight: 600; }
.field input, .field textarea, .field select {
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--white);
  padding: .85rem 1rem; font-size: .92rem; color: var(--body); width: 100%;
  transition: border-color .25s var(--ease);
}
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible {
  outline: 2px solid var(--burgundy); outline-offset: 2px; border-color: var(--mauve);
}
.field textarea { min-height: 150px; resize: vertical; }
.field .err { font-size: .72rem; color: var(--burgundy); display: none; letter-spacing: .02em; text-transform: none; }
.field[data-invalid="true"] input, .field[data-invalid="true"] textarea { border-color: var(--burgundy); }
.field[data-invalid="true"] .err { display: block; }
.form-note { font-size: .76rem; color: var(--muted); margin-top: 1rem; }
.form-ok {
  background: var(--blush); border: 1px solid var(--rose); border-radius: var(--radius);
  padding: 1.15rem 1.35rem; color: var(--wine); font-size: .88rem; margin-bottom: 1.5rem;
}

/* Avertissement affiché AVANT le formulaire, pas après : la bordure épaisse
   à gauche le distingue d'une confirmation sans dépendre de la couleur seule. */
.form-warn {
  background: var(--blush-050); border: 1px solid var(--line-strong);
  border-left: 4px solid var(--burgundy); border-radius: var(--radius);
  padding: 1rem 1.25rem; color: var(--body); font-size: .85rem; margin-bottom: 1.5rem;
}
.form-warn a { color: var(--burgundy); border-bottom: 1px solid currentColor; }

/* Case à cocher : la cible tactile fait 24px (WCAG 2.5.8), l'étiquette est
   cliquable, et le message d'erreur occupe toute la largeur sous la ligne. */
.field--check {
  display: grid; grid-template-columns: auto 1fr; gap: .1rem .65rem; align-items: start;
}
.field--check input[type="checkbox"] {
  width: 1.5rem; height: 1.5rem; margin: 0; accent-color: var(--burgundy);
  flex: none; cursor: pointer;
}
.field--check label {
  font-size: .82rem; color: var(--body); line-height: 1.5; cursor: pointer;
  text-transform: none; letter-spacing: 0;
}
.field--check label a { color: var(--burgundy); border-bottom: 1px solid currentColor; }
.field--check .err { grid-column: 1 / -1; }
.field--check input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--burgundy); outline-offset: 2px;
}

.contact-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-card { background: var(--blush-050); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.2rem); }
.contact-card h2 { font-size: 1.1rem; margin-bottom: .5rem; }
.contact-card + .contact-card { margin-top: 1.15rem; }
.contact-card p { margin: 0; font-size: .88rem; color: var(--muted); }
.contact-card a { color: var(--wine); border-bottom: 1px solid var(--line); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* --- 18. Infolettre + pied de page ----------------------------------------- */
.newsletter { background: var(--blush); }
.newsletter__grid {
  display: grid; grid-template-columns: auto 1.3fr auto; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center; padding-block: clamp(2.25rem, 4.5vw, 3.25rem);
}
/* multiply : le fond quasi blanc de la découpe disparaît sur le rose. */
.newsletter__logo { width: 150px; mix-blend-mode: multiply; }
.newsletter h2 { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; font-family: var(--sans); font-weight: 600; margin-bottom: .35rem; }
.newsletter p { margin: 0 0 1rem; font-size: .84rem; color: var(--muted); }
.newsletter form { display: flex; gap: .6rem; flex-wrap: wrap; }
.newsletter input {
  flex: 1; min-width: 210px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--white); padding: .88rem 1.05rem; font-size: .88rem;
}
.newsletter input:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 2px; border-color: var(--mauve); }
.newsletter__side { display: flex; flex-direction: column; align-items: flex-end; gap: 1.1rem; }
.socials { display: flex; gap: .85rem; }
.socials a { color: var(--wine); transition: color .25s var(--ease), transform .25s var(--ease); }
.socials a:hover { color: var(--burgundy); transform: translateY(-2px); }
.newsletter__script { margin: 0; font-size: 1.65rem; white-space: nowrap; }
.drawer__script { margin: auto 0 0; font-size: 1.5rem; opacity: .85; }
@media (max-width: 980px) {
  .newsletter__grid { grid-template-columns: 1fr; text-align: left; }
  .newsletter__side { align-items: flex-start; flex-direction: row; justify-content: space-between; width: 100%; }
}

.footer { background: var(--white); border-top: 1px solid var(--line-soft); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: clamp(1.75rem, 4vw, 3rem); }
.footer__brand img { width: 155px; margin-bottom: 1rem; }
.footer__brand p { font-size: .82rem; color: var(--muted); margin: 0; max-width: 34ch; }
.footer h3 { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; font-family: var(--sans); font-weight: 600; color: var(--wine); margin-bottom: 1rem; }
.footer li { margin-bottom: .6rem; }
.footer li a { font-size: .84rem; color: var(--muted); transition: color .25s var(--ease); }
.footer li a:hover { color: var(--burgundy); }
.footer__bottom {
  margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.5rem; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .72rem; color: var(--muted);
}
@media (max-width: 780px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

/* Barre d'onglets mobile (comme la maquette) */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: none;
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-soft);
  padding: .45rem .5rem calc(.45rem + env(safe-area-inset-bottom, 0px));
}
.tabbar ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.tabbar a {
  display: grid; justify-items: center; gap: .18rem; padding: .35rem 0;
  font-size: .58rem; letter-spacing: .08em; color: var(--muted); position: relative;
}
.tabbar a[aria-current="page"] { color: var(--burgundy); }
.tabbar .badge { top: -2px; right: 50%; margin-right: -20px; }
@media (max-width: 700px) {
  .tabbar { display: block; }
  body { padding-bottom: 62px; }
}

/* --- 19. Notification -------------------------------------------------------*/
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120;
  transform: translate(-50%, 130%);
  background: var(--wine); color: var(--white);
  padding: .95rem 1.5rem; border-radius: var(--radius);
  font-size: .7rem; letter-spacing: .15em; text-transform: uppercase;
  box-shadow: var(--shadow); transition: transform .4s var(--ease);
  display: flex; align-items: center; gap: .7rem; max-width: calc(100vw - 2rem);
}
.toast[data-show="true"] { transform: translate(-50%, 0); }
@media (max-width: 700px) { .toast { bottom: 76px; } }

/* --- 20. Apparition au défilement ------------------------------------------ */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* --- 21. Impression -------------------------------------------------------- */
@media print {
  .header, .announce, .tabbar, .newsletter, .toast, .drawer, .scrim { display: none !important; }
  body { padding: 0; }
}

/* --- 22. Visuels d'ambiance en plein cadre --------------------------------- */
.card__media--cover img,
.cart__thumb.card__media--cover img,
.pdp__media.card__media--cover img { object-fit: cover; padding: 0; }
.pdp__media.card__media--cover img { aspect-ratio: 1 / 1; }

/* --- 23. L'attribut hidden doit toujours l'emporter sur display ------------ */
[hidden] { display: none !important; }


/* --- 22. Ajouts liés aux visuels ASSETS ------------------------------------ */

/* Bandeau publicitaire pleine largeur : le visuel porte déjà logo et accroche,
   on ne superpose donc rien dessus. */
.adband {
  background: var(--blush-100);
  display: grid; place-items: center;
  padding-block: clamp(.75rem, 2vw, 1.75rem);
}
.adband a { display: block; width: 100%; }
.adband img {
  display: block; margin-inline: auto;
  width: 100%; max-width: 100rem; height: auto;
  /* Borne haute : l'en-tête est collant, on lui laisse sa place. */
  max-height: calc(100vh - var(--header-h) - 3rem);
  max-height: calc(100svh - var(--header-h) - 3rem);
  object-fit: contain;
}

/* Bandeaux insérés dans le contenu (à propos, contact) : même règle. */
.banner {
  display: block; margin-inline: auto;
  width: 100%; height: auto;
  max-height: calc(100vh - var(--header-h) - 4rem);
  max-height: calc(100svh - var(--header-h) - 4rem);
  object-fit: contain;
  border-radius: var(--radius);
}

/* Article sans photo (les coffrets, en attente de shooting). Une pastille
   sobre vaut mieux qu'un cadre vide ou une image cassée. */
.media-todo {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .55rem; background: var(--blush-050);
  border: 1px dashed var(--mauve); border-radius: var(--radius);
}
.media-todo__mark {
  font-family: var(--serif); font-size: 1.5rem; letter-spacing: .18em;
  color: var(--wine); opacity: .55;
}
.media-todo__txt {
  font-size: .6rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--mauve-text);
}
.pdp__media--todo { aspect-ratio: 1 / 1; }
.cart__thumb .media-todo { gap: .2rem; }
.cart__thumb .media-todo__mark { font-size: .95rem; }
.cart__thumb .media-todo__txt { display: none; }

/* Pages légales : une colonne de texte lisible, sans fioriture. */
.legal { max-width: 68ch; }
.legal__lead {
  font-family: var(--serif); font-size: 1.12rem; color: var(--body);
  padding-bottom: 1.4rem; border-bottom: 1px solid var(--line-soft);
}
.legal h2 {
  font-size: 1.08rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--wine); margin: 2.4rem 0 .7rem;
}
.legal h2:first-child { margin-top: 0; }
.legal p { margin: 0 0 1rem; color: var(--muted); line-height: 1.75; }
.legal a { color: var(--wine); border-bottom: 1px solid var(--line); }
.legal a:hover { border-bottom-color: var(--wine); }
.legal__sep { border: 0; border-top: 1px solid var(--line-soft); margin: 3rem 0 2.5rem; }
.legal [lang="en"] p { color: var(--mauve-text); }

/* Rangée de liens légaux, au-dessus de la ligne de copyright. */
.footer__legal {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding-top: 1.5rem; border-top: 1px solid var(--line-soft);
}
.footer__legal a {
  font-size: .72rem; letter-spacing: .06em; color: var(--muted);
}
.footer__legal a:hover { color: var(--wine); }


/* --- 23. Paiement Square + variables de hauteur --------------------------- */

/* Hauteur approximative de l'en-tête collant, utilisée pour borner les
   bandeaux : la barre d'annonce + la barre de navigation. */
:root { --header-h: 5.5rem; }          /* mesuré : 80px + marge */
@media (max-width: 780px) { :root { --header-h: 4.75rem; } }   /* mesuré : 68px */

/* Sur écran large, la photo du héros pousse la grille bien au-delà de sa
   hauteur minimale (1319px mesurés à 2560px de large). On la borne pour que
   le héros entier reste visible sans défiler. Pas en dessous de 861px : la
   grille passe alors en une colonne et une borne rognerait le texte. */
@media (min-width: 861px) {
  .hero__grid {
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100svh - var(--header-h));
  }
}

/* Paiement article par article, faute de clé Square côté site. */
.square-panel {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--blush-050);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  max-width: 46rem;
}
/* Le panneau reçoit le focus par script pour être lu ; il n’est pas un
   contrôle, donc pas d’anneau — mais :focus-visible en garde un si
   quelqu’un l’atteint au clavier. */
.square-panel:focus:not(:focus-visible) { outline: none; }
.square-panel:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.square-panel h2 { font-size: 1.15rem; letter-spacing: .04em; text-transform: uppercase; color: var(--wine); }
.square-panel > p { margin: .6rem 0 1.4rem; font-size: .85rem; color: var(--muted); max-width: 52ch; }

.square-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.square-list li {
  display: flex; flex-wrap: wrap; gap: .75rem 1rem;
  align-items: center; justify-content: space-between;
  padding: .8rem .95rem;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: calc(var(--radius) - 4px);
}
.square-list li > span { font-family: var(--serif); font-size: .98rem; }
.square-list__todo {
  display: block; font-size: .78rem; color: var(--mauve-text);
  background: transparent; border-style: dashed;
}


/* --- 24. Mode admin (?admin=1) -------------------------------------------- */
/* Panneau local d'ajout de parfum. Il n'apparaît que si admin.js est chargé,
   et admin.js n'est téléchargé que sur demande explicite. */

.admin {
  position: fixed; inset-block: 0; inset-inline-end: 0; z-index: 200;
  width: min(30rem, 100%); overflow-y: auto;
  background: var(--white);
  border-inline-start: 1px solid var(--line);
  box-shadow: -18px 0 44px -28px rgba(90, 58, 58, .55);
  padding: clamp(1rem, 2.5vw, 1.6rem);
  font-size: .86rem;
}
.admin__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.admin__head h2 {
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--wine); margin: 0;
}
.admin__x {
  background: none; border: 0; font-size: 1.6rem; line-height: 1;
  color: var(--mauve-text); cursor: pointer; padding: 0 .25rem;
}
.admin__x:hover { color: var(--wine); }

.admin__note {
  margin: .75rem 0 1.1rem; font-size: .74rem; line-height: 1.6;
  color: var(--muted); background: var(--blush-050);
  border: 1px solid var(--line-soft); border-radius: calc(var(--radius) - 6px);
  padding: .65rem .8rem;
}
.admin__note code {
  font-size: .92em; background: var(--white);
  border: 1px solid var(--line-soft); border-radius: 3px; padding: 0 .25em;
}

/* Zone photo : cliquable et déposable, avec aperçu en place. */
.admin__drop {
  display: grid; place-items: center; aspect-ratio: 4 / 3;
  background: var(--blush-050);
  border: 1px dashed var(--mauve); border-radius: var(--radius);
  cursor: pointer; overflow: hidden; text-align: center;
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mauve-text);
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.admin__drop:hover, .admin__drop.is-over { border-color: var(--wine); background: var(--blush-100); }
.admin__drop:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.admin__drop img { width: 100%; height: 100%; object-fit: contain; padding: 4%; }
.admin__drop small { font-size: .9em; letter-spacing: .06em; text-transform: none; }

.admin__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin: 1.1rem 0; }
.admin__f { display: grid; gap: .3rem; }
.admin__f--wide { grid-column: 1 / -1; }
.admin__f > span {
  font-size: .66rem; letter-spacing: .13em; text-transform: uppercase; color: var(--mauve-text);
}
.admin__f input, .admin__f select, .admin__f textarea {
  width: 100%; padding: .5rem .6rem; font: inherit; font-size: .84rem;
  color: var(--body); background: var(--white);
  border: 1px solid var(--line); border-radius: calc(var(--radius) - 8px);
}
.admin__f input:focus-visible, .admin__f select:focus-visible, .admin__f textarea:focus-visible {
  outline: 2px solid var(--wine); outline-offset: 1px; border-color: var(--wine);
}
.admin__f textarea { resize: vertical; }

.admin__msg { min-height: 1.2em; margin: 0 0 .8rem; font-size: .76rem; }
.admin__msg.is-ok { color: var(--wine); }
.admin__msg.is-err { color: var(--burgundy); }

.admin__actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.admin__code {
  width: 100%; min-height: 9rem; margin: 1rem 0; padding: .7rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .72rem;
  border: 1px solid var(--line); border-radius: calc(var(--radius) - 8px);
}

.admin__list { margin-top: 1.4rem; border-top: 1px solid var(--line-soft); padding-top: 1rem; }
.admin__list h3 {
  font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--mauve-text); margin: 0 0 .6rem;
}
.admin__list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.admin__list li {
  display: grid; grid-template-columns: 2.4rem 1fr auto; gap: .6rem; align-items: center;
  background: var(--blush-050); border-radius: calc(var(--radius) - 8px); padding: .35rem .5rem;
}
.admin__list img { width: 2.4rem; height: 2.4rem; object-fit: contain; }
.admin__noimg { text-align: center; color: var(--mauve-text); }
.admin__list li > span { font-family: var(--serif); font-size: .88rem; }
.admin__list button {
  background: none; border: 0; cursor: pointer;
  font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--line);
}
.admin__list button:hover { color: var(--burgundy); border-color: var(--burgundy); }
.admin__empty { margin: 0; font-size: .76rem; color: var(--muted); }

@media (max-width: 620px) {
  .admin { inset: 0; width: 100%; }
  .admin__grid { grid-template-columns: 1fr; }
}

/* --- 25. Équilibrage des lignes de titre ---------------------------------- */
/* Évite le mot orphelin en fin de titre ou d'accroche. */
.hero__title, .hero__sub, .section-head h2, .pagehero h1, .ribbon h2,
.editorial__copy h2, .legal h2, .square-panel h2 {
  text-wrap: balance;
}
.editorial__copy p, .legal__lead { text-wrap: pretty; }

/* --- 26. Épuisé + back-office (/admin.html) -------------------------------- */
/* « Épuisé » se lit partout où le parfum apparaît : vignette, fiche, panier.
   Le panier garde la ligne visible plutôt que de la supprimer en douce — on
   ne vide pas le panier de quelqu'un sans le lui dire. */

.card__tag--out {
  background: var(--mauve-text, #7c6068);
  color: var(--white);
}
.cart__line--out .cart__thumb,
.cart__line--out .cart__lineprice { opacity: .45; }
.cart__out {
  margin: .25rem 0 0;
  font-size: .74rem;
  color: var(--burgundy);
}

/* Le panneau admin devient une vraie page : plus de tiroir fixé au bord. */
.admin--page {
  position: static; width: auto; max-width: 52rem; margin: 0 auto;
  box-shadow: none; border: 1px solid var(--line); border-radius: 4px;
}
.admin--page .admin__grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 40rem) {
  .admin--page .admin__grid { grid-template-columns: 1fr; }
}

/* Liste du back-office : une ligne par parfum, état bien visible. */
.admin__row {
  display: flex; align-items: center; gap: .7rem;
  padding: .5rem .6rem; border: 1px solid var(--line-soft); border-radius: 3px;
}
.admin__row.is-out { background: var(--blush-100, #fbf3f3); }
.admin__row img { width: 2.4rem; height: 2.4rem; object-fit: contain; flex: none; }
.admin__rowtxt { flex: 1 1 auto; min-width: 0; }
.admin__rowtxt b { display: block; font-family: var(--serif); font-weight: 500; }
.admin__rowtxt small { color: var(--muted); }
.admin__pill {
  flex: none; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .15rem .45rem; border-radius: 2px;
  background: var(--blush-100, #fbf3f3); color: var(--mauve-text, #7c6068);
}
.admin__pill.is-out { background: var(--burgundy); color: var(--white); }

/* Publication en cours : on désactive tout le panneau, un double envoi
   créerait deux commits et deux déploiements pour un seul parfum. */
.admin.is-busy { opacity: .6; pointer-events: none; }

/* --- 27. Pages légales : tableau, date, champs à compléter ----------------- */
/* Le tableau de conservation des données se lit mal en colonnes serrées sur
   téléphone : il défile horizontalement dans son propre conteneur plutôt que
   de faire déborder la page entière. */
.legal__table {
  width: 100%; border-collapse: collapse; margin: 1.4rem 0 1.8rem;
  font-size: .86rem; display: block; overflow-x: auto;
}
.legal__table th, .legal__table td {
  border: 1px solid var(--line-strong); padding: .7rem .85rem;
  text-align: left; vertical-align: top; min-width: 11rem;
}
.legal__table th {
  background: var(--blush-100); font-family: var(--sans); font-weight: 600;
  font-size: .74rem; letter-spacing: .06em; text-transform: uppercase;
}
.legal__meta {
  font-size: .78rem; color: var(--muted); margin: -.5rem 0 1.8rem;
}

/* Champ non renseigné. Volontairement laid : il doit sauter aux yeux en
   relecture, et rester lisible (contraste vérifié) si jamais il passe en
   ligne par accident. */
.todo {
  background: #FFF2A8; color: #4A3B00; padding: .1rem .4rem;
  border: 1px dashed #8A6D00; border-radius: 2px;
  font-family: var(--sans); font-size: .82em; font-weight: 600;
}

/* Coordonnées légales du pied de page : présentes sur chaque page, discrètes
   mais lisibles (contraste vérifié dans a11y-contraste.test.js). */
.footer__legalinfo {
  display: inline-block; margin-top: .5rem;
  font-size: .74rem; color: var(--muted); line-height: 1.7;
}
.footer__legalinfo a { color: inherit; border-bottom: 1px solid var(--line-strong); }
