/* Cadeau Femme — « Écrin bordeaux » */
:root {
  --bg: #F7EEEA;
  --bg-alt: #EFE2DC;
  --wine: #6E1E2B;
  --wine-deep: #521620;
  --rose: #D9A5A0;
  --gold: #C9A961;
  --gold-text: #7D6122; /* or assombri pour le texte sur fond clair (AA) */
  --ink: #1E1A1A;
  --ink-soft: #4A4140;
  --line: rgba(110, 30, 43, .16);
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --measure: 46rem;
  --wide: 76rem;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wine); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--wine-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--wine); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--wine); line-height: 1.12; font-weight: 600; margin: 0 0 .6em; letter-spacing: -.005em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-top: 2.4em; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-style: italic; margin-top: 1.8em; }
p { margin: 0 0 1.25em; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), var(--measure)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header { background: var(--wine); color: var(--bg); position: relative; z-index: 50; border-bottom: 3px solid var(--gold); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.4rem; }
.logo { font-family: var(--serif); font-size: 1.85rem; font-weight: 600; color: var(--bg); text-decoration: none; letter-spacing: .01em; line-height: 1; }
.logo em { font-style: italic; color: var(--gold); font-weight: 500; }
.logo:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(247,238,234,.5); color: var(--bg); font: inherit; font-size: .95rem; padding: .45rem .9rem; border-radius: 2px; cursor: pointer; }
.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.8rem; align-items: center; }
.nav a { color: var(--bg); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--gold); }
.nav .has-sub { position: relative; }
.nav .has-sub > button { background: none; border: 0; color: var(--bg); font: inherit; font-size: .95rem; font-weight: 500; cursor: pointer; padding: 0; }
.nav .has-sub > button:hover { color: var(--gold); }
.nav .has-sub > button::after { content: ''; display: inline-block; width: .42em; height: .42em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: .5em; }
.nav .sub { position: absolute; top: calc(100% + 1.1rem); left: -1rem; background: var(--bg); border-top: 3px solid var(--gold); min-width: 17rem; padding: .6rem 0; box-shadow: 0 18px 40px -18px rgba(30,10,15,.5); display: none; flex-direction: column; align-items: stretch; gap: 0; }
.nav .sub li { display: block; }
.nav .has-sub.open > .sub { display: flex; }
.nav .sub a { display: block; color: var(--ink); padding: .55rem 1.3rem; font-size: .95rem; }
.nav .sub a:hover { background: var(--bg-alt); color: var(--wine); }
.nav .sub .all a { color: var(--wine); font-weight: 700; border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .8rem; }
@media (min-width: 62.01rem) { .nav .has-sub:hover > .sub, .nav .has-sub:focus-within > .sub { display: flex; } }

@media (max-width: 62rem) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--wine-deep); padding: 1rem var(--gutter) 1.5rem; flex-direction: column; align-items: stretch; border-bottom: 3px solid var(--gold); }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li > a, .nav .has-sub > button { display: block; width: 100%; text-align: left; padding: .85rem 0; border-bottom: 1px solid rgba(247,238,234,.14); font-size: 1.05rem; }
  .nav .sub { position: static; background: transparent; box-shadow: none; border: 0; padding: 0 0 .5rem 1rem; min-width: 0; }
  .nav .sub a { color: var(--bg); padding: .5rem 0; }
  .nav .sub a:hover { background: none; color: var(--gold); }
  .nav .sub .all a { margin-top: 0; color: var(--gold); border-top-color: rgba(247,238,234,.2); }
}

/* ---------- Heroes (bandeau bord à bord) ---------- */
.img-hero { aspect-ratio: 16/9; overflow: hidden; max-height: min(75vh, 44vw); width: 100%; background: var(--bg-alt); }
.img-card { aspect-ratio: 3/2; overflow: hidden; background: var(--bg-alt); }
.img-body { aspect-ratio: 3/2; overflow: hidden; background: var(--bg-alt); border-radius: 2px; }
.img-hero img, .img-card img, .img-body img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
@media (max-width: 40rem) { .img-hero { max-height: none; aspect-ratio: 4/3; } }

