/*
Theme Name: Rosette
Theme URI: https://rosettelab.ch
Author: Rosette Lab
Description: Thème éditorial pour ROSETTE — Savon Suspendu. Design objet, typographie Swiss, scroll storytelling.
Version: 2.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: rosette
Tags: woocommerce, editorial, minimal, swiss
*/

/* ============================================================
   DESIGN TOKENS — ROSETTE
   Palette : Ivoire chaud · Terracotta · Ardoise · Encre
   ============================================================ */
:root {
  --bg:         #F2EDE6;   /* ivoire chaud, comme papier non blanchi */
  --cream:      #FAF8F4;   /* presque blanc */
  --ink:        #1C1917;   /* encre chaude, pas de noir pur */
  --terra:      #B84C2A;   /* terracotta/urucum — l'accent principal */
  --slate:      #4E5F63;   /* ardoise — savon charbon */
  --mid:        #9A8F87;   /* gris chaud */
  --border:     #DDD8D0;   /* séparateur discret */
  --surface:    #FFFFFF;

  --font-head:  'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body:  'Helvetica Neue', Helvetica, Arial, sans-serif;

  --max:        1320px;
  --gap:        24px;
  --radius:     0px;

  --ease:       cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out:   cubic-bezier(0.0, 0.0, 0.2, 1);
  --dur:        320ms;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

img    { max-width: 100%; height: auto; display: block; }
a      { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; }

/* ============================================================
   TYPOGRAPHIE ÉDITORIALE
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
}

/* Display — très grand, pour le hero */
.t-display {
  font-size: clamp(3.5rem, 10vw, 9rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.92;
}

/* Heading large */
.t-xl {
  font-size: clamp(2.25rem, 5vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.96;
}

/* Heading medium */
.t-lg {
  font-size: clamp(1.5rem, 3vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

/* Label / eyebrow */
.t-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
}

/* Corps */
.t-body {
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--mid);
  max-width: 52ch;
}

/* Italic éditoriale */
.t-italic {
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 64px;
  display: flex;
  align-items: center;
  transition: background var(--dur) var(--ease),
              backdrop-filter var(--dur) var(--ease);
}

.site-header.is-scrolled {
  background: rgba(242, 237, 230, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

/* pas de mode sombre sur le header — fond toujours ivoire */

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* Logo ROSETTE */
.site-logo {
  font-size: 1.125rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color var(--dur);
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.site-nav a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color var(--dur);
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width var(--dur) var(--ease);
}

.site-nav a:hover::after,
.site-nav a.current-menu-item::after { width: 100%; }

/* Panier */
.header-cart a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cart-count {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--terra);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  border-radius: 50%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: var(--dur);
}

/* ============================================================
   HERO — Fond ivoire, photo à droite, texte encre
   ============================================================ */
.hero-section {
  position: relative;
  height: 100svh;
  min-height: 640px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: var(--bg);
}

/* Panneau gauche — texte */
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gap) 80px calc(var(--gap) + 24px);
  position: relative;
  z-index: 2;
  background: var(--bg);
}

.hero-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(3rem, 6.5vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--ink);
  margin-bottom: 32px;
}

.hero-title em {
  font-style: normal;
  color: var(--terra);
}

.hero-sub {
  font-size: 0.9375rem;
  color: var(--mid);
  line-height: 1.6;
  max-width: 36ch;
  margin-bottom: 40px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Panneau droit — image, pas d'overlay sombre */
.hero-right {
  position: relative;
  overflow: hidden;
  background: var(--border);
}

.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.04);
  transition: transform 1.2s var(--ease-out);
}

.hero-right.is-loaded img { transform: scale(1); }

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  right: var(--gap);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
}

.hero-scroll__line {
  width: 1px;
  height: 48px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.hero-scroll__line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--terra);
  animation: scroll-line 1.8s infinite var(--ease-out);
}

@keyframes scroll-line {
  0%   { top: -100%; }
  100% { top: 100%;  }
}

.hero-scroll__text {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
  writing-mode: vertical-rl;
}

/* ============================================================
   STATEMENT — Phrase éditoriale qui traverse la page
   ============================================================ */
.statement-section {
  padding: 72px 0;
  overflow: hidden;
  background: var(--cream);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.statement-track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: marquee 18s linear infinite;
}

