/* ==========================================================================
   Creuse d'Amour - feuille de style principale
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Jetons de design
   -------------------------------------------------------------------------- */
:root {
  /* Couleurs de marque, relevees sur les visuels d'origine */
  --rouge: #d9403a;
  --rouge-clair: #e4635c;
  --rouge-fonce: #a82b26;
  --rouge-coeur: #de4f4f;

  --creme: #f7f2e7;
  --creme-2: #efe6d4;
  --creme-3: #e4d8c0;

  --noir: #141110;
  --noir-2: #241e1c;
  --noir-3: #3a312e;

  --bleu: #4a9bd8;
  --vert: #7fb069;
  --brun: #a8563a;
  --or: #d8a657;

  --blanc: #ffffff;

  /* Typographie */
  --display: "PT Serif", Georgia, "Times New Roman", serif;
  --corps: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Rythme */
  --gouttiere: clamp(1.25rem, 4vw, 3.5rem);
  --largeur-max: 1440px;
  --largeur-texte: 68ch;

  --section-y: clamp(4.5rem, 11vw, 10rem);

  /* Hauteur a reserver sous l'en-tete fixe (bandeau compris) */
  --espace-entete: clamp(9.5rem, 20vh, 12rem);

  /* Hauteur reelle de la barre fixe, pour caler l'arrivee des ancres */
  --hauteur-entete: clamp(4.75rem, 7vw, 6.25rem);

  /* Mouvement */
  --ease-doux: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-net: cubic-bezier(0.65, 0, 0.35, 1);

  --rayon: 4px;
  --rayon-l: 18px;

  --ombre-carte: 0 2px 4px rgba(20, 17, 16, 0.04), 0 12px 32px rgba(20, 17, 16, 0.07);
  --ombre-flottante: 0 18px 60px rgba(20, 17, 16, 0.16);

  /* Logotype de marque, applique en masque pour suivre currentColor */
  --logotype: url("../img/logotype-creuse-damour.png");
  --coeur: url("../img/coeur-creuse-damour.png");
}

/* --------------------------------------------------------------------------
   2. Reinitialisation
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* .entete est en position fixe : sans cette reserve, le lien d'evitement
     #contenu et l'ancre #fonctionnement arrivent masques sous la barre. */
  scroll-padding-top: var(--hauteur-entete);
}

