/* ==========================================================================
   AUBE — Bougies rituelles artisanales parfumées
   Feuille de style principale
   ========================================================================== */

:root {
  --creme: #f6f1e7;
  --creme-2: #efe7d8;
  --blanc-chaud: #fdfbf6;
  --encre: #2a2118;
  --encre-2: #6f6150;
  --or: #ae7e22;
  --or-fonce: #8f6717;
  --or-clair: #d9b96a;
  --nuit: #171310;
  --nuit-2: #211b15;
  --ligne: rgba(74, 58, 36, 0.16);
  --ligne-or: rgba(174, 126, 34, 0.35);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", sans-serif;

  --transition-douce: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-nette: cubic-bezier(0.77, 0, 0.18, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--encre);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

::selection {
  background: var(--or);
  color: var(--creme);
}

.container {
  width: min(1200px, 100% - 3rem);
  margin-inline: auto;
}

.container-etroit {
  width: min(820px, 100% - 3rem);
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Typographie
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
.titre-serif {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

.label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--or);
}

.label--centre {
  display: block;
  text-align: center;
}

.titre-section {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  margin-top: 1.1rem;
}

.sous-titre {
  color: var(--encre-2);
  max-width: 56ch;
  margin-top: 1.3rem;
}

.texte-italique {
  font-family: var(--serif);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1.05rem 2.3rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  border: 1px solid var(--or);
  color: var(--or);
  background: transparent;
  overflow: hidden;
  z-index: 1;
  transition:
    color 0.4s ease,
    border-color 0.4s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--or);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--transition-nette);
  z-index: -1;
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn:hover,
.btn:focus-visible {
  color: var(--creme);
}

.btn--plein {
  background: var(--or);
  color: var(--creme);
}

.btn--plein::before {
  background: var(--encre);
}

.btn--plein:hover {
  border-color: var(--encre);
}

.btn--clair {
  border-color: var(--or-clair);
  color: var(--or-clair);
}

.btn--clair::before {
  background: var(--or-clair);
}

.btn--clair:hover {
  color: var(--nuit);
}

.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--or);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--ligne-or);
  transition:
    gap 0.35s ease,
    border-color 0.35s ease;
}

.lien-fleche:hover {
  gap: 1.05rem;
  border-color: var(--or);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* au-dessus du menu plein écran : sans cela le bouton de fermeture
     se retrouve sous le menu et devient inutilisable sur téléphone */
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem clamp(1.5rem, 4vw, 3.2rem);
  transition:
    padding 0.4s ease,
    background 0.4s ease,
    box-shadow 0.4s ease;
}

.site-nav.est-reduite {
  padding-block: 0.85rem;
  background: rgba(246, 241, 231, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--ligne);
}

.nav-marque {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--encre);
  transition: color 0.4s ease;
}

.nav-marque img {
  width: 30px;
  height: 30px;
}

.nav-liens {
  display: flex;
  gap: clamp(1.4rem, 2.6vw, 2.6rem);
}

.nav-liens a {
  position: relative;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--encre);
  padding-block: 0.4rem;
  transition: color 0.35s ease;
}

.nav-liens a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--or);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--transition-nette);
}

.nav-liens a:hover::after,
.nav-liens a.est-actif::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-liens a:hover,
.nav-liens a.est-actif {
  color: var(--or);
}

/* Nav sur héros sombre (rituel, histoire) */
body[data-entete="sombre"] .site-nav:not(.est-reduite) .nav-marque,
body[data-entete="sombre"] .site-nav:not(.est-reduite) .nav-liens a {
  color: var(--creme);
}

body[data-entete="sombre"] .site-nav:not(.est-reduite) .nav-liens a:hover,
body[data-entete="sombre"] .site-nav:not(.est-reduite) .nav-liens a.est-actif {
  color: var(--or-clair);
}

body[data-entete="sombre"] .site-nav:not(.est-reduite) .burger span {
  background: var(--creme);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 7px;
  padding: 0.6rem 0.2rem;
  z-index: 130;
}

