/*
Theme Name: Soeves (Storefront Child)
Template: storefront
Description: Thème enfant Storefront pour la boutique de parfums Soeves — palette noir & or.
Version: 1.0
*/

:root {
  --soeves-black: #0d0d0d;
  --soeves-gold: #c9a227;
  --soeves-gold-light: #d4af37;
  --soeves-cream: #f7f3ea;
  --soeves-ink: #2b2b2b;
}

body {
  background-color: var(--soeves-cream);
  color: var(--soeves-ink);
}

h1, h2, h3, h4, .site-title, .storefront-product-section .section-title {
  font-family: Georgia, 'Times New Roman', Times, serif;
}

/* Header */
#masthead.site-header {
  position: relative;
  background-color: #ffffff;
  /* Étend le fond blanc d'un bord à l'autre de l'écran, même si le contenu reste limité à max-width.
     (border-image plutôt que box-shadow + clip-path : le clip-path coupait le menu déroulant des langues,
     et un border-image qui déborde ne crée pas de défilement horizontal.) */
  border-image: linear-gradient(#ffffff, #ffffff) fill 0 / 0 / 0 100vmax;
  padding: 1.25rem 2.617924em;
  max-width: 66.4989378333em;
  margin-left: auto;
  margin-right: auto;
  box-sizing: content-box;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

#masthead.site-header > .col-full {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
}

.site-header .site-branding {
  display: flex;
  align-items: center;
}

.site-header .custom-logo-link img {
  max-height: 64px;
  width: auto;
  display: block;
}

/* Hide text title/description: brand name is inside the logo image */
.site-header .site-branding .site-title,
.site-header .site-branding .site-description {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.site-header .site-search {
  display: none;
}

#masthead.site-header .storefront-primary-navigation {
  flex: 1 1 auto;
}

#masthead.site-header .storefront-primary-navigation .col-full {
  max-width: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Desktop : espace net entre le logo et le menu */
@media screen and (min-width: 768px) {
  #masthead.site-header {
    column-gap: 3rem;
  }

  /* #masthead nécessaire pour passer devant .woocommerce-active .site-header .site-branding de Storefront */
  #masthead.site-header .site-branding {
    width: auto;
    margin-right: 0;
    flex: 0 0 auto;
  }

  #masthead.site-header .main-navigation {
    width: auto;
    margin-right: 0;
  }

  /* Storefront décale le menu de -1em vers la gauche, ce qui le colle au logo */
  #masthead.site-header .main-navigation ul.menu {
    margin-left: 0;
  }
}

.main-navigation ul li a {
  color: #1a1a1a;
  letter-spacing: 0.3px;
  font-size: 0.98rem;
  font-weight: 400;
}

.main-navigation ul.menu li a:hover,
.main-navigation ul.menu li.current-menu-item > a,
.main-navigation ul.menu li.current_page_item > a {
  color: var(--soeves-gold) !important;
}

/*
 * Menu mobile : bouton carré en haut à droite (burger → croix), liens en liste
 * alignés à gauche sous le logo, sur toute la largeur. Le logo ne bouge pas.
 * (Sur mobile Storefront affiche .handheld-navigation ; .primary-navigation est masqué.)
 */
@media screen and (max-width: 767px) {
  #masthead.site-header {
    --soeves-menu-accent: var(--soeves-gold);
    --soeves-header-gutter: 1.375rem;
    align-items: flex-start;
    padding-left: var(--soeves-header-gutter);
    padding-right: var(--soeves-header-gutter);
  }

  /* La navigation passe sur sa propre ligne, sous le logo */
  #masthead.site-header .storefront-primary-navigation {
    position: static;
    flex: 0 0 100%;
  }

  #masthead.site-header .storefront-primary-navigation .col-full {
    display: block;
  }

  .main-navigation#site-navigation {
    position: static;
  }

  /* Bouton carré, centré verticalement sur le logo (52px) */
  #masthead .main-navigation button.menu-toggle {
    position: absolute;
    top: calc(1.25rem + 4px);
    right: var(--soeves-header-gutter);
    float: none;
    width: 44px;
    height: 44px;
    max-width: none;
    padding: 0;
    /* Libellé "Menu" masqué visuellement mais conservé pour les lecteurs d'écran */
    font-size: 0;
    border: 1px solid var(--soeves-menu-accent);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--soeves-menu-accent) !important;
  }

  #masthead .main-navigation button.menu-toggle:hover,
  #masthead .main-navigation button.menu-toggle:focus {
    background: transparent;
    color: var(--soeves-menu-accent) !important;
  }

  #masthead .main-navigation button.menu-toggle:focus-visible {
    outline: 2px solid var(--soeves-menu-accent);
    outline-offset: 2px;
  }

  /* Barres du burger (devenues une croix quand le menu est ouvert), centrées dans le carré */
  #masthead .main-navigation button.menu-toggle::before,
  #masthead .main-navigation button.menu-toggle::after,
  #masthead .main-navigation button.menu-toggle span::before {
    left: 50%;
    width: 18px;
    margin-left: -9px;
    background-color: var(--soeves-menu-accent);
  }

  /* Liste des liens */
  .main-navigation .handheld-navigation ul.menu li {
    border: 0;
  }

  .main-navigation .handheld-navigation ul.menu li a {
    display: block;
    padding: 0.5em 0;
  }

  .main-navigation.toggled .handheld-navigation {
    padding-top: 0.5rem;
  }
}

