/* =====================================================================
   LES CRINS DE CHRIS — Maquette v4 « Maison claire »
   Système de design commun à toutes les pages du site.
   Inspiration : boutique bijou épurée (fond blanc, produits en avant,
   réassurance, accent taupe), réchauffée par l'univers équestre.
   ---------------------------------------------------------------------
   Sommaire
   1. Jetons          2. Base           3. Typographie     4. Boutons
   5. Bandeau/en-tête 6. Méga-menu      7. Tiroirs         8. Pied de page
   9. Cartes produit  10. Sections      11. Formulaires    12. Divers
   13. Responsive
   ===================================================================== */

/* 1. JETONS ------------------------------------------------------------ */
:root {
  /* couleurs : 60 % blanc / ivoire, 30 % encre, 10 % taupe */
  --blanc: #FFFFFF;
  --ivoire: #FAF7F3;
  --sable: #F3EDE6;
  --lin: #E7DED3;
  --trait: #ECE6DF;
  --encre: #1D1A17;
  --texte: #2C2825;
  --gris: #6B635C;        /* 5,9:1 sur blanc */
  --gris-2: #8A827B;      /* décoratif, grands textes */
  --taupe: #A88A70;       /* décoratif */
  --taupe-f: #7A5C44;     /* liens, prix barrés, 6,1:1 */
  --taupe-bg: #8A6A51;    /* fond des pastilles, texte blanc 4,9:1 */
  --turq: #2BB8C4;        /* papillons du logo */
  --turq-f: #0E6E78;
  --vert: #2F6B4F;
  --rouge: #A63A26;

  --serif: "Cormorant Garamond", "Cormorant", Garamond, Georgia, serif;
  --sans: "Jost", "Futura", "Century Gothic", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1320px;
  --gut: 24px;
  --r-s: 3px;
  --r: 6px;
  --r-l: 12px;
  --sec: clamp(64px, 8vw, 112px);
  --hdr-h: 0px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow: 0 18px 40px -24px rgba(29, 26, 23, .35);
  --shadow-l: 0 30px 70px -30px rgba(29, 26, 23, .45);
}

/* 2. BASE -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 150px; }
body {
  margin: 0; background: var(--blanc); color: var(--texte);
  font: 400 16px/1.65 var(--sans); letter-spacing: .005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p a, .prose a, .link { color: var(--taupe-f); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
p a:hover, .prose a:hover, .link:hover { color: var(--encre); }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--turq-f); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--sable); color: var(--encre); }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
.wrap-s { width: min(860px, 100% - 2 * var(--gut)); margin-inline: auto; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 200; padding: 12px 18px; background: var(--encre); color: #fff; font-weight: 500; }
.skip:focus { top: 12px; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ic-s { width: 16px; height: 16px; }
.ic-l { width: 28px; height: 28px; stroke-width: 1.2; }
[hidden] { display: none !important; }

/* 3. TYPOGRAPHIE ------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 12px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--taupe-f);
}
.eyebrow.line::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.display, .h1, .h2, .h3 { font-family: var(--serif); font-weight: 500; color: var(--encre); letter-spacing: -.005em; font-variant-numeric: lining-nums; }
.steps-mini li::before, .prose h3 { font-variant-numeric: lining-nums; }
.display { font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.6rem); line-height: 1.02; }
.h1 { font-size: clamp(2.3rem, 1.6rem + 2.4vw, 3.6rem); line-height: 1.05; }
.h2 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.9rem); line-height: 1.1; }
.h3 { font-size: clamp(1.45rem, 1.25rem + .6vw, 1.8rem); line-height: 1.2; }
.display em, .h1 em, .h2 em, .h3 em { font-style: italic; color: var(--taupe-f); }
.title-s { font: 500 13px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--encre); }
.lead { font-size: 1.1rem; line-height: 1.65; color: var(--gris); max-width: 58ch; }
.muted { color: var(--gris); }
.small { font-size: .875rem; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.prose { color: var(--texte); font-size: 1rem; line-height: 1.75; }
.prose > * + * { margin-top: 1em; }
.prose h3 { font: 500 1.6rem/1.2 var(--serif); color: var(--encre); margin-top: 1.8em; }
.prose h4 { font: 500 .95rem/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--encre); margin-top: 1.6em; }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose strong, .prose b { color: var(--encre); font-weight: 500; }

/* titre de section centré, façon boutique */
.sec-title { text-align: center; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-title .h2 { margin-top: 12px; }
.sec-title .lead { margin: 14px auto 0; }
.sec-title .orn { display: block; width: 46px; height: 1px; margin: 18px auto 0; background: var(--taupe); }
.sec-title-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 3.5vw, 44px); }
.sec-title-row .h2 { margin-top: 10px; }