body {
  margin: 0;
  background: var(--creme);
  color: var(--noir);
  font-family: var(--corps);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-ouvert { overflow: hidden; }

img,
picture,
video,
svg { max-width: 100%; height: auto; display: block; }

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

button,
input,
select,
textarea { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.15em; padding-left: 1.25em; }

figure { margin: 0; }

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

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

/* --------------------------------------------------------------------------
   3. Utilitaires de mise en page
   -------------------------------------------------------------------------- */
.enveloppe {
  width: 100%;
  max-width: var(--largeur-max);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

.enveloppe--etroite { max-width: 980px; }
.enveloppe--texte { max-width: 760px; }

.section { padding-block: var(--section-y); position: relative; }

.section--noir { background: var(--noir); color: var(--creme); }
.section--rouge { background: var(--rouge); color: var(--creme); }
.section--creme-2 { background: var(--creme-2); }

.lecteur-seul {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.lien-evitement {
  position: absolute;
  top: -100px; left: 1rem;
  z-index: 999;
  background: var(--rouge);
  color: var(--creme);
  padding: 0.85rem 1.4rem;
  border-radius: var(--rayon);
  font-weight: 600;
  transition: top 0.2s var(--ease-net);
}
.lien-evitement:focus { top: 1rem; }

/* Cible programmatique du lien d'evitement. Elle n'est pas atteignable a la
   tabulation : le retour visuel est le saut lui-meme, pas un anneau qui
   entourerait toute la page. */
main#contenu:focus,
main#contenu:focus-visible { outline: none; }

/* --------------------------------------------------------------------------
   4. Typographie de marque
   -------------------------------------------------------------------------- */
.titre-geant,
.titre-section,
.titre-carte {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.titre-geant {
  font-size: clamp(2.9rem, 11vw, 9rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.005em;
}

.titre-section {
  font-size: clamp(2rem, 5.2vw, 4rem);
  margin-bottom: 0.4em;
}

.titre-carte { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }

.surtitre {
  font-family: var(--corps);
  font-size: clamp(0.68rem, 0.85vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  margin-bottom: 1.5rem;
  color: var(--rouge);
}

.section--noir .surtitre,
.section--rouge .surtitre { color: var(--creme); opacity: 0.72; }

.surtitre::before {
  content: "";
  width: clamp(24px, 4vw, 52px);
  height: 2px;
  background: currentColor;
  flex: none;
}

.chapo {
  font-size: clamp(1.08rem, 1.5vw, 1.35rem);
  line-height: 1.55;
  max-width: 60ch;
  color: var(--noir-3);
}

.section--noir .chapo,
.section--rouge .chapo { color: rgba(247, 242, 231, 0.82); }

/* --------------------------------------------------------------------------
   5. Boutons
   -------------------------------------------------------------------------- */
.bouton,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  --btn-fond: var(--rouge);
  --btn-texte: var(--creme);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  padding: 1.05em 2.1em;
  background: var(--btn-fond);
  color: var(--btn-texte);
  font-family: var(--corps);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  border: 2px solid var(--btn-fond);
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s var(--ease-net), border-color 0.35s var(--ease-net),
              transform 0.35s var(--ease-doux), box-shadow 0.35s var(--ease-doux);
  text-decoration: none;
}

/* Remplissage qui monte au survol */
.bouton::after,
.woocommerce a.button::after,
.woocommerce button.button::after,
.woocommerce input.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--noir);
  transform: translateY(101%);
  transition: transform 0.42s var(--ease-doux);
  z-index: -1;
}

.bouton:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  color: var(--creme);
  border-color: var(--noir);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(20, 17, 16, 0.2);
  background: var(--btn-fond);
}

.bouton:hover::after,
.woocommerce a.button:hover::after,
.woocommerce button.button:hover::after,
.woocommerce input.button:hover::after { transform: translateY(0); }

.bouton:active { transform: translateY(0); }

/* Variantes */
.bouton--fantome {
  --btn-fond: transparent;
  --btn-texte: currentColor;
  border-color: currentColor;
}
.bouton--fantome::after { background: var(--rouge); }
.bouton--fantome:hover { color: var(--creme); border-color: var(--rouge); }

.bouton--creme { --btn-fond: var(--creme); --btn-texte: var(--noir); }
.bouton--creme::after { background: var(--rouge); }
.bouton--creme:hover { color: var(--creme); border-color: var(--rouge); }

.bouton--noir { --btn-fond: var(--noir); --btn-texte: var(--creme); }
.bouton--noir::after { background: var(--rouge); }
.bouton--noir:hover { border-color: var(--rouge); }

.bouton--large { width: 100%; }

/* --------------------------------------------------------------------------
   6. En-tete
   -------------------------------------------------------------------------- */
.entete {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  transition: transform 0.45s var(--ease-doux), background-color 0.35s ease,
              box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.entete--cache { transform: translateY(-100%); }

.entete--colle {
  background: rgba(247, 242, 231, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 rgba(20, 17, 16, 0.08);
}

.entete__interieur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(0.85rem, 1.6vw, 1.35rem);
  transition: padding 0.35s var(--ease-doux);
}

.entete--colle .entete__interieur { padding-block: 0.7rem; }

/* Logo : le logotype de marque, teinte par currentColor via un masque */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex: none;
  color: var(--rouge);
  transition: color 0.35s ease;
}

.coeur {
  display: block;
  width: 1em;
  aspect-ratio: 320 / 298;
  flex: none;
  background-color: currentColor;
  -webkit-mask: var(--coeur) no-repeat center / contain;
  mask: var(--coeur) no-repeat center / contain;
}

.logo__marque { width: clamp(34px, 3.6vw, 46px); flex: none; color: inherit; }

.logo__logotype {
  display: block;
  width: clamp(104px, 11vw, 150px);
  aspect-ratio: 912 / 400;
  flex: none;
  background-color: currentColor;
  -webkit-mask: var(--logotype) no-repeat left center / contain;
  mask: var(--logotype) no-repeat left center / contain;
}

/* Navigation */
.nav-principale ul {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 2.4vw, 2.6rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-principale a {
  position: relative;
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding-block: 0.4rem;
  display: inline-block;
}

.nav-principale a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--rouge);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-doux);
}