/*
 * Sélecteur de langue (inc/language-switcher.php) : cadre fin doré à angles droits, comme le burger
 * mobile et les boutons de marques. Ordinateur : "drapeau + Français" au bout de la barre de navigation ;
 * mobile : "drapeau + FR" en carré de 44px à gauche du burger.
 * L'or pur (#c9a227) n'a pas assez de contraste sur blanc pour du texte ou un contour de focus :
 * il sert au décor, le texte reste foncé et le focus utilise un or assombri.
 */
.soeves-lang {
  --soeves-lang-focus: #8a6d12;
  position: relative;
  flex: 0 0 auto;
  margin-left: 2rem;
  font-size: 0.95rem;
  line-height: 1;
}

#masthead .soeves-lang__toggle,
.soeves-lang__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  height: 40px;
  margin: 0;
  padding: 0 0.9em;
  border: 1px solid rgba(201, 162, 39, 0.55);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #1a1a1a;
  font: inherit;
  font-weight: 400;
  letter-spacing: 0.3px;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

#masthead .soeves-lang__toggle:hover,
#masthead .soeves-lang__toggle:focus,
.soeves-lang.is-open .soeves-lang__toggle {
  border-color: var(--soeves-gold);
  background: var(--soeves-cream);
  color: #1a1a1a;
}

.soeves-lang__toggle:focus-visible,
.soeves-lang__option:focus-visible {
  outline: 2px solid var(--soeves-lang-focus);
  outline-offset: 2px;
}

.soeves-lang__flag {
  display: inline-flex;
  flex: 0 0 auto;
}

.soeves-lang__flag svg {
  display: block;
  width: 21px;
  height: 14px;
  box-shadow: 0 0 0 1px rgba(13, 13, 13, 0.1);
}

.soeves-lang__short {
  display: none;
}

.soeves-lang__chevron {
  width: 10px;
  height: 10px;
  color: var(--soeves-lang-focus);
  transition: transform 0.2s ease;
}

.soeves-lang.is-open .soeves-lang__chevron {
  transform: rotate(180deg);
}

.soeves-lang__list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1000;
  min-width: 190px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #ffffff;
  border: 1px solid rgba(13, 13, 13, 0.08);
  border-top: 2px solid var(--soeves-gold);
  box-shadow: 0 14px 34px rgba(13, 13, 13, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

/* Sans JavaScript, le menu s'ouvre au survol / au focus clavier */
.soeves-lang.is-open .soeves-lang__list,
.soeves-lang:not(.is-ready):hover .soeves-lang__list,
.soeves-lang:not(.is-ready):focus-within .soeves-lang__list {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
}

.soeves-lang__list li {
  margin: 0;
  padding: 0;
  list-style: none;
}

#masthead .soeves-lang__option,
#masthead .soeves-lang__option:visited {
  display: flex;
  align-items: center;
  gap: 0.75em;
  min-height: 44px;
  padding: 0 1.1em;
  border-left: 2px solid transparent;
  color: #1a1a1a;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

#masthead .soeves-lang__option:hover,
#masthead .soeves-lang__option:focus {
  background: var(--soeves-cream);
  color: #1a1a1a;
}

#masthead .soeves-lang__option[aria-current="true"] {
  border-left-color: var(--soeves-gold);
  font-weight: 600;
}

.soeves-lang__option:not([aria-current="true"]) .soeves-lang__check {
  display: none;
}

