/* Formosa Bridge
   Direction : bordure "par avion" rouge, blanc, bleu (enveloppes et baches des marches de nuit).
   Une seule note forte (les rayures), le reste est blanc et bleu nuit.
   Mise en page : colonne de texte a gauche, etiquette de colis a droite. */
:root {
  /* Direction : l'emblème de la marque (crème, brun olive, vert d'eau).
     Une seule note forte : la bordure "par avion" en vert d'eau et brun. */
  --ink: #3B3017;
  --ink-soft: #6B5C3A;
  --accent: #2F7A68;
  --accent-dark: #25624F;
  --teal: #6D9A86;
  --gold: #D4B25C;
  --warn: #A5482C;
  --paper: #F4E9CF;
  --white: #FFF8E8;
  --line: #E2D5B5;
  --jade: #2F7A68;
  --f-display: 'Fraunces', Georgia, serif;
  --f-body: 'Hanken Grotesk', system-ui, sans-serif;
  --airmail: repeating-linear-gradient(-45deg, var(--teal) 0 14px, var(--white) 14px 28px, var(--ink) 28px 42px, var(--white) 42px 56px);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
main:focus { outline: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.stripe { height: 7px; background: var(--airmail); }
.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border: 0; border-radius: 6px; font-weight: 600; cursor: pointer;
}
.skip:focus { top: 8px; }

/* ---------- Header ---------- */
.announce { background: var(--ink); color: var(--white); font-size: 14px; padding: 6px 0; }
.announce-in { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 16px; }
.prefs { display: flex; gap: 10px; }
.announce .seg { border-color: rgba(255, 248, 232, .35); }
.announce .seg button { color: #E6D9B8; padding: 3px 10px; font-size: 13px; }
.announce .seg button[aria-pressed="true"] { background: var(--white); color: var(--ink); }
.hdr { position: sticky; top: 0; z-index: 30; background: var(--white); border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 24px; letter-spacing: 0; line-height: 1; white-space: nowrap; }
.logo-img { display: block; width: 56px; height: 56px; mix-blend-mode: multiply; }
.about-logo { display: block; width: min(240px, 100%); height: auto; mix-blend-mode: multiply; margin: 0 auto 16px; }
.nav { display: flex; gap: 24px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 16px; padding: 6px 0; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--line); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.tools { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 6px 12px; font-weight: 700; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; cursor: pointer; color: var(--ink); }
.icon-btn:hover { background: var(--paper); }
.count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--white); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.count[hidden] { display: none; }
.menu-btn { display: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 999px; border: 2px solid transparent; font: 700 17px var(--f-body); text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.btn-red { background: var(--accent); color: var(--white); }
.btn-red:hover { background: var(--accent-dark); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--white); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-mini { border: 1.5px solid var(--ink); background: transparent; color: var(--ink); border-radius: 999px; padding: 7px 14px; font: 600 14px var(--f-body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.btn-mini:hover { background: var(--ink); color: var(--white); }
.btn-mini[disabled] { opacity: .45; cursor: not-allowed; }
.btn-mini[disabled]:hover { background: transparent; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.hero h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(46px, 7.2vw, 100px); line-height: 1; letter-spacing: -.015em; }
.lead { margin-top: 24px; max-width: 34em; font-size: 20px; line-height: 1.5; color: var(--ink-soft); }
.cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.label { background: var(--airmail); padding: 12px; border-radius: 4px; box-shadow: 0 24px 44px -26px rgba(59, 48, 23, .55); transform: rotate(1.5deg); }
.label-in { background: var(--white); padding: 22px 26px 24px; display: grid; gap: 18px; }
.label-top { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 18px; }
.label-top .r { color: var(--ink-soft); font-weight: 600; font-size: 16px; }
.route { width: 100%; height: auto; display: block; }
.route text { font-family: var(--f-body); font-size: 14px; font-weight: 700; fill: var(--ink); }
.label dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; font-size: 16px; }
.label dt { color: var(--ink-soft); }
.label dd { margin: 0; font-weight: 600; }
.barcode { height: 40px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 6px, transparent 6px 9px, var(--ink) 9px 12px, transparent 12px 14px); }
.barcode-code { font-size: 13px; letter-spacing: .18em; color: var(--ink-soft); margin-top: -8px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head h2, .page-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(38px, 5vw, 60px); line-height: 1; }
.section-head p { color: var(--ink-soft); margin-top: 8px; }
.link-arrow { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.rayons { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.rayon { display: block; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; text-decoration: none; transition: background .15s, color .15s; }
.rayon .art { border-radius: 0; aspect-ratio: 4 / 3; }
.rayon-text { display: block; padding: 14px 16px 16px; }
.rayon strong { display: block; font-size: 19px; }
.rayon small { color: var(--ink-soft); font-size: 14px; }
.rayon:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.rayon:hover small { color: #E6D9B8; }

/* ---------- Product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px 20px; }
.pcard-link { display: block; text-decoration: none; }
.art { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--paper); }
.art svg, .art img { display: block; width: 100%; height: 100%; }
.art img { object-fit: cover; }
.pcard h3 { font-size: 16px; font-weight: 600; line-height: 1.35; margin: 12px 0 8px; }
.pcard-link:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.pcard-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.price { font-weight: 700; font-variant-numeric: tabular-nums; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--white); color: var(--ink); font: 700 13px var(--f-body); padding: 4px 10px; border-radius: 999px; }

/* ---------- Bridge steps ---------- */
.bridge { background: var(--ink); color: var(--white); }
.bridge h2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(38px, 5vw, 60px); line-height: 1; max-width: 14em; margin-bottom: 48px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; list-style: none; margin: 0; padding: 0; }
.step { position: relative; padding-top: 64px; }
.node { position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.step::before { content: ''; position: absolute; top: 21px; left: 56px; right: -28px; border-top: 2px dashed rgba(255, 255, 255, .4); }
.step:last-child::before { display: none; }
.step h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.step p { color: #E6D9B8; max-width: 24em; }

/* ---------- Shop ---------- */
.page-head { padding: 48px 0 24px; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin: 24px 0 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); text-decoration: none; font-weight: 600; font-size: 15px; transition: background .15s; }
.chip:hover { background: var(--paper); }
.chip[aria-current="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.sort { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-soft); }
.sort select { font: 600 15px var(--f-body); color: var(--ink); background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 14px; }
.meta { color: var(--ink-soft); font-size: 15px; margin-top: 8px; }
.empty-note { padding: 48px 0; color: var(--ink-soft); }

/* ---------- Product page ---------- */
.back { display: inline-block; margin: 28px 0 20px; font-weight: 600; text-underline-offset: 4px; }
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; padding-bottom: 72px; }
.pdp .art { border-radius: 8px; }
.pdp h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(36px, 4.5vw, 58px); line-height: 1; margin: 6px 0 16px; }
.pdp .price-big { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pdp .desc { margin-top: 16px; color: var(--ink-soft); max-width: 32em; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 0; margin: 24px 0; border-top: 1px solid var(--line); }
.specs dt, .specs dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--ink-soft); padding-right: 24px; }
.specs dd { font-weight: 600; }
.field-label { display: block; font-weight: 700; margin-bottom: 10px; }
.fs { border: 0; padding: 0; margin: 0 0 20px; }
.fs legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
.sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.size { position: relative; }
.size input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.size span { display: grid; place-items: center; min-width: 52px; height: 44px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 8px; font-weight: 700; }
.size input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.size input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.buy-row { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; margin-top: 8px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.qty button { width: 44px; height: 48px; border: 0; background: transparent; font-size: 22px; cursor: pointer; border-radius: 999px; color: var(--ink); }
.qty button:hover { background: var(--paper); }
.qty output, .qty input { min-width: 32px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.qty input { width: 40px; border: 0; background: transparent; font: 700 17px var(--f-body); color: var(--ink); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.avail { margin: 16px 0 4px; font-weight: 700; color: var(--jade); }
.pdp .note { color: var(--ink-soft); font-size: 15px; }
.price-big + .note { margin-top: 2px; }
.stock.ok { color: var(--jade); }
.stock.low { color: var(--warn); }
.promises { list-style: none; margin: 28px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.promises li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.promises li::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.related { border-top: 1px solid var(--line); padding-top: 56px; }

/* ---------- About / FAQ ---------- */
.prose { max-width: 40em; }
.prose p { font-size: 19px; line-height: 1.65; margin-top: 20px; }
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: start; padding: 24px 0 88px; }
.about-card { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 28px; }
.about-card h2 { font-family: var(--f-display); font-weight: 700; font-size: 32px; margin-bottom: 12px; }
.about-card ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.faq { max-width: 46em; padding-bottom: 88px; }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { font-weight: 700; font-size: 19px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 26px; line-height: 1; color: var(--accent); }
details[open] summary::after { content: '\2013'; }
details p { margin-top: 12px; color: var(--ink-soft); max-width: 38em; }

/* ---------- Footer ---------- */
.ftr { background: var(--white); }
.ftr .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-block: 56px 40px; }
.ftr .logo { font-size: 22px; }
.ftr p { color: var(--ink-soft); margin-top: 12px; max-width: 22em; }
.ftr h2 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ftr li a { text-decoration: none; color: var(--ink-soft); }
.ftr li a:hover { color: var(--ink); text-decoration: underline; }
.legal { border-top: 1px solid var(--line); padding: 20px var(--gutter); text-align: center; font-size: 14px; color: var(--ink-soft); }

/* ---------- Cart drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(59, 48, 23, .55); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--white); z-index: 41; display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility 0s .25s; }
#drawer-root.open .overlay { opacity: 1; pointer-events: auto; }
#drawer-root.open .drawer { transform: none; visibility: visible; transition-delay: 0s; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-family: var(--f-display); font-weight: 700; font-size: 30px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer-foot { padding: 18px 20px 22px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.sub-row { display: flex; justify-content: space-between; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.note { font-size: 14px; color: var(--ink-soft); }
.line { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line .art { border-radius: 4px; }
.line h3 { font-size: 15px; font-weight: 600; line-height: 1.3; }
.line .sz { font-size: 14px; color: var(--ink-soft); }
.line-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; }
.line .qty button { width: 34px; height: 34px; font-size: 18px; }
.line .qty output { min-width: 24px; }
.link-btn { border: 0; background: none; padding: 0; color: var(--ink-soft); font-size: 14px; text-decoration: underline; cursor: pointer; text-underline-offset: 3px; }
.link-btn:hover { color: var(--accent); }
.cart-empty { padding: 56px 0; text-align: center; color: var(--ink-soft); display: grid; gap: 20px; justify-items: center; }

/* ---------- Checkout dialog ---------- */
dialog { border: 0; border-radius: 10px; padding: 0; background: var(--white); width: calc(100% - 32px); max-width: 540px; color: var(--ink); }
dialog::backdrop { background: rgba(59, 48, 23, .6); }
.dlg { padding: 28px; display: grid; gap: 16px; }
.dlg h2 { font-family: var(--f-display); font-weight: 700; font-size: 34px; line-height: 1; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dlg label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.dlg input, .dlg select { width: 100%; font: 16px var(--f-body); padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); }
.dlg .msg-label { margin-top: 4px; }
.dlg textarea { width: 100%; min-height: 180px; padding: 14px; border: 1.5px solid var(--line); border-radius: 8px; font: 15px/1.5 var(--f-body); color: var(--ink); background: var(--paper); resize: vertical; }
.dlg-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--white); padding: 12px 20px; border-radius: 999px; font-weight: 600; z-index: 60; }
.toast[hidden] { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .menu-btn { display: inline-grid; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
  .hdr.open .nav { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--accent); }
}
@media (max-width: 860px) {
  .hero { padding: 36px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .pdp, .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .step::before { display: none; }
  .ftr .wrap { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 0; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .logo { font-size: 20px; }
  .logo-img { width: 48px; height: 48px; }
  .hdr .wrap { gap: 12px; }
  .ftr .wrap { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .rayons { grid-template-columns: repeat(2, 1fr); }
  .rayon:last-child { grid-column: 1 / -1; }
  .rayon:last-child .art { aspect-ratio: 2 / 1; }
  .announce-in { justify-content: center; text-align: center; }
  .pcard-foot { flex-direction: column; align-items: flex-start; }
  .label { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