.burger span {
  width: 30px;
  height: 1.5px;
  background: var(--encre);
  transition:
    transform 0.4s var(--transition-nette),
    opacity 0.3s ease,
    background 0.3s ease;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(4.25px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-4.25px) rotate(-45deg);
}

.burger[aria-expanded="true"] span {
  background: var(--encre) !important;
}

/* Menu mobile plein écran */
.menu-mobile {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 2.4rem;
  background: var(--creme);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.45s ease,
    visibility 0.45s ease;
}

.menu-mobile.est-ouvert {
  opacity: 1;
  visibility: visible;
}

.menu-mobile a.menu-lien {
  font-family: var(--serif);
  font-size: clamp(2rem, 8vw, 2.8rem);
  padding-block: 0.55rem;
  color: var(--encre);
  border-bottom: 1px solid var(--ligne);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.55s ease,
    transform 0.55s var(--transition-douce),
    color 0.3s ease;
}

.menu-mobile a.menu-lien small {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: var(--or);
}

.menu-mobile.est-ouvert a.menu-lien {
  opacity: 1;
  transform: none;
}

.menu-mobile a.menu-lien:hover,
.menu-mobile a.menu-lien.est-actif {
  color: var(--or);
}

.menu-mobile .menu-pied {
  margin-top: 2.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--encre-2);
  opacity: 0;
  transition: opacity 0.6s ease 0.35s;
}

.menu-mobile.est-ouvert .menu-pied {
  opacity: 1;
}

.menu-mobile .menu-pied a {
  color: var(--or);
}

/* --------------------------------------------------------------------------
   Héros accueil
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 7.2rem 1.5rem 4.5rem;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(
      42% 34% at 50% 30%,
      rgba(217, 185, 106, 0.28),
      transparent 70%
    ),
    radial-gradient(
      55% 42% at 82% 78%,
      rgba(174, 126, 34, 0.12),
      transparent 72%
    ),
    radial-gradient(
      48% 40% at 12% 86%,
      rgba(174, 126, 34, 0.1),
      transparent 70%
    );
}

.hero-embleme-fond {
  position: absolute;
  z-index: -1;
  width: min(88vw, 900px);
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.055;
  pointer-events: none;
}

/* Héros avec photo d'ambiance en fond */
.hero--photo::before {
  background:
    radial-gradient(
      40% 32% at 50% 26%,
      rgba(217, 185, 106, 0.16),
      transparent 72%
    ),
    radial-gradient(
      60% 46% at 84% 82%,
      rgba(174, 126, 34, 0.08),
      transparent 74%
    );
}

.hero-fond {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("../assets/img/accueil-fond-large.webp");
  background-size: cover;
  background-position: 50% 62%;
  opacity: 0.42;
  animation: fond-entree 2.4s var(--transition-douce) both;
}

/* voile crème pour garder le texte lisible */
.hero-fond::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(246, 241, 231, 0.62) 0%,
    rgba(246, 241, 231, 0.34) 42%,
    rgba(246, 241, 231, 0.72) 100%
  );
}

@keyframes fond-entree {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
  to {
    opacity: 0.42;
    transform: none;
  }
}

.hero-logo {
  width: clamp(230px, 30vw, 330px);
  height: auto;
  margin-bottom: 2.2rem;
  filter: drop-shadow(0 18px 45px rgba(174, 126, 34, 0.25));
}

.hero .label {
  margin-bottom: 1.9rem;
}

.hero-titre {
  font-size: clamp(1.9rem, 4.2vw, 3.3rem);
  font-weight: 500;
  max-width: 21ch;
  margin-inline: auto;
}

.hero-texte {
  max-width: 62ch;
  margin: 1.7rem auto 0;
  color: var(--encre-2);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
}

.hero-citation {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--or);
  margin-top: 1.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.1rem;
  margin-top: 2.7rem;
}

.hero-defiler {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--encre-2);
}