.soeves-lang__check {
  width: 12px;
  height: 12px;
  margin-left: auto;
  color: var(--soeves-lang-focus);
}

/* Fondu de la page pendant le changement de langue (voir assets/js/language-switcher.js) */
html.soeves-lang-leaving body {
  opacity: 0;
  transition: opacity 0.18s ease;
}

/* Avec GTranslate la page est traduite sans rechargement : léger fondu du contenu pendant la traduction */
.site-content,
.site-footer {
  transition: opacity 0.3s ease;
}

html.soeves-lang-switching .site-content,
html.soeves-lang-switching .site-footer {
  opacity: 0.35;
}

@media screen and (max-width: 767px) {
  /* Même hauteur, même ligne et même cadre que le burger (44px), juste à sa gauche */
  #masthead .soeves-lang {
    position: absolute;
    top: calc(1.25rem + 4px);
    right: calc(var(--soeves-header-gutter) + 44px + 8px);
    margin: 0;
    font-size: 0.85rem;
  }

  #masthead .soeves-lang__toggle {
    height: 44px;
    padding: 0 0.75em;
    border-color: var(--soeves-gold);
  }

  .soeves-lang__toggle .soeves-lang__name {
    display: none;
  }

  .soeves-lang__toggle .soeves-lang__short {
    display: inline;
    font-weight: 600;
    letter-spacing: 0.08em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .soeves-lang__toggle,
  .soeves-lang__chevron,
  .soeves-lang__list,
  .soeves-lang__option {
    transition: none !important;
  }
}

/* Carrousel (page d'accueil, sous le header) */
.soeves-has-carousel #masthead.site-header {
  margin-bottom: 0;
}

.soeves-carousel {
  position: relative;
  overflow: hidden;
  background-color: var(--soeves-black);
  margin-bottom: 2.5em;
}

.soeves-carousel__viewport {
  position: relative;
  touch-action: pan-y;
}

.soeves-carousel .soeves-carousel__track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

.soeves-carousel__slide {
  position: relative;
  flex: 0 0 100%;
  height: min(100vw, 560px);
  margin: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

/* Fond flouté de la photo pour combler les côtés sur grand écran */
.soeves-carousel__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--soeves-slide-bg);
  background-size: cover;
  background-position: center;
  filter: blur(28px) brightness(0.65);
  transform: scale(1.15);
}

