/* Polices auto-hébergées (Google Fonts, licence OFL), variables : un fichier sert toutes les graisses. */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/fonts/cormorant-garamond-latin.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("/fonts/cormorant-garamond-italic-latin.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap; src: url("/fonts/dm-sans-latin.woff2") format("woff2"); }
:root { --ink: #20241f; --muted: #5d6156; --paper: #f8f7f2; --cream: #eeeee5; --line: #dedfd4; --gold: #d6be8a; --dark: #171e19; --moss: #29301f; --olive: #5c6346; --serif: "Cormorant Garamond", Georgia, serif; --sans: "DM Sans", Arial, sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; accent-color: var(--olive); }
body { margin: 0; background: var(--paper); color: var(--ink); caret-color: var(--olive); font: 16px/1.6 var(--sans); }
body:has(dialog[open]) { overflow: hidden; }
::selection { background: var(--gold); color: var(--dark); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.04; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(42px, 6vw, 76px); letter-spacing: -.03em; }
h2, .h2 { font-size: clamp(36px, 4.6vw, 56px); letter-spacing: -.01em; }
h3, .h3 { font-size: 27px; letter-spacing: 0; }
em { color: var(--olive); font-weight: 500; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: absolute; left: 8px; top: -60px; z-index: 9; padding: 12px 16px; background: var(--dark); color: #fff; }
.skip:focus { top: 8px; }
.lead { max-width: 52ch; margin: 20px 0 28px; color: var(--muted); font-size: 17px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; background: var(--moss); color: #fff; transition: background .2s; }
.button:hover { background: #454f35; }
.button:disabled { background: #e3e3da; color: var(--muted); cursor: not-allowed; }
.section { padding: clamp(56px, 8vw, 104px) 5vw; }
.notice { margin: 20px 0; padding: 16px 20px; background: var(--cream); border: 1px solid var(--line); }
.notify { display: grid; gap: 12px; margin: 20px 0; padding: 18px 20px; background: var(--cream); border: 1px solid var(--line); }
.notify p { margin: 0; }
.notify small { color: var(--muted); }
.notify .error { color: #8a2d1c; font-weight: 600; }

.announcement { margin: 0; padding: 9px; background: var(--dark); color: #fff; text-align: center; font-size: 13px; }
header { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 0 5vw; background: var(--paper); border-bottom: 1px solid var(--line); }
.brand { font-family: var(--serif); font-weight: 600; font-size: 25px; line-height: 1.3; letter-spacing: .09em; white-space: nowrap; }
.brand small { display: block; font: 12px var(--sans); letter-spacing: .25em; }
nav#nav { display: flex; gap: 34px; margin: 0 auto; }
nav#nav a { padding: 10px 0; border-bottom: 1px solid transparent; }
nav#nav a:hover { border-color: var(--olive); }
header button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 48px; height: 48px; }
#cart-count { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--dark); color: #fff; font-size: 13px; font-variant-numeric: tabular-nums; }
#menu { display: none; }

.hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; min-height: min(720px, 88vh); padding: 40px 5vw; overflow: hidden; background: radial-gradient(ellipse 60% 70% at 72% 55%, #f4f3ec 0%, #e9e7db 70%); }
.hero h1 { font-size: clamp(56px, 8vw, 112px); letter-spacing: -.02em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.link { padding: 12px 0; border-bottom: 1px solid var(--ink); }
.link:hover { color: var(--olive); border-color: var(--olive); }
.hero-art { position: relative; height: min(600px, 70vh); }
.hero-art::before { content: ""; position: absolute; inset: 8% 6% 4% 10%; border: 1px solid rgb(92 99 70 / .28); border-radius: 50%; }
.hero-art img { position: absolute; mix-blend-mode: multiply; filter: brightness(1.06); }
.hero-art .front { left: 50%; bottom: -6%; width: 92%; translate: -50% 0; z-index: 2; animation: rise 1.1s cubic-bezier(.16, 1, .3, 1) both; }
.hero-art .side { bottom: 4%; width: 62%; opacity: .97; animation: rise 1.1s .12s cubic-bezier(.16, 1, .3, 1) both; }
.hero-art .left { left: -14%; }
.hero-art .right { right: -14%; }
.hero-price { margin: -12px 0 24px; font-size: 16px; }
.hero-price b { font-size: 20px; }
.hero-picks { display: none; }
@keyframes rise { from { transform: translateY(24px); } }
.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 24px; margin: 0; padding: 22px 5vw; list-style: none; background: #f0f0e9; border-block: 1px solid var(--line); text-align: center; font-size: 15px; }
.statement { display: grid; grid-template-columns: 1fr 1fr; align-items: center; background: #ded8c8; }
.statement img { width: 100%; aspect-ratio: 1; object-fit: cover; mix-blend-mode: multiply; }
.statement > div { padding: 48px 8vw 48px 6vw; }
.statement h2 { font-size: clamp(40px, 5vw, 68px); }
.families { padding: clamp(56px, 8vw, 104px) 5vw; background: var(--moss); color: #eeeee5; }
.families em { color: var(--gold); }
.families > div { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; border-top: 1px solid #4d5641; }
.families a { padding: 28px 28px 8px 0; border-right: 1px solid #4d5641; }
.families a + a { padding-left: 32px; }
.families a:last-child { border-right: 0; }
.families h3 { font-size: 38px; color: #fff; transition: color .2s; }
.families a:hover h3 { color: var(--gold); }
.families p { color: #c9ccbd; }
.intro { display: grid; grid-template-columns: 1fr 1.4fr; gap: 6vw; }
.intro p { max-width: 62ch; margin-top: 0; color: var(--muted); }
.closing { padding: clamp(64px, 9vw, 120px) 5vw; background: #20291f; color: #fff; text-align: center; }
.closing h2 { margin-bottom: 32px; font-size: clamp(40px, 6vw, 76px); }
.closing em { color: var(--gold); }
.button.light { background: var(--paper); color: var(--ink); }
.button.light:hover { background: #fff; }

.filters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.tools-toggle { display: none; }
.tool-fields { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tabs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0 28px; border-bottom: 1px solid var(--line); }
.tabs > * { display: inline-flex; align-items: center; min-height: 48px; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs [aria-current], .tabs [aria-pressed=true] { color: var(--ink); border-color: var(--ink); }
label { display: block; font-size: 14px; color: var(--muted); }
input:not([type=radio]), select, textarea { display: block; width: 100%; min-height: 48px; margin-top: 5px; padding: 11px 13px; border: 1px solid #a9ad9d; border-radius: 0; background: #fff; color: var(--ink); font-size: 16px; }
::placeholder { color: #6d7166; opacity: 1; }

.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 24px; margin-top: 12px; }
h2 + .products { margin-top: 36px; }
.card { display: flex; flex-direction: column; min-width: 0; }
.card-photo { position: relative; margin-bottom: 16px; overflow: hidden; background: #ecebe3; }
.card-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; mix-blend-mode: multiply; transition: scale .6s cubic-bezier(.16, 1, .3, 1); }
.card:hover .card-photo img { scale: 1.04; }
.heart { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 48px; height: 48px; }
.heart[aria-pressed=true] svg { fill: var(--olive); stroke: var(--olive); }
.card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.card p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.product-ref { color: var(--olive); font-style: italic; }
.card .card-ref { margin: 0 0 4px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--olive); }
.card-ref b { display: block; margin-top: 2px; font: 500 24px/1.1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--ink); }
.card .card-ref + h3 { font: 600 15px/1.3 var(--sans); }
.card-buy { margin-top: auto; padding-top: 12px; }
.card .price { margin-bottom: 12px; }
.price { font-size: 19px; color: var(--ink) !important; font-variant-numeric: tabular-nums; }
.card .price { font-size: 19px; }
.price s { font-size: 14px; color: var(--muted); }
.price small { display: block; font-size: 13px; color: var(--muted); }
.card-buy .button { width: 100%; padding: 0 10px; }

.crumbs { padding: 20px 5vw 0; font-size: 14px; color: var(--muted); }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: start; padding: 24px 5vw 0; }
.product-photo { position: sticky; top: 100px; background: #ecebe3; }
.product-photo img { width: 100%; mix-blend-mode: multiply; }
.product h1 { font-size: clamp(40px, 5vw, 64px); }
.product-ref { margin: 8px 0 20px; font: italic 500 28px var(--serif); }
.notes { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.notes li { padding: 8px 14px; border: 1px solid var(--line); }
.price.big { margin: 28px 0 16px; font-size: 30px; }
.product .button { width: 100%; max-width: 420px; }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; background: #eaece2; }
.about p:first-child { margin-top: 0; }
.faq { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
details { border-bottom: 1px solid var(--line); }
summary { padding: 18px 0; font: 600 22px var(--serif); cursor: pointer; }
details p { max-width: 65ch; margin: 0 0 20px; color: var(--muted); }
footer { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.6fr; gap: 32px; padding: 56px 5vw; background: var(--dark); color: #e8e8de; }
footer p { margin: 0; }
footer p a { display: block; padding: 8px 0; }
footer a:hover { color: var(--gold); }
.legal { font-size: 13px; color: #b9bcae; }

dialog { width: min(500px, 100%); max-width: none; height: 100dvh; max-height: none; margin: 0 0 0 auto; padding: 0; border: 0; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: rgb(12 16 13 / .6); }
dialog[open] { animation: slide .45s cubic-bezier(.16, 1, .3, 1); }
@keyframes slide { from { transform: translateX(60px); } }
.cart-body { padding: 24px; }
.cart-head { display: flex; align-items: center; justify-content: space-between; }
.cart-head h2 { font-size: 40px; }
#close-cart { display: grid; place-items: center; width: 48px; height: 48px; }
#cart-items { margin: 0; padding: 0; list-style: none; }
#cart-items li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
#cart-items img { object-fit: cover; mix-blend-mode: multiply; }
#cart-items small { display: block; font-size: 14px; color: var(--muted); }
.qty { display: flex; align-items: center; gap: 14px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.qty button { width: 44px; height: 44px; border: 1px solid #a9ad9d; }
.qty button:disabled { opacity: .4; cursor: not-allowed; }
.empty { color: var(--muted); }
#order-form { display: grid; gap: 16px; margin-top: 28px; }
fieldset { margin: 0; padding: 0; border: 0; }
legend { padding: 0; font-size: 14px; color: var(--muted); }
fieldset label { display: flex; align-items: center; gap: 10px; min-height: 48px; font-size: 16px; color: var(--ink); }
fieldset label span { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
input[type=radio] { width: 22px; height: 22px; margin: 0; }
dl { margin: 0; padding: 14px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 4px 0; }
dd { margin: 0; text-align: right; }
dd strong { font-size: 28px; font-weight: 600; font-family: var(--serif); }
#order-form p { margin: 0; font-size: 14px; color: var(--muted); }
#order-form .form-help { margin-top: -8px; }
.reassure { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink); }
.reassure li { display: flex; gap: 10px; }
.reassure span { flex: none; }
#order-form #order-message { color: #8a2d1c; font-weight: bold; }

@media (max-width: 1100px) { .products { grid-template-columns: repeat(3, minmax(0, 1fr)); } footer { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  nav#nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 5vw 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
  nav#nav.open { display: flex; }
  nav#nav a { padding: 13px 0; }
  #open-cart { margin-left: auto; }
  #menu { display: inline-flex; }
}
@media (max-width: 700px) {
  .brand { font-size: 19px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 0; padding-top: 32px; }
  .hero { padding: 24px 5vw 28px; background: #ecebe1; }
  .hero h1 { font-size: 46px; }
  .hero .lead { margin: 12px 0 18px; font-size: 16px; }
  .hero-price { margin: 0 0 16px; }
  .hero-actions .link { display: none; }
  .hero-actions .button { width: 100%; }
  .hero-art { display: none; }
  .hero-picks { display: block; margin-top: 24px; }
  .hero-picks h2 { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
  .hero-picks > div { display: flex; gap: 12px; margin: 12px 0 14px; padding-bottom: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .hero-picks > div a { flex: 0 0 38%; scroll-snap-align: start; display: grid; gap: 2px; font-size: 14px; line-height: 1.3; }
  .hero-picks a > div { margin-bottom: 6px; }
  .hero-picks img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; mix-blend-mode: multiply; }
  .hero-picks span { font-family: var(--serif); font-size: 18px; font-weight: 600; }
  .hero-picks small { color: var(--muted); font-size: 12px; }
  .hero-picks .ref { color: var(--olive); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
  .about, .faq, .filters, .product, .statement, .intro, .families > div { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .promises { grid-template-columns: 1fr 1fr; text-align: left; }
  .families a, .families a + a { padding: 20px 0; border-right: 0; border-bottom: 1px solid #4d5641; }
  .tabs { gap: 0 22px; }
  .tools-toggle { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 0 16px; background: #fff; border: 1px solid var(--line); font: inherit; color: var(--ink); }
  .tools-toggle::after { content: "+"; font-size: 22px; line-height: 1; }
  .tools-toggle[aria-expanded=true]::after { content: "−"; }
  .tool-fields { display: none; grid-template-columns: minmax(0, 1fr); }
  .tool-fields.open { display: grid; }
  #collection > .notice { margin: 14px 0; padding: 10px 14px; font-size: 14px; }
  .product-photo { position: relative; top: 0; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 14px; }
  .card h3 { font-size: 20px; }
  .card-ref b { font-size: 21px; }
}
@media (max-width: 480px) { footer { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
@media (max-width: 700px) {
  .buy { position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 16px; margin: 20px -5vw 0; padding: 12px 5vw; background: var(--paper); border-top: 1px solid var(--line); }
  .buy .price.big { flex: 1; margin: 0; font-size: 21px; white-space: nowrap; }
  .buy .price s { font-size: 13px; }
  .buy .price small { display: none; }
  .product .buy .button { width: auto; }
}

/* shortcut: la photo du flacon noir fait 510 px, on la limite pour rester nette ; à retirer avec une photo HD. */
.product-photo img[src$="homme-30ml.jpg"] { max-width: 300px; margin: 0 auto; }
/* Photos mises en scène (fond complet, olfazeta-NNN.jpg) : pas de fondu dans la couleur de la carte.
   Les flacons détourés sur fond blanc (…-30ml.jpg, …-50ml.jpg) gardent le fondu. */
.card-photo img:not([src$="ml.jpg"]), .product-photo img:not([src$="ml.jpg"]), .hero-picks img:not([src$="ml.jpg"]), #cart-items img:not([src$="ml.jpg"]) { mix-blend-mode: normal; }
:is(.card-photo, .product-photo):has(img:not([src$="ml.jpg"])) :is(.number, .heart) { color: #fff; text-shadow: 0 1px 8px rgb(0 0 0 / .7); filter: drop-shadow(0 1px 3px rgb(0 0 0 / .5)); }
.inline { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.inline:hover { color: var(--olive); }
/* Une teinte par famille olfactive (les flacons sont identiques d'un numéro à l'autre). */
[data-tone] { --tone: #ecebe3; --tone-ink: #5d6156; background: var(--tone) !important; }
[data-tone="floral"] { --tone: #f2e2df; --tone-ink: #8a4f4a; }
[data-tone="ambre"] { --tone: #f1e3c8; --tone-ink: #80602a; }
[data-tone="bois"] { --tone: #e0e3d2; --tone-ink: #4f5a3a; }
[data-tone="aroma"] { --tone: #dde6e6; --tone-ink: #3f5d61; }
[data-tone="epice"] { --tone: #ead8cc; --tone-ink: #7a4630; }
.number { position: absolute; left: 14px; bottom: 10px; font: 500 30px/1 var(--serif); letter-spacing: .02em; color: var(--tone-ink); pointer-events: none; }
.product-photo .number { left: 24px; bottom: 18px; font-size: 52px; }
.notes.small { gap: 6px; margin: 10px 0 0; }
.notes.small li { padding: 3px 9px; font-size: 13px; color: var(--muted); border-color: var(--line); background: #fff; }
@media (max-width: 700px) { .number { left: 10px; bottom: 6px; font-size: 21px; } .product-photo .number { font-size: 38px; } }

/* Mode sombre automatique (suit le réglage du téléphone).
   Les fonds derrière les photos restent clairs : les flacons détourés s'y fondent (multiply). */
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --ink: #ecebe3; --muted: #a9ad9d; --paper: #121612; --cream: #1b211b; --line: #2f362e; --dark: #0b0e0b; --olive: #c2c99a; }
  html { accent-color: var(--gold); }
  .button { background: var(--gold); color: #171e19; }
  .button:hover { background: #e6d2a6; }
  .button:disabled { background: #2a302a; color: var(--muted); }
  .button.light { background: #ecebe3; color: #171e19; }
  .button.light:hover { background: #fff; }
  #cart-count { background: var(--gold); color: #171e19; }
  .hero { background: radial-gradient(ellipse 60% 70% at 72% 55%, #1e251d 0%, #121612 70%); }
  .hero-art::before { inset: 2% -12% -8% 4%; background: radial-gradient(circle at 50% 45%, #f4f3ec 0%, #e3e0d2 75%); border-color: transparent; }
  .promises, .about { background: var(--cream); }
  /* Bloc photo + texte : il garde son fond clair, donc ses couleurs claires. */
  .statement { --ink: #20241f; --muted: #5d6156; --olive: #5c6346; color: var(--ink); }
  input:not([type=radio]), select, textarea, .tools-toggle { background: #1a1f1a; border-color: #4a5248; }
  ::placeholder { color: #858a7c; }
  .qty button { border-color: #4a5248; }
  .notes.small li { background: transparent; }
  [data-tone] .heart { color: #20241f; }
  #cart-items img { mix-blend-mode: normal; }
  .notify .error, #order-form #order-message { color: #ff9a85; }
  dialog::backdrop { background: rgb(0 0 0 / .7); }
}
@media (prefers-color-scheme: dark) and (max-width: 700px) {
  .hero { background: #161b16; }
}

/* Concentration, sur la fiche parfum. */
.wa-inline { display: none; }
.extrait { margin: 0 0 4px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--olive); }
/* WhatsApp flottant, aux couleurs du site. Sur mobile, il passe au-dessus de la barre d'achat de la fiche ;
   le panier (fenêtre modale) le recouvre. */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 4; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--moss); color: #fff; box-shadow: 0 6px 18px rgb(0 0 0 / .22); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }
@media (max-width: 700px) {
  body:has(.buy) .wa-float { display: none; }
  .wa-inline { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); }
  .buy { gap: 10px; }
  .buy .price.big s { display: block; font-size: 13px; line-height: 1.2; }
  .buy .button { padding: 0 14px; white-space: nowrap; }
  footer { padding-bottom: 96px; }
}
@media (prefers-color-scheme: dark) { .wa-float { background: var(--gold); color: #171e19; } }
