@import url(/fonts/fonts.css);

:root {
  --backdrop: #e6e9ee;
  --paper: #ffffff;
  --ink: #1b1f3b;
  --muted: #555b75;
  --line: #c9ced8;
  --drape: #a0522d;
  --focus: #1b1f3b;
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --text: "Instrument Sans", "Helvetica Neue", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--backdrop);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.5;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.wrap {
  max-width: 34rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Hero : le drapé est le sujet de la page */
.hero {
  padding-top: 1.25rem;
}

.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}

h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.5rem, 11vw, 3.75rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
  font-variation-settings: "opsz" 96;
}

.lede {
  color: var(--muted);
  margin: 0 0 1rem;
  max-width: 28rem;
}

.stage {
  position: relative;
  margin: 0 -1.25rem;
  height: 22rem;
  overflow: hidden;
  background: #D9DBDE;
}

.stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 65%;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.stage img.shown { opacity: 1; }

.ai-label {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.75rem;
  color: var(--paper);
  background: rgba(27, 31, 59, 0.55);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}

@media (min-width: 30rem) {
  .verdict { min-height: 0; }
  .stage { height: 28rem; }
  .stage img { object-position: 50% 40%; }
}

.swatches {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}

.swatch {
  font: 500 0.875rem var(--text);
  color: var(--ink);
  background: var(--paper);
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.55rem 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
}

.swatch::before {
  content: "";
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--chip);
  flex: none;
}

.swatch[aria-pressed="true"] {
  border-color: var(--ink);
}

.verdict {
  min-height: 3em;
  margin: 0.9rem 0 1rem;
  font-weight: 500;
}

/* Boutons */
.cta {
  display: block;
  width: 100%;
  font: 600 1.125rem var(--text);
  color: var(--paper);
  background: var(--ink);
  border: 0;
  border-radius: 14px;
  padding: 1.05rem 1rem;
  cursor: pointer;
  text-align: center;
}

.cta:hover {
  background: #2c3260;
}

.price-line {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0.6rem 0 0;
}

/* Sections */
section.block {
  padding: 3rem 0 0;
}

h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.875rem;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 1.25rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.steps li::before {
  content: counter(step);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1;
}

.steps strong {
  display: block;
}
.steps span {
  color: var(--muted);
}

/* Carte résultat : ce que l'utilisateur obtient */
.palette {
  background: var(--paper);
  border-radius: 20px;
  padding: 1.25rem;
}

.palette-season {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 1.25rem;
}

.palette-label {
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.chips {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.chips.wear {
  grid-template-columns: repeat(6, 1fr);
}

.chips.wear li {
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--chip);
  box-shadow: inset 0 0 0 1px rgba(27, 31, 59, 0.08);
}

.chips.avoid {
  grid-template-columns: repeat(4, 1fr);
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
}

.chips.avoid li::before {
  content: "";
  display: block;
  height: 2.25rem;
  margin-bottom: 0.3rem;
  border-radius: 10px;
  background:
    linear-gradient(to top right, transparent calc(50% - 1px), var(--paper) calc(50% - 1px), var(--paper) calc(50% + 1px), transparent calc(50% + 1px)),
    var(--chip);
  opacity: 0.85;
}

.palette-metal {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.shop {
  background: var(--paper);
  border-radius: 20px;
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  align-items: center;
}

.garment {
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.shop-result {
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}
.tag::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--chip);
}

.badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.35rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}
.badge.free {
  border-color: var(--drape);
  color: var(--drape);
}

.promise {
  margin: 1.25rem 0 0;
  color: var(--muted);
}

.pricing {
  background: var(--ink);
  color: var(--paper);
  border-radius: 24px;
  padding: 1.75rem 1.25rem 1.25rem;
  margin-top: 3rem;
}

.pricing h2 {
  color: var(--paper);
}

.included {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  color: #c3c7dd;
  font-size: 0.9375rem;
}
.included b {
  display: block;
  color: var(--paper);
}

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}

.plan {
  border: 1px solid #454b73;
  border-radius: 16px;
  padding: 1rem;
}
.plan b {
  display: block;
  font-family: var(--display);
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}
.plan span {
  color: #c3c7dd;
  font-size: 0.9375rem;
}

.pricing .cta {
  background: var(--paper);
  color: var(--ink);
}
.pricing .cta:hover {
  background: #e6e9ee;
}
.pricing p {
  color: #c3c7dd;
  font-size: 0.9375rem;
  margin: 0.75rem 0 0;
}

footer {
  padding: 2.5rem 0 3rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}
footer a {
  color: inherit;
  text-decoration: none;
}
footer a:hover,
footer a:focus-visible {
  text-decoration: underline;
}

/* Fenêtre de réservation */
dialog {
  width: min(30rem, calc(100vw - 2rem));
  border: 0;
  border-radius: 22px;
  padding: 1.5rem 1.25rem 1.25rem;
  color: var(--ink);
  background: var(--paper);
}

dialog::backdrop {
  background: rgba(27, 31, 59, 0.55);
}

dialog h2 {
  font-size: 1.625rem;
  margin-bottom: 0.5rem;
}
dialog p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: var(--backdrop);
  font-size: 1.25rem;
  cursor: pointer;
}

label.field {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

input[type="email"] {
  width: 100%;
  font: 1.0625rem var(--text);
  padding: 0.85rem 0.9rem;
  border: 2px solid var(--line);
  border-radius: 12px;
  margin-bottom: 0.9rem;
}

input[type="email"]:focus {
  border-color: var(--ink);
  outline: none;
}

.consent {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.6rem;
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.consent input {
  width: 1.2rem;
  height: 1.2rem;
  margin: 0.15rem 0 0;
  accent-color: var(--ink);
}

.trap {
  position: absolute;
  left: -9999px;
}

.error {
  color: #a4161a;
  font-weight: 500;
  min-height: 1.5em;
  margin: -0.25rem 0 0.5rem;
}

/* Bandeau cookies (affiché seulement si le pixel TikTok est configuré) */
.cookies {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 32rem;
  margin: 0 auto;
  background: var(--paper);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(27, 31, 59, 0.25);
  z-index: 10;
}

.cookies p {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
}
.cookies div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.cookies button {
  font: 600 1rem var(--text);
  padding: 0.7rem;
  border-radius: 12px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

/* Page confidentialité */
.legal h1 {
  font-size: 2.5rem;
}
.legal h2 {
  font-size: 1.375rem;
  margin-top: 2rem;
}
.legal p,
.legal li {
  color: var(--muted);
}

@media (min-width: 48rem) {
  .stage {
    margin: 0;
    border-radius: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage img {
    transition: none;
  }
}