.statement-track span {
  font-size: clamp(1.25rem, 2.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  flex-shrink: 0;
}

.statement-track span.dot {
  color: var(--terra);
  font-weight: 900;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   COLLECTION — Les savons en grille éditoriale
   ============================================================ */
.collection-section {
  padding: 100px 0 80px;
}

.collection-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: flex-end;
  margin-bottom: 64px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.collection-count {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 10px;
}

/* Grille savons — asymétrique, éditoriale */
.soap-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}

/* Premier savon — grand, 5 colonnes */
.soap-card:nth-child(1) { grid-column: span 5; }
/* Deuxième — medium, 4 colonnes, décalé vers le bas */
.soap-card:nth-child(2) { grid-column: span 4; margin-top: 80px; }
/* Troisième — étroit, 3 colonnes */
.soap-card:nth-child(3) { grid-column: span 3; margin-top: 40px; }
/* Quatrième et plus — on revient à une grille 4 col */
.soap-card:nth-child(n+4) { grid-column: span 4; margin-top: 0; }

.soap-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.soap-card__img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  margin-bottom: 20px;
}

/* Ratio image selon position */
.soap-card:nth-child(1) .soap-card__img-wrap { aspect-ratio: 3/4; }
.soap-card:nth-child(2) .soap-card__img-wrap { aspect-ratio: 2/3; }
.soap-card:nth-child(3) .soap-card__img-wrap { aspect-ratio: 3/4; }
.soap-card:nth-child(n+4) .soap-card__img-wrap { aspect-ratio: 3/4; }

.soap-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}

.soap-card:hover .soap-card__img-wrap img {
  transform: scale(1.06);
}

/* Placeholder savon */
.soap-card__placeholder {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #ede8de 0%, #cec8be 100%);
}

.soap-card__placeholder-icon {
  font-size: 3rem;
  opacity: 0.4;
}

/* Tag flottant */
.soap-card__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--terra);
  color: white;
  padding: 5px 10px;
}

/* Quick add overlay */
.soap-card__quick {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: white;
  text-align: center;
  padding: 14px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: translateY(100%);
  transition: transform 400ms var(--ease-out);
}

.soap-card:hover .soap-card__quick { transform: translateY(0); }

/* Infos texte */
.soap-card__info { }

.soap-card__name {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 4px;
  transition: color var(--dur);
}

.soap-card:hover .soap-card__name { color: var(--terra); }

.soap-card__note {
  font-size: 0.8125rem;
  color: var(--mid);
  margin-bottom: 8px;
}

.soap-card__price {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
}

/* ============================================================
   OBJET SECTION — Le savon comme sculpture
   ============================================================ */
.object-section {
  display: grid;
  grid-template-columns: 7fr 5fr;
  min-height: 90vh;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.object-image {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.object-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.85;
}

.object-text {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px;
}

.object-number {
  font-size: 6rem;
  font-weight: 900;
  color: var(--terra);
  opacity: 0.12;
  letter-spacing: -0.06em;
  line-height: 1;
  margin-bottom: -20px;
}

.object-text h2 {
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.0;
  margin-bottom: 28px;
}

.object-text p {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--mid);
  max-width: 44ch;
  margin-bottom: 20px;
}

.object-text p strong {
  color: var(--ink);
  font-weight: 600;
}

/* ============================================================
   VIVANT SECTION — La cure, le temps (fond pierre chaude)
   ============================================================ */
.vivant-section {
  background: #E8E2D8;   /* pierre chaude — ni blanc ni noir */
  padding: 120px 0;
  overflow: hidden;
  position: relative;
}

.vivant-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.vivant-quote {
  font-size: clamp(1.25rem, 2vw, 1.875rem);
  font-weight: 300;
  font-style: italic;
  color: var(--mid);
  line-height: 1.6;
  letter-spacing: -0.01em;
  border-left: 3px solid var(--terra);
  padding-left: 32px;
}

.vivant-quote strong {
  font-weight: 800;
  font-style: normal;
  color: var(--ink);
}

.vivant-facts {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.vivant-fact {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  align-items: start;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.vivant-fact:last-child { border-bottom: none; padding-bottom: 0; }

.vivant-fact__num {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terra);
  padding-top: 4px;
}

.vivant-fact__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.vivant-fact__text {
  font-size: 0.875rem;
  color: var(--mid);
  line-height: 1.65;
  max-width: 40ch;
}

/* Ligne déco */
.vivant-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: var(--border);
}

/* ============================================================
   INGRÉDIENTS — Typo éditoriale
   ============================================================ */
.ingredients-section {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}

.ingredients-header {
  margin-bottom: 64px;
}

.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.ingredient-item {
  background: var(--bg);
  padding: 40px 32px;
  transition: background var(--dur);
}

.ingredient-item:hover { background: var(--cream); }

.ingredient-item__icon {
  font-size: 1.75rem;
  margin-bottom: 16px;
  line-height: 1;
}