/* 4. BOUTONS ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 28px; border: 1px solid transparent; border-radius: var(--r-s);
  font: 500 13px/1.1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-align: center;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .15s;
  cursor: pointer; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn .ic { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .ic-go { transform: translateX(3px); }
.btn-dark { background: var(--encre); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-light { background: #fff; color: var(--encre); }
.btn-light:hover { background: var(--sable); }
.btn-outline { border-color: var(--encre); color: var(--encre); background: transparent; }
.btn-outline:hover { background: var(--encre); color: #fff; }
.btn-ghost-l { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost-l:hover { background: #fff; color: var(--encre); }
.btn-taupe { background: var(--taupe-bg); color: #fff; }
.btn-taupe:hover { background: var(--taupe-f); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 12px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font: 500 12.5px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--encre); border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.link-arrow:hover { color: var(--taupe-f); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--encre); transition: background-color .2s; }
.icon-btn:hover { background: var(--sable); }

/* 5. BANDEAU + EN-TÊTE ------------------------------------------------- */
/* bandeau « maquette » : défile avec la page, toujours visible au chargement */
.demo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; padding: 7px var(--gut); background: var(--sable); border-bottom: 1px solid var(--lin); color: var(--texte); font-size: 12.5px; letter-spacing: .03em; text-align: center; }
.demo-strip a { color: var(--taupe-f); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.demo-strip .short { display: none; }
.is-framed #print { display: none; }
.announce { background: var(--encre); color: #fff; font-size: 13px; letter-spacing: .04em; }
.announce .wrap { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 38px; text-align: center; }
.announce a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.announce a:hover { color: #fff; }
.announce .side { position: absolute; right: var(--gut); display: flex; gap: 18px; color: #CFC6BD; font-size: 12.5px; }
.announce .wrap { position: relative; }
.vacation { background: var(--sable); color: var(--encre); font-size: 14px; text-align: center; padding: 10px 16px; border-bottom: 1px solid var(--lin); }

.hdr { position: sticky; top: 0; z-index: 80; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--trait); transition: box-shadow .3s var(--ease); }
.hdr.scrolled { box-shadow: 0 10px 30px -22px rgba(29, 26, 23, .5); }
.hdr-top { display: grid; grid-template-columns: 1fr minmax(280px, 520px) 1fr; align-items: center; gap: 24px; min-height: 86px; }
.brand { justify-self: start; display: block; }
.brand img { height: 58px; width: auto; }
.search { position: relative; width: 100%; }
.search input {
  width: 100%; height: 46px; padding: 0 52px 0 20px; border: 1px solid var(--trait); border-radius: 999px; background: var(--ivoire);
  font-size: 14.5px; transition: border-color .2s, background-color .2s;
}
.search input::placeholder { color: var(--gris); }
.search input:focus { outline: none; border-color: var(--encre); background: #fff; }
.search button { position: absolute; right: 4px; top: 4px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; color: var(--encre); }
.search-pop { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 90; background: #fff; border: 1px solid var(--trait); border-radius: var(--r-l); box-shadow: var(--shadow-l); padding: 8px; display: none; max-height: 70vh; overflow: auto; }
.search-pop.open { display: block; }
.search-pop a { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 8px; border-radius: var(--r); }
.search-pop a:hover, .search-pop a.active { background: var(--ivoire); }
.search-pop img { width: 52px; height: 52px; object-fit: cover; border-radius: var(--r-s); background: var(--sable); }
.search-pop .nm { font-size: 14.5px; line-height: 1.3; }
.search-pop .pr { font-size: 13.5px; color: var(--gris); white-space: nowrap; }
.search-pop .all { display: block; text-align: center; padding: 12px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; border-top: 1px solid var(--trait); margin-top: 6px; }
.search-pop .none { padding: 16px; color: var(--gris); font-size: 14.5px; }
.hdr-acts { justify-self: end; display: flex; align-items: center; gap: 4px; }
.hdr-act { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; min-width: 56px; padding: 6px 6px; border: 0; background: none; border-radius: var(--r); color: var(--encre); font-size: 11.5px; letter-spacing: .06em; }
.hdr-act:hover { background: var(--ivoire); }
.hdr-act .ic { width: 22px; height: 22px; }
.hdr-act .badge-n { position: absolute; top: 2px; right: 10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--taupe-bg); color: #fff; font-size: 10.5px; font-weight: 500; line-height: 18px; text-align: center; letter-spacing: 0; transition: transform .3s var(--ease); }
.hdr-act .badge-n.bump { transform: scale(1.35); }
.burger { display: none; }
.hdr-search-m { display: none; }

/* 6. NAVIGATION + MÉGA-MENU -------------------------------------------- */
.nav { border-top: 1px solid var(--trait); }
.nav > ul { display: flex; justify-content: center; gap: 4px; }
.nav-item { position: static; }
.nav-link {
  display: flex; align-items: center; gap: 6px; height: 50px; padding: 0 18px;
  font: 500 12.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--encre);
  border: 0; background: none; position: relative;
}
.nav-link::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 12px; height: 1px; background: var(--encre); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-link:hover::after, .nav-link[aria-expanded="true"]::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link .ic { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.nav-link[aria-expanded="true"] .ic { transform: rotate(180deg); }
.nav-link.accent { color: var(--taupe-f); }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--trait); box-shadow: 0 30px 50px -30px rgba(29, 26, 23, .35); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s; }
.mega.open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.mega-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.3fr); gap: 32px; padding: 36px 0 40px; }
.mega-col h3 { margin-bottom: 14px; }
.mega-col h3 a { font: 500 12.5px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--encre); }
.mega-col h3 a:hover { color: var(--taupe-f); }
.mega-col li a { display: inline-block; padding: 5px 0; font-size: 15px; color: var(--gris); }
.mega-col li a:hover { color: var(--encre); }
.mega-col .count { font-size: 12px; color: var(--gris-2); margin-left: 4px; }
.mega-feat { position: relative; display: block; border-radius: var(--r); overflow: hidden; background: var(--sable); min-height: 220px; }
.mega-feat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mega-feat:hover img { transform: scale(1.04); }
.mega-feat span { position: absolute; left: 16px; bottom: 16px; right: 16px; padding: 14px 16px; background: rgba(255, 255, 255, .94); border-radius: var(--r-s); font: 500 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--encre); }
.mega-feat span em { display: block; font: italic 500 1.2rem/1.2 var(--serif); letter-spacing: 0; text-transform: none; margin-top: 2px; color: var(--taupe-f); }

