/* ==========================================================================
   Feelin'good — feuille de style du site vitrine
   Direction artistique reprise de l'app (thème "Lin" par défaut) :
   fond dégradé chaleureux, Spectral (serif) pour l'expression, Work Sans
   pour l'interface. Voir les variables --theme-* pour les 4 autres
   ambiances utilisées dans la galerie de thèmes.
   ========================================================================== */

@font-face {
  font-family: "Spectral";
  src: url("../fonts/Spectral-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Spectral";
  src: url("../fonts/Spectral-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/WorkSans-Variable.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-top: #efeae0;
  --bg-bottom: #e2dacb;
  --ink: #2e2e2a;
  --ink-85: rgba(46, 46, 42, 0.85);
  --ink-70: rgba(46, 46, 42, 0.7);
  --ink-50: rgba(46, 46, 42, 0.5);
  --ink-30: rgba(46, 46, 42, 0.3);
  --ink-15: rgba(46, 46, 42, 0.15);
  --sauge: #46524a;
  --sauge-dark: #333d37;
  --cream: #fbf8f2;
  --white: #ffffff;
  --gold: #d79a62;
  --line: rgba(46, 46, 42, 0.12);

  --font-serif: "Spectral", Georgia, "Times New Roman", serif;
  --font-sans: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1120px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 30px 70px -30px rgba(46, 46, 42, 0.35);
  --shadow-card: 0 16px 40px -22px rgba(46, 46, 42, 0.28);
}

/* Ambiances de la galerie de thèmes (valeurs reprises d'Assets.xcassets) */
.theme-lin      { --t-a: #efeae0; --t-b: #e2dacb; --t-text: #2e2e2a; --t-accent: #46524a; }
.theme-sauge    { --t-a: #46524a; --t-b: #33403a; --t-text: #e9e4d7; --t-accent: #c9bba4; }
.theme-sable    { --t-a: #e6dcc8; --t-b: #d8cbb2; --t-text: #3a3324; --t-accent: #8a7558; }
.theme-aube     { --t-a: #2e1b2a; --t-b: #e7a766; --t-text: #efe3da; --t-accent: #f8dcb8; }
.theme-bordeaux { --t-a: #3a1620; --t-b: #140a0e; --t-text: #efe3da; --t-accent: #d79a62; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: linear-gradient(170deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sauge);
  margin: 0 0 12px;
  display: block;
}

p { margin: 0 0 1em; color: var(--ink-70); }

/* --------------------------------- Nav --------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 242, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
}

.brand img { width: 34px; height: 34px; border-radius: 9px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-70);
}
.nav-links a:hover { color: var(--ink); }

.nav-cta { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
}

/* -------------------------------- Buttons ------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 26px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--sauge);
  color: var(--cream);
  box-shadow: var(--shadow-card);
}
.btn-primary:hover { box-shadow: 0 20px 40px -18px rgba(70, 82, 74, 0.55); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink-15);
}
.btn-ghost:hover { border-color: var(--ink-30); }

.btn-sm { padding: 9px 18px; font-size: 13px; }

.btn[disabled],
.btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.store-badges {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 12px;
  padding: 10px 18px;
  opacity: 0.55;
  cursor: not-allowed;
  user-select: none;
}
.store-badge svg { width: 20px; height: 20px; flex: none; }
.store-badge .store-badge-text { text-align: left; line-height: 1.15; }
.store-badge .store-badge-text small { display: block; font-size: 10px; opacity: 0.8; }
.store-badge .store-badge-text strong { display: block; font-size: 15px; font-family: var(--font-serif); }

.soon-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sauge);
  background: rgba(70, 82, 74, 0.12);
  border-radius: 999px;
  padding: 6px 12px;
}

/* --------------------------------- Hero --------------------------------- */

.hero {
  padding: 64px 0 40px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.08;
  font-weight: 300;
  color: var(--ink);
}

.hero .lede {
  font-size: 18px;
  color: var(--ink-70);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.hero-visual { display: flex; justify-content: center; }

/* ----------------------------- Phone mockup ------------------------------ */

.phone {
  width: 264px;
  aspect-ratio: 9 / 19.2;
  border-radius: 44px;
  padding: 14px;
  background: #17181a;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.phone-screen {
  height: 100%;
  width: 100%;
  border-radius: 32px;
  background: linear-gradient(170deg, var(--t-a, var(--bg-top)) 0%, var(--t-b, var(--bg-bottom)) 100%);
  color: var(--t-text, var(--ink));
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px 22px 22px;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 22px;
  background: #17181a;
  border-radius: 14px;
}

.phone-top { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

.phone-date {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.6;
}

.phone-tag {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid currentColor;
  opacity: 0.75;
}

.phone-quote {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 21px;
  line-height: 1.32;
  margin: 18px 0;
}

.phone-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-icons { display: flex; gap: 14px; opacity: 0.75; }
.phone-icons svg { width: 18px; height: 18px; }

/* -------------------------------- Sections ------------------------------- */

section { padding: 88px 0; }
.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px;
}

.card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}
.card p { margin: 0; font-size: 15px; }
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(70, 82, 74, 0.12);
  color: var(--sauge);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card .icon svg { width: 22px; height: 22px; }

/* Catégories */

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-85);
}
.pill.is-premium {
  background: rgba(215, 154, 98, 0.12);
  border-color: rgba(215, 154, 98, 0.4);
  color: #6a4522;
}
.pill.is-premium::after {
  content: "premium";
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: 8px;
  opacity: 0.75;
}

/* Styles d'affirmation */

.style-card blockquote {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 19px;
  line-height: 1.4;
  margin: 14px 0 0;
  color: var(--ink);
}
.style-card blockquote::before { content: "“"; }
.style-card blockquote::after { content: "”"; }

/* Galerie de thèmes */

.theme-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.theme-swatch {
  border-radius: var(--radius-sm);
  aspect-ratio: 3 / 4;
  background: linear-gradient(165deg, var(--t-a) 0%, var(--t-b) 100%);
  color: var(--t-text);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  position: relative;
}
.theme-swatch .name {
  font-family: var(--font-serif);
  font-size: 16px;
}
.theme-swatch .badge {
  align-self: flex-start;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid currentColor;
  opacity: 0.8;
}
.theme-swatch .dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--t-accent);
}

/* Bandeau citation */

.quote-band {
  background: var(--sauge);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  text-align: center;
}
.quote-band blockquote {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.35;
  margin: 0;
}
.quote-band cite {
  display: block;
  margin-top: 20px;
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* CTA finale */

.cta-final {
  text-align: center;
}
.cta-final .store-badges { justify-content: center; margin-top: 28px; }

/* --------------------------------- Footer -------------------------------- */

footer.site-footer {
  background: var(--sauge-dark);
  color: rgba(251, 248, 242, 0.85);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(251, 248, 242, 0.15);
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-size: 19px; color: var(--cream); }
.footer-brand img { width: 30px; height: 30px; border-radius: 8px; }
.footer-tag { max-width: 32ch; color: rgba(251, 248, 242, 0.6); font-size: 14px; margin-top: 14px; }
.footer-col h4 { font-family: var(--font-sans); font-weight: 600; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(251, 248, 242, 0.55); margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: rgba(251, 248, 242, 0.85); text-decoration: none; font-size: 14px; }
.footer-col a:hover { text-decoration: underline; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(251, 248, 242, 0.5);
  flex-wrap: wrap;
  gap: 12px;
}

/* ------------------------------ Pages légales ----------------------------- */

.legal-hero {
  padding: 56px 0 24px;
}
.legal-hero .eyebrow { color: var(--sauge); }
.legal-updated {
  font-size: 13px;
  color: var(--ink-50);
}

.legal-body {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 96px;
}
.legal-body h2 {
  font-size: 22px;
  margin-top: 48px;
}
.legal-body h3 {
  font-size: 17px;
  font-family: var(--font-sans);
  font-weight: 600;
  margin-top: 28px;
}
.legal-body p, .legal-body li { color: var(--ink-70); font-size: 15.5px; line-height: 1.7; }
.legal-body ul { padding-left: 22px; }
.legal-body li { margin-bottom: 8px; }
.table-scroll {
  overflow-x: auto;
  margin: 20px 0;
  -webkit-overflow-scrolling: touch;
}
.legal-body table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  margin: 0;
  font-size: 14px;
}
.legal-body th, .legal-body td {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--line);
  vertical-align: top;
}
.legal-body th { background: rgba(70, 82, 74, 0.08); font-weight: 600; }
.legal-note {
  margin-top: 40px;
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  background: rgba(70, 82, 74, 0.08);
  font-size: 13.5px;
  color: var(--ink-70);
}
.legal-note strong { color: var(--ink); }

.toc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  margin: 28px 0 8px;
}
.toc h2 { font-size: 14px; font-family: var(--font-sans); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; color: var(--sauge); }
.toc ol { margin: 0; padding-left: 20px; }
.toc a { text-decoration: none; color: var(--ink-70); font-size: 14.5px; }
.toc a:hover { color: var(--ink); text-decoration: underline; }

