@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=DM+Sans:wght@400;500&display=swap');

:root {
  --color-bg: #FDFAF6;
  --color-bg-alt: #F5EFE8;
  --color-text: #2C2416;
  --color-text-light: #8C7B6B;
  --color-gold: #C9A96E;
  --color-gold-light: #E8D5B0;
  --color-rose: #F2C4CE;
  --color-sage: #8FAF9F;
  --color-blue: #B8CDD9;
  --color-white: #FFFFFF;
  --color-border: #E8DDD0;
  --container: 1100px;
  --radius: 12px;
  --radius-sm: 4px;
  --ease: 260ms ease;
  --shadow-soft: 0 16px 40px rgba(44, 36, 22, 0.08);
  --shadow-card: 0 10px 24px rgba(44, 36, 22, 0.06);
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: 48px 0;
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2rem, 8vw, 3.5rem);
}

h2 {
  font-size: clamp(1.8rem, 6vw, 2.8rem);
}

p {
  margin: 0 0 1rem;
  color: var(--color-text-light);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold-light), var(--color-gold));
  will-change: width;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  transition: background-color var(--ease), box-shadow var(--ease), backdrop-filter var(--ease);
}

.site-header.scrolled {
  background: rgba(253, 250, 246, 0.92);
  box-shadow: 0 6px 20px rgba(44, 36, 22, 0.08);
  backdrop-filter: saturate(120%) blur(10px);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 600;
}

.nav {
  display: flex;
  gap: 0.85rem;
  font-size: 0.95rem;
}

.nav a {
  padding: 0.7rem 0.4rem;
  min-width: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero {
  --hero-parallax-y: 0px;
  min-height: calc(100vh - var(--header-h));
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-parallax-layer {
  position: absolute;
  inset: 0;
  transform: translate3d(0, var(--hero-parallax-y), 0) scale(1.08);
  transform-origin: center;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  will-change: transform;
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(255, 248, 238, 0.78) 0%, rgba(253, 250, 246, 0.88) 55%, rgba(253, 250, 246, 0.96) 100%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.22) 0 2px, rgba(0, 0, 0, 0) 2px 12px);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.2rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), background-position var(--ease);
  will-change: transform, background-position;
}