.nav-principale a:hover::after,
.nav-principale .current-menu-item > a::after { transform: scaleX(1); transform-origin: left; }

/* Actions a droite */
.entete__actions {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 1.4vw, 1.4rem);
  flex: none;
}

.panier-lien {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.55rem 0.2rem;
}

.panier-lien svg { width: 21px; height: 21px; }

.panier-lien__compte {
  position: absolute;
  top: -1px; left: 12px;
  min-width: 18px; height: 18px;
  display: grid; place-items: center;
  padding-inline: 4px;
  background: var(--rouge);
  color: var(--creme);
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  transition: transform 0.3s var(--ease-doux);
}

.panier-lien__compte[data-vide="1"] { transform: scale(0); }

/* Burger */
.burger {
  display: none;
  width: 44px; height: 44px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--noir);
  border-radius: 2px;
  transition: transform 0.4s var(--ease-doux), opacity 0.25s ease;
}

body.menu-ouvert .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-ouvert .burger span:nth-child(2) { opacity: 0; }
body.menu-ouvert .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile */
.menu-mobile {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--noir);
  color: var(--creme);
  padding: clamp(6rem, 14vh, 9rem) var(--gouttiere) 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(-100%);
  transition: transform 0.6s var(--ease-doux);
  overflow-y: auto;
}

body.menu-ouvert .menu-mobile { transform: translateY(0); }

.menu-mobile ul { list-style: none; margin: 0; padding: 0; }

.menu-mobile li {
  overflow: hidden;
  border-bottom: 1px solid rgba(247, 242, 231, 0.14);
}

.menu-mobile a {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2rem, 9vw, 3.4rem);
  line-height: 1.35;
  padding-block: 0.25em;
  transform: translateY(105%);
  transition: transform 0.6s var(--ease-doux), color 0.3s ease;
}

body.menu-ouvert .menu-mobile a { transform: translateY(0); }
.menu-mobile li:nth-child(1) a { transition-delay: 0.10s; }
.menu-mobile li:nth-child(2) a { transition-delay: 0.16s; }
.menu-mobile li:nth-child(3) a { transition-delay: 0.22s; }
.menu-mobile li:nth-child(4) a { transition-delay: 0.28s; }
.menu-mobile li:nth-child(5) a { transition-delay: 0.34s; }
.menu-mobile li:nth-child(6) a { transition-delay: 0.40s; }

.menu-mobile a:hover { color: var(--rouge-clair); }

.menu-mobile__pied {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
  padding-top: 2.5rem;
}

/* --------------------------------------------------------------------------
   7. Bandeau annonce
   -------------------------------------------------------------------------- */
.bandeau-annonce {
  background: var(--noir);
  color: var(--creme);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-block: 0.7rem;
  text-align: center;
  position: relative;
  z-index: 201;
}

.bandeau-annonce strong { color: var(--rouge-clair); font-weight: 700; }

/* --------------------------------------------------------------------------
   8. Heros
   -------------------------------------------------------------------------- */
.heros {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--noir);
  color: var(--creme);
  overflow: hidden;
  padding-block: clamp(9.5rem, 24vh, 13rem) clamp(2.5rem, 7vh, 5rem);
}

.heros__fond {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.heros__fond img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.42;
  transform: scale(1.08);
  animation: heros-zoom 20s var(--ease-doux) forwards;
}

@keyframes heros-zoom { to { transform: scale(1); } }

.heros__voile {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 90% at 15% 20%, rgba(217, 64, 58, 0.28) 0%, transparent 60%),
    linear-gradient(180deg, rgba(20, 17, 16, 0.82) 0%, rgba(20, 17, 16, 0.42) 45%, rgba(20, 17, 16, 0.94) 100%);
}