.page-head { padding: clamp(2rem, 5vw, 3.6rem) 0 1.4rem; }
.page-head h1 { margin-bottom: .35em; max-width: 20ch; }
.page-head .lead { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.4; color: var(--ink-soft); font-style: italic; max-width: 36em; margin: 0; }
.home-head h1 { max-width: 22ch; }

/* ---------- Kicker, méta ---------- */
.kicker { font-family: var(--serif); font-variant-caps: all-small-caps; letter-spacing: .09em; font-size: 1.2rem; font-weight: 700; color: var(--gold-text); margin: 0 0 .6rem; display: flex; align-items: center; gap: .7rem; }
.kicker::before { content: ''; width: 2.2rem; height: 1px; background: var(--gold); flex: none; }
.meta { font-size: .9rem; color: var(--ink-soft); margin: 1.1rem 0 0; }
.meta time { font-weight: 600; color: var(--ink); }

/* ---------- Séparateur ruban ---------- */
.ribbon, .article-body hr { border: 0; height: 24px; margin: 3rem auto; background: url('/images/ribbon.svg') center / 240px 24px no-repeat; }

/* ---------- Article ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 64rem) { .article-layout { grid-template-columns: 15rem minmax(0, var(--measure)); justify-content: center; gap: 4rem; } .toc { position: sticky; top: 1.5rem; align-self: start; } }
.toc { border-left: 2px solid var(--gold); padding: .2rem 0 .2rem 1.2rem; font-size: .93rem; line-height: 1.45; }
.toc strong { display: block; font-family: var(--serif); font-size: 1.25rem; color: var(--wine); margin-bottom: .6rem; font-weight: 600; }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc li { margin-bottom: .55rem; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--wine); text-decoration: underline; }

.article-body { font-size: 1.125rem; line-height: 1.78; min-width: 0; }
.article-body > p:first-of-type::first-letter { font-family: var(--serif); font-weight: 600; color: var(--wine); float: left; font-size: 5.2rem; line-height: .78; padding: .32rem .7rem 0 0; }
.article-body h2 { padding-top: .2em; }
.article-body h2::before { content: ''; display: block; width: 3rem; height: 2px; background: var(--gold); margin-bottom: 1rem; }
.article-body ul, .article-body ol { padding-left: 0; list-style: none; margin: 0 0 1.5em; }
.article-body ul > li { position: relative; padding-left: 1.7rem; margin-bottom: .6em; }
.article-body ul > li::before { content: ''; position: absolute; left: .15rem; top: .72em; width: .5rem; height: .5rem; background: var(--gold); transform: rotate(45deg); }
.article-body ol { counter-reset: idee; }
.article-body ol > li { counter-increment: idee; position: relative; padding: .2rem 0 1rem 3.4rem; margin-bottom: .4rem; border-bottom: 1px solid var(--line); }
.article-body ol > li::before { content: counter(idee); position: absolute; left: 0; top: -.15rem; font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--gold-text); font-weight: 500; font-style: italic; }
.article-body blockquote { margin: 2.6rem 0; padding: 2rem 1.6rem; background: var(--wine); color: var(--bg); font-family: var(--serif); font-style: italic; font-size: clamp(1.45rem, 2.6vw, 1.95rem); line-height: 1.38; text-align: center; border-top: 3px solid var(--gold); border-bottom: 3px solid var(--gold); }
@media (min-width: 64rem) { .article-body blockquote { margin-inline: -3rem; padding-inline: 3rem; } }
.article-body blockquote p { margin: 0; }
.article-body blockquote cite { display: block; font-style: normal; font-family: var(--sans); font-size: .85rem; color: var(--rose); margin-top: 1rem; }
.article-body figure { margin: 2.4rem 0; }
.article-body figcaption { font-size: .88rem; color: var(--ink-soft); margin-top: .6rem; font-style: italic; }

/* Tableaux */
.table-wrap { overflow-x: auto; margin: 2rem 0; border-top: 2px solid var(--wine); border-bottom: 2px solid var(--wine); }
table { border-collapse: collapse; width: 100%; font-size: .98rem; min-width: 30rem; }
th { font-family: var(--serif); font-size: 1.15rem; text-align: left; color: var(--wine); background: var(--bg-alt); padding: .8rem 1rem; border-bottom: 1px solid var(--gold); font-weight: 700; }
td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: rgba(239,226,220,.45); }

