/* Closetfolio — site. Palette Greige de l'app (mobile/src/theme/tokens.ts),
   avec le brun du logo comme couleur rare. Polices servies par le site
   (fonts/LICENSE.txt) : aucune requête vers un tiers. Thème clair seulement,
   volontairement : c'est celui de la marque. */

@font-face { font-family: "Bodoni Moda"; src: url("/fonts/BodoniModa_400Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("/fonts/BodoniModa_400Regular_Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
/* Bodoni Moda n'a ni grec ni cyrillique : Noto Serif Display, de la même
   famille de contraste, prend le relais pour ces seuls caractères. */
@font-face { font-family: "Noto Serif Display"; src: url("/fonts/NotoSerifDisplay_400Regular_GreekCyrillic.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0370-03FF, U+1F00-1FFF, U+0400-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F; }
@font-face { font-family: "Noto Serif Display"; src: url("/fonts/NotoSerifDisplay_400Regular_Italic_GreekCyrillic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0370-03FF, U+1F00-1FFF, U+0400-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F; }
@font-face { font-family: "Jost"; src: url("/fonts/Jost_300Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/fonts/Jost_400Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/fonts/Jost_500Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #1F1D1B;
  --paper: #F4F2EF;
  --ivory: #F5F0E8;
  --muted: #66615B;
  --line: #DAD6D0;
  --surface: #E8E5E0;
  --brown: #6E3D1E;
  --brown-deep: #57301A;
  --on-brown: #F5F0E8;
  --display: "Bodoni Moda", "Noto Serif Display", "Didot", "Times New Roman", serif;
  --body: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
  --wrap: 1120px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brown); text-underline-offset: 3px; }
a:hover { color: var(--brown-deep); }
:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------------------------------------------------------------- boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border: 1px solid var(--brown); border-radius: 999px;
  background: var(--brown); color: var(--on-brown);
  font: 500 1rem/1 var(--body); letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--brown-deep); border-color: var(--brown-deep); color: var(--on-brown); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.btn-quiet { background: transparent; color: var(--brown); }
.btn-quiet:hover { background: var(--surface); color: var(--brown-deep); }

/* ---------------------------------------------------------------- en-tête */
.top { position: relative; z-index: 2; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 96px; }
.brand { display: block; padding: 8px 0; }
.brand img { width: 108px; height: auto; }
.top-nav { display: flex; align-items: center; gap: 20px; }
.top-nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 0.9375rem; }
.top-nav a:not(.btn):hover { color: var(--ink); }
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; min-height: 40px;
  color: var(--muted); font-size: 0.9375rem;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.lang summary:hover { color: var(--ink); }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; margin: 0; padding: 8px;
  list-style: none; display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 2px;
  background: #FFFDFA; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 36px -20px rgba(87, 48, 26, 0.4);
}
.lang li a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 0.9375rem; }
.lang li a:hover { background: var(--surface); }
.lang li a[aria-current="page"] { color: var(--brown); font-weight: 500; }
@media (max-width: 479px) { .lang summary { font-size: 0; gap: 0; } .lang summary::before { content: attr(data-code); font-size: 0.9375rem; text-transform: uppercase; } .lang summary::after { margin-left: 6px; } }

/* ---------------------------------------------------------------- accueil */
.hero { position: relative; padding: 32px 0 72px; overflow: hidden; }
.thread {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  fill: none; stroke: var(--brown); stroke-width: 1.4; opacity: 0.16;
  vector-effect: non-scaling-stroke;
}
.thread path { vector-effect: non-scaling-stroke; }
@media (max-width: 719px) { .thread { display: none; } }
.hero-in { position: relative; display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .hero-in { grid-template-columns: 1.1fr 0.9fr; gap: 64px; } }
.eyebrow { color: var(--brown); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
.lead { color: var(--muted); font-size: 1.1875rem; max-width: 34em; margin-top: 20px; }

.join { margin-top: 32px; max-width: 520px; }
.join-row { display: flex; flex-wrap: wrap; gap: 8px; }
.join input[type="email"] {
  flex: 1 1 220px; min-width: 0; min-height: 48px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 999px; background: #FFFDFA; color: var(--ink);
  font: 400 1rem var(--body);
}
.join input[type="email"]::placeholder { color: #8A847D; }
.join input[type="email"]:focus { border-color: var(--brown); outline: none; box-shadow: 0 0 0 3px rgba(110, 61, 30, 0.15); }
.join .btn { flex: 0 0 auto; }
@media (max-width: 479px) { .join .btn { flex: 1 1 100%; } }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; color: var(--muted); font-size: 0.9375rem; line-height: 1.45; cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brown); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.join-status { margin-top: 12px; min-height: 1.5em; font-size: 0.9375rem; }
.join-status.is-error { color: #9A2B1B; }
.join-status.is-done { color: var(--brown); font-weight: 500; }
.join.is-done .join-row, .join.is-done .consent { display: none; }

/* La maquette : un écran de l'app redessiné, pas une capture. */
.mockup { position: relative; margin: 0 auto; width: min(100%, 360px); padding-bottom: 124px; }
.phone {
  background: var(--paper); border: 1px solid var(--line); border-radius: 36px;
  padding: 36px 22px 48px;
  box-shadow: 0 1px 0 #FFFDFA inset, 0 30px 60px -30px rgba(87, 48, 26, 0.35), 0 12px 24px -16px rgba(31, 29, 27, 0.2);
}
.m-label { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.m-total { display: block; margin-top: 6px; font: 300 2rem/1.15 var(--body); color: var(--brown); letter-spacing: -0.01em; white-space: nowrap; }
.m-count { margin-top: 4px; font-size: 0.8125rem; color: var(--muted); }
.m-list { list-style: none; margin: 22px 0 0; padding: 0; }
.m-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.m-thumb { flex: none; display: grid; place-items: center; width: 44px; height: 54px; background: var(--surface); border-radius: 4px; }
.m-thumb svg, .o-pieces svg { width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.m-name { flex: 1; min-width: 0; line-height: 1.3; }
.m-name small { display: block; color: var(--muted); font-size: 0.75rem; }
.m-price { font-weight: 300; white-space: nowrap; font-size: 0.875rem; }
.outfit-card {
  position: absolute; left: -28px; bottom: 0; width: min(232px, 72%); padding: 14px 16px;
  background: #FFFDFA; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 18px 36px -20px rgba(87, 48, 26, 0.4);
}
@media (max-width: 479px) { .outfit-card { left: 0; } }
.o-label { font-family: var(--display); font-style: italic; font-size: 1.05rem; }
.o-weather { font-size: 0.8125rem; color: var(--muted); }
.o-pieces { display: flex; gap: 8px; margin-top: 10px; }
.o-pieces svg { width: 44px; height: 44px; padding: 6px; background: var(--surface); border-radius: 4px; }
.mockup figcaption { position: absolute; right: 0; bottom: -28px; font-size: 0.75rem; color: var(--muted); }

section h2 { margin-bottom: 40px; }
.steps, .features, .promises, .faq { padding-top: 72px; padding-bottom: 24px; }
@media (min-width: 720px) { .steps, .features, .promises, .faq { padding-top: 104px; } }

.steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; }
@media (min-width: 720px) { .steps ol { grid-template-columns: repeat(3, 1fr); } }
.steps li { border-top: 1px solid var(--ink); padding-top: 18px; }
.num { display: block; font: italic 400 1.6rem/1 var(--display); color: var(--brown); margin-bottom: 14px; }
.steps h3 { margin-bottom: 8px; }
.steps p, .feature p, .promise p, .faq details p { color: var(--muted); }

.grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(2, 1fr); } }
.feature { background: var(--ivory); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.feature svg { width: 28px; height: 28px; fill: none; stroke: var(--brown); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; margin-bottom: 20px; }
.feature h3 { margin-bottom: 10px; }

.club { margin-top: 104px; background: var(--surface); padding: 88px 0; position: relative; overflow: hidden; }
.club-in { max-width: 820px; text-align: center; }
.kicker { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brown); }
.club blockquote { margin: 20px 0 24px; }
.club blockquote p { font: italic 400 clamp(1.8rem, 4.4vw, 2.9rem)/1.2 var(--display); }
.club-in > p:last-child { color: var(--muted); max-width: 38em; margin: 0 auto; }

.promise { border-top: 1px solid var(--line); padding: 22px 0 8px; }
.promise h3 { font-size: 1.25rem; margin-bottom: 8px; }

.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-size: 1.125rem; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 300 1.6rem/1 var(--body); color: var(--brown); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; max-width: 40em; }

.closing { text-align: center; padding: 104px 0 96px; }
.closing h2 { font-style: italic; margin-bottom: 28px; }

/* ---------------------------------------------------------------- pied */
.foot { border-top: 1px solid var(--line); padding: 48px 0 40px; color: var(--muted); font-size: 0.9375rem; }
.foot-in { display: grid; gap: 14px; justify-items: center; text-align: center; }
.foot-in img { width: 56px; height: auto; opacity: 0.9; }
.foot-links { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.foot-links a { color: var(--ink); }
.foot-legal { font-size: 0.8125rem; }

/* ---------------------------------------------------------------- pages légales */
.legal { max-width: 820px; padding-top: 24px; padding-bottom: 72px; }
.back { margin-bottom: 32px; font-size: 0.9375rem; }
.back a { text-decoration: none; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 32px; }
.toc { background: var(--ivory); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; margin-bottom: 48px; }
.toc-title { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brown); margin-bottom: 10px; }
.toc ul { list-style: none; margin: 0; padding: 0; columns: 2 260px; column-gap: 32px; }
.toc li { break-inside: avoid; padding: 3px 0; font-size: 0.9375rem; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--brown); text-decoration: underline; }
.prose { font-size: 1rem; }
.prose h2 { font-size: 1.6rem; margin: 48px 0 16px; scroll-margin-top: 16px; }
.prose h3 { font-size: 1.2rem; margin: 32px 0 12px; scroll-margin-top: 16px; }
.prose p, .prose ul { margin: 0 0 16px; }
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--brown); }
.prose strong { font-weight: 500; }
.prose a { overflow-wrap: anywhere; }
.table { overflow-x: auto; margin: 0 0 24px; border: 1px solid var(--line); border-radius: 12px; }
.prose table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 0.9375rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--ivory); font-weight: 500; }
.prose tbody th { font-weight: 500; width: 18%; }
.prose tbody tr:last-child > * { border-bottom: 0; }

/* ---------------------------------------------------------------- 404 */
.lost { display: grid; justify-items: center; gap: 16px; text-align: center; padding-top: 72px; padding-bottom: 104px; }
.lost img { width: 120px; height: auto; margin-bottom: 16px; }
.lost p:last-of-type { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 16px; }
.lost-langs { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 0.9375rem; }