.heros__contenu {
  position: relative;
  z-index: 2;
  width: 100%;
}

.heros__titre { margin-bottom: 0.45em; }

.heros__accroche {
  font-size: clamp(1.02rem, 1.6vw, 1.32rem);
  max-width: 46ch;
  color: rgba(247, 242, 231, 0.86);
  margin-bottom: clamp(1.4rem, 3vh, 2.2rem);
}

.heros__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1rem;
  align-items: center;
}

.heros__defilement {
  position: absolute;
  left: 50%;
  bottom: 1.8rem;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.6;
}

.heros__defilement::after {
  content: "";
  width: 1px; height: 44px;
  background: linear-gradient(180deg, var(--creme), transparent);
  animation: fil-descend 2.2s ease-in-out infinite;
}

@keyframes fil-descend {
  0%, 100% { transform: scaleY(0.35); transform-origin: top; opacity: 0.3; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

/* Coeur anime du heros */
.coeur-anime { animation: coeur-bat 2.6s var(--ease-doux) infinite; transform-origin: center; }

@keyframes coeur-bat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.09); }
  24% { transform: scale(1); }
  36% { transform: scale(1.05); }
  48% { transform: scale(1); }
}



/* --------------------------------------------------------------------------
   9. Compte a rebours
   -------------------------------------------------------------------------- */
.rebours {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.6rem, 1.4vw, 1.1rem);
  margin-bottom: clamp(1.3rem, 3vh, 2.2rem);
}

.rebours__bloc {
  min-width: clamp(64px, 8vw, 92px);
  padding: 0.85rem 0.5rem 0.7rem;
  background: rgba(247, 242, 231, 0.07);
  border: 1px solid rgba(247, 242, 231, 0.18);
  border-radius: var(--rayon-l);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: center;
}

.rebours__valeur {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.rebours__libelle {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  opacity: 0.66;
}

.rebours--sombre .rebours__bloc {
  background: rgba(20, 17, 16, 0.05);
  border-color: rgba(20, 17, 16, 0.14);
}

/* --------------------------------------------------------------------------
   10. Bandeau defilant
   -------------------------------------------------------------------------- */
.marquee {
  background: var(--rouge);
  color: var(--creme);
  padding-block: clamp(0.9rem, 1.6vw, 1.3rem);
  overflow: hidden;
  border-block: 2px solid var(--noir);
  position: relative;
}

.marquee--noir { background: var(--noir); color: var(--creme); border-color: var(--rouge); }
.marquee--creme { background: var(--creme-2); color: var(--noir); border-color: var(--noir); }

.marquee__piste {
  display: flex;
  width: max-content;
  animation: defile 32s linear infinite;
}

.marquee:hover .marquee__piste { animation-play-state: paused; }

.marquee__groupe {
  display: flex;
  align-items: center;
  gap: clamp(1.6rem, 3vw, 3rem);
  padding-right: clamp(1.6rem, 3vw, 3rem);
  flex: none;
}

.marquee__item {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.9vw, 1.6rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  flex: none;
}


.marquee__etoile { width: clamp(14px, 1.6vw, 20px); flex: none; opacity: 0.8; }

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

/* --------------------------------------------------------------------------
   11. Grille produits
   -------------------------------------------------------------------------- */
.grille-produits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: clamp(1.5rem, 3vw, 2.8rem) clamp(1.2rem, 2.2vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.carte-produit { position: relative; }

.carte-produit__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--rayon-l);
  overflow: hidden;
  background: var(--creme-2);
  margin-bottom: 1.15rem;
  isolation: isolate;
}

.carte-produit__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-doux), opacity 0.55s var(--ease-net);
}

