/* Analogue Atelier — d'après la charte : une couleur à la fois, pas de dégradé, d'ombre ni de contour.
   Poppins Medium en capitales espacées pour les noms, encre #121212, façade #1A1A18. */


/* Poppins (SIL OFL 1.1, assets/fonts/OFL.txt), hosted here rather than on Google Fonts (GDPR). */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/poppins-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/poppins-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/poppins-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/poppins-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #f2f0ea;
  --paper-2: #e8e5dc;
  --ink: #121212;
  --ink-2: #4a4945;
  --dim: #8f8e8a;
  --facade: #1a1a18;
  --facade-ink: #ffffff;
  --facade-dim: #a3a29d;
  --rule: #121212;
  --radius: 6px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121212; --paper-2: #1d1d1b; --ink: #f2f0ea; --ink-2: #c4c2bb; --dim: #8f8e8a;
    --facade: #0b0b0b; --rule: #f2f0ea; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121212; --paper-2: #1d1d1b; --ink: #f2f0ea; --ink-2: #c4c2bb; --dim: #8f8e8a;
  --facade: #0b0b0b; --rule: #f2f0ea; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 "Poppins", system-ui, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { font-weight: 500; line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--dim); }
.small { font-size: 14px; }
.lead { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.4; font-weight: 500; }
.eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
  color: var(--dim); margin: 0 0 .9em;
}
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { color: var(--ink); }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { margin: .35em 0; }
.plain a { text-decoration: none; }
.plain a:hover { text-decoration: underline; }

/* ------------------------------------------------------------ marques */
.monogram { height: 22px; width: auto; display: block; }
.wordmark { font-weight: 500; font-size: 12px; letter-spacing: .42em; white-space: nowrap; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.badge { display: block; width: 100%; height: auto; }

/* verrou produit : pastille, nom à 0,34 côté, barre qui couvre l'ensemble */
.lockup {
  --s: 30px;
  display: inline-grid; grid-template-columns: var(--s) auto; column-gap: calc(var(--s) * .34);
  align-items: end; padding-bottom: calc(var(--s) * .32); position: relative;
}
.lockup::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: calc(var(--s) * .15); border-radius: calc(var(--s) * .05); background: currentColor;
}
.lockup .badge { width: var(--s); }
.product-name {
  margin: 0; font-weight: 500; letter-spacing: .28em; margin-right: -.28em;
  font-size: calc(var(--s) * 1.36); line-height: .74;
}

/* ------------------------------------------------------------ en-tête */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--paper); border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
}
.site-header > .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.site-header nav { display: flex; gap: clamp(14px, 3vw, 32px); align-items: center; font-size: 15px; }
.site-header nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-header nav a:hover, .site-header nav a[aria-current] { border-color: currentColor; }
@media (max-width: 720px) {
  .site-header .wordmark { display: none; }
}
@media (max-width: 420px) {
  .site-header nav a[href$="index.html"]:not(.lang-switch) { display: none; }
}

/* ------------------------------------------------------------ boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 15px/1 "Poppins", sans-serif; letter-spacing: .04em;
  padding: 15px 24px; border-radius: var(--radius); border: 0; cursor: pointer;
  background: var(--ink); color: var(--paper); text-decoration: none;
  transition: transform .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-soon { background: transparent; color: var(--dim); box-shadow: inset 0 0 0 1px currentColor; cursor: default; }
.btn-soon:hover { transform: none; }
.btn-small { padding: 11px 16px; font-size: 14px; }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.dark .btn { background: var(--facade-ink); color: var(--facade); }
.dark .btn-ghost { background: transparent; color: var(--facade-ink); }
.link-btn { background: none; border: 0; font: inherit; font-size: 14px; color: var(--dim); cursor: pointer; text-decoration: underline; }
.link-btn:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--facade-ink); }

/* ------------------------------------------------------------ sections */
.band { padding: clamp(64px, 10vw, 120px) 0; }
.dark { background: var(--facade); color: var(--facade-ink); }
.dark .muted, .dark .eyebrow { color: var(--facade-dim); }
.section-title { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 1em; }

.hero { padding-top: clamp(56px, 11vw, 140px); padding-bottom: clamp(48px, 8vw, 96px); }
.hero h1 { font-size: clamp(40px, 7.4vw, 92px); letter-spacing: -.02em; line-height: 1.02; max-width: 12em; margin-bottom: .4em; }
.hero .lead { max-width: 30em; color: var(--ink-2); font-weight: 400; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 2vw, 24px); margin-top: clamp(48px, 8vw, 96px); max-width: 400px; }

