/* Mon Petit Sommet — design system du site vitrine
   Direction : haute qualité artisanale — ivoire, encre sapin, filets fins,
   typographie Fraunces/Inter, grain papier, accent rare. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Inter:wght@400;500;600&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --paper: #f7f6f1;
  --paper-2: #edece2;
  --cream: #fcfbf7;
  --ink: #141a16;
  --ink-2: #3d4741;
  --muted: #6d766f;
  --accent: #2e5741;
  --accent-deep: #1c3527;
  --line: #e1e0d4;
  --hairline: #e9e8dd;
  --red: #c2472f;
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow-soft: 0 1px 2px rgba(20, 26, 22, 0.05), 0 24px 48px -28px rgba(20, 26, 22, 0.22);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Grain papier, très subtil, sur tout le site */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
  background: var(--accent);
  color: var(--cream);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 26px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  color: var(--ink);
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(34px, 5vw, 58px);
}

h2 {
  font-size: clamp(25px, 3.2vw, 36px);
  margin-bottom: 16px;
  line-height: 1.15;
}

h3 {
  font-size: 19.5px;
  margin-bottom: 8px;
  line-height: 1.3;
}

p {
  margin-bottom: 12px;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-deep);
}

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

.eyebrow {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 18px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 241, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 66px;
}

.logo {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.logo span {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--ink);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  background: var(--accent-deep);
  color: var(--cream) !important;
  text-decoration: none;
  border: 1px solid var(--accent-deep);
  border-radius: 12px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  font-family: var(--sans);
  box-shadow: 0 1px 2px rgba(20, 26, 22, 0.12);
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -12px rgba(28, 53, 39, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid rgba(20, 26, 22, 0.35);
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper) !important;
}

.btn-small {
  padding: 10px 20px;
  font-size: 13px;
  border-radius: 10px;
}

/* ---------- Hero immersif (scrollytelling) ---------- */
.scrolly {
  position: relative;
  height: 100vh; /* passe à 300vh quand le module 3D est actif */
  border-bottom: 1px solid var(--hairline);
}

.scrolly.scrolly-active {
  height: 300vh;
}

.scrolly-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

#hero3d.hero3d-full {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1300px 800px at 68% 28%, #eceadf 0%, #e2e2d2 55%, #d7d9c5 100%);
}

#hero3d canvas {
  display: block;
}

.hero3d-caption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: rgba(252, 251, 247, 0.82);
  backdrop-filter: blur(6px);
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  z-index: 3;
}

.scrolly-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.scrolly-overlay .container {
  width: 100%;
  position: relative;
}

/* Acte 1 : texte éditorial posé sur la 3D, voile dégradé — pas de bloc */
.scrolly-overlay.step-1 {
  pointer-events: auto;
}

.scrolly-overlay.step-1::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    98deg,
    rgba(247, 246, 241, 0.96) 0%,
    rgba(247, 246, 241, 0.82) 36%,
    rgba(247, 246, 241, 0) 64%
  );
}

.hero-copy {
  position: relative;
  max-width: 600px;
}

.hero-copy .lead {
  font-size: 18px;
  color: var(--ink-2);
  margin: 22px 0 30px;
  max-width: 46ch;
  line-height: 1.75;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
  max-width: 48ch;
  line-height: 1.6;
}

/* Actes 2 et 3 : cartes fines et discrètes */
.scrolly-overlay.step-2,
.scrolly-overlay.step-3 {
  opacity: 0; /* pilotées par le scroll (JS) */
}

.align-right {
  display: flex;
  justify-content: flex-end;
}

.align-center {
  display: flex;
  justify-content: center;
  text-align: center;
}

.caption-card {
  background: rgba(252, 251, 247, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(225, 224, 212, 0.9);
  border-radius: 18px;
  padding: 30px 34px;
  max-width: 430px;
  box-shadow: var(--shadow-soft);
}

.caption-card h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  margin-bottom: 10px;
}

.caption-card p {
  color: var(--ink-2);
  font-size: 15px;
}