/* Visuel dos qui apparait au survol */
.carte-produit__media img.est-verso {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.carte-produit:hover .carte-produit__media img.est-recto { opacity: 0; }
.carte-produit:hover .carte-produit__media img.est-verso { opacity: 1; }
.carte-produit:hover .carte-produit__media img { transform: scale(1.05); }

.carte-produit__etiquette {
  position: absolute;
  top: 0.9rem; left: 0.9rem;
  z-index: 3;
  background: var(--rouge);
  color: var(--creme);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.5em 0.95em;
  border-radius: 999px;
  line-height: 1;
}

.carte-produit__etiquette--noir { background: var(--noir); }
.carte-produit__etiquette--epuise { background: var(--noir-3); }

.carte-produit__survol {
  position: absolute;
  inset: auto 0.75rem 0.75rem;
  z-index: 3;
  transform: translateY(calc(100% + 0.75rem));
  opacity: 0;
  transition: transform 0.45s var(--ease-doux), opacity 0.35s var(--ease-net);
}

.carte-produit:hover .carte-produit__survol,
.carte-produit:focus-within .carte-produit__survol { transform: translateY(0); opacity: 1; }

.carte-produit__entete {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.carte-produit__titre {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.2;
}

.carte-produit__titre a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

.carte-produit__prix {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
  flex: none;
}

.carte-produit__meta {
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--noir-3);
  opacity: 0.75;
}

.section--noir .carte-produit__meta { color: rgba(247, 242, 231, 0.7); }
.section--noir .carte-produit__media { background: var(--noir-2); }

/* --------------------------------------------------------------------------
   12. Etapes de precommande
   -------------------------------------------------------------------------- */
.etapes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: clamp(1.5rem, 3vw, 2.6rem);
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  counter-reset: etape;
}

.etape {
  position: relative;
  padding-top: 2.4rem;
  border-top: 2px solid currentColor;
  counter-increment: etape;
}

.etape::before {
  content: "0" counter(etape);
  position: absolute;
  top: 1rem; left: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 0.9;
  opacity: 0.13;
}

.etape__titre {
  position: relative;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  margin-bottom: 0.6rem;
}

.etape__texte { font-size: 0.95rem; opacity: 0.82; }

/* --------------------------------------------------------------------------
   13. Manifeste (narration au scroll)
   -------------------------------------------------------------------------- */
.manifeste {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}

.manifeste + .manifeste { margin-top: clamp(4rem, 9vw, 8rem); }

.manifeste__media {
  grid-column: span 6;
  border-radius: var(--rayon-l);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--creme-3);
}

.manifeste__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-doux);
}

.manifeste:hover .manifeste__media img { transform: scale(1.04); }

.manifeste__texte { grid-column: span 5; }
.manifeste--inverse .manifeste__media { grid-column: 7 / span 6; grid-row: 1; }
.manifeste--inverse .manifeste__texte { grid-column: 1 / span 5; grid-row: 1; }

.manifeste__titre {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3.4vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: 0.005em;
  margin-bottom: 0.6em;
}

/* Chiffres cles */
.chiffres {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.chiffre__valeur {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  line-height: 1;
  color: var(--rouge);
  margin-bottom: 0.25rem;
}

.section--noir .chiffre__valeur,
.section--rouge .chiffre__valeur { color: var(--creme); }

.chiffre__libelle {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
}

/* --------------------------------------------------------------------------
   14. FAQ
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid rgba(20, 17, 16, 0.16); margin-top: 2.5rem; }

.faq__element { border-bottom: 1px solid rgba(20, 17, 16, 0.16); }

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.02rem, 1.6vw, 1.3rem);
  text-transform: uppercase;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.faq__question:hover { color: var(--rouge); }

.faq__icone {
  flex: none;
  width: 26px; height: 26px;
  position: relative;
}

.faq__icone::before,
.faq__icone::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 15px; height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease-doux);
}

.faq__icone::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__element[aria-expanded="true"] .faq__icone::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq__reponse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease-doux);
}

.faq__element[aria-expanded="true"] .faq__reponse { grid-template-rows: 1fr; }

.faq__reponse > div { overflow: hidden; }
.faq__reponse p { padding-bottom: 1.6rem; max-width: 64ch; opacity: 0.85; }

/* --------------------------------------------------------------------------
   15. Infolettre
   -------------------------------------------------------------------------- */
.infolettre__champs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
  max-width: 540px;
}