.soeves-carousel .soeves-carousel__slide img {
  position: relative;
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

/* Les <button> du thème sont dorés/majuscules : on les neutralise ici */
.soeves-carousel .soeves-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 0;
  padding: 0;
  border: 1px solid rgba(201, 162, 39, 0.6);
  border-radius: 50%;
  background: rgba(13, 13, 13, 0.55);
  color: var(--soeves-gold) !important;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.soeves-carousel .soeves-carousel__arrow:hover,
.soeves-carousel .soeves-carousel__arrow:focus-visible {
  background: var(--soeves-gold);
  color: var(--soeves-black) !important;
}

.soeves-carousel .soeves-carousel__arrow--prev {
  left: 1rem;
}

.soeves-carousel .soeves-carousel__arrow--next {
  right: 1rem;
}

.soeves-carousel .soeves-carousel__dots {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(13, 13, 13, 0.55);
}

.soeves-carousel .soeves-carousel__dot {
  width: 10px;
  height: 10px;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--soeves-gold);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.soeves-carousel .soeves-carousel__dot:hover,
.soeves-carousel .soeves-carousel__dot[aria-current="true"] {
  background: var(--soeves-gold);
}

.soeves-carousel.is-static .soeves-carousel__arrow,
.soeves-carousel.is-static .soeves-carousel__dots {
  display: none;
}

@media screen and (max-width: 767px) {
  .soeves-carousel .soeves-carousel__arrow {
    width: 36px;
    height: 36px;
  }

  .soeves-carousel .soeves-carousel__arrow--prev {
    left: 0.5rem;
  }

  .soeves-carousel .soeves-carousel__arrow--next {
    right: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .soeves-carousel .soeves-carousel__track {
    transition: none;
  }
}

/* Links */
a {
  color: var(--soeves-ink);
}

a:hover {
  color: var(--soeves-gold);
}

/* Buttons */
.button,
button,
input[type="submit"],
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.wp-block-button__link {
  background-color: var(--soeves-gold);
  color: var(--soeves-black) !important;
  border: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  border-radius: 0;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.wp-block-button__link:hover {
  background-color: var(--soeves-black);
  color: var(--soeves-gold) !important;
}

/* Prices */
.woocommerce-Price-amount,
.price ins {
  color: var(--soeves-black);
  font-weight: 600;
}

/* Prix des produits (cartes et fiche) : gris légèrement transparent */
.price,
.price .woocommerce-Price-amount,
.price ins,
ul.products li.product .price {
  color: rgba(13, 13, 13, 0.55);
}

/* Product grid */
.storefront-sorting {
  border-color: #e5ddc8;
}

/*
 * Cartes produits encadrées (accueil, boutique, produits similaires).
 * Grille CSS à la place des flottants du thème : toutes les cartes d'une ligne ont la même hauteur.
 * Les !important neutralisent les largeurs/marges "flottantes" de WooCommerce (sélecteurs plus précis).
 */
ul.products {
  --soeves-cols: 1;
  --soeves-card-gap: clamp(0.9rem, 2vw, 1.75rem);
  --soeves-card-pad: clamp(0.6rem, 1.4vw, 1.1rem);
  display: grid;
  grid-template-columns: repeat(var(--soeves-cols), minmax(0, 1fr));
  gap: var(--soeves-card-gap);
  margin-bottom: 2.5em;
}

/* Les pseudo-éléments "clearfix" de WooCommerce deviendraient des cellules de la grille */
ul.products::before,
ul.products::after {
  display: none !important;
}

@media screen and (min-width: 768px) {
  ul.products.columns-1 { --soeves-cols: 1; }
  ul.products.columns-2 { --soeves-cols: 2; }
  ul.products.columns-3,
  ul.products.columns-4,
  ul.products.columns-5,
  ul.products.columns-6 { --soeves-cols: 3; }
}

@media screen and (min-width: 1024px) {
  ul.products.columns-4 { --soeves-cols: 4; }
  ul.products.columns-5 { --soeves-cols: 5; }
  ul.products.columns-6 { --soeves-cols: 6; }
}

ul.products li.product {
  position: relative;
  display: flex;
  flex-direction: column;
  width: auto !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  padding: var(--soeves-card-pad) !important;
  background-color: #ffffff;
  border: 1px solid #e5ddc8;
  text-align: center;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

/* Second filet doré à l'intérieur du cadre */
ul.products li.product::before {
  content: "";
  position: absolute;
  inset: clamp(4px, 0.5vw, 7px);
  border: 1px solid rgba(201, 162, 39, 0.35);
  pointer-events: none;
  transition: border-color 0.25s ease;
}

ul.products li.product .woocommerce-LoopProduct-link {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

/* Prix alignés en bas de carte, même si un titre passe sur 2 lignes */
ul.products li.product .price {
  margin-top: auto;
}

@media (hover: hover) {
  ul.products li.product:hover {
    border-color: var(--soeves-gold);
    box-shadow: 0 10px 24px rgba(13, 13, 13, 0.08);
    transform: translateY(-3px);
  }

  ul.products li.product:hover::before {
    border-color: rgba(201, 162, 39, 0.75);
  }
}

/* Footer */
#colophon.site-footer {
  background-color: #ffffff;
  color: var(--soeves-ink);
  border-top: 1px solid #e5ddc8;
  padding: 1em 0 1.5em;
}

#colophon.site-footer a {
  color: #1a1a1a;
}

#colophon.site-footer a:hover {
  color: var(--soeves-gold);
}

#colophon.site-footer h1,
#colophon.site-footer h2,
#colophon.site-footer h3,
#colophon.site-footer h4,
#colophon.site-footer h5,
#colophon.site-footer h6 {
  color: var(--soeves-black);
}

#colophon .footer-widgets {
  padding-top: 2em;
}

#colophon .footer-widgets .widget {
  margin-bottom: 1.5em;
}

#colophon .site-info {
  padding: 1em 0;
  text-align: center;
}

#colophon .site-info .soeves-copyright {
  margin: 0 0 0.4em;
}

#colophon .site-info .soeves-legal-links {
  margin: 0;
  font-size: 0.85em;
}

#colophon .site-info .soeves-legal-links .sep {
  margin: 0 0.5em;
  color: var(--soeves-gold);
}

/* Hide the automatic "Accueil" page title on the front page */
.home .entry-header {
  display: none;
}