.hero-defiler::after {
  content: "";
  width: 1px;
  height: 52px;
  background: linear-gradient(var(--or), transparent);
  animation: fil-defiler 2.2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes fil-defiler {
  0% {
    transform: scaleY(0);
  }
  45% {
    transform: scaleY(1);
  }
  100% {
    transform: scaleY(1);
    opacity: 0;
  }
}

/* Animations d'entrée du héros */
[data-anim] {
  opacity: 0;
  transform: translateY(30px);
  animation: entree 1.1s var(--transition-douce) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes entree {
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-logo[data-anim] {
  transform: translateY(18px) scale(0.96);
}

/* --------------------------------------------------------------------------
   Bandeau défilant
   -------------------------------------------------------------------------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--ligne);
  background: var(--creme-2);
  padding-block: 1.05rem;
}

.marquee-piste {
  display: flex;
  gap: 3.4rem;
  width: max-content;
  animation: defiler 30s linear infinite;
}

.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 3.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--or-fonce);
  white-space: nowrap;
}

.marquee span::after {
  content: "✦";
  font-size: 0.6rem;
  color: var(--or-clair);
}

@keyframes defiler {
  to {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   Sections génériques
   -------------------------------------------------------------------------- */

.section {
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.section--alt {
  background: var(--creme-2);
}

.section--sombre {
  background: var(--nuit);
  color: var(--creme);
}

.entete-section {
  text-align: center;
  margin-bottom: clamp(2.8rem, 6vw, 4.5rem);
}

.entete-section .sous-titre {
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Collection (accueil)
   -------------------------------------------------------------------------- */

.grille-collection {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.1rem, 2vw, 1.8rem);
}

.carte-bougie {
  display: block;
  background: var(--blanc-chaud);
  border: 1px solid var(--ligne);
  transition:
    transform 0.55s var(--transition-douce),
    box-shadow 0.55s ease,
    border-color 0.4s ease;
}

.carte-bougie:hover {
  transform: translateY(-8px);
  border-color: var(--ligne-or);
  box-shadow: 0 26px 55px -28px rgba(74, 52, 18, 0.4);
}

.carte-bougie figure {
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
}

.carte-bougie img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--transition-douce);
}

.carte-bougie:hover img {
  transform: scale(1.06);
}

.carte-bougie figcaption {
  padding: 1.3rem 1.3rem 1.5rem;
  text-align: center;
}

.carte-bougie .notes {
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--or);
}

.carte-bougie h3 {
  font-size: 1.35rem;
  margin-top: 0.55rem;
  transition: color 0.35s ease;
}

.carte-bougie:hover h3 {
  color: var(--or-fonce);
}

.pied-collection {
  text-align: center;
  margin-top: clamp(2.6rem, 5vw, 3.8rem);
}

/* --------------------------------------------------------------------------
   Édition limitée (accueil)
   -------------------------------------------------------------------------- */

.edition-limitee {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.edition-photo {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--ligne-or);
}

.edition-photo img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  transition: transform 1.2s var(--transition-douce);
}

.edition-photo:hover img {
  transform: scale(1.05);
}

.edition-sceau {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 0.5rem 1.05rem;
  background: var(--encre);
  color: var(--or-clair);
}

.notes-edition {
  font-size: 0.63rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--or);
  margin-top: 1rem;
}

.edition-prix {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--or-fonce);
  margin-top: 1.6rem;
}

.edition-prix span {
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--encre-2);
}

.edition-texte .btn {
  margin-top: 1.8rem;
}

/* --------------------------------------------------------------------------
   Bandeau rituel (accueil) + héros rituel
   -------------------------------------------------------------------------- */

.bandeau-rituel {
  position: relative;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.bandeau-rituel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      50% 60% at 50% 108%,
      rgba(174, 126, 34, 0.3),
      transparent 72%
    ),
    radial-gradient(
      34% 30% at 14% 8%,
      rgba(217, 185, 106, 0.08),
      transparent 70%
    );
}

.bandeau-rituel .titre-section {
  color: var(--creme);
  font-style: italic;
  font-weight: 500;
  max-width: 24ch;
  margin-inline: auto;
}

.bandeau-rituel .sous-titre {
  color: rgba(246, 241, 231, 0.66);
  margin-inline: auto;
}

.bandeau-rituel .btn {
  margin-top: 2.6rem;
}