/* Image réelle uploadée (remplace l'emoji) */
.ingredient-item__img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--border);
}

.ingredient-item__name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 8px;
}

.ingredient-item__role {
  font-size: 0.8125rem;
  color: var(--mid);
  line-height: 1.5;
  max-width: 24ch;
}

/* ============================================================
   ABOUT STRIP — Fond terracotta très pâle, caractère sans noir
   ============================================================ */
.about-strip {
  background: #EDE5DC;   /* terracotta très dilué */
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.about-strip-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-strip h2 {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.about-strip h2 em {
  font-style: normal;
  color: var(--terra);
}

.about-strip p {
  color: var(--mid);
  max-width: 48ch;
  margin-bottom: 36px;
  font-size: 1rem;
  line-height: 1.72;
}

.about-strip .accent-bar {
  width: 40px;
  height: 2px;
  background: var(--terra);
  margin-bottom: 20px;
}

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: white;
  color: var(--ink);
  border-color: white;
}

.btn-primary:hover {
  background: transparent;
  color: white;
}

.btn-dark {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.btn-dark:hover {
  background: var(--terra);
  border-color: var(--terra);
}

.btn-terra {
  background: var(--terra);
  color: white;
  border-color: var(--terra);
}

.btn-terra:hover {
  background: transparent;
  color: var(--terra);
}

.btn-outline-light {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.35);
}

.btn-outline-light:hover {
  border-color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
  padding: 12px 28px;
}

.btn-ghost:hover {
  border-color: var(--ink);
}

/* Arrow icon dans bouton */
.btn svg { transition: transform var(--dur); }
.btn:hover svg { transform: translateX(4px); }

/* ============================================================
   WOOCOMMERCE — Boutique (archive)
   ============================================================ */
.woo-wrap {
  padding: 80px 0 100px;
}

.shop-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

/* Reset WooCommerce */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  list-style: none;
}

.woocommerce ul.products li.product {
  background: var(--cream);
  border: 1px solid var(--border);
  transition: border-color var(--dur);
  overflow: hidden;
}

.woocommerce ul.products li.product:hover {
  border-color: var(--terra);
}

.woocommerce ul.products li.product a img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}

.woocommerce ul.products li.product:hover a img {
  transform: scale(1.05);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 1rem;
  font-weight: 700;
  padding: 16px 16px 4px;
  letter-spacing: -0.01em;
}

.woocommerce ul.products li.product .price {
  padding: 0 16px 16px;
  font-weight: 700;
  color: var(--terra);
  font-size: 0.9375rem;
}

.woocommerce ul.products li.product .button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 13px 16px;
  background: var(--ink);
  color: white;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background var(--dur);
}

.woocommerce ul.products li.product .button:hover { background: var(--terra); }

/* Pagination */
.woocommerce nav.woocommerce-pagination ul {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 64px;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  transition: all var(--dur);
}

.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a:hover {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

/* Résultat / tri */
.woocommerce-result-count {
  font-size: 0.8125rem;
  color: var(--mid);
}

.woocommerce-ordering select {
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--ink);
  cursor: pointer;
}

/* ============================================================
   FICHE PRODUIT (single)
   ============================================================ */
.woocommerce div.product {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 80px;
  align-items: start;
  padding: 80px 0 100px;
}

.woocommerce div.product .woocommerce-product-gallery {
  position: sticky;
  top: 80px;
}

.woocommerce div.product .woocommerce-product-gallery .woocommerce-product-gallery__image {
  border: 1px solid var(--border);
}

.woocommerce div.product .product_title {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.woocommerce div.product .price {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 32px;
}

.woocommerce div.product .woocommerce-product-details__short-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--mid);
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.woocommerce div.product form.cart {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 32px;
}

.woocommerce div.product form.cart .qty {
  width: 64px;
  height: 48px;
  border: 1px solid var(--border);
  background: var(--bg);
  text-align: center;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
}

.woocommerce div.product form.cart .single_add_to_cart_button {
  flex: 1;
  background: var(--ink);
  color: white;
  border: 1.5px solid var(--ink);
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--dur);
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover {
  background: var(--terra);
  border-color: var(--terra);
}

/* Breadcrumb */
.woocommerce-breadcrumb {
  font-size: 0.8125rem;
  color: var(--mid);
  padding: 24px 0 0;
}
.woocommerce-breadcrumb a { color: var(--mid); }
.woocommerce-breadcrumb a:hover { color: var(--terra); }

/* Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-left: 3px solid var(--terra);
  background: var(--cream);
  padding: 16px 24px;
  margin-bottom: 24px;
  list-style: none;
  font-size: 0.9375rem;
}

/* ============================================================
   PAGE GÉNÉRIQUE (À propos, Contact)
   ============================================================ */
.page-hero {
  padding: 120px 0 60px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 80px;
}

.page-hero .t-label { margin-bottom: 16px; }

.page-content-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  padding-bottom: 100px;
  align-items: start;
}

.page-content-grid img {
  width: 100%;
  border: 1px solid var(--border);
}

.page-content-grid p {
  color: var(--mid);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 58ch;
}

/* Contact layout */
.contact-grid {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 80px;
  padding-bottom: 100px;
}

.contact-info h3 { font-size: 1.25rem; margin-bottom: 16px; }
.contact-info address { font-style: normal; font-size: 0.9375rem; line-height: 1.8; color: var(--mid); }
.contact-info a { color: var(--terra); }

/* Formulaire */
.contact-form .form-field { margin-bottom: 20px; }

.contact-form label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--cream);
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color var(--dur);
  border-radius: 0;
  appearance: none;
}

.contact-form input:focus,
.contact-form textarea:focus,
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--terra);
}

.contact-form textarea,
.wpcf7 textarea { min-height: 160px; resize: vertical; }

.wpcf7 input[type="submit"],
.contact-form button[type="submit"] {
  background: var(--ink);
  color: white;
  border: 1.5px solid var(--ink);
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--dur);
  border-radius: 0;
}

.wpcf7 input[type="submit"]:hover,
.contact-form button[type="submit"]:hover {
  background: var(--terra);
  border-color: var(--terra);
}

/* ============================================================
   FOOTER
   ============================================================ */
/* ── STATS BAR (fond ardoise, jamais noir) ────────────────── */
.stats-bar {
  background: var(--slate);
  padding: 48px 0;
}

.stats-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.stat-number {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 900;
  color: var(--cream);
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-label {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 8px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* ── FOOTER (fond encre chaude, pas noir pur) ─────────────── */
.site-footer {
  background: #2E2823;   /* brun très sombre, plus doux que #000 */
  padding: 80px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr;
  gap: 80px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand__name {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 16px;
}

.footer-brand__desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  max-width: 38ch;
  margin-bottom: 28px;
}

.footer-brand__address {
  font-style: normal;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.7;
}

.footer-col__title {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 20px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 12px; }

.footer-col a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--dur);
}

.footer-col a:hover { color: var(--terra); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  max-width: none;
}

.footer-bottom a { color: rgba(255,255,255,0.25); transition: color var(--dur); }
.footer-bottom a:hover { color: rgba(255,255,255,0.6); }

/* ============================================================
   ANIMATIONS & REVEAL AU SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--ease-out),
              transform 700ms var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .soap-grid { grid-template-columns: repeat(6, 1fr); }
  .soap-card:nth-child(1) { grid-column: span 3; }
  .soap-card:nth-child(2) { grid-column: span 3; margin-top: 48px; }
  .soap-card:nth-child(3) { grid-column: span 3; margin-top: 0; }
  .soap-card:nth-child(n+4) { grid-column: span 3; }
  .object-section { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 48px; }
  .footer-top .footer-brand { grid-column: span 2; }
  .ingredients-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .hero-section { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { justify-content: center; padding-top: 120px; padding-bottom: 80px; background: var(--ink); }
  .vivant-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-strip-inner { grid-template-columns: 1fr; gap: 40px; }
  .object-section { grid-template-columns: 1fr; }
  .object-image { min-height: 50vw; }
  .object-text { padding: 48px 32px; }
  .woocommerce div.product { grid-template-columns: 1fr; }
  .page-content-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .collection-header { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 768px) {
  .soap-grid { grid-template-columns: 1fr 1fr; }
  .soap-card:nth-child(n) { grid-column: span 1; margin-top: 0; }
  .soap-card:nth-child(2) { margin-top: 32px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-top .footer-brand { grid-column: 1; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .woocommerce ul.products { grid-template-columns: 1fr 1fr; }
  .ingredients-grid { grid-template-columns: 1fr 1fr; }

  .site-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 190;
  }

  .site-nav.is-open { display: flex; }
  .site-nav.is-open a {
    color: white;
    font-size: 1.25rem;
    letter-spacing: 0.08em;
  }

  .nav-toggle { display: flex; }
}

@media (max-width: 480px) {
  .soap-grid { grid-template-columns: 1fr; }
  .soap-card:nth-child(n) { grid-column: span 1; margin-top: 0; }
  .woocommerce ul.products { grid-template-columns: 1fr; }
  .ingredients-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 3rem; }
}