.infolettre input[type="email"] {
  flex: 1 1 240px;
  padding: 1.05em 1.4em;
  border-radius: 999px;
  border: 2px solid rgba(247, 242, 231, 0.28);
  background: rgba(247, 242, 231, 0.06);
  color: inherit;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.infolettre input[type="email"]::placeholder { color: rgba(247, 242, 231, 0.5); }
.infolettre input[type="email"]:focus { border-color: var(--creme); background: rgba(247, 242, 231, 0.12); }
/* Fond sombre : l'anneau global rouge y serait illisible, on le passe en creme. */
.infolettre input[type="email"]:focus-visible { outline: 3px solid var(--creme); outline-offset: 3px; }

/* --------------------------------------------------------------------------
   16. Pied de page
   -------------------------------------------------------------------------- */
.pied {
  background: var(--noir);
  color: var(--creme);
  padding-block: clamp(3.5rem, 8vw, 6rem) 0;
}

.pied__haut {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid rgba(247, 242, 231, 0.14);
}

.pied .logo { color: var(--creme); }
.pied .logo__marque { color: var(--rouge-clair); }
.pied .logo__logotype { width: clamp(150px, 15vw, 205px); }

.pied__baseline {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  opacity: 0.66;
  max-width: 34ch;
}

.pied__titre {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 1.2rem;
}

.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li + li { margin-top: 0.6rem; }

.pied a { font-size: 0.92rem; opacity: 0.8; transition: opacity 0.25s ease, color 0.25s ease; }
.pied a:hover { opacity: 1; color: var(--rouge-clair); }

.pied__bas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.8rem;
  font-size: 0.78rem;
  opacity: 0.55;
}

.pied__reseaux { display: flex; gap: 1rem; }
.pied__reseaux a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(247,242,231,0.2); border-radius: 999px; }
.pied__reseaux svg { width: 17px; height: 17px; }

/* --------------------------------------------------------------------------
   17. Reveal au defilement
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease-doux), transform 0.85s var(--ease-doux);
  will-change: opacity, transform;
}

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

[data-reveal-delai="1"] { transition-delay: 0.09s; }
[data-reveal-delai="2"] { transition-delay: 0.18s; }
[data-reveal-delai="3"] { transition-delay: 0.27s; }
[data-reveal-delai="4"] { transition-delay: 0.36s; }
[data-reveal-delai="5"] { transition-delay: 0.45s; }

/* Titre revele ligne par ligne.
   Les titres ont une interligne inferieure a 1 : on elargit la boite de rognage
   pour ne pas amputer les jambages, sans decaler la mise en page. */
.revele-lignes {
  overflow: hidden;
  padding-block: 0.08em 0.16em;
  margin-block: -0.08em -0.16em;
}
.revele-lignes > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1s var(--ease-doux);
}
.revele-lignes.est-visible > span { transform: translateY(0); }

/* --------------------------------------------------------------------------
   18. Adaptations
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .pied__haut { grid-template-columns: 1fr 1fr; }
  .manifeste__media,
  .manifeste--inverse .manifeste__media { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 11; }
  .manifeste__texte,
  .manifeste--inverse .manifeste__texte { grid-column: 1 / -1; grid-row: auto; }
}

@media (max-width: 860px) {
  .nav-principale { display: none; }
  .burger { display: flex; }
  .entete__actions { gap: 0.4rem; }
  .panier-lien span:not(.panier-lien__compte) { display: none; }
}

@media (max-width: 640px) {
  .pied__haut { grid-template-columns: 1fr; }
  .heros { min-height: 92svh; }
  .heros__defilement { display: none; }
  .grille-produits { grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); gap: 1.3rem 0.9rem; }
  .carte-produit__survol { display: none; }
}

/* --------------------------------------------------------------------------
   19. Accessibilite du mouvement
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .revele-lignes > span { transform: none; }
  .marquee__piste { animation: none; }
}

/* --------------------------------------------------------------------------
   20. Complements
   -------------------------------------------------------------------------- */

/* Bouton d'appel de l'en-tete, masque sur petits ecrans */
@media (max-width: 1080px) { .masque-mobile { display: none; } }