.soeves-brand-links {
  margin-top: 1.5rem;
}

.soeves-brand-links a {
  display: inline-block;
  margin: 0 0.5rem 0.75rem;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--soeves-gold);
  color: var(--soeves-ink);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.soeves-brand-links a:hover {
  background-color: var(--soeves-gold);
  color: #ffffff;
}

/* Familles olfactives (ex. FLORAL | GOURMAND | MUSC) */
.soeves-fragrance-families {
  margin: 0.4rem 0 0.85rem;
  color: var(--soeves-gold);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  line-height: 1.6;
}

/* Grille boutique : ligne centrée sous le titre, comme le reste de la carte produit */
ul.products li.product .soeves-fragrance-families {
  text-align: center;
}

.soeves-fragrance-family {
  white-space: nowrap;
}

.soeves-fragrance-family-sep {
  display: inline-block;
  margin: 0 0.6em;
  color: rgba(201, 162, 39, 0.55);
}

/*
 * Fiche produit : marque, titre en capitales espacées, familles, prix,
 * caractéristiques en cases, filet, puis description et notes.
 */
.single-product div.product .summary {
  font-size: 1rem;
}

.single-product .soeves-product-brand {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 2px;
}

.single-product .soeves-product-brand a {
  color: var(--soeves-ink);
  text-decoration: none;
}

.single-product .soeves-product-brand a:hover {
  color: var(--soeves-gold);
}

.single-product div.product .product_title {
  margin: 0 0 0.5rem;
  font-family: inherit;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--soeves-black);
}

.single-product div.product .summary .soeves-fragrance-families {
  margin: 0 0 1rem;
  font-size: 0.72rem;
}

.single-product div.product .summary p.price {
  margin: 0 0 1.5rem;
  font-size: 1.3rem;
  letter-spacing: 2px;
}

.single-product div.product .summary p.price .woocommerce-Price-amount {
  font-weight: 400;
  color: var(--soeves-black);
}

/* Caractéristiques : libellé au-dessus, valeur encadrée */
.soeves-product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  margin: 0;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--soeves-black);
}

.soeves-product-spec dt {
  margin: 0 0 0.4rem;
  font-weight: 400;
  font-size: 1rem;
  color: var(--soeves-black);
}

.soeves-product-spec dd {
  margin: 0;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--soeves-black);
  background-color: #ffffff;
  font-size: 0.85rem;
  line-height: 1.4;
  white-space: nowrap;
  color: var(--soeves-black);
}

/* Description et notes */
.soeves-product-description {
  margin-top: 1rem;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--soeves-black);
}

.soeves-product-description p,
.soeves-product-description div {
  margin: 0 0 0.9rem;
}

.soeves-product-description strong {
  font-weight: 700;
}

.soeves-product-description .soeves-notes-title {
  margin: 1.75rem 0 1.25rem;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Si aucune case n'est renseignée, le filet reste sous le prix */
.single-product div.product .summary p.price + .soeves-product-description {
  padding-top: 1rem;
  border-top: 2px solid var(--soeves-black);
}

/* Fiche produit : sans fil d'Ariane, Storefront ne laisse plus d'espace sous le header */
.single-product .site-content {
  padding-top: 2.5rem;
}

@media screen and (min-width: 768px) {
  .single-product .site-content {
    padding-top: 4rem;
  }
}

/* Page À propos (blocs .soeves-about) */
body:has(.soeves-about) .entry-header {
  display: none;
}

.soeves-about {
  max-width: 960px;
  margin: 0 auto 2rem;
  text-align: center;
}

.soeves-about__hero {
  position: relative;
  margin-bottom: 3rem;
  padding: 4rem 1.5rem 3.5rem;
  background:
    radial-gradient(ellipse at top, rgba(201, 162, 39, 0.22), transparent 65%),
    var(--soeves-black);
  color: #f7f3ea;
}

/* Double filet doré intérieur */
.soeves-about__hero::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(201, 162, 39, 0.45);
  pointer-events: none;
}