/* ---------- FAQ ---------- */
.faq { margin: 3rem 0 1rem; }
.faq h2 { margin-top: 0; }
.faq h2::before { display: none; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--gold); }
.faq summary { list-style: none; cursor: pointer; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--wine); padding: 1.05rem 2.4rem 1.05rem 0; position: relative; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: .2rem; top: .75rem; font-size: 1.8rem; color: var(--gold-text); font-weight: 400; }
.faq details[open] summary::after { content: '\2212'; }
.faq .answer { padding: 0 0 1.1rem; color: var(--ink-soft); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 2.4rem 2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18.5rem), 1fr)); }
.card { display: flex; flex-direction: column; position: relative; }
.card .img-card { margin-bottom: 1.1rem; }
.card .img-card img { transition: transform .6s ease; }
.card:hover .img-card img { transform: scale(1.035); }
.card .kicker { font-size: 1.1rem; margin-bottom: .45rem; }
.card h3 { font-style: normal; font-size: 1.55rem; margin: 0 0 .5rem; line-height: 1.15; }
.card h3 a { text-decoration: none; color: var(--wine); }
.card h3 a::after { content: ''; position: absolute; inset: 0; }
.card p { font-size: .96rem; color: var(--ink-soft); margin: 0 0 .7rem; line-height: 1.6; }
.card time { font-size: .84rem; color: var(--ink-soft); font-weight: 600; margin-top: auto; }

/* ---------- Filtre ---------- */
.filterbar { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0 0 2.2rem; }
.filterbar button { font: inherit; font-size: .9rem; font-weight: 600; padding: .5rem 1.05rem; border: 1px solid var(--wine); background: transparent; color: var(--wine); border-radius: 999px; cursor: pointer; }
.filterbar button:hover { background: var(--bg-alt); }
.filterbar button[aria-pressed="true"] { background: var(--wine); color: var(--bg); }
[hidden] { display: none !important; }

/* ---------- Sections ---------- */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section.alt { background: var(--bg-alt); }
.section-head { margin-bottom: 2.2rem; max-width: 40rem; }
.section-head h2 { margin-top: 0; }
.regions { display: grid; gap: 0 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); border-top: 1px solid var(--gold); }
.regions a { display: block; padding: 1.4rem 1rem 1.4rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--serif); font-size: 1.55rem; color: var(--wine); font-weight: 600; line-height: 1.2; }
.regions a span { display: block; font-family: var(--sans); font-size: .86rem; font-weight: 500; color: var(--ink-soft); margin-top: .25rem; }
.regions a:hover { color: var(--wine-deep); background: rgba(217,165,160,.18); padding-left: .6rem; }
.related { padding: 3rem 0 4rem; border-top: 1px solid var(--line); }

