/* Vitrine Whisp It : couleurs, typographie, boutons et elements partages (chemises, post-its, etiquettes).
   Memes couleurs et memes formes que l'appli. */

:root {
  --bg: #f4f6f9;
  --card: #ffffff;
  --ink: #0f172a;
  --ink-2: #1e293b;
  --text: #475569;
  --muted: #5b6b82;
  --line: #e2e8f0;
  --orange: #ff5e3a;
  --paper: #fff7c9;
  --radius: 24px;
  --pill: 9999px;
  --wrap: 1180px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
}

svg {
  display: block;
}

.nowrap {
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #ffffff;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

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

/* ---------- Titres ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

.eyebrow-light {
  color: #cbd5e1;
}

.h2 {
  margin-top: 12px;
  font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.2rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.h2-light {
  color: #ffffff;
}

.lead {
  max-width: 34rem;
  margin-top: 16px;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  color: var(--text);
}

.lead-light {
  color: #cbd5e1;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--pill);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-sm {
  height: 40px;
  padding: 0 16px;
  font-size: 13.5px;
}

.btn-dark {
  background: var(--ink);
  color: #ffffff;
}

.btn-dark:hover {
  background: var(--ink-2);
}

.btn-orange {
  background: var(--orange);
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px #cbd5e1;
}

.btn-ghost:hover {
  background: #ffffff;
}

.btn-outline {
  background: #ffffff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

/* ---------- Marque ---------- */
.brand {
  display: inline-flex;
  align-items: flex-start;
  text-decoration: none;
  color: var(--ink);
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.brand-dot {
  align-self: flex-end;
  width: 6px;
  height: 6px;
  margin: 0 0 6px 3px;
  border-radius: 50%;
  background: var(--orange);
}

.brand-beta {
  margin-left: 4px;
  padding: 2px 6px;
  border-radius: var(--pill);
  background: var(--orange);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  transform: translateY(-3px);
}

/* ---------- Etiquette "L'essentiel" ---------- */
.tag-essentiel {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: #d9421f;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Chemises de couleur ---------- */
.folder {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 12px 12px;
  border-radius: 4px 12px 12px 12px;
  background: #f3dcae;
  color: var(--ink);
}

.folder-tab {
  position: absolute;
  left: 0;
  top: -9px;
  width: 44%;
  height: 10px;
  border-radius: 8px 8px 0 0;
  background: inherit;
  filter: brightness(0.93);
}

.folder b {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.folder small {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
}

.folder-sand {
  background: #f3dcae;
}

.folder-blue {
  background: #dbe5ef;
}

.folder-green {
  background: #d5e8d4;
}

/* ---------- Post-it ---------- */
.postit {
  position: relative;
  width: 150px;
  padding: 22px 14px 16px;
  background: #fde86b;
  color: #3a3000;
  font-family: "Caveat", cursive;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.1;
  box-shadow: 0 10px 18px -10px rgba(15, 23, 42, 0.45);
}

.postit-tape {
  position: absolute;
  top: -9px;
  left: 50%;
  width: 62px;
  height: 20px;
  margin-left: -31px;
  background: #f1f5f9;
  opacity: 0.85;
  transform: rotate(-3deg);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.15);
}

/* ---------- Apparition au defilement ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--rd, 0) * 110ms);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