.soeves-about .soeves-about__eyebrow {
  margin-bottom: 0.75rem;
  color: var(--soeves-gold);
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.soeves-about__hero h2 {
  margin: 0 0 1rem;
  color: #ffffff;
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.15;
}

.soeves-about .soeves-about__tagline {
  margin: 0;
  color: var(--soeves-gold-light);
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 1.2rem;
  font-style: italic;
}

/* Losange doré sous le slogan */
.soeves-about__tagline::after {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  margin: 1.5rem auto 0;
  background: var(--soeves-gold);
  transform: rotate(45deg);
}

.soeves-about .soeves-about__lead {
  max-width: 680px;
  margin: 0 auto 1rem;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 1.45rem;
  line-height: 1.5;
  color: var(--soeves-black);
}

.soeves-about .soeves-about__text {
  max-width: 620px;
  margin: 0 auto;
}

.soeves-about .soeves-about__pillars {
  gap: 1.5rem;
  margin: 3.5rem 0;
}

.soeves-about .soeves-about__pillar {
  /* !important : Storefront impose le padding des colonnes avec des sélecteurs très spécifiques */
  padding: 2.25rem 1.75rem 1.75rem !important;
  background: #ffffff;
  border-top: 2px solid var(--soeves-gold);
  box-shadow: 0 10px 30px rgba(13, 13, 13, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) {
  .soeves-about .soeves-about__pillar:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(13, 13, 13, 0.1);
  }
}

.soeves-about .soeves-about__num {
  margin-bottom: 0.5rem;
  color: var(--soeves-gold);
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 1.75rem;
  font-style: italic;
  line-height: 1;
}

.soeves-about__pillar h3 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.soeves-about__pillar p:last-child {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.soeves-about .soeves-about__quote {
  position: relative;
  max-width: 760px;
  margin: 0 auto 3rem;
  padding: 3.25rem 1.5rem 0 !important; /* idem pour .wp-block-quote */
  border: 0;
  border-top: 1px solid rgba(201, 162, 39, 0.5);
}

/* Guillemet décoratif posé sur le filet */
.soeves-about__quote::before {
  content: "\201C";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -38%);
  height: 3rem;
  overflow: hidden;
  padding: 0 1rem;
  background: var(--soeves-cream);
  color: var(--soeves-gold);
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 4rem;
  line-height: 1;
}

.soeves-about__quote p {
  margin: 0;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--soeves-black);
}

.soeves-about .soeves-about__motto {
  margin-bottom: 1.5rem;
  color: var(--soeves-gold);
  font-size: 0.85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.soeves-about .soeves-about__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.soeves-about .soeves-about__cta a {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border: 1px solid var(--soeves-gold);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.soeves-about .soeves-about__cta a:first-child {
  background: var(--soeves-black);
  border-color: var(--soeves-black);
  color: var(--soeves-gold-light);
}

.soeves-about .soeves-about__cta a:first-child:hover {
  background: var(--soeves-gold);
  border-color: var(--soeves-gold);
  color: #ffffff;
}

.soeves-about .soeves-about__cta a:last-child {
  color: var(--soeves-ink);
}

.soeves-about .soeves-about__cta a:last-child:hover {
  background: var(--soeves-gold);
  color: #ffffff;
}

@media screen and (max-width: 767px) {
  .soeves-about__hero {
    padding: 3rem 1.25rem 2.75rem;
  }

  .soeves-about .soeves-about__lead {
    font-size: 1.2rem;
  }
}

/* Page À propos : sections de texte */
.soeves-about .soeves-about__section {
  max-width: 680px;
  margin: 4rem auto 0;
}

.soeves-about__section h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
}

/* Petit filet doré sous les titres de section */
.soeves-about__section h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  margin: 1rem auto 0;
  background: var(--soeves-gold);
}

.soeves-about__section + .soeves-about__pillars {
  margin-top: 2.5rem;
}

.soeves-about .soeves-about__mission {
  max-width: 760px;
  margin: 4rem auto 0;
  padding: 2.5rem 2rem;
  background: var(--soeves-black);
  border-left: 3px solid var(--soeves-gold);
}

.soeves-about .soeves-about__mission-text {
  margin: 0;
  color: #f7f3ea;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  font-style: italic;
  line-height: 1.55;
}

/* Engagements : cartes sans fond, simple filet doré */
.soeves-about .soeves-about__pillars--plain .soeves-about__pillar {
  background: transparent;
  box-shadow: none;
}

@media (hover: hover) {
  .soeves-about .soeves-about__pillars--plain .soeves-about__pillar:hover {
    transform: none;
    box-shadow: none;
  }
}

.soeves-about .soeves-about__outro {
  margin-top: 3.5rem;
}

/* Textes à compléter dans l'éditeur (à supprimer une fois tout rempli) */
.soeves-todo {
  padding: 0 0.2em;
  background: #fff3b0;
  color: #6b5200;
}