/* 7. TIROIRS (menu mobile, panier) + voile ---------------------------- */
.scrim { position: fixed; inset: 0; z-index: 120; background: rgba(29, 26, 23, .42); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s .3s; }
.scrim.open { opacity: 1; visibility: visible; transition: opacity .3s var(--ease); }
.drawer { position: fixed; top: 0; bottom: 0; z-index: 130; width: min(440px, 100%); background: #fff; display: flex; flex-direction: column; transition: transform .45s var(--ease), visibility 0s .45s; visibility: hidden; }
.drawer.right { right: 0; transform: translateX(100%); }
.drawer.left { left: 0; transform: translateX(-100%); width: min(380px, 92%); }
.drawer.open { transform: none; visibility: visible; transition: transform .45s var(--ease); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px 18px 24px; border-bottom: 1px solid var(--trait); }
.drawer-head .title-s { display: flex; align-items: center; gap: 10px; }
.drawer-body { flex: 1; overflow: auto; padding: 8px 24px 24px; }
.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--trait); background: var(--ivoire); }
.m-nav > li { border-bottom: 1px solid var(--trait); }
.m-nav > li > a, .m-nav summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; font: 500 13px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--encre); cursor: pointer; list-style: none; }
.m-nav summary::-webkit-details-marker { display: none; }
.m-nav details[open] summary .ic { transform: rotate(180deg); }
.m-nav summary .ic { transition: transform .3s var(--ease); }
.m-nav .sub { padding: 0 0 14px 4px; }
.m-nav .sub a { display: block; padding: 9px 0; font-size: 15.5px; color: var(--gris); }
.m-nav .sub a.strong { color: var(--encre); font-weight: 500; }
.m-contact { margin-top: 28px; display: grid; gap: 10px; font-size: 14.5px; color: var(--gris); }
.m-contact a { display: flex; align-items: center; gap: 10px; color: var(--encre); }