.btn { display: inline-block; background: var(--wine); color: var(--bg); padding: .85rem 1.7rem; text-decoration: none; font-weight: 600; font-size: .98rem; border: 1px solid var(--wine); border-radius: 2px; }
.btn:hover { background: var(--wine-deep); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--wine); color: var(--bg); padding: 3.2rem 0 2rem; border-top: 3px solid var(--gold); margin-top: 2rem; }
.site-footer .cols { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); }
@media (max-width: 40rem) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer .logo { display: inline-block; margin-bottom: .8rem; font-size: 1.85rem; }
.site-footer p { color: rgba(247,238,234,.85); font-size: .95rem; max-width: 26rem; }
.site-footer h2 { font-size: 1.25rem; color: var(--gold); margin: 0 0 .8rem; font-style: italic; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: var(--bg); text-decoration: none; font-size: .95rem; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.site-footer .legal { margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(247,238,234,.2); font-size: .85rem; color: rgba(247,238,234,.78); }

/* ---------- Divers ---------- */
.styleguide-note { background: var(--bg-alt); border-left: 3px solid var(--gold); padding: .9rem 1.2rem; font-size: .92rem; margin: 0 0 2rem; }
.notfound { text-align: center; padding: 5rem 0; }
.notfound h1 { margin-inline: auto; }

/* ---------- Pages simples, formulaire, carte, statut de filtre ---------- */
.article-body.plain > p:first-of-type::first-letter { all: unset; }
.article-body.plain { padding-bottom: 3rem; }
.filter-status { font-size: .9rem; color: var(--ink-soft); margin: -1rem 0 1.6rem; min-height: 1.4em; }
.contact-form { display: grid; gap: 1.3rem; max-width: 36rem; margin: 1.5rem 0 1rem; }
.contact-form .field { display: grid; gap: .4rem; }
.contact-form label { font-weight: 600; font-size: .95rem; color: var(--ink); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form select, .contact-form textarea { width: 100%; font: inherit; font-size: 1rem; padding: .75rem .9rem; border: 1px solid rgba(110,30,43,.4); background: #fff; color: var(--ink); border-radius: 2px; }
.contact-form textarea { resize: vertical; min-height: 9rem; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--wine); }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form button.btn { justify-self: start; cursor: pointer; font: inherit; font-weight: 600; }
.contact-form button.btn:disabled { opacity: .6; cursor: wait; }
.form-status { min-height: 1.5em; margin: 0; font-weight: 600; }
.form-status.ok { color: #1f6b3a; }
.form-status.error { color: #9b1c1c; }
.map-wrap { margin: 0 auto; max-width: 64rem; }
.worldmap { width: 100%; height: auto; display: block; background: var(--bg-alt); border-top: 2px solid var(--wine); border-bottom: 2px solid var(--wine); }
.worldmap a { cursor: pointer; }
.worldmap .land { fill: var(--rose); stroke: var(--bg); stroke-width: 1.6; stroke-linejoin: round; transition: fill .2s; }
.worldmap a:hover .land, .worldmap a:focus-visible .land { fill: var(--wine); }
.worldmap a:focus-visible { outline: none; }
.worldmap a:focus-visible .land { stroke: var(--gold); stroke-width: 3; }
.worldmap .lbl { font-family: var(--serif); font-size: 21px; font-weight: 700; fill: var(--wine-deep); pointer-events: none; paint-order: stroke; stroke: rgba(247,238,234,.85); stroke-width: 4px; }
.worldmap a:hover .lbl, .worldmap a:focus-visible .lbl { fill: #fff; stroke: var(--wine); }
.map-legend { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .6rem 2rem; }
.map-legend li a { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.map-legend li span { display: block; font-size: .86rem; color: var(--ink-soft); }
.occasions { display: grid; gap: 1.2rem 2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin-top: 2rem; text-align: left; }
.occasions a { display: block; padding: 1.1rem 0; border-top: 1px solid var(--gold); text-decoration: none; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; line-height: 1.2; }
.occasions a span { display: block; font-family: var(--sans); font-size: .88rem; font-weight: 500; color: var(--ink-soft); margin-top: .25rem; }
/* Tableaux Markdown (non enveloppés) : défilement horizontal sans élargir la page */
.article-body > table { display: block; overflow-x: auto; max-width: 100%; min-width: 0; margin: 2rem 0; border-top: 2px solid var(--wine); border-bottom: 2px solid var(--wine); }
.article-body > table th, .article-body > table td { min-width: 8rem; }