.kicker {
  display: block;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.scroll-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-2);
  background: rgba(252, 251, 247, 0.85);
  border: 1px solid var(--hairline);
  padding: 8px 18px;
  border-radius: 999px;
  animation: hint-bounce 2.4s ease-in-out infinite;
  z-index: 3;
}

@keyframes hint-bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

/* ---------- Bandeau réassurance ---------- */
.reassurance {
  border-bottom: 1px solid var(--hairline);
  background: var(--cream);
}

.reassurance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  padding: 26px 0;
}

.ritem {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.ritem svg {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 2px;
}

.ritem strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

/* ---------- Sections ---------- */
section.block {
  padding: 92px 0;
}

section.block.alt {
  background: var(--cream);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.center {
  text-align: center;
}

.sub {
  color: var(--ink-2);
  max-width: 60ch;
  font-size: 17px;
  line-height: 1.75;
}

.center .sub {
  margin: 0 auto 12px;
}

/* ---------- Étapes ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 48px;
  text-align: left;
}

.step {
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 30px 28px;
  position: relative;
}

.step .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.14em;
  display: block;
  margin-bottom: 14px;
}

.step .num::after {
  content: '';
  display: block;
  width: 34px;
  height: 1px;
  background: var(--line);
  margin-top: 14px;
}

.step p {
  color: var(--ink-2);
  font-size: 14.5px;
  margin: 0;
}

/* ---------- Cartes produits ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 48px;
}

.card {
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s cubic-bezier(0.2, 0.6, 0.2, 1), box-shadow 0.22s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.card-visual {
  height: 178px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-2);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}

.card-visual svg {
  width: 100%;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.card:hover .card-visual svg {
  transform: scale(1.045);
}

.card-body {
  padding: 22px 24px 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body p {
  color: var(--muted);
  font-size: 14px;
  margin: 6px 0 14px;
  line-height: 1.6;
  flex: 1;
}

.price {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--accent-deep);
  font-weight: 600;
}

.price small {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

/* ---------- Fiches produit ---------- */
.breadcrumb {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 20px 0 0;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--ink);
}

article.fiche {
  padding: 30px 0 80px;
}

article.fiche > h1 {
  max-width: 21ch;
}

article.fiche .intro {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 66ch;
  margin-top: 18px;
  line-height: 1.75;
}

.fiche-hero {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 38px;
  align-items: start;
  margin: 38px 0 10px;
}

.fiche-visual {
  border-radius: 18px;
  border: 1px solid var(--hairline);
  background: var(--paper-2);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fiche-visual svg {
  width: 100%;
  height: 100%;
}

.buy-box {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  position: sticky;
  top: 88px;
  box-shadow: var(--shadow-soft);
}

.buy-box .price {
  font-size: 30px;
}

.buy-box ul {
  list-style: none;
  margin: 18px 0 22px;
  color: var(--ink-2);
  font-size: 14px;
}

.buy-box ul li {
  padding: 5px 0 5px 26px;
  position: relative;
  line-height: 1.55;
}

.buy-box ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 11px;
  width: 12px;
  height: 6px;
  border-left: 1.8px solid var(--accent);
  border-bottom: 1.8px solid var(--accent);
  transform: rotate(-45deg);
}

.buy-box .btn {
  width: 100%;
  text-align: center;
  margin-bottom: 10px;
}

article.fiche h2 {
  margin-top: 56px;
  max-width: 30ch;
}

article.fiche section p,
article.fiche section li {
  max-width: 70ch;
  color: var(--ink-2);
}

article.fiche ul.checks {
  margin: 12px 0 16px 20px;
}

article.fiche ul.checks li {
  margin-bottom: 6px;
}

article.fiche strong {
  color: var(--ink);
}

table.specs {
  border-collapse: collapse;
  width: 100%;
  max-width: 680px;
  margin: 20px 0;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  font-size: 14.5px;
}

table.specs td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
}

table.specs tr:last-child td {
  border-bottom: 0;
}