.flamme {
  display: block;
  width: 10px;
  height: 26px;
  margin: 0 auto 1.8rem;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: linear-gradient(var(--or-clair), var(--or));
  box-shadow: 0 0 22px 7px rgba(217, 185, 106, 0.35);
  animation: vaciller 3.2s ease-in-out infinite;
  transform-origin: 50% 100%;
}

@keyframes vaciller {
  0%,
  100% {
    transform: scale(1) rotate(-1.6deg);
    opacity: 0.94;
  }
  30% {
    transform: scale(1.06, 1.12) rotate(1.8deg);
    opacity: 1;
  }
  55% {
    transform: scale(0.97, 0.94) rotate(-2.4deg);
    opacity: 0.9;
  }
  80% {
    transform: scale(1.04, 1.06) rotate(1.2deg);
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   Aperçu histoire (accueil)
   -------------------------------------------------------------------------- */

.apercu-histoire {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(2.4rem, 6vw, 5.5rem);
  align-items: center;
}

.apercu-histoire .cadre-photo {
  position: relative;
}

.cadre-photo img {
  width: 100%;
  aspect-ratio: 4 / 4.7;
  object-fit: cover;
  object-position: 50% 18%;
}

.cadre-photo::after {
  content: "";
  position: absolute;
  inset: 1.15rem -1.15rem -1.15rem 1.15rem;
  border: 1px solid var(--ligne-or);
  z-index: -1;
}

.apercu-histoire blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.35;
  margin-top: 1.4rem;
}

.apercu-histoire .sous-titre {
  margin-bottom: 2.2rem;
}

/* --------------------------------------------------------------------------
   Piliers (soja / Grasse / Paris)
   -------------------------------------------------------------------------- */

.piliers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}

.pilier {
  padding: 2.6rem 1.6rem;
  border: 1px solid var(--ligne);
  background: var(--blanc-chaud);
  transition:
    transform 0.5s var(--transition-douce),
    border-color 0.4s ease;
}

.pilier:hover {
  transform: translateY(-6px);
  border-color: var(--ligne-or);
}

.pilier svg {
  width: 40px;
  height: 40px;
  stroke: var(--or);
  fill: none;
  stroke-width: 1.1;
  margin-bottom: 1.2rem;
}

.pilier h3 {
  font-size: 1.3rem;
}

.pilier p {
  font-size: 0.9rem;
  color: var(--encre-2);
  margin-top: 0.7rem;
}

/* --------------------------------------------------------------------------
   Héros de pages intérieures
   -------------------------------------------------------------------------- */

.entete-page {
  padding: clamp(9rem, 16vw, 12.5rem) 1.5rem clamp(3.4rem, 7vw, 5.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.entete-page::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto;
  height: 130%;
  z-index: -1;
  background: radial-gradient(
    46% 42% at 50% 18%,
    rgba(217, 185, 106, 0.2),
    transparent 72%
  );
}

.entete-page h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin-top: 1.2rem;
}

.entete-page .sous-titre {
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Filtres (page bougies)
   -------------------------------------------------------------------------- */

.filtres {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: clamp(3rem, 6vw, 4.6rem);
}

.filtre {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--ligne);
  color: var(--encre-2);
  transition: all 0.35s ease;
}

.filtre:hover {
  border-color: var(--or);
  color: var(--or);
}

.filtre.est-actif {
  background: var(--or);
  border-color: var(--or);
  color: var(--creme);
}

/* --------------------------------------------------------------------------
   Fiches produit (page bougies)
   -------------------------------------------------------------------------- */

.liste-produits {
  display: flex;
  flex-direction: column;
  gap: clamp(4rem, 8vw, 6.5rem);
}

.produit {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.produit:nth-child(even) .produit-visuel {
  order: 2;
}

.produit.est-filtre {
  opacity: 0;
  transform: scale(0.98);
}

.produit[hidden] {
  display: none;
}

.produit-visuel {
  position: relative;
}

.produit-images {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--creme-2);
}

.produit-images img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 0.7s ease,
    transform 1s var(--transition-douce);
}