/* Page À propos : photo en haut des cartes, bord à bord */
.soeves-about .soeves-about__pillar .soeves-about__img {
  margin: -2.25rem -1.75rem 1.75rem !important; /* Storefront fixe la marge des .wp-block-image */
  overflow: hidden;
}

.soeves-about .soeves-about__img img {
  display: block;
  width: 100%;
  aspect-ratio: 930 / 1024; /* format des photos : rien n’est rogné */
  object-fit: cover;
  transition: transform 0.6s ease;
}

@media (hover: hover) {
  .soeves-about .soeves-about__pillar:hover .soeves-about__img img {
    transform: scale(1.04);
  }
}

/* Filet doré intérieur sur les photos, comme le bandeau du haut */
.soeves-about .soeves-about__img {
  position: relative;
}

.soeves-about .soeves-about__img::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(212, 175, 55, 0.6);
  pointer-events: none;
}

/* Page introuvable (404.php) */
.soeves-404 {
  max-width: 1060px;
  margin: 0 auto 3rem;
  text-align: center;
}

.soeves-404__hero {
  position: relative;
  padding: 4rem 1.5rem 3.5rem;
  background:
    radial-gradient(ellipse at top, rgba(201, 162, 39, 0.25), transparent 65%),
    var(--soeves-black);
  color: #f7f3ea;
}

/* Double filet doré intérieur, comme sur la page À propos */
.soeves-404__hero::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(201, 162, 39, 0.45);
  pointer-events: none;
}

.soeves-404 .soeves-404__eyebrow {
  margin-bottom: 0.5rem;
  color: var(--soeves-gold);
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.soeves-404 .soeves-404__code {
  margin: 0;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: clamp(5rem, 18vw, 9rem);
  font-style: italic;
  line-height: 1;
  background: linear-gradient(180deg, #f1d77a 0%, var(--soeves-gold) 55%, #8a6d12 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.soeves-404 .soeves-404__title {
  margin: 1rem 0 1rem;
  color: #ffffff;
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
}

.soeves-404 .soeves-404__text {
  max-width: 520px;
  margin: 0 auto 2rem;
  color: rgba(247, 243, 234, 0.8);
}

.soeves-404 .soeves-404__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 0;
}

.soeves-404 .soeves-404__actions a {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border: 1px solid rgba(201, 162, 39, 0.7);
  color: #f7f3ea;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.soeves-404 .soeves-404__actions a:hover,
.soeves-404 .soeves-404__actions a.soeves-404__btn--gold {
  background: var(--soeves-gold);
  border-color: var(--soeves-gold);
  color: var(--soeves-black);
}

.soeves-404 .soeves-404__actions a.soeves-404__btn--gold:hover {
  background: var(--soeves-gold-light);
}

.soeves-404__search {
  max-width: 560px;
  margin: 3.5rem auto 0;
}

.soeves-404__search h2,
.soeves-404__products h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
}

.soeves-404__search h2 {
  margin-bottom: 1.25rem;
}

/* Champ de recherche WooCommerce : bordure dorée et bouton noir */
.soeves-404__search .woocommerce-product-search {
  display: flex;
}

.soeves-404__search .woocommerce-product-search input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--soeves-gold);
  background: #ffffff;
  box-shadow: none;
}

.soeves-404__search .woocommerce-product-search button {
  padding: 0 1.5rem;
  border: 1px solid var(--soeves-black);
  background: var(--soeves-black);
  color: var(--soeves-gold-light);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.soeves-404__search .woocommerce-product-search button:hover {
  background: var(--soeves-gold);
  border-color: var(--soeves-gold);
  color: #ffffff;
}

.soeves-404__products {
  margin-top: 4rem;
}

.soeves-404__products h2 {
  margin-bottom: 2rem;
}

.soeves-404__products h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  margin: 1rem auto 0;
  background: var(--soeves-gold);
}

@media screen and (max-width: 767px) {
  .soeves-404__hero {
    padding: 3rem 1.25rem 2.75rem;
  }
}

.error404 .site-content .soeves-404__search .widget_product_search {
  margin: 0;
  padding: 0;
  background: none;
}

.soeves-404__products .soeves-404__eyebrow + h2 {
  margin-top: 0;
}

/* Pop-up WhatsApp flottant (aux couleurs du site : noir, or, crème) */
.soeves-wa {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  font-size: 15px;
}

