/* =============================================================
   FONTS
   ============================================================= */

@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/dm-sans-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/dm-sans-latin-wght-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/montserrat-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}


/* =============================================================
   DESIGN TOKENS
   ============================================================= */

:root {
  --color-primary: hsl(210 12% 24%);
  --color-accent: hsl(262 70% 57%);
  --color-accent-hover: hsl(262 62% 48%);
  --color-bg: hsl(210 14% 95%);
  --color-text: hsl(210 10% 18%);
  --color-light: hsl(0 0% 100%);
  --color-muted: hsl(210 8% 40%);
  --color-border: hsl(210 12% 84%);
  --color-secondary-bg: hsl(210 16% 91%);
  --gradient-primary: linear-gradient(135deg, hsl(262 70% 57%) 0%, hsl(316 56% 61%) 100%);
  --shadow-sm: 0 4px 12px -7px hsl(210 10% 20% / .14);
  --shadow-md: 0 14px 36px -16px hsl(210 10% 20% / .18);
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --max-width: 860px;
  --max-width-wide: 1100px;
}


/* =============================================================
   RESET
   ============================================================= */

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


/* =============================================================
   BASE
   ============================================================= */

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}

main {
  padding: 0;
}


/* =============================================================
   HERO
   ============================================================= */

.hero {
  padding: 2rem 1.5rem;
  background: linear-gradient(170deg, hsl(262 70% 57% / .07) 0%, transparent 60%);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  text-align: center;
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.hero-cover {
  max-width: min(320px, 85vw);
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  text-align: center;
}

.hero-eyebrow {
  font-size: .875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-accent);
}

.hero h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.15;
  color: var(--color-primary);
}

.hero-tagline {
  font-size: 1.125rem;
  color: var(--color-muted);
  max-width: 480px;
  margin: 0 auto .5rem;
}


/* =============================================================
   HERO GALLERY
   ============================================================= */

.hero-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .625rem;
}

.gallery-thumbs {
  display: flex;
  flex-direction: row;
  gap: .5rem;
  justify-content: center;
}

.gallery-thumb {
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  background: none;
  overflow: hidden;
  opacity: .55;
  transition: opacity .2s, border-color .2s;
  flex-shrink: 0;
}

.gallery-thumb:hover,
.gallery-thumb.is-active {
  opacity: 1;
  border-color: var(--color-accent);
}

.gallery-thumb img {
  display: block;
  width: 52px;
  height: auto;
  border-radius: 4px;
}


/* =============================================================
   TRUST BADGES & STARS
   ============================================================= */

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .875rem;
  margin-top: .625rem;
  justify-content: center;
}

.trust-badge {
  font-size: .78rem;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: .3rem;
}

.trust-badge::before {
  content: "✓";
  color: var(--color-accent);
  font-weight: 700;
}

.stars {
  color: hsl(44 90% 52%);
  font-size: 1.1rem;
  letter-spacing: .05em;
  margin-bottom: .375rem;
}


/* =============================================================
   PRICE & CTA BUTTON
   ============================================================= */

.price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.price-detail {
  font-size: .875rem;
  font-weight: 400;
  color: var(--color-muted);
}

.shipping-note {
  font-size: .8rem;
  color: var(--color-muted);
  margin-top: .25rem;
}

.btn-primary {
  display: inline-block;
  background: var(--gradient-primary);
  color: var(--color-light);
  border: none;
  padding: .875rem 2.5rem;
  width: 100%;
  max-width: 320px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: filter .2s, box-shadow .2s;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: var(--shadow-md);
}

.btn-primary:disabled {
  opacity: .6;
  cursor: not-allowed;
}


/* =============================================================
   SECTIONS
   ============================================================= */

section {
  padding: clamp(2rem, 5vw, 4rem) 1.5rem;
}

section + section {
  border-top: 1px solid var(--color-border);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-primary);
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
}

section > p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

#probleme {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}


/* =============================================================
   POUR QUI
   ============================================================= */

#pour-qui {
  background: var(--color-secondary-bg);
}

#pour-qui .section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.pour-qui-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.pour-qui-list li {
  position: relative;
  padding-left: 1.75rem;
  line-height: 1.6;
}

.pour-qui-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.1rem;
}


/* =============================================================
   TÉMOIGNAGES
   ============================================================= */