/* panier (tiroir et page) */
.free-ship { margin: 16px 0 6px; font-size: 13.5px; color: var(--texte); }
.free-ship b { font-weight: 500; }
.free-bar { height: 4px; border-radius: 4px; background: var(--lin); overflow: hidden; margin-top: 8px; }
.free-bar i { display: block; height: 100%; background: var(--taupe-bg); border-radius: 4px; transition: width .6s var(--ease); }
.line-item { display: grid; grid-template-columns: 84px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--trait); }
.line-item img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--r-s); background: var(--sable); }
.line-item .nm { font-size: 15px; line-height: 1.35; color: var(--encre); }
.line-item .op { font-size: 13px; color: var(--gris); margin-top: 3px; line-height: 1.45; }
.line-item .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.line-item .pr { font-weight: 500; font-size: 15px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--lin); border-radius: var(--r-s); height: 40px; }
.qty button { width: 38px; height: 38px; border: 0; background: none; display: grid; place-items: center; color: var(--encre); }
.qty button:hover { background: var(--ivoire); }
.qty input, .qty output { width: 36px; text-align: center; border: 0; background: none; font-size: 15px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.rm { border: 0; background: none; font-size: 12.5px; color: var(--gris); text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }
.rm:hover { color: var(--rouge); }
.totals { display: grid; gap: 8px; font-size: 15px; }
.totals div { display: flex; justify-content: space-between; gap: 16px; }
.totals .grand { font-size: 17px; font-weight: 500; color: var(--encre); padding-top: 10px; border-top: 1px solid var(--lin); margin-top: 4px; }
.empty { text-align: center; padding: 48px 8px; color: var(--gris); }
.empty .ic { width: 44px; height: 44px; margin: 0 auto 16px; stroke-width: 1; color: var(--taupe); }

/* 8. PIED DE PAGE ------------------------------------------------------ */
.newsletter { background: var(--sable); }
.newsletter .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 24px 40px; padding-block: 48px; }
.newsletter .ic-l { width: 44px; height: 44px; color: var(--taupe-f); }
.newsletter h2 { font: 500 1.75rem/1.2 var(--serif); color: var(--encre); }
.newsletter p { color: var(--gris); font-size: 14.5px; margin-top: 4px; max-width: 46ch; }
.nl-form { display: flex; gap: 8px; }
.nl-form input { flex: 1; min-width: 0; height: 50px; padding: 0 18px; border: 1px solid var(--lin); border-radius: var(--r-s); background: #fff; font-size: 15px; }
.nl-form input:focus { outline: none; border-color: var(--encre); }
.nl-msg { grid-column: 3; font-size: 14px; color: var(--vert); }
.ft { background: var(--encre); color: #E9E3DC; font-size: 14.5px; }
.ft-top { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 40px; padding: 64px 0 48px; }
.ft-brand img { width: 190px; }
.ft-brand p { color: #B9AFA5; margin-top: 18px; max-width: 34ch; line-height: 1.6; }
.ft h2 { font: 500 12.5px/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.ft li a { display: inline-block; padding: 5px 0; color: #CFC6BD; }
.ft li a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.ft-contact li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; color: #CFC6BD; }
.ft-contact .ic { margin-top: 3px; color: var(--taupe); }
.ft-social { display: flex; gap: 8px; margin-top: 18px; }
.ft-social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; color: #fff; }
.ft-social a:hover { background: #fff; color: var(--encre); }
.ft-cma { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 13px; color: #B9AFA5; line-height: 1.4; }
.ft-cma img { width: 48px; height: 48px; padding: 4px; border-radius: var(--r); background: #fff; object-fit: contain; }
.ft-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 22px 0 26px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: #B9AFA5; }
.ft-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.ft-bottom a:hover { color: #fff; }
.pay { display: flex; align-items: center; gap: 8px; }
.pay span { display: inline-grid; place-items: center; height: 26px; padding: 0 9px; border-radius: 4px; background: #fff; color: var(--encre); font: 600 10.5px/1 var(--sans); letter-spacing: .06em; }

/* 9. CARTES PRODUIT ---------------------------------------------------- */
.grid-p { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.grid-p.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-p { position: relative; display: flex; flex-direction: column; }
.card-p .media { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--r); background: var(--sable); }
.card-p .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease), transform 1s var(--ease); }
.card-p .media img.alt { opacity: 0; }
.card-p:hover .media img.alt { opacity: 1; }
.card-p:hover .media img { transform: scale(1.035); }
.badges { position: absolute; left: 10px; top: 10px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-s); background: #fff; color: var(--encre); font: 500 10.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.badge.dark { background: var(--encre); color: #fff; }
.badge.taupe { background: var(--taupe-bg); color: #fff; }
.badge.out { background: var(--lin); color: var(--texte); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--turq); }
.fav-btn { position: absolute; right: 10px; top: 10px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: var(--encre); transition: transform .2s, color .2s; }
.fav-btn:hover { transform: scale(1.06); }
.fav-btn[aria-pressed="true"] { color: var(--rouge); }
.fav-btn[aria-pressed="true"] .ic { fill: currentColor; }
.quick { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.card-p:hover .quick, .card-p:focus-within .quick { opacity: 1; transform: none; }
.quick .btn { width: 100%; min-height: 44px; background: rgba(255, 255, 255, .96); color: var(--encre); }
.quick .btn:hover { background: var(--encre); color: #fff; }
.card-p .info { padding: 14px 2px 0; display: grid; gap: 4px; }
.card-p .cat { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); }
.card-p .nm { font-size: 15.5px; line-height: 1.35; color: var(--encre); }
.card-p .nm a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-p .pr { font-size: 15px; color: var(--encre); font-weight: 500; }
.card-p .pr small { font-weight: 400; color: var(--gris); font-size: 13px; }
.card-p .opts-hint { font-size: 12.5px; color: var(--gris); }

/* rail horizontal */
.rail-wrap { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 24px) / 4); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-nav { display: flex; gap: 8px; }
.rail-nav button { width: 44px; height: 44px; border: 1px solid var(--lin); border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--encre); }
.rail-nav button:hover { border-color: var(--encre); }
.rail-nav button:disabled { opacity: .35; cursor: default; }

/* 10. SECTIONS RÉUTILISABLES ------------------------------------------ */
.section { padding-block: var(--sec); }
.section.tight { padding-block: clamp(48px, 6vw, 80px); }
.bg-ivoire { background: var(--ivoire); }
.bg-sable { background: var(--sable); }
.bg-encre { background: var(--encre); color: #E9E3DC; }
.bg-encre .h2, .bg-encre .h1, .bg-encre .h3 { color: #fff; }
.bg-encre .eyebrow { color: #D6C3AF; }
.bg-encre .lead { color: #CFC6BD; }

/* en-tête de page intérieure (façon fil d'Ariane centré) */
.page-head { background: var(--ivoire); border-bottom: 1px solid var(--trait); text-align: center; padding: clamp(36px, 5vw, 64px) 0 clamp(32px, 4vw, 52px); }
.page-head .h1 { margin-top: 10px; }
.page-head .lead { margin: 14px auto 0; }
.crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 13px; color: var(--gris); }
.crumbs a:hover { color: var(--encre); text-decoration: underline; text-underline-offset: 3px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--gris-2); }
.crumbs [aria-current] { color: var(--encre); }
.crumbs.left { justify-content: flex-start; }

/* réassurance */
.reassure { border-bottom: 1px solid var(--trait); }
.reassure ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.reassure li { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 26px 16px; text-align: left; }
.reassure li + li { border-left: 1px solid var(--trait); }
.reassure .ic { width: 34px; height: 34px; stroke-width: 1.1; color: var(--taupe-f); }
.reassure b { display: block; font: 500 12.5px/1.35 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--encre); }
.reassure span { display: block; font-size: 13.5px; color: var(--gris); line-height: 1.4; margin-top: 2px; }

/* onglets */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 28px; margin-bottom: 36px; }
.tab { position: relative; border: 0; background: none; padding: 8px 2px; font: 500 13px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gris); }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--encre); transform: scaleX(0); transition: transform .3s var(--ease); }
.tab[aria-selected="true"] { color: var(--encre); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab:hover { color: var(--encre); }

/* accordéon */
.acc { border-bottom: 1px solid var(--trait); }
.acc:first-of-type { border-top: 1px solid var(--trait); }
.acc summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 60px; padding: 14px 0; cursor: pointer; list-style: none; font: 500 15.5px/1.4 var(--sans); color: var(--encre); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .ic { transition: transform .3s var(--ease); }
.acc[open] summary .ic { transform: rotate(45deg); }
.acc .acc-b { padding: 0 40px 22px 0; color: var(--gris); }

/* bloc média + texte */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 96px); }
.split .media { position: relative; border-radius: var(--r); overflow: hidden; background: var(--sable); }
.split .media img { width: 100%; height: 100%; object-fit: cover; }
.steps-mini { display: grid; gap: 14px; margin: 26px 0 32px; counter-reset: s; }
.steps-mini li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: center; font-size: 15.5px; color: var(--texte); }
.steps-mini li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--taupe); border-radius: 50%; font: 500 1.1rem/1 var(--serif); color: var(--taupe-f); }