.soeves-wa button.soeves-wa__button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 1px solid var(--soeves-gold);
  border-radius: 50%;
  background-color: var(--soeves-black);
  color: var(--soeves-gold-light) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.soeves-wa button.soeves-wa__button:hover,
.soeves-wa button.soeves-wa__button:focus-visible {
  background-color: var(--soeves-gold);
  color: var(--soeves-black) !important;
  transform: scale(1.06);
}

.soeves-wa button.soeves-wa__button:focus-visible {
  outline: 2px solid var(--soeves-gold);
  outline-offset: 3px;
}

.soeves-wa__button svg {
  width: 30px;
  height: 30px;
}

.soeves-wa__badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background-color: var(--soeves-gold);
  color: var(--soeves-black);
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.soeves-wa__badge[hidden],
.soeves-wa__popup[hidden] {
  display: none;
}

.soeves-wa__popup {
  width: 340px;
  max-width: calc(100vw - 40px);
  overflow: hidden;
  border: 1px solid #e5ddc8;
  border-radius: 6px;
  background-color: #ffffff;
  box-shadow: 0 12px 34px rgba(13, 13, 13, 0.2);
  transform-origin: bottom right;
  animation: soeves-wa-in 0.25s ease;
}

.soeves-wa__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  background-color: var(--soeves-black);
  border-bottom: 2px solid var(--soeves-gold);
  color: #ffffff;
}

.soeves-wa__avatar {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 1px solid var(--soeves-gold);
  border-radius: 50%;
  background-color: #ffffff;
}

/* Logo vertical : affiché en entier (contain), centré dans le rond */
.soeves-wa__avatar img {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  padding: 6px;
}

.soeves-wa__who {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.3;
}

.soeves-wa__who strong {
  display: block;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: #ffffff;
}

.soeves-wa__who small {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--soeves-gold-light);
}

.soeves-wa button.soeves-wa__close {
  flex: 0 0 auto;
  align-self: flex-start;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--soeves-cream) !important;
  font-size: 1.5rem;
  line-height: 1;
  opacity: 0.8;
  cursor: pointer;
}

.soeves-wa button.soeves-wa__close:hover,
.soeves-wa button.soeves-wa__close:focus-visible {
  background: none;
  color: var(--soeves-gold-light) !important;
  opacity: 1;
}

.soeves-wa__body {
  padding: 20px 16px 22px;
  background-color: var(--soeves-cream);
  background-image: radial-gradient(rgba(201, 162, 39, 0.12) 1px, transparent 1px);
  background-size: 14px 14px;
}

.soeves-wa__msg {
  position: relative;
  max-width: 88%;
  padding: 8px 12px 18px;
  border-radius: 0 8px 8px 8px;
  background-color: #ffffff;
  box-shadow: 0 1px 2px rgba(13, 13, 13, 0.1);
  color: var(--soeves-ink);
  line-height: 1.45;
  animation: soeves-wa-in 0.3s ease 0.15s both;
}

.soeves-wa__msg::before {
  content: "";
  position: absolute;
  top: 0;
  left: -8px;
  border-top: 10px solid #ffffff;
  border-left: 8px solid transparent;
}

.soeves-wa__msg-name {
  display: block;
  margin-bottom: 2px;
  color: #8a6d12;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.soeves-wa__msg p {
  margin: 0;
}

.soeves-wa__msg-time {
  position: absolute;
  right: 10px;
  bottom: 4px;
  color: #8a8a8a;
  font-size: 0.68rem;
}

.soeves-wa a.soeves-wa__start {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 14px;
  padding: 12px 16px;
  border: 1px solid var(--soeves-black);
  background-color: var(--soeves-black);
  color: var(--soeves-gold-light);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.soeves-wa a.soeves-wa__start:hover,
.soeves-wa a.soeves-wa__start:focus-visible {
  border-color: var(--soeves-gold);
  background-color: var(--soeves-gold);
  color: #ffffff;
}

.soeves-wa__start svg {
  width: 18px;
  height: 18px;
}

@keyframes soeves-wa-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .soeves-wa__popup,
  .soeves-wa__msg {
    animation: none;
  }
}

@media screen and (max-width: 767px) {
  .soeves-wa {
    right: 16px;
    bottom: 16px;
  }

  .soeves-wa__popup {
    max-width: calc(100vw - 32px);
  }
}