/* --------------------------------- Contact -------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contact-reasons { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.contact-reason {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.contact-reason:first-child { border-top: none; }
.contact-reason .icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(70, 82, 74, 0.12); color: var(--sauge);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.contact-reason .icon svg { width: 18px; height: 18px; }
.contact-reason strong { display: block; font-size: 15px; margin-bottom: 2px; }
.contact-reason span { font-size: 14px; color: var(--ink-50); }

form.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-card);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink-85);
}
.field .hint { font-size: 12.5px; color: var(--ink-50); margin-top: 6px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sauge);
}
.field textarea { resize: vertical; min-height: 130px; }

.field-check { display: flex; align-items: flex-start; gap: 10px; }
.field-check input { width: auto; margin-top: 3px; }
.field-check label { font-weight: 400; font-size: 13.5px; color: var(--ink-70); }

.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-msg {
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 14px;
  margin-bottom: 20px;
}
.form-msg.success { background: rgba(70, 82, 74, 0.12); color: var(--sauge-dark); }
.form-msg.error { background: rgba(178, 60, 60, 0.1); color: #8a2f2f; }

/* --------------------------------- 404 ------------------------------------ */

.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.error-page .eyebrow { justify-content: center; }
.error-page h1 { font-size: clamp(48px, 8vw, 96px); }

/* ------------------------------- Responsive -------------------------------- */

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 4px 24px 16px;
  }
  .nav-links a { padding: 14px 0; border-top: 1px solid var(--line); }
  .nav.nav--open .nav-links { display: flex; }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .theme-gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .quote-band { padding: 44px 26px; }
}

@media (max-width: 560px) {
  section { padding: 64px 0; }
  .theme-gallery { grid-template-columns: repeat(2, 1fr); }
}