/* Contenu editorial saisi dans l'editeur WordPress */
.contenu-riche { max-width: var(--largeur-texte); }

.contenu-riche h2,
.contenu-riche h3,
.contenu-riche h4 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 2.2em 0 0.7em;
}

.contenu-riche h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.contenu-riche h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
.contenu-riche h4 { font-size: 1.1rem; }
.contenu-riche > *:first-child { margin-top: 0; }

.contenu-riche a {
  color: var(--rouge);
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  transition: color 0.25s ease;
}

.contenu-riche a:hover { color: var(--noir); }

.contenu-riche img { border-radius: var(--rayon-l); margin-block: 1.8em; }

.contenu-riche blockquote {
  margin: 2em 0;
  padding: 0.4em 0 0.4em 1.6em;
  border-left: 3px solid var(--rouge);
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1.45;
}

.contenu-riche ul li,
.contenu-riche ol li { margin-bottom: 0.5em; }

.contenu-riche hr { border: 0; border-top: 1px solid rgba(20, 17, 16, 0.16); margin: 2.5em 0; }

.contenu-riche table { width: 100%; border-collapse: collapse; margin-block: 2em; }
.contenu-riche th, .contenu-riche td { padding: 0.85em 1em; border-bottom: 1px solid rgba(20, 17, 16, 0.14); text-align: left; }
.contenu-riche th { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.6; }

/* Pagination des listes d'articles */
.navigation.pagination { margin-top: 3rem; }
.navigation.pagination .nav-links { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }

.navigation.pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 44px; height: 44px;
  padding-inline: 0.6em;
  border: 2px solid rgba(20, 17, 16, 0.16);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.navigation.pagination .page-numbers:hover,
.navigation.pagination .page-numbers.current {
  background: var(--noir);
  border-color: var(--noir);
  color: var(--creme);
}

/* Titre des pages WooCommerce quand page.php sert d'enveloppe */
.section .page-woo__titre { margin-bottom: 1.8rem; }

/* --------------------------------------------------------------------------
   21. En-tete pose sur un bloc sombre
   Tant que la page n'a pas defile, le texte de l'en-tete passe en creme.
   -------------------------------------------------------------------------- */
.entete-sur-sombre .entete:not(.entete--colle) { color: var(--creme); }

.entete-sur-sombre .entete:not(.entete--colle) .logo { color: var(--creme); }
.entete-sur-sombre .entete:not(.entete--colle) .logo__marque { color: var(--rouge-clair); }

.entete-sur-sombre .entete:not(.entete--colle) .nav-principale a::after { background: var(--creme); }

.entete-sur-sombre .entete:not(.entete--colle) .burger span { background: var(--creme); }

/* Le bouton d'appel reste lisible : contour creme plutot que noir sur noir */
.entete-sur-sombre .entete:not(.entete--colle) .bouton--noir {
  --btn-fond: transparent;
  --btn-texte: var(--creme);
  border-color: rgba(247, 242, 231, 0.55);
}

.entete-sur-sombre .entete:not(.entete--colle) .bouton--noir::after { background: var(--rouge); }
.entete-sur-sombre .entete:not(.entete--colle) .bouton--noir:hover { border-color: var(--rouge); }

/* Le logo garde sa couleur de marque une fois l'en-tete colle */
.entete--colle .logo { color: var(--rouge); }
.entete--colle .logo__marque { color: var(--rouge); }

/* Menu ouvert : l'en-tete doit rester lisible par-dessus le panneau noir */
body.menu-ouvert .entete { color: var(--creme); }
body.menu-ouvert .entete .logo { color: var(--creme); }
body.menu-ouvert .entete .burger span { background: var(--creme); }
body.menu-ouvert .entete--colle { background: transparent; backdrop-filter: none; box-shadow: none; }

/* --------------------------------------------------------------------------
   22. Bandeau integre a l'en-tete fixe
   Le bandeau vit desormais dans .entete : il ne recouvre plus le logo, et il
   se replie une fois la page defilee pour rendre la barre plus compacte.
   -------------------------------------------------------------------------- */