/* ------------------------------------------------------------ grille produits */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  background: var(--paper-2); border-radius: var(--radius); padding: 28px;
}
.card-link { text-decoration: none; display: block; }
.card .lockup { --s: 21px; margin-bottom: 28px; }
.card .tagline { font-size: 19px; line-height: 1.35; font-weight: 500; margin: 0; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.price { font-weight: 500; font-variant-numeric: tabular-nums; }
.price.big { font-size: 30px; }
.status { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.status.big { font-size: 13px; padding: 8px 12px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px currentColor; }
.price s { font-size: .6em; font-weight: 400; margin-left: 6px; }

.bundle {
  margin-top: 20px; display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center;
  background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 32px;
}
.bundle .product-name { --s: 18px; line-height: 1.2; margin-bottom: .6em; }
.bundle p { margin: 0; color: color-mix(in srgb, var(--paper) 72%, transparent); max-width: 34em; }
.bundle-badges { display: flex; gap: 8px; }
.bundle-badges .badge { width: 44px; }
.bundle-buy { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.bundle .price { font-size: 26px; }
.bundle .btn { background: var(--paper); color: var(--ink); }
.bundle .btn-soon { background: transparent; color: color-mix(in srgb, var(--paper) 70%, transparent); }
@media (max-width: 760px) {
  .bundle { grid-template-columns: 1fr; }
  .bundle-buy { align-items: flex-start; }
}

/* ------------------------------------------------------------ principes */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px 32px; counter-reset: p; }
.principle { border-top: 2px solid currentColor; padding-top: 20px; }
.principle::before { counter-increment: p; content: "0" counter(p); display: block; font-size: 13px; letter-spacing: .2em; margin-bottom: 18px; opacity: .6; }
.principle h3 { font-size: 22px; }
.principle p { margin: 0; opacity: .72; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.quote { font-size: clamp(26px, 4vw, 46px); line-height: 1.2; font-weight: 500; max-width: 20em; margin: 0; }

/* ------------------------------------------------------------ philosophie */
.manifesto { max-width: 760px; }
.manifesto h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 2.2em; }
.manifesto p { font-size: 19px; color: var(--ink-2); }
.tools-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin-top: 48px; }
.tools-legend > div { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.tools-legend h3 { font-size: 17px; margin: 0 0 4px; letter-spacing: .2em; }
.tools-legend p { font-size: 15px; margin: 0; }

/* ------------------------------------------------------------ fiche produit */
.product-hero { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(56px, 8vw, 96px); }
@media (max-width: 900px) { .product-hero { grid-template-columns: 1fr; } }
.product-intro .lockup { --s: clamp(34px, 5vw, 48px); margin: 8px 0 32px; }
.product-intro .lead { margin-bottom: .6em; }
.product-intro > p:not(.lead):not(.eyebrow) { color: var(--ink-2); }
.buy-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin: 28px 0 16px; }
.product-visual { margin: 0; }
.placeholder {
  aspect-ratio: 16 / 10; background: var(--facade); color: var(--facade-ink); border-radius: var(--radius);
  display: grid; place-content: center; justify-items: center; gap: 20px;
}
.placeholder-badge { display: block; width: clamp(88px, 12vw, 136px); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px 32px; }
.feature { border-top: 1px solid color-mix(in srgb, var(--facade-ink) 30%, transparent); padding-top: 20px; }
.feature h3 { font-size: 19px; }
.feature p { color: var(--facade-dim); margin: 0; font-size: 15px; }


.specs-wrap, .others { padding-top: clamp(56px, 8vw, 96px); }
.others { padding-bottom: clamp(64px, 10vw, 120px); }
.specs { margin: 0; border-top: 2px solid var(--rule); }
.specs > div { display: grid; grid-template-columns: minmax(120px, 1fr) 3fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); }
.specs dt { color: var(--dim); }
.specs dd { margin: 0; }

/* ------------------------------------------------------------ licence */
.licence-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.licence-grid h3 { font-size: 18px; }
.licence-grid p { color: var(--ink-2); margin: 0; font-size: 15px; }

/* ------------------------------------------------------------ panier */
.cart-count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px; background: var(--ink); color: var(--paper); font-size: 12px; margin-left: 4px;
}
.cart-count[hidden] { display: none; }
.btn[data-state="cart"], .btn[data-state="bundle"] { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.bundle .btn[data-state] { color: var(--paper); box-shadow: inset 0 0 0 2px var(--paper); }
.cart-page { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(64px, 10vw, 120px); max-width: 860px; }
.cart-page h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 1em; }
.cart-lines { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--rule); }
.cart-lines li {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 20px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
}
.cart-badges { display: flex; gap: 4px; }
.cart-badges .badge { width: 32px; }
.cart-name { display: flex; flex-direction: column; }
.cart-name strong { font-weight: 500; letter-spacing: .2em; }
@media (max-width: 560px) {
  .cart-lines li { grid-template-columns: 1fr auto; }
  .cart-badges { grid-column: 1 / -1; }
}
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 24px 0 4px; font-size: 18px; }
.checkout { display: grid; gap: 12px; max-width: 460px; margin-top: 28px; }
.notice { background: var(--paper-2); padding: 14px 16px; border-radius: var(--radius); font-size: 15px; }
.notice.suggest { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.empty .lead { margin-bottom: 1.2em; }
.toast a { color: inherit; }

/* ------------------------------------------------------------ pied, toast */
.site-footer { background: var(--facade); color: var(--facade-ink); padding: 72px 0 32px; }
.site-footer .muted, .site-footer .eyebrow { color: var(--facade-dim); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-grid .brand { margin-bottom: 16px; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 64px; font-size: 13px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%);
  background: var(--ink); color: var(--paper); padding: 14px 20px; border-radius: var(--radius);
  font-size: 15px; transition: transform .25s ease; z-index: 20; max-width: calc(100vw - 32px);
}
.toast.show { transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .toast { transition: none; }
}

/* ------------------------------------------------------------ langue */
.site-header nav a.lang-switch {
  font-size: 12px; font-weight: 500; letter-spacing: .14em; padding: 5px 8px;
  border: 1px solid currentColor; border-radius: 4px;
}
.site-header nav a.lang-switch:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