#temoignages {
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.temoignages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.temoignage {
  background: var(--color-light);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.temoignage p {
  font-style: italic;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.temoignage footer {
  border-top: none;
  padding: 0;
  text-align: right;
}

.temoignage cite {
  font-style: normal;
  font-size: .9rem;
  font-weight: 500;
  color: var(--color-accent);
}


/* =============================================================
   AUTRICE
   ============================================================= */

#autrice {
  background: var(--color-secondary-bg);
}

#autrice .section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.autrice-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.autrice-photo {
  border-radius: 14px;
  object-fit: cover;
  object-position: center top;
  box-shadow: var(--shadow-md);
  width: 160px;
  height: 200px;
}

.autrice-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.autrice-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.autrice-content a:hover {
  color: var(--color-accent);
}


/* =============================================================
   FAQ
   ============================================================= */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: 1rem;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-light);
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--color-accent);
  flex-shrink: 0;
  transition: transform .2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: .125rem 1.25rem 1rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
}


/* =============================================================
   CTA FINAL
   ============================================================= */

.cta-final {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: clamp(3rem, 6vw, 5rem) 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.cta-cover {
  max-width: 280px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  margin-bottom: .5rem;
}

.cta-final h2 {
  font-size: clamp(1.5rem, 4vw, 1.75rem);
}


/* =============================================================
   STICKY CTA
   ============================================================= */

#sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-light);
  border-top: 1px solid var(--color-border);
  padding: .75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
}

#sticky-cta.visible {
  display: flex;
}

#sticky-cta .sticky-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

#sticky-cta .sticky-price small {
  font-size: .75rem;
  font-weight: 400;
  color: var(--color-muted);
}

.btn-sticky {
  background: var(--gradient-primary);
  color: var(--color-light);
  border: none;
  padding: .7rem 1.5rem;
  font-size: .95rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}


/* =============================================================
   LIGHTBOX
   ============================================================= */

[data-lightbox] {
  cursor: zoom-in;
}

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

#lightbox.open {
  display: flex;
}

#lb-img {
  width: min(90vw, 860px);
  max-height: 88vh;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .5);
}

#lb-close,
#lb-prev,
#lb-next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  padding: .75rem;
  opacity: .85;
  transition: opacity .15s;
}

#lb-close:hover,
#lb-prev:hover,
#lb-next:hover {
  opacity: 1;
}

#lb-close {
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
}

#lb-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
}

#lb-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
}

#lb-counter {
  position: absolute;
  top: 1.1rem;
  left: 1.25rem;
  color: #fff;
  font-size: .875rem;
  opacity: .8;
}


/* =============================================================
   FOOTER
   ============================================================= */

footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--color-muted);
  font-size: .85rem;
  border-top: 1px solid var(--color-border);
}


/* =============================================================
   ANIMATIONS
   ============================================================= */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-children > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease-out, transform .5s ease-out;
}

.fade-in-children.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-children.is-visible > *:nth-child(1) { transition-delay: 0s; }
.fade-in-children.is-visible > *:nth-child(2) { transition-delay: .08s; }
.fade-in-children.is-visible > *:nth-child(3) { transition-delay: .16s; }
.fade-in-children.is-visible > *:nth-child(4) { transition-delay: .24s; }
.fade-in-children.is-visible > *:nth-child(5) { transition-delay: .32s; }
.fade-in-children.is-visible > *:nth-child(6) { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .fade-in-children > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* =============================================================
   RESPONSIVE — 600px+
   ============================================================= */

@media (min-width: 600px) {
  .autrice-content {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
  }

  .autrice-photo {
    flex-shrink: 0;
  }
}


/* =============================================================
   RESPONSIVE — 680px+
   ============================================================= */

@media (min-width: 680px) {
  .temoignages-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-inner {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 3rem;
  }

  .hero-gallery {
    flex-shrink: 0;
  }

  .hero-cover {
    max-width: 300px;
    width: 300px;
  }

  .hero-tagline {
    margin: 0 0 .5rem 0;
  }

  .btn-primary {
    width: auto;
    max-width: none;
    min-width: 220px;
    padding: .875rem 2.75rem;
  }

  .hero-text {
    align-items: flex-start;
    text-align: left;
  }

  .trust-badges {
    justify-content: flex-start;
  }

  .gallery-thumbs {
    flex-direction: column;
  }

  .hero-gallery {
    flex-direction: row;
    align-items: flex-start;
  }

  .gallery-thumb img {
    width: 72px;
  }

  #sticky-cta {
    display: none !important;
  }
}


/* =============================================================
   RESPONSIVE — 960px+
   ============================================================= */

@media (min-width: 960px) {
  .hero {
    padding: 5rem 2rem;
  }

  .hero-inner {
    gap: 4rem;
  }

  .hero-cover {
    max-width: 360px;
  }

  .gallery-thumb img {
    width: 80px;
  }
}