.produit-images img.est-active {
  opacity: 1;
  transform: scale(1);
}

.badge-famille {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 2;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 0.45rem 0.95rem;
  background: rgba(246, 241, 231, 0.92);
  color: var(--or-fonce);
}

.produit-infos .notes {
  font-size: 0.63rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--or);
}

.produit-infos h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin-top: 0.8rem;
}

.produit-infos .desc {
  color: var(--encre-2);
  margin-top: 1.1rem;
  max-width: 48ch;
}

.formats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-top: 1.9rem;
  max-width: 420px;
}

.format {
  padding: 1.05rem 1rem 0.95rem;
  border: 1px solid var(--ligne);
  background: var(--blanc-chaud);
  text-align: center;
  transition:
    border-color 0.35s ease,
    background 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.format:hover {
  border-color: var(--or);
  transform: translateY(-3px);
}

.format.est-actif {
  border-color: var(--or);
  background: var(--creme);
  box-shadow:
    inset 0 0 0 1px var(--or),
    0 14px 30px -18px rgba(143, 103, 23, 0.55);
}

.format-prix {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--encre);
}

.format.est-actif .format-prix {
  color: var(--or-fonce);
}

.format-detail {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--encre-2);
  margin-top: 0.35rem;
}

.format-aide {
  font-size: 0.74rem;
  color: var(--encre-2);
  font-style: italic;
  margin-top: 0.85rem;
  transition: opacity 0.3s ease;
}

.produit .btn {
  margin-top: 1.7rem;
}

/* Édition limitée */
.filtre--limitee {
  border-color: var(--ligne-or);
  color: var(--or);
}

.filtre--limitee.est-actif {
  background: var(--encre);
  border-color: var(--encre);
  color: var(--or-clair);
}

.produit--limitee .produit-images {
  box-shadow: inset 0 0 0 1px var(--ligne-or);
}

.badge-famille--limitee {
  background: var(--encre);
  color: var(--or-clair);
}

.produit--limitee .produit-infos h2 {
  color: var(--or-fonce);
}

.formats--unique {
  grid-template-columns: minmax(0, 200px);
}

.note-bougies {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--or-fonce);
  max-width: 42ch;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Page rituel
   -------------------------------------------------------------------------- */

.hero-rituel {
  min-height: 88svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 5rem;
  background: var(--nuit);
  color: var(--creme);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-rituel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      46% 40% at 50% 88%,
      rgba(174, 126, 34, 0.34),
      transparent 70%
    ),
    radial-gradient(
      30% 26% at 82% 12%,
      rgba(217, 185, 106, 0.07),
      transparent 70%
    );
}

.hero-rituel h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  font-style: italic;
  font-weight: 500;
  max-width: 22ch;
  margin: 1.4rem auto 0;
}

.hero-rituel .sous-titre {
  color: rgba(246, 241, 231, 0.68);
  margin-inline: auto;
}

.etapes {
  display: flex;
  flex-direction: column;
}

.etape {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: clamp(1.4rem, 4vw, 3.4rem);
  align-items: baseline;
  padding: clamp(1.8rem, 3.6vw, 2.6rem) 1rem;
  border-bottom: 1px solid var(--ligne);
  transition:
    background 0.45s ease,
    padding-left 0.45s ease;
}

.etape:first-child {
  border-top: 1px solid var(--ligne);
}

.etape:hover {
  background: var(--blanc-chaud);
  padding-left: 1.8rem;
}

.etape-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  color: var(--or-clair);
  transition: color 0.4s ease;
}

.etape:hover .etape-num {
  color: var(--or);
}

.etape h3 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
}

.etape p {
  color: var(--encre-2);
  margin-top: 0.55rem;
  max-width: 62ch;
}

/* --------------------------------------------------------------------------
   Page notre histoire
   -------------------------------------------------------------------------- */

.hero-histoire {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 92svh;
  background: var(--nuit);
  color: var(--creme);
}

.hero-histoire-texte {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(8rem, 14vw, 10rem) clamp(1.8rem, 5vw, 5rem)
    clamp(3.5rem, 7vw, 5rem);
  position: relative;
  isolation: isolate;
}