/* 11. FORMULAIRES ------------------------------------------------------ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; }
.field > span, .field > label, .legend { font: 500 13px/1.3 var(--sans); letter-spacing: .06em; color: var(--encre); }
.field .opt { color: var(--gris); font-weight: 400; letter-spacing: 0; }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid #D9D0C6; border-radius: var(--r-s); background: #fff; color: var(--texte); font-size: 15.5px;
  transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.select { appearance: none; padding-right: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231D1A17' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center; }
.input::placeholder, .textarea::placeholder { color: #8A827B; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--encre); box-shadow: 0 0 0 3px rgba(29, 26, 23, .08); }
.field.invalid .input, .field.invalid .textarea, .field.invalid .select { border-color: var(--rouge); }
.err { display: none; font-size: 13px; color: var(--rouge); }
.field.invalid .err { display: block; }
.help { font-size: 13px; color: var(--gris); }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; color: var(--texte); cursor: pointer; }
.check input { appearance: none; flex: none; width: 20px; height: 20px; margin: 2px 0 0; border: 1px solid #B9AFA5; border-radius: 3px; background: #fff; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--encre); border-color: var(--encre); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border: 1.5px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.check input[type=radio] { border-radius: 50%; }
.check input[type=radio]:checked::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #fff; transform: none; }
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

/* puces de choix (options produit, filtres, formulaire) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1px solid #D9D0C6; border-radius: var(--r-s);
  background: #fff; font-size: 14px; color: var(--texte); cursor: pointer; transition: border-color .2s, background-color .2s, color .2s;
}
.chip:hover span { border-color: var(--encre); }
.chip input:checked + span { border-color: var(--encre); background: var(--encre); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--turq-f); outline-offset: 2px; }
.chip input:disabled + span { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.chip .sw { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.chip.tile span { flex-direction: column; justify-content: flex-start; gap: 8px; min-height: 0; padding: 8px 8px 10px; width: 112px; text-align: center; font-size: 12.5px; line-height: 1.3; }
.chip.tile img { width: 94px; height: 72px; object-fit: cover; border-radius: var(--r-s); background: var(--sable); }

/* 12. DIVERS ----------------------------------------------------------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; display: flex; align-items: center; gap: 14px; width: max-content; max-width: calc(100vw - 32px); padding: 14px 16px 14px 20px; border-radius: var(--r); background: var(--encre); color: #fff; font-size: 14.5px; box-shadow: var(--shadow-l); opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast .ic { color: #9FE3E9; }
.toast a { text-decoration: underline; text-underline-offset: 3px; color: #fff; white-space: nowrap; }
.note { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--ivoire); border: 1px solid var(--trait); font-size: 14.5px; color: var(--texte); }
.note .ic { color: var(--taupe-f); margin-top: 2px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--sable); font-size: 12.5px; color: var(--texte); }
.divider { height: 1px; background: var(--trait); border: 0; margin: 0; }
.ratio-1 { aspect-ratio: 1; } .ratio-45 { aspect-ratio: 4 / 5; } .ratio-43 { aspect-ratio: 4 / 3; } .ratio-169 { aspect-ratio: 16 / 9; }
.cover { width: 100%; height: 100%; object-fit: cover; }
.demo-flag { position: fixed; left: 12px; bottom: 12px; z-index: 70; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .95); border: 1px solid var(--lin); box-shadow: var(--shadow); font-size: 12.5px; color: var(--texte); }
.demo-flag a { color: var(--taupe-f); text-decoration: underline; text-underline-offset: 3px; }
/* cadrage automatique (assets/js/cadrage.js) : fond flouté de la photo dans les marges quand elle est réduite */
.fr-bg { position: absolute; inset: -10%; background: var(--sable) center / cover no-repeat; filter: blur(24px) saturate(1.05); opacity: .55; pointer-events: none; }
img[data-cadrage] { transition: opacity .3s var(--ease); }