.entete .bandeau-annonce {
  position: relative;
  z-index: 1;
  overflow: hidden;
  max-height: 3.5rem;
  transition: max-height 0.45s var(--ease-doux), opacity 0.3s ease,
              padding-block 0.45s var(--ease-doux);
}

.entete--colle .bandeau-annonce {
  max-height: 0;
  opacity: 0;
  padding-block: 0;
}

/* Sur un fond sombre, le bandeau garde son propre contraste */
.entete-sur-sombre .entete:not(.entete--colle) .bandeau-annonce { color: var(--creme); }

/* --------------------------------------------------------------------------
   23. Cœur de marque dans les sections pleine largeur
   -------------------------------------------------------------------------- */
.section--rouge .coeur-anime { width: clamp(56px, 7vw, 86px); color: var(--creme); }
.section--noir .coeur-anime { width: clamp(56px, 7vw, 84px); color: var(--rouge); }

/* --------------------------------------------------------------------------
   24. Logotype de marque en grand format
   Le titre du heros porte le vrai logotype ; le texte reste dans le H1 pour
   les moteurs et les lecteurs d'ecran.
   -------------------------------------------------------------------------- */
.logotype-geant {
  display: block;
  width: min(62vw, 660px);
  aspect-ratio: 912 / 400;
  max-height: 27vh;
  background-color: var(--creme);
  -webkit-mask: var(--logotype) no-repeat left center / contain;
  mask: var(--logotype) no-repeat left center / contain;
  transform: translateY(28px);
  opacity: 0;
  animation: logotype-entree 1.1s var(--ease-doux) 0.15s forwards;
}

@keyframes logotype-entree {
  to { transform: translateY(0); opacity: 1; }
}

.heros__titre { margin-bottom: clamp(0.9rem, 2.5vh, 1.6rem); }

.logotype-marquee {
  display: inline-block;
  width: 6.2em;
  aspect-ratio: 912 / 400;
  vertical-align: middle;
  background-color: currentColor;
  -webkit-mask: var(--logotype) no-repeat center / contain;
  mask: var(--logotype) no-repeat center / contain;
}

@media (prefers-reduced-motion: reduce) {
  .logotype-geant { animation: none; opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .logotype-geant { width: min(90vw, 460px); max-height: 22vh; }
}

/* Fenetres basses : on comprime encore le heros pour garder les boutons visibles */
@media (max-height: 760px) and (min-width: 861px) {
  .heros { padding-block: clamp(8.5rem, 21vh, 11rem) 2.5rem; }
  .logotype-geant { max-height: 24vh; }
}

/* Le symbole monetaire suit la meme regle hors des pages WooCommerce */

/* --------------------------------------------------------------------------
   25. Signature de l'agence
   Bandeau bleu Syou en bas de page, logo en blanc.
   -------------------------------------------------------------------------- */
.credit-syou {
  background: #022e5f;
  color: #ffffff;
  padding-block: clamp(1rem, 2vw, 1.4rem);
  margin-top: 0;
  margin-inline: calc(50% - 50vw);
  width: 100vw;
}

.credit-syou__interieur {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.8rem, 1.8vw, 1.4rem);
  flex-wrap: wrap;
}

.credit-syou__texte {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
}

.credit-syou__lien {
  display: block;
  line-height: 0;
  transition: opacity 0.25s ease, transform 0.35s var(--ease-doux);
}

.credit-syou__lien:hover { opacity: 0.82; transform: translateY(-1px); }

.credit-syou__lien img {
  width: auto;
  height: clamp(24px, 3vw, 32px);
}


/* --------------------------------------------------------------------------
   26. Titre de page
   Sert aux pages editoriales comme aux pages WooCommerce : la regle vit donc
   dans la feuille principale, chargee sur tout le site.
   -------------------------------------------------------------------------- */
.page-woo__titre {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2rem, 5.2vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin-bottom: clamp(1.8rem, 3.5vw, 2.8rem);
}

/* Les pages editoriales degagent aussi la hauteur de l'en-tete fixe */
body:not(.woocommerce-page) .section:first-of-type { padding-top: var(--espace-entete); }