.hero-histoire-texte::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    52% 44% at 24% 90%,
    rgba(174, 126, 34, 0.22),
    transparent 72%
  );
}

.hero-histoire-texte h1 {
  font-size: clamp(2.7rem, 5.6vw, 4.5rem);
  margin-top: 1.2rem;
}

.hero-histoire-texte .titre-sous {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  color: var(--or-clair);
  margin-top: 0.5rem;
}

.hero-histoire-texte .sous-titre {
  color: rgba(246, 241, 231, 0.66);
}

.hero-histoire-photo {
  position: relative;
  overflow: hidden;
}

.hero-histoire-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.hero-histoire-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(23, 19, 16, 0.72) 0%, transparent 22%),
    linear-gradient(100deg, var(--nuit) 0%, transparent 26%);
}

.citation-majeure {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.75rem, 3.6vw, 2.9rem);
  line-height: 1.32;
  text-align: center;
  max-width: 26ch;
  margin-inline: auto;
  color: var(--encre);
}

.citation-majeure em {
  color: var(--or-fonce);
}

.recit p {
  font-size: clamp(1.02rem, 1.5vw, 1.14rem);
  line-height: 1.85;
  color: var(--encre-2);
  margin-bottom: 1.7rem;
}

.recit p.accent {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 1.9vw, 1.45rem);
  color: var(--encre);
}

.recit p.conclusion {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  color: var(--encre);
}

.signature {
  margin-top: 3rem;
  text-align: right;
}

.signature .salutation {
  font-size: 0.95rem;
  color: var(--encre-2);
}

.signature .nom {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--or-fonce);
  margin-top: 0.4rem;
}

/* --------------------------------------------------------------------------
   Page contact
   -------------------------------------------------------------------------- */

.grille-contact {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.grille-contact > * {
  min-width: 0;
}

.onglets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2.2rem;
}

.onglet {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding: 0.8rem 1.6rem;
  border: 1px solid var(--ligne);
  color: var(--encre-2);
  transition: all 0.35s ease;
}

.onglet:hover {
  border-color: var(--or);
  color: var(--or);
}

.onglet.est-actif {
  background: var(--or);
  border-color: var(--or);
  color: var(--creme);
}

.champ {
  margin-bottom: 1.6rem;
}

.champ label {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--encre-2);
  margin-bottom: 0.5rem;
}

.champ input,
.champ select,
.champ textarea {
  width: 100%;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  color: var(--encre);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ligne);
  padding: 0.65rem 0.1rem;
  transition: border-color 0.35s ease;
  border-radius: 0;
}

.champ select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' fill='none'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%23ae7e22'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.3rem center;
}

.champ input:focus,
.champ select:focus,
.champ textarea:focus {
  outline: none;
  border-bottom-color: var(--or);
}

.champ textarea {
  resize: vertical;
  min-height: 130px;
}

.rangee-champs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

.aide-envoi {
  font-size: 0.76rem;
  color: var(--encre-2);
  font-style: italic;
  margin-top: 1rem;
}

[data-panneau][hidden] {
  display: none;
}

/* Coordonnées */
.coordonnees {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2.6rem 2.2rem;
  background: var(--blanc-chaud);
  border: 1px solid var(--ligne);
}

.coordonnee .label {
  letter-spacing: 0.34em;
  font-size: 0.6rem;
}

.coordonnee a,
.coordonnee p {
  display: inline-block;
  font-family: var(--serif);
  font-size: 1.25rem;
  margin-top: 0.45rem;
  transition: color 0.3s ease;
}

.coordonnee a:hover {
  color: var(--or);
}

.coordonnee small {
  display: block;
  font-size: 0.78rem;
  color: var(--encre-2);
  margin-top: 0.2rem;
}

/* Commandes personnalisées */
.personnalise {
  position: relative;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.personnalise::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    48% 56% at 50% 112%,
    rgba(174, 126, 34, 0.28),
    transparent 72%
  );
}

.personnalise .titre-section {
  color: var(--creme);
  font-style: italic;
}