/* filigrane : les créations de Chris dessinées au trait, visibles sur les fonds blancs.
   Les sections colorées (ivoire, sable, encre) le recouvrent naturellement. */
main { position: relative; isolation: isolate; }
main::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../img/site/filigrane.svg") -120px 40px / 760px repeat;
  opacity: var(--fili, .42);   /* --fili est posé par site.js depuis Réglages > Filigrane */
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 13%, rgba(0, 0, 0, .28) 30%, rgba(0, 0, 0, .28) 70%, #000 87%, #000 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 13%, rgba(0, 0, 0, .28) 30%, rgba(0, 0, 0, .28) 70%, #000 87%, #000 100%);
}
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* 13. RESPONSIVE ------------------------------------------------------- */
@media (max-width: 1180px) {
  .grid-p { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rail { grid-auto-columns: calc((100% - 2 * 24px) / 3); }
  .mega-in { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mega-feat { display: none; }
}
@media (max-width: 1024px) {
  .hdr-top { grid-template-columns: auto 1fr auto; min-height: 68px; gap: 8px; }
  .burger { display: inline-grid; }
  .brand { justify-self: center; }
  .brand img { height: 46px; }
  .hdr-top > .search { display: none; }
  .hdr-act span.lbl { display: none; }
  .hdr-act { min-width: 44px; padding: 10px; }
  .hdr-act .badge-n { top: 3px; right: 2px; }
  .hdr-act.acct { display: none; }
  .hdr-search-m { display: block; padding: 0 0 12px; }
  .nav { display: none; }
  .announce .side { display: none; }
  .ft-top { grid-template-columns: 1fr 1fr; }
  .newsletter .wrap { grid-template-columns: auto 1fr; }
  .nl-form, .nl-msg { grid-column: 1 / -1; }
  .reassure ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reassure li:nth-child(3) { border-left: 0; }
  .reassure li:nth-child(n+3) { border-top: 1px solid var(--trait); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --gut: 16px; }
  body { font-size: 15.5px; }
  .grid-p, .grid-p.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .rail { grid-auto-columns: 66%; gap: 12px; }
  .card-p .nm { font-size: 14.5px; }
  .card-p .pr { font-size: 14.5px; }
  .quick { display: none; }
  .fav-btn { width: 36px; height: 36px; right: 6px; top: 6px; }
  .badges { left: 6px; top: 6px; right: 46px; }
  .badge { height: 22px; padding: 0 7px; font-size: 9.5px; letter-spacing: .08em; max-width: 100%; overflow: hidden; white-space: nowrap; }
  .announce .more { display: none; }
  .demo-strip .long { display: none; }
  .demo-strip .short { display: inline; }
  .reassure li { flex-direction: column; justify-content: flex-start; text-align: center; gap: 8px; padding: 18px 8px; }
  .reassure b { font-size: 11.5px; }
  .reassure span { font-size: 12.5px; }
  .form-grid { grid-template-columns: 1fr; }
  .ft-top { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
  .ft-bottom { flex-direction: column; align-items: flex-start; }
  .sec-title-row { align-items: flex-start; }
  .btn { padding: 0 22px; }
  .chip.tile span { width: 100px; }
  .chip.tile img { width: 82px; height: 64px; }
  .demo-flag { display: none; }
  main::before { background-size: 540px; background-position: -60px 20px; opacity: calc(var(--fili, .42) * .72); -webkit-mask-image: none; mask-image: none; }
}

/* 14. HABILLAGES (Noël, Octobre rose, 14 juillet…) ----------------------
   html[data-habillage] et les couleurs --skin* sont posés par assets/js/habillages.js,
   uniquement entre les dates choisies ; hors de ces dates, rien de ce qui suit ne s'applique. */
[data-habillage] .announce { background: var(--skin-f); }
[data-habillage] .announce .side, [data-habillage] .announce a { color: #fff; }
[data-habillage] .hdr::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--skin-bande); pointer-events: none; }
[data-habillage] .mega { top: calc(100% + 2px); }
[data-habillage] .nav-link::after { background: var(--skin-f); }
[data-habillage] .badge.dark { background: var(--skin-f); }
[data-habillage] .btn-dark:hover { background: var(--skin-f); }
[data-habillage] .sec-title .orn { width: 64px; height: 2px; background: var(--skin-bande); }
[data-habillage] .hero { background: radial-gradient(48% 90% at 0% 100%, var(--skin-doux), transparent 72%), radial-gradient(34% 60% at 34% 0%, var(--skin-doux), transparent 75%), var(--ivoire); }
[data-habillage] .page-head { background: radial-gradient(50% 120% at 12% 100%, var(--skin-doux), transparent 72%), radial-gradient(50% 120% at 88% 0%, var(--skin-doux), transparent 72%), var(--ivoire); }
[data-habillage] .ft { position: relative; }
[data-habillage] .ft::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--skin-bande); }
[data-habillage] .ft-contact .ic { color: var(--skin-l); }
[data-habillage-style="sobre"] .slide-img img, [data-habillage-style="sobre"] .card-p .media img, [data-habillage-style="sobre"] .uni .media img { filter: saturate(.55); }