table.specs td:first-child {
  color: var(--muted);
  width: 40%;
  font-size: 13px;
  letter-spacing: 0.03em;
}

/* ---------- FAQ ---------- */
.faq-list details {
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 10px;
  max-width: 780px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--serif);
  font-size: 17px;
  list-style: none;
  position: relative;
  padding-right: 34px;
  letter-spacing: -0.01em;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '+';
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 22px;
  color: var(--accent);
  transition: transform 0.2s;
}

.faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-list details p {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 15px;
}

/* ---------- Formulaire ---------- */
form.order-form {
  max-width: 660px;
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

form.order-form label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  color: var(--ink);
}

form.order-form input,
form.order-form select,
form.order-form textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--cream);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}

form.order-form input:focus,
form.order-form select:focus,
form.order-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46, 87, 65, 0.12);
}

form.order-form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* ---------- CTA final ---------- */
.final-cta {
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(46, 87, 65, 0.35) 0%, transparent 65%),
    var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 88px 26px;
}

.final-cta h2 {
  color: var(--paper);
  max-width: 24ch;
  margin: 0 auto 8px;
}

.final-cta p {
  color: #aeb8ae;
  max-width: 52ch;
  margin: 12px auto 30px;
  font-size: 16px;
}

.final-cta .btn {
  background: var(--paper);
  color: var(--ink) !important;
  border-color: var(--paper);
}

.final-cta .btn:hover {
  background: var(--cream);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.5);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #10150f;
  color: #a7b1a5;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 56px 26px 36px;
}

.site-footer h3 {
  color: var(--paper);
  font-size: 11px;
  margin-bottom: 16px;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
}

.site-footer a {
  display: block;
  color: #a7b1a5;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.15s;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer p {
  font-size: 13.5px;
  line-height: 1.7;
  max-width: 38ch;
}

.logo-light {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 12px;
}

.footer-bottom {
  border-top: 1px solid #222b20;
  padding: 20px 26px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #76816f;
}

/* ---------- Catalogue & guides ---------- */
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 4px;
}

.chip {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent-deep);
  background: rgba(46, 87, 65, 0.09);
  border: 1px solid rgba(46, 87, 65, 0.18);
  border-radius: 999px;
  padding: 5px 13px;
}

.badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.search-bar {
  margin: 26px 0 6px;
}

.search-bar input {
  width: 100%;
  max-width: 560px;
  padding: 15px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46, 87, 65, 0.12);
}

.race-grid {
  margin-top: 26px;
}

#preview3d {
  position: relative;
  height: 400px;
  margin: 30px 0 8px;
  border-radius: 18px;
  border: 1px solid var(--hairline);
  overflow: hidden;
  background:
    radial-gradient(700px 420px at 50% 35%, #e9ece0 0%, #dde3d0 70%, #d3dbc4 100%);
  box-shadow: var(--shadow-soft);
}

#preview3d canvas {
  display: block;
}

.formats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 26px;
}

.format-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.format-card .format-dims {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
}

.format-card p {
  color: var(--muted);
  font-size: 13.5px;
  flex: 1;
}

.format-card .price {
  font-size: 24px;
  margin-bottom: 10px;
}

.format-card .btn {
  width: 100%;
}

@media (max-width: 880px) {
  .formats {
    grid-template-columns: 1fr;
  }

  #preview3d {
    height: 320px;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .fiche-hero {
    grid-template-columns: 1fr;
  }

  .steps,
  .cards {
    grid-template-columns: 1fr;
  }

  .reassurance-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .scrolly.scrolly-active {
    height: 240vh;
  }

  .scrolly-overlay.step-1::before {
    background: linear-gradient(
      180deg,
      rgba(247, 246, 241, 0.94) 0%,
      rgba(247, 246, 241, 0.75) 55%,
      rgba(247, 246, 241, 0.2) 100%
    );
  }

  .caption-card {
    padding: 24px;
    max-width: 100%;
  }

  section.block {
    padding: 64px 0;
  }

  .buy-box {
    position: static;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