.personnalise .sous-titre {
  color: rgba(246, 241, 231, 0.68);
  margin-inline: auto;
}

.personnalise .btn {
  margin-top: 2.5rem;
}

.liste-personnalise {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2.1rem;
}

.liste-personnalise span {
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--or-clair);
  border: 1px solid rgba(217, 185, 106, 0.35);
  padding: 0.6rem 1.2rem;
}

/* --------------------------------------------------------------------------
   Bandeau CTA final
   -------------------------------------------------------------------------- */

.cta-final {
  text-align: center;
}

.cta-final .titre-section {
  max-width: 22ch;
  margin-inline: auto;
}

.cta-final .btn {
  margin-top: 2.5rem;
}

/* --------------------------------------------------------------------------
   Choisir un état d'âme (page rituel)
   -------------------------------------------------------------------------- */

.etats-entete {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2.4rem, 5vw, 3.6rem);
}

.etats-entete .titre-section {
  margin-top: 0.8rem;
}

.grille-ames {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.1rem, 2vw, 1.8rem);
}

.carte-ame {
  display: block;
}

.carte-ame figure {
  overflow: hidden;
  background: var(--nuit-2);
}

.carte-ame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 1.1s var(--transition-douce);
}

.carte-ame:hover img {
  transform: scale(1.05);
}

.ame-nom {
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.25;
  margin-top: 1.1rem;
  transition: color 0.35s ease;
}

.carte-ame:hover .ame-nom {
  color: var(--or-fonce);
}

.ame-notes {
  font-size: 0.82rem;
  color: var(--encre-2);
  margin-top: 0.35rem;
}

.ame-prix {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--or);
  margin-top: 0.7rem;
}

.ame-lien {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--encre-2);
  margin-top: 0.9rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--ligne);
  transition:
    gap 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease;
}

.carte-ame:hover .ame-lien {
  gap: 0.95rem;
  color: var(--or);
  border-color: var(--ligne-or);
}

/* --------------------------------------------------------------------------
   Page légale
   -------------------------------------------------------------------------- */

.texte-legal article {
  padding-block: clamp(1.6rem, 3vw, 2.2rem);
  border-bottom: 1px solid var(--ligne);
}

.texte-legal article:first-child {
  border-top: 1px solid var(--ligne);
}

.texte-legal h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin-bottom: 0.9rem;
}

.texte-legal p {
  color: var(--encre-2);
  margin-bottom: 1rem;
}

.texte-legal p:last-child {
  margin-bottom: 0;
}

.texte-legal ul {
  list-style: none;
  color: var(--encre-2);
}

.texte-legal li {
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.texte-legal li::before {
  content: "✦";
  position: absolute;
  left: 0;
  font-size: 0.6rem;
  color: var(--or-clair);
  top: 0.35em;
}

.texte-legal strong {
  font-weight: 500;
  color: var(--encre);
}

.texte-legal a {
  color: var(--or);
  border-bottom: 1px solid var(--ligne-or);
  transition: border-color 0.3s ease;
}

.texte-legal a:hover {
  border-color: var(--or);
}

.a-completer {
  font-family: var(--serif);
  font-style: italic;
  color: var(--or-fonce);
}

.note-legal {
  margin-top: 2.4rem;
  font-family: var(--serif);
  font-style: italic;
  text-align: center;
  color: var(--or-fonce);
}

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--creme-2);
  border-top: 1px solid var(--ligne);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
}

.footer-grille {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: clamp(2.2rem, 5vw, 4rem);
  padding-bottom: clamp(2.6rem, 5vw, 4rem);
}

.footer-marque img {
  width: 54px;
  margin-bottom: 1.1rem;
}

.footer-marque .nom-marque {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.34em;
}

.footer-marque p {
  font-size: 0.9rem;
  color: var(--encre-2);
  max-width: 34ch;
  margin-top: 1rem;
}

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 1.3rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.65rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--encre-2);
  transition:
    color 0.3s ease,
    padding-left 0.3s ease;
}

.footer-col a:hover {
  color: var(--or);
  padding-left: 0.4rem;
}