.btn-gold {
  color: var(--color-white);
  background: linear-gradient(120deg, #b99252 0%, var(--color-gold) 40%, #f0dcb9 100%);
  background-size: 200% 100%;
  box-shadow: 0 8px 22px rgba(201, 169, 110, 0.3);
}

.btn-gold:hover,
.btn-gold:focus-visible {
  transform: translateY(-2px);
  background-position: 100% 0;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  animation: bounce 2s infinite;
  will-change: transform;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

.product-grid {
  display: grid;
  gap: 1.5rem;
}

.product-visual {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.product-image {
  opacity: 1;
  transition: opacity 400ms ease;
  will-change: opacity;
}

.product-image.fading {
  opacity: 0.2;
}

.price {
  color: var(--color-gold);
  font-size: clamp(2rem, 8vw, 2.5rem);
  font-family: 'Cormorant Garamond', serif;
  margin-bottom: 1rem;
}

.color-selector {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0 0.5rem;
}

.color-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.color-option-label {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.color-chip {
  background: transparent;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.35rem;
  min-width: 48px;
  min-height: 48px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.color-chip span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(44, 36, 22, 0.15);
}

.color-chip.active {
  border-color: var(--color-gold);
}

.chip-rose span { background: var(--color-rose); }
.chip-sage span { background: var(--color-sage); }
.chip-blue span { background: var(--color-blue); }

.features {
  list-style: none;
  margin: 1rem 0 1.2rem;
  padding: 0;
}

.features li {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}

.story {
  background: var(--color-bg-alt);
}

.story .quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-style: italic;
  color: var(--color-text);
}

.packaging {
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.occasion-grid,
.trust-grid {
  display: grid;
  gap: 1rem;
}

.card {
  padding: 1rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
  will-change: transform;
}

.card:not(.card--clickable):hover,
.card:not(.card--clickable):focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-gold);
}

.trust-item {
  text-align: center;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem;
}

.site-footer {
  background: var(--color-text);
  color: var(--color-bg);
  padding: 2rem 0 calc(2rem + env(safe-area-inset-bottom));
}

.site-footer p,
.site-footer a {
  color: rgba(253, 250, 246, 0.9);
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 500ms ease, transform 500ms ease;
  will-change: transform, opacity;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.blog-hero,
.contact-hero {
  min-height: 40vh;
  display: grid;
  place-items: center;
  background: var(--color-bg-alt);
  text-align: center;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin: 1rem 0;
}

.breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.article-grid {
  display: grid;
  gap: 1rem;
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  background: var(--color-gold-light);
  color: var(--color-text);
}

.read-link {
  position: relative;
  color: var(--color-text);
  font-weight: 500;
}

.read-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width var(--ease);
}

.read-link:hover::after,
.read-link:focus-visible::after {
  width: 100%;
}

.article-page {
  background: var(--color-bg);
}

.article-hero .breadcrumb {
  justify-content: center;
  text-align: center;
  margin-bottom: 0.75rem;
}

.article-hero .badge {
  margin-top: 0.5rem;
}

.article-hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  margin: 0.75rem 0 0.5rem;
  line-height: 1.2;
}

.article-dateline {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.article-section {
  padding-top: 2rem;
}

.article-body {
  max-width: 42rem;
  margin-inline: auto;
}

.article-featured-wrap {
  margin: 0 0 1.5rem;
}

.article-featured-img {
  display: block;
  width: 100%;
  max-height: min(70vh, 480px);
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.article-gallery {
  display: grid;
  gap: 1rem;
  margin: 0 0 2rem;
}

.article-gallery-item {
  margin: 0;
}

.article-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.article-prose {
  margin-top: 0.5rem;
}

.article-prose p {
  margin: 0 0 1.1em;
  text-align: justify;
  hyphens: auto;
}

.article-prose p:first-child {
  text-indent: 0;
}

.article-prose strong,
.article-prose b {
  font-weight: 600;
}

.article-prose em,
.article-prose i {
  font-style: italic;
}

.article-prose a {
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--ease), opacity var(--ease);
}

.article-prose a:hover {
  color: var(--color-text);
  opacity: 0.85;
}

.article-prose ul,
.article-prose ol {
  padding-left: 1.4em;
  margin: 0 0 1.1em;
}

.article-prose li {
  margin-bottom: 0.3em;
}

.article-prose h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 1.8em 0 0.6em;
  color: var(--color-text);
}

.article-prose h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.4em 0 0.4em;
  color: var(--color-text);
}

.article-prose blockquote {
  border-left: 3px solid var(--color-gold-light);
  margin: 1.2em 0;
  padding: 0.4em 1em;
  color: var(--color-text-light);
  font-style: italic;
}

.article-actions {
  margin-top: 2rem;
}

.card--clickable {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card--clickable:hover,
.card--clickable:focus-visible {
  box-shadow: 0 10px 36px rgba(44, 36, 22, 0.1);
  transform: translateY(-2px);
}

.card-thumb-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, var(--color-bg-alt), var(--color-border));
  margin-bottom: 0.85rem;
}

.card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-read-hint {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-gold);
}

@media (min-width: 768px) {
  .article-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-form-wrap {
  max-width: 560px;
  margin-inline: auto;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

.form-row {
  display: grid;
  gap: 0.9rem;
}

.field {
  position: relative;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  min-height: 48px;
  padding: 1rem 0.9rem 0.6rem;
  font: inherit;
  background: var(--color-white);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field label {
  position: absolute;
  left: 0.85rem;
  top: 0.95rem;
  color: var(--color-text-light);
  font-size: 0.9rem;
  transition: transform var(--ease), font-size var(--ease), top var(--ease);
  background: var(--color-white);
  padding: 0 0.2rem;
  pointer-events: none;
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: -0.45rem;
  font-size: 0.72rem;
}

/* Sujet : label au-dessus (select ne gère pas :placeholder-shown) */
.field-select label {
  position: static;
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--color-text-light);
  background: transparent;
  padding: 0;
  pointer-events: auto;
}

.field-select select {
  padding: 0.75rem 0.9rem;
}

.form-message {
  margin-top: 0.8rem;
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  display: none;
}

.form-message.success {
  display: block;
  background: #daefde;
}

.form-message.error {
  display: block;
  background: #f7d7de;
}

.tracker-pixel {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.honeypot-field {
  position: absolute;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}

.prose {
  line-height: 1.8;
}

@media (min-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .nav {
    gap: 1.2rem;
  }

  .btn {
    width: auto;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 2rem;
  }

  .occasion-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .hero-parallax-layer {
    transform: none !important;
  }
}