/* pastille posée sur le logo */
[data-habillage] .brand { position: relative; }
.hab-badge { position: absolute; right: -24px; top: -7px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--skin-f); color: #fff; box-shadow: 0 0 0 2px #fff, 0 6px 14px -6px var(--skin); animation: hab-pop .8s .2s var(--ease) both; }
.hab-badge .ic { width: 17px; height: 17px; stroke-width: 1.8; }
@keyframes hab-pop { from { transform: scale(0) rotate(-50deg); } 70% { transform: scale(1.14) rotate(6deg); } to { transform: none; } }

/* petit mot aux visiteuses, refermable */
.hab-note { position: fixed; left: 16px; bottom: 16px; z-index: 58; display: flex; align-items: center; gap: 14px; max-width: min(410px, calc(100vw - 32px)); padding: 12px 8px 12px 14px; border-radius: var(--r-l); background: #fff; color: var(--texte); font-size: 14.5px; line-height: 1.45; box-shadow: 0 0 0 1px var(--trait), var(--shadow-l); overflow: hidden; animation: hab-note .7s .9s var(--ease) both; }
.hab-note::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--skin-bande); }
.hab-note a { color: var(--skin-f); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.hab-ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--skin-doux); color: var(--skin-f); }
.hab-ico .ic { width: 22px; height: 22px; }
.hab-apercu { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 500; color: var(--skin-f); }
.hab-fermer { display: grid; place-items: center; align-self: flex-start; width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%; background: none; color: var(--gris); }
.hab-fermer:hover { background: var(--sable); color: var(--encre); }
@keyframes hab-note { from { opacity: 0; transform: translateY(20px); } }