.footer-col .footer-adresse {
  font-size: 0.9rem;
  color: var(--encre-2);
  font-style: normal;
  line-height: 1.9;
}

.footer-bas {
  border-top: 1px solid var(--ligne);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--encre-2);
}

.footer-bas .lien-legal {
  color: var(--encre-2);
  border-bottom: 1px solid transparent;
  transition:
    color 0.3s ease,
    border-color 0.3s ease;
}

.footer-bas .lien-legal:hover {
  color: var(--or);
  border-color: var(--ligne-or);
}

.footer-bas .fait-main {
  font-style: italic;
  font-family: var(--serif);
  letter-spacing: 0.04em;
  font-size: 0.88rem;
}

/* --------------------------------------------------------------------------
   Révélations au défilement
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.95s ease,
    transform 0.95s var(--transition-douce);
  transition-delay: var(--d, 0s);
}

.reveal.est-visible {
  opacity: 1;
  transform: none;
}

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

@media (max-width: 1024px) {
  .grille-collection {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .nav-liens {
    display: none;
  }

  .burger {
    display: flex;
  }

  .produit,
  .produit:nth-child(even) .produit-visuel {
    grid-template-columns: 1fr;
    order: 0;
  }

  .produit {
    gap: 1.8rem;
  }

  .produit:nth-child(even) .produit-visuel {
    order: -1;
  }

  .produit-visuel {
    order: -1;
  }

  .hero-histoire {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-histoire-photo {
    min-height: 64vw;
    order: -1;
  }

  .hero-histoire-photo::after {
    background: linear-gradient(
      180deg,
      rgba(23, 19, 16, 0.35) 0%,
      transparent 30%,
      transparent 62%,
      var(--nuit) 100%
    );
  }

  .hero-histoire-texte {
    padding-top: 3rem;
  }

  .grille-contact {
    grid-template-columns: 1fr;
  }

  .apercu-histoire {
    grid-template-columns: 1fr;
  }

  .apercu-histoire .cadre-photo {
    max-width: 430px;
  }

  .piliers {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-inline: auto;
  }

  .etape {
    grid-template-columns: 64px 1fr;
  }

  .grille-ames {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  /* Confort de lecture et de toucher sur téléphone :
     les micro-libellés gagnent un point, les liens une zone tactile. */
  .label {
    font-size: 0.68rem;
  }

  .carte-bougie .notes,
  .produit-infos .notes,
  .notes-edition,
  .edition-sceau,
  .badge-famille {
    font-size: 0.68rem;
  }

  .marquee span {
    font-size: 0.72rem;
  }

  .burger {
    padding: 0.85rem 0.6rem;
    margin-right: -0.6rem;
  }

  .footer-col li {
    margin-bottom: 0.2rem;
  }

  .footer-col a,
  .lien-legal {
    display: inline-block;
    padding-block: 0.45rem;
  }

  .lien-fleche {
    padding-block: 0.4rem 0.55rem;
  }

  .grille-collection {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1.2rem;
    margin-inline: -1.5rem;
    padding-inline: 1.5rem;
    scrollbar-width: none;
  }

  .grille-collection::-webkit-scrollbar {
    display: none;
  }

  .carte-bougie {
    flex: 0 0 78%;
    scroll-snap-align: center;
  }

  .rangee-champs {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .formats {
    max-width: none;
  }

  .hero {
    padding-top: 6.4rem;
  }

  .hero-fond {
    background-image: url("../assets/img/accueil-fond-portrait.webp");
    background-position: 50% 58%;
  }

  .hero > *,
  .hero-rituel > div,
  .hero-rituel h1 {
    max-width: 100%;
  }

  .label {
    font-size: 0.68rem;
    letter-spacing: 0.3em;
  }

  .hero-defiler {
    display: none;
  }

  .footer-grille {
    grid-template-columns: 1fr;
  }

  .grille-ames {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }

  .etats-entete {
    align-items: flex-start;
  }

  .footer-bas {
    justify-content: center;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   Accessibilité
   -------------------------------------------------------------------------- */

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  [data-anim] {
    opacity: 1;
    transform: none;
  }
}