/* dessins au trait qui tombent doucement, seulement devant la photo d'accueil (jamais devant le texte) */
.hab-decor { position: absolute; top: 0; right: 0; bottom: 0; width: 57%; z-index: 2; overflow: hidden; pointer-events: none; }
.hab-decor > span { position: absolute; top: -40px; opacity: 0; animation: hab-chute linear infinite; filter: drop-shadow(0 1px 2px rgba(29, 26, 23, .35)); }
.hab-decor .ic { width: 100%; height: auto; stroke-width: 1.5; }
@keyframes hab-chute { 0% { opacity: 0; transform: none; } 12%, 82% { opacity: var(--o, .7); } 100% { opacity: 0; transform: translate3d(var(--dx, 20px), 780px, 0) rotate(var(--r, 120deg)); } }
@media (max-width: 860px) {
  .hab-decor { left: 0; bottom: auto; width: 100%; aspect-ratio: 4 / 3; }
}
@media (max-width: 1024px) { .hab-badge { width: 26px; height: 26px; right: -20px; top: -5px; } .hab-badge .ic { width: 15px; height: 15px; } }
/* téléphone : le mot est une bande sous l'en-tête, il ne recouvre ni le texte ni les boutons */
@media (max-width: 760px) {
  .hab-note { position: relative; left: auto; bottom: auto; z-index: auto; max-width: none; padding: 9px 6px 9px var(--gut); border-radius: 0; background: var(--skin-doux); box-shadow: none; font-size: 14px; }
  .hab-note::before { display: none; }
  .hab-note p { flex: 1; }
  .hab-ico { width: 34px; height: 34px; background: #fff; }
  .hab-ico .ic { width: 19px; height: 19px; }
  .hab-fermer { align-self: center; width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .hab-decor { display: none; } }
@media print { .hab-note, .hab-decor, .hab-badge { display: none !important; } }
