html {
  font-size: 16px;
  overflow: visible !important;
}

body {
  max-width: 100vw;
  overflow: visible !important;
  font-family: "Poppins";
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  background-color: #fff;
  color: var(--wp--preset--color--color-text);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

iframe {
  max-width: 100%;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
}

a {
  text-decoration: none;
}

@media screen and (min-width: 1400px) {
  .container.large {
    max-width: 97%;
  }
}

@media screen and (max-width: 991px) {
  #tarteaucitronIcon {
    bottom: 7vh;
    right: -5px;
  }
  #app-menu-container {
    z-index: 9999;
  }
}

/***** Boostrap accordion ****/
.accordion {
  margin-top: 5vh;
}

.accordion .accordion-item {
  border-radius: 0;
  margin-bottom: 10px;
}

.accordion .accordion-item h2 {
  margin-bottom: 0;
  margin-top: 0;
}

.accordion .accordion-item .accordion-button {
  background-color: #fff;
  box-shadow: none;
  color: var(--wp--preset--color--color-text);
  font-weight: 500;
  font-size: 1.125rem;
}

.accordion-button::after {
  content: "+";
  position: absolute;
  right: 15px;
  top: 10px;
  color: var(--wp--preset--color--color-1);
  font-weight: 400;
  background-image: none !important;
  font-size: 2rem;
  transform: none;
}

.accordion-button:not(.collapsed)::after {
  transform: none;
}

.accordion-body {
  color: var(--wp--preset--color--color-text);
}

.entry-content .accordion {
  margin-top: 3vh;
  margin-bottom: 5vh;
}

.entry-content .accordion .accordion-item {
  border: 1px solid var(--wp--preset--color--color-text);
}

/***** Global banner *****/
.global-banner {
  background-color: #fdf6fb;
  border-radius: 5px;
  padding: 2%;
  margin-bottom: 2vh;
}

.global-banner h1 {
  font-weight: 500;
  font-size: 1.875rem;
}

@media screen and (min-width: 991px) {
  .global-banner {
    margin-bottom: 5vh;
  }
}

/*** Global banner for archive product ****/
/* Fond blanc sur les archives produit (boutique, catégorie, gamme, marque,
   recherche) — la classe post-type-archive-product est ajoutée par
   woocommerce/archive-product.php sur tous ces rendus. */
body.post-type-archive-product .global-banner {
  background-color: #fff;
  /* La description courte a été retirée : sans ça, le 5vh prévu pour l'espacer
     de la grille laisse un vide énorme sous le fil d'Ariane. */
  margin-bottom: 1rem;
}

.archive.tax-product_cat .global-banner {
  padding: 0;
}

/* Le padding de 5% ci-dessous (≈46px) encadrait la description ; il ne reste
   que le titre + fil d'Ariane, donc on supprime la moitié basse.
   Sélecteur volontairement plus spécifique que .archive.tax-product_cat. */
body.archive.post-type-archive-product .global-banner .text {
  padding-top: 1.5%;
  padding-bottom: 0;
}

/* Logo de marque à droite du bandeau (page de marque uniquement) */
.global-banner .brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 140px;
  padding: 16px;
}

.global-banner .brand-logo__img {
  max-width: 100%;
  max-height: 170px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.archive.tax-product_cat .global-banner .text {
  padding: 5%;
}

.archive.tax-product_cat .global-banner .img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 200px;
}

@media screen and (min-width: 768px) {
  .archive.tax-product_cat .global-banner .img {
    min-height: 350px;
  }
}

@media screen and (min-width: 991px) {
  .archive.tax-product_cat .global-banner .img {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
  }
}

/**** Breadcrumb ****/
.woocommerce-breadcrumb,
.rank-math-breadcrumb {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--wp--preset--color--color-text) !important;
}

.woocommerce-breadcrumb a,
.rank-math-breadcrumb a {
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--wp--preset--color--color-text) !important;
}

.woocommerce-breadcrumb a:hover,
.rank-math-breadcrumb a:hover {
  color: var(--wp--preset--color--color-1) !important;
}

/***** Tooltip mini cart ******/
#tooltip-mini-cart {
  top: 0 !important;
  z-index: 100000;
  position: fixed;
  margin-top: 0;
  right: 0 !important;
  height: 100%;
  box-shadow: none;
  border-radius: 0;
  transform: translateX(100%);
  transition: 0.5s all;
  display: block !important;
  background-color: #fff;
  color: var(--wp--preset--color--dark-green);
}

#tooltip-mini-cart.show {
  transform: translateX(0);
  transition: 0.5s all;
}

#tooltip-mini-cart .mini-cart {
  padding-top: 7vh;
  height: 100vh;
}

#tooltip-mini-cart .mini-cart .close {
  position: absolute;
  right: 0;
  top: 5px;
  cursor: pointer;
  font-size: 20px;
  padding: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#tooltip-mini-cart .mini-cart .line-product {
  border-bottom: 1px solid var(--wp--preset--color--vert-4);
  margin-top: 30px;
  padding-bottom: 30px;
}

#tooltip-mini-cart .mini-cart .product-name {
  font-weight: 600;
  margin-bottom: 0;
  font-size: 1rem;
  text-transform: uppercase;
}

#tooltip-mini-cart .mini-cart .woocommerce-Price-amount {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--wp--preset--color--color-1);
}

#tooltip-mini-cart .mini-cart > .mini-cart-body {
  border-bottom: none;
  max-height: 65vh;
}

#tooltip-mini-cart .mini-cart > .mini-cart-body .line-product input {
  background-color: transparent;
  border-radius: 0;
  width: 100%;
  height: 30px;
  text-align: center;
  color: var(--wp--preset--color--color-text);
  padding: 0;
}

#tooltip-mini-cart .mini-cart > .mini-cart-body .line-product .product-action {
  width: 1.5em;
  height: 1.5em;
  border: 1px solid var(--wp--preset--color--color-text);
  background-color: transparent;
}

#tooltip-mini-cart
  .mini-cart
  > .mini-cart-body
  .line-product
  .product-action
  svg {
  height: 0.9em;
}

#tooltip-mini-cart .mini-cart .total-value .woocommerce-Price-amount {
  font-size: 1.5rem;
}

#tooltip-mini-cart .mini-cart-footer {
  padding-top: 50px !important;
}

/**** Questions ****/
.block-questions {
  padding-top: 5vh;
  padding-bottom: 5vh;
  background-color: var(--wp--preset--color--color-8);
  color: #fff;
}

@media screen and (min-width: 991px) {
  .block-questions {
    padding: 5vh 18vh;
  }
}

.block-questions h2 {
  text-align: center;
  margin-bottom: 5vh;
}

.block-questions .intro a {
  color: var(--wp--preset--color--color-1);
}

.block-questions .intro a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   NEWSLETTER BLANCHE - VERSION FINALE COMPLÈTE
   ========================================================================== */

/* Section principale avec fond blanc */
.section-newsletter {
  background: #f7f7f7 !important;
  /* Les icônes de réassurance ayant été retirées, le padding bas de 80px
     laissait un grand vide avant le footer.
     Plus de padding horizontal : il s'ajoutait à celui du conteneur et
     décalait le bandeau de 20 px par rapport au header en dessous de 1920 px
     de large (2026-11-13). Les paliers ci-dessous suffisent. */
  padding: 20px 0 0;
  position: relative;
  overflow: visible;
  margin-bottom: 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
  /* Le bloc est la cible de #newsletter. Le header est colle et mesure 166 px
     sur ordinateur : sans ce retrait, l'ancre amene le titre dessous et on
     croit que rien ne s'est passe. */
  scroll-margin-top: 180px;
}

@media screen and (max-width: 991px) {
  .section-newsletter { scroll-margin-top: 90px; }
}

/* Suppression des pseudo-éléments décoratifs */
.section-newsletter::before {
  display: none !important;
}

.section-newsletter::after {
  display: none !important;
}

/* Le bandeau recopiait les paliers du header avec ses propres valeurs, et
   finissait 60 px plus a l'exterieur. Son conteneur porte maintenant la classe
   « large » et herite des paliers communs (assets/css/header.css). */
.section-newsletter .container {
  position: relative;
  z-index: 1;
}

/* -----------------------------------------------------------------------------
   Bloc principal
   ----------------------------------------------------------------------------- */
.section-newsletter .newsletter-main {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.section-newsletter .newsletter-left {
  flex: 1;
  text-align: left;
}

.section-newsletter .newsletter-left .newsletter-title {
  color: #2a4e49 !important; /* Gris-vert foncé du footer */
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
  text-shadow: none !important;
}

.section-newsletter .newsletter-subtitle {
  color: #666 !important;
  font-size: 1.05rem;
  margin-bottom: 0;
  line-height: 1.5;
  font-weight: 400;
}

.section-newsletter .newsletter-subtitle strong {
  color: #e5097f !important; /* Rose vif */
  font-weight: 700;
  background: rgba(229, 9, 127, 0.1) !important;
  padding: 3px 10px;
  border-radius: 6px;
  display: inline-block;
}

.section-newsletter .newsletter-right {
  flex: 1;
}

/* -----------------------------------------------------------------------------
   Formulaire avec bordure turquoise
   ----------------------------------------------------------------------------- */
.section-newsletter .newsletter-form {
  background: #ffffff !important;
  backdrop-filter: none !important;
  padding: 25px;
  border-radius: 15px;
  border: 2px solid #00bda5 !important; /* Turquoise */
  box-shadow: 0 4px 15px rgba(0, 189, 165, 0.1);
  margin-bottom: 12px;
}

/* Formulaire de l'extension sequences-mailjet : il a déjà son cadre */
.section-newsletter .newsletter-form.newsletter-form--extension {
  background: none !important;
  border: 0 !important;
  box-shadow: none;
  padding: 0;
}

.section-newsletter .gform_heading {
  display: none !important;
}

.section-newsletter .gform_wrapper,
.section-newsletter .gform_body {
  margin: 0 !important;
  width: 100% !important;
}

.section-newsletter .gform_fields {
  display: flex !important;
  gap: 0 !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
}

.section-newsletter .gfield--type-email,
.section-newsletter .gfield--input-type-email {
  margin: 0 !important;
  padding: 0 !important;
  flex: 1 1 auto !important;
  min-width: 0;
}

/* Cacher le captcha, toutes les variations.
   Cette regle avait perdu son bloc de declarations : ses quatre selecteurs
   etaient agreges a celui du logo qui suivait, et le captcha recevait donc
   display flex au lieu d'etre masque. */
.section-newsletter .gfield--type-captcha,
.section-newsletter .gfield--input-type-captcha,
.section-newsletter .ginput_recaptcha,
.section-newsletter .gfield_recaptcha {
  display: none !important;
}

.section-newsletter .grecaptcha-badge {
  display: none !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  flex: 0 0 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.section-newsletter .gfield_label {
  display: none !important;
}

.section-newsletter .ginput_container,
.section-newsletter .ginput_container_email {
  width: 100% !important;
}

.section-newsletter .gfield input[type="email"],
.section-newsletter .gfield input[type="text"] {
  width: 100% !important;
  padding: 16px 20px;
  font-size: 1rem;
  border: 1px solid #e5e5e5 !important;
  border-radius: 10px 0 0 10px;
  outline: none;
  background: #f8f8f8 !important;
  transition: all 0.3s ease;
}

.section-newsletter .gfield input::placeholder {
  color: #999;
}

.section-newsletter .gfield input:focus {
  border-color: #00bda5 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(0, 189, 165, 0.1);
}

.section-newsletter .gform_footer {
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}

.section-newsletter .gform_button,
.section-newsletter input[type="submit"] {
  background: linear-gradient(135deg, #e5097f 0%, #c4086a 100%) !important;
  color: #fff !important;
  font-size: 1rem;
  font-weight: 700;
  padding: 16px 30px;
  border: none;
  border-radius: 0 10px 10px 0;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(229, 9, 127, 0.4);
}

.section-newsletter .gform_button:hover,
.section-newsletter input[type="submit"]:hover {
  background: linear-gradient(135deg, #c4086a 0%, #a0075a 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 9, 127, 0.5);
}

.section-newsletter .newsletter-privacy {
  color: #666 !important;
  font-size: 0.8rem;
  text-align: left;
  margin: 0;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ──────────────────────────────────────────────────────────────
   Message de succès newsletter — carte animée
   Le texte affiché est celui défini dans Gravity Forms (admin →
   Confirmation). On y ajoute : un cercle checkmark animé en haut,
   un fond gradient turquoise, une entrée scale + fade, et un
   sous-texte injecté en JS pour rappeler que le code arrive par mail.

   IMPORTANT : on NEUTRALISE le wrapper extérieur .newsletter-form
   (et .gform_confirmation_wrapper) pour éviter d'avoir 2 cadres
   imbriqués + 2 checkmarks. Seul .gform_confirmation_message
   porte le style et le pseudo ::before.
   ────────────────────────────────────────────────────────────── */

/* Wrapper externe : transparent quand il contient la confirmation */
.section-newsletter .newsletter-form:has(.gform_confirmation_message),
.section-newsletter .newsletter-form:has(.gform_confirmation_wrapper) {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Le wrapper Gravity Forms intermédiaire reste neutre */
.section-newsletter .gform_confirmation_wrapper {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

/* La carte principale = uniquement .gform_confirmation_message */
.section-newsletter .gform_confirmation_message {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(0, 189, 165, 0.12) 0%,
    rgba(0, 189, 165, 0.04) 100%
  );
  color: #2a4e49;
  padding: 40px 30px 32px;
  border-radius: 15px;
  text-align: center;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.5;
  border: 2px solid #00bda5;
  box-shadow: 0 8px 24px rgba(0, 189, 165, 0.18);
  overflow: hidden;
  animation: nl-confirm-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* Pastille verte avec checkmark animé — UNIQUEMENT sur la vraie carte */
.section-newsletter .gform_confirmation_message::before {
  content: "";
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #00bda5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 36px;
  box-shadow: 0 6px 18px rgba(0, 189, 165, 0.45);
  animation: nl-check-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

/* Sub-text "Vérifiez votre boîte mail" injecté par JS */
.section-newsletter .nl-success-subtext {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #4b6a64;
  margin-top: 4px;
  opacity: 0;
  animation: nl-fade-in 0.5s ease 0.5s forwards;
}

.section-newsletter .nl-success-subtext strong {
  color: #00bda5;
  font-weight: 700;
}

/* ── Responsive mobile de la carte de confirmation ──
   Le reste de la section a ses media queries plus bas, mais la carte de
   succès n'en avait AUCUNE : padding/checkmark/typo desktop sur petit écran.
   On compacte tout et on verrouille la largeur (anti-débordement). */
@media screen and (max-width: 768px) {
  .section-newsletter .gform_confirmation_wrapper,
  .section-newsletter .gform_confirmation_message {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .section-newsletter .gform_confirmation_message {
    padding: 26px 16px 22px;
    font-size: 0.95rem;
    line-height: 1.45;
    gap: 10px;
    border-radius: 12px;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .section-newsletter .gform_confirmation_message::before {
    width: 52px;
    height: 52px;
    background-size: 28px;
  }

  .section-newsletter .nl-success-subtext {
    font-size: 0.85rem;
    padding: 0 4px;
  }
}

@media screen and (max-width: 380px) {
  .section-newsletter .gform_confirmation_message {
    padding: 22px 12px 18px;
    font-size: 0.9rem;
  }

  .section-newsletter .gform_confirmation_message::before {
    width: 46px;
    height: 46px;
    background-size: 24px;
  }
}

@keyframes nl-confirm-in {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes nl-check-pop {
  0% {
    transform: scale(0) rotate(-180deg);
  }
  60% {
    transform: scale(1.2) rotate(0deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes nl-fade-in {
  to {
    opacity: 1;
  }
}

/* ── Conteneur des confettis newsletter ── */
.nl-confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 50;
}

.nl-confetto {
  position: absolute;
  top: -20px;
  left: var(--x, 50%);
  width: 9px;
  height: 14px;
  background: var(--col, #00bda5);
  border-radius: 2px;
  opacity: 0;
  transform: translateY(-20px) rotate(0deg);
  animation: nl-fall var(--d, 2.4s) cubic-bezier(0.2, 0.6, 0.4, 1)
    var(--delay, 0s) forwards;
}

@keyframes nl-fall {
  0% {
    opacity: 0;
    transform: translateY(-20px) rotate(0deg);
  }
  10% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(120vh) rotate(var(--r, 720deg));
  }
}

/* -----------------------------------------------------------------------------
   Icônes de réassurance - Fond turquoise sur blanc
   ----------------------------------------------------------------------------- */
.section-newsletter .newsletter-features {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  padding-top: 35px;
  border-top: 1px solid rgba(0, 189, 165, 0.2);
}

.section-newsletter .feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
}

.section-newsletter .feature-item:hover {
  transform: translateY(-5px);
}

.section-newsletter .feature-icon {
  width: 60px;
  height: 60px;
  background: #00bda5 !important; /* Turquoise */
  border: 2px solid #00bda5 !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 189, 165, 0.2);
}

.section-newsletter .feature-item:hover .feature-icon {
  background: #00a676 !important;
  border-color: #00a676 !important;
  box-shadow: 0 6px 20px rgba(0, 189, 165, 0.3);
}

.section-newsletter .feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: #ffffff !important; /* Blanc pour contraste */
  stroke-width: 2;
  fill: none;
}

.section-newsletter .feature-item span {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: #2a4e49 !important; /* Gris-vert foncé */
  text-shadow: none !important;
}

.section-newsletter .feature-item small {
  font-weight: 400;
  opacity: 1;
  display: block;
  margin-top: 3px;
  font-size: 0.85rem;
  color: #666 !important;
}

/* -----------------------------------------------------------------------------
   Footer - Pas de chevauchement
   ----------------------------------------------------------------------------- */
footer {
  margin-top: 0 !important;
}

/* -----------------------------------------------------------------------------
   Responsive - Tablette
   ----------------------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
  .section-newsletter .container {
    padding: 0 40px;
  }

  .section-newsletter .newsletter-main {
    flex-direction: column;
    gap: 30px;
  }

  .section-newsletter .newsletter-left {
    text-align: center;
  }

  .section-newsletter .newsletter-right {
    width: 100%;
    max-width: 600px;
  }

  .section-newsletter .newsletter-privacy {
    justify-content: center;
  }
}

/* -----------------------------------------------------------------------------
   Responsive - Mobile
   ----------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
  .section-newsletter {
    padding: 20px 15px 0 15px;
  }

  .section-newsletter .container {
    padding: 0 10px;
  }

  .section-newsletter .newsletter-main {
    flex-direction: column;
    gap: 25px;
  }

  .section-newsletter .newsletter-left {
    text-align: center;
  }

  .section-newsletter .newsletter-left .newsletter-title {
    font-size: 1.35rem;
    margin-bottom: 10px;
  }

  .section-newsletter .newsletter-subtitle {
    font-size: 0.95rem;
  }

  /* Retour à la ligne pour le -10% sur mobile */
  .section-newsletter .newsletter-subtitle strong {
    display: block;
    margin-top: 5px;
  }

  .section-newsletter .newsletter-right {
    width: 100%;
    max-width: 100%;
  }

  /* Formulaire en colonne sur mobile */
  .section-newsletter .newsletter-form {
    padding: 20px;
    border-radius: 12px;
  }

  .section-newsletter .gform_fields {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .section-newsletter .gfield--type-email,
  .section-newsletter .gfield--input-type-email {
    width: 100% !important;
  }

  .section-newsletter .gfield input[type="email"],
  .section-newsletter .gfield input[type="text"] {
    border-radius: 10px !important;
    font-size: 16px !important;
    padding: 15px 18px !important;
  }

  .section-newsletter .gform_footer {
    width: 100% !important;
  }

  .section-newsletter .gform_button,
  .section-newsletter input[type="submit"] {
    border-radius: 10px !important;
    padding: 15px 25px !important;
    width: 100% !important;
  }

  .section-newsletter .newsletter-privacy {
    justify-content: center;
    font-size: 0.75rem;
    margin-top: 10px;
  }

  /* Features 2×2 garanti — grid 2 colonnes (plus fiable que flex+width%) */
  .section-newsletter .newsletter-features {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 24px 16px !important;
    padding-top: 30px;
    width: 100%;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
  }

  .section-newsletter .feature-item {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .section-newsletter .feature-icon {
    width: 55px;
    height: 55px;
    margin-bottom: 10px;
  }

  .section-newsletter .feature-icon svg {
    width: 26px;
    height: 26px;
  }

  .section-newsletter .feature-item span {
    font-size: 0.85rem;
  }

  .section-newsletter .feature-item small {
    font-size: 0.75rem;
  }
}

/* Très petit mobile — on garde le 2×2 mais on resserre */
@media screen and (max-width: 380px) {
  .section-newsletter .newsletter-left .newsletter-title {
    font-size: 1.2rem;
  }

  .section-newsletter .newsletter-subtitle {
    font-size: 0.9rem;
  }

  .section-newsletter .newsletter-features {
    gap: 18px 10px !important;
  }

  .section-newsletter .feature-icon {
    width: 50px;
    height: 50px;
  }
}

/* Desktop - Ajustement.
   Plus de padding lateral ici : c'est le conteneur interieur qui porte la
   largeur (memes paliers que le header), et ces 20 px decalaient son
   centrage de 20 px par rapport au reste de la page. */
@media screen and (min-width: 992px) {
  .section-newsletter {
    padding: 20px 0 0;
  }
}

/* ==========================================================================
   MASQUER RECAPTCHA PARTOUT - Badge Google en bas à droite
   ========================================================================== */

/* Badge reCAPTCHA de Google (apparaît en bas à droite) */
.grecaptcha-badge {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Toutes les variations de reCAPTCHA Gravity Forms */
.ginput_recaptcha,
.gfield_recaptcha,
.gform_wrapper .ginput_recaptcha,
.gform_wrapper .gfield_recaptcha,
iframe[src*="recaptcha"],
div[class*="recaptcha"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;
}

/*
 * Alerte de doublon de substance active.
 *
 * Rendue par l'extension pdc-sante, sur la page panier, le tunnel de commande
 * et le tiroir latéral. La variante compacte est celle du tiroir, où la place
 * est comptée mais où l'avertissement doit rester lisible : c'est là que la
 * plupart des clients voient leur panier.
 */
.pdc-alerte-doublon--compact {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  background: #fdecec;
  border: 1px solid #f3bcbc;
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #7a1f24;
}

.pdc-alerte-doublon--compact p {
  margin: 0;
}

.pdc-alerte-doublon--compact p + p {
  margin-top: 0.35rem;
}

.pdc-alerte-doublon--compact strong {
  display: block;
  color: #a4262c;
}

/* --------------------------------------------------------------------------
   Notice médicament ouverte à l'ajout au panier (exigence ARS 10.10)
   --------------------------------------------------------------------------
   Ces règles vivaient dans checkout.css, qui n'est chargé que sur le tunnel de
   commande. La fenêtre s'ouvre en réalité depuis n'importe quelle page portant
   un bouton d'ajout au panier : fiche produit, liste de catégorie, recherche.
   Elle s'y affichait donc sans aucun habillage.
   -------------------------------------------------------------------------- */

.pdc-notice-modale {
  position: fixed;
  inset: 0;
  /*
     * Au-dessus de tout, tiroir du panier compris.
     *
     * Le theme empile plusieurs couches tres hautes : l'en-tete collant, le
     * mini-panier a 100000, le sticky produit mobile a 999999, le tiroir a
     * 2147483600. A 9999 la fenetre passait dessous : le tiroir la recouvrait,
     * l'en-tete restait clair et rognait son bord superieur.
     *
     * Le tiroir s'ouvre au meme instant, sur le meme geste. La notice doit le
     * recouvrir : c'est elle que le patient doit lire avant de poursuivre, et
     * l'exigence 10.10 en fait une etape obligatoire du parcours.
     */
  z-index: 2147483601;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.6);
}

.pdc-notice-modale[hidden] {
  display: none;
}

.pdc-notice-modale__contenu {
  display: flex;
  flex-direction: column;
  width: min(56rem, 100%);
  max-height: min(90vh, 900px);
  padding: 1.25rem 1.5rem 1rem;
  background: #fff;
  border-radius: 12px;
}

.pdc-notice-modale__entete {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.pdc-notice-modale__entete h2 {
  margin: 0;
  font-size: 1.15rem;
}

.pdc-notice-modale__chapo {
  margin: 0.5rem 0 0.85rem;
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* --- Visionneuse PDF ---------------------------------------------------- */

.pdc-notice-visionneuse {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.pdc-notice-visionneuse__barre {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid #e5e7eb;
  background: #fafafa;
}

.pdc-notice-visionneuse__zoom {
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  border: 1px solid #d8dae0;
  border-radius: 6px;
  background: #fff;
  color: #374151;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.pdc-notice-visionneuse__zoom:hover {
  border-color: #e62ca1;
  color: #e62ca1;
}

.pdc-notice-visionneuse__niveau {
  min-width: 3.4rem;
  color: #4b5563;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.pdc-notice-visionneuse__pages {
  margin-left: auto;
  color: #6b7280;
  font-size: 0.8rem;
}

/*
 * La pile est la seule zone qui defile. Le contenu de la fenetre ne defile
 * pas : sur mobile, deux zones de defilement imbriquees rendent la lecture
 * impraticable, le geste servant tantot a la notice tantot a la page.
 */
.pdc-notice-visionneuse__pile {
  flex: 1 1 auto;
  min-height: 14rem;
  padding: 0.75rem;
  overflow: auto;
  background: #f3f4f6;
  /* Le canevas est une image : le navigateur doit rester libre de laisser le
       patient zoomer dessus a deux doigts, en plus des boutons. */
  touch-action: pan-x pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
}

.pdc-notice-visionneuse__page {
  margin: 0 auto 0.75rem;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
}

.pdc-notice-visionneuse__page:last-child {
  margin-bottom: 0;
}

.pdc-notice-visionneuse__page canvas {
  display: block;
  max-width: none;
}

.pdc-notice-visionneuse__etat {
  margin: 0;
  padding: 2rem 1rem;
  color: #6b7280;
  font-size: 0.9rem;
  text-align: center;
}

.pdc-notice-visionneuse__etat--erreur {
  color: #b45309;
}

.pdc-notice-visionneuse__etat a {
  color: #e62ca1;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Pied de fenetre ---------------------------------------------------- */

.pdc-notice-modale__pied {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

.pdc-notice-modale__onglet {
  color: #e62ca1;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pdc-notice-modale__acquitter {
  margin-left: auto;
  padding: 0.7rem 1.35rem;
  border: 1px solid #e62ca1;
  border-radius: 24px;
  background: #e62ca1;
  color: #fff;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

.pdc-notice-modale__acquitter:hover {
  background: #fff;
  color: #e62ca1;
}

.pdc-notice-modale__acquitter[disabled] {
  opacity: 0.6;
  cursor: default;
}

/* Occupe toute la largeur du pied pour passer sous le bouton, et non a cote. */
.pdc-notice-modale__echec {
  flex: 1 0 100%;
  margin: 0.35rem 0 0;
  color: #b45309;
  font-size: 0.8rem;
  text-align: right;
}

/* --- Rappel dans le tunnel de commande ---------------------------------- */

.pdc-notices-commande--faite {
  color: #4b5563;
  font-size: 0.875rem;
}

.pdc-notices-commande--faite .pdc-lien-notice {
  color: #e62ca1;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 600px) {
  .pdc-notice-modale {
    padding: 0;
  }

  /*
     * Plein ecran sur telephone. Une fenetre flottante y laissait a peine dix
     * centimetres de hauteur utile au document, ce qui revenait a montrer la
     * notice sans permettre de la lire.
     */
  .pdc-notice-modale__contenu {
    width: 100%;
    max-height: 100%;
    height: 100%;
    padding: 0.9rem 1rem;
    border-radius: 0;
  }

  .pdc-notice-modale__chapo {
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
  }

  .pdc-notice-visionneuse__pile {
    padding: 0.5rem;
  }

  .pdc-notice-modale__pied {
    gap: 0.5rem;
  }

  .pdc-notice-modale__onglet {
    order: 3;
    width: 100%;
    text-align: center;
  }

  .pdc-notice-modale__acquitter {
    width: 100%;
    margin-left: 0;
    padding: 0.85rem 1rem;
  }

  .pdc-notice-modale__echec {
    text-align: center;
  }
}

/* Refus de quantite, sous le selecteur de la fiche produit
   -----------------------------------------------------------------
   Le message se lit a cote du champ qu'il demande de corriger, plutot
   qu'en fenetre du navigateur ou en bandeau au sommet de la page. */
.pdc-erreur-qty {
  margin: 10px 0 0;
  padding: 10px 12px;
  background: #fdf0f0;
  color: #7a1f20;
  font-size: 14px;
  line-height: 1.45;
  border-radius: 4px;
}

@media (prefers-color-scheme: dark) {
  .pdc-erreur-qty {
    background: #2a1516;
    color: #f2c9ca;
  }
}

/* Mentions reglementaires du pied de page
   -----------------------------------------------------------------
   Styles laisses en place pour le bloc ACF a venir : licence
   d'officine, TVA, pharmacien titulaire, autorite competente.
   Appliquer la classe .pdc-mentions-legales au conteneur. */
.pdc-mentions-legales {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12.5px;
  line-height: 1.55;
  max-width: 34ch;
}

.pdc-mentions-legales__ligne {
  margin: 0 0 4px;
  opacity: 0.85;
}

.pdc-mentions-legales a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==========================================================================
   NEWSLETTER : COULEUR DE MARQUE, ET VERSION TÉLÉPHONE  (2026-11-12)

   Deux choses distinctes.

   1. Le bouton d'envoi était BLEU. Gravity Forms pose sa propre couleur
      (--gf-color-primary: #204ce5) dans une balise <style> écrite dans la
      page, donc après cette feuille et avec un sélecteur à identifiant :
      seul !important la reprend. Corrigé à toutes les largeurs, un bouton
      bleu sur un site rose n'est pas un choix.

   2. Sur téléphone, le bloc empilait un pavé rose pleine largeur, un cadre
      turquoise, un cadre blanc et un bouton bleu désaligné sous un champ
      pleine largeur. On enlève les cadres, on aligne, on respire.
   ========================================================================== */

.section-newsletter .gform-theme,
.section-newsletter .gform_wrapper {
  --gf-color-primary: #e62ca1 !important;
  --gf-color-primary-rgb: 230, 44, 161 !important;
  --gf-color-primary-darker: #c41f87 !important;
  --gf-color-primary-lighter: #ff5bbe !important;
  --gf-color-primary-contrast: #fff !important;
  --gf-color-primary-contrast-rgb: 255, 255, 255 !important;
}

.section-newsletter .gform_button,
.section-newsletter input[type="submit"],
.section-newsletter .gform-theme button.button {
  background-color: var(--wp--preset--color--color-1) !important;
  border-color: var(--wp--preset--color--color-1) !important;
  color: #fff !important;
  font-weight: 700 !important;
}

.section-newsletter .gform_button:hover,
.section-newsletter input[type="submit"]:hover,
.section-newsletter .gform-theme button.button:hover {
  filter: brightness(1.08);
}

/* La ligne de réassurance : une icône au trait, plus d'emoji. */
.section-newsletter .newsletter-privacy {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-newsletter .newsletter-privacy .pdc-icone {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: #9aa0ab;
}

@media screen and (max-width: 991px) {
  .section-newsletter {
    padding: 26px 0 0;
  }

  .section-newsletter .container {
    padding: 0 20px;
  }

  .section-newsletter .newsletter-main {
    flex-direction: column;
    gap: 18px;
    margin-bottom: 26px;
  }

  .section-newsletter .newsletter-left {
    text-align: left;
  }

  .section-newsletter .newsletter-left .newsletter-title {
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 6px;
  }

  .section-newsletter .newsletter-subtitle {
    font-size: 0.9375rem;
  }

  /* Le « -10 % » redevient un mot dans une phrase : en pastille pleine
     largeur, il pesait plus lourd que le titre. */
  .section-newsletter .newsletter-subtitle strong {
    display: inline;
    margin-top: 0;
    padding: 0;
    background: none !important;
    border-radius: 0;
  }

  /* Plus de cadre turquoise ni de cadre blanc : le champ et le bouton se
     suffisent à eux-mêmes. */
  .section-newsletter .newsletter-form {
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
    margin-bottom: 10px;
  }

  .section-newsletter .gform_fields {
    gap: 10px !important;
  }

  .section-newsletter .gfield input[type="email"],
  .section-newsletter .gfield input[type="text"] {
    height: 50px;
    padding: 0 16px !important;
    border: 1px solid #dcdcde !important;
    border-radius: 12px !important;
    background: #fff !important;
  }

  .section-newsletter .gform_footer {
    margin: 10px 0 0 !important;
    padding: 0 !important;
  }

  /* Même largeur et même hauteur que le champ, alignés l'un sous l'autre. */
  .section-newsletter .gform_button,
  .section-newsletter input[type="submit"],
  .section-newsletter .gform-theme button.button {
    width: 100% !important;
    height: 50px;
    padding: 0 !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
  }

  .section-newsletter .newsletter-privacy {
    justify-content: flex-start;
    font-size: 0.8125rem;
    line-height: 1.4;
  }
}

/* Le libellé des boutons de carte ne sert que sur les petits écrans, où le
   bouton s'étale ; ailleurs l'icône seule suffit et le nom du produit reste
   dans l'aria-label.

   La règle vivait dans categories.css, qui n'est chargé que sur les pages de
   rayon. Ailleurs (« Vous aimerez aussi » d'une fiche, accueil), le libellé
   restait dans le flux avec une taille de 0, occupait quand même sa place dans
   le bouton et décalait l'icône du panier de 5 px vers la gauche
   (2026-11-13). D'où le passage dans global.css. */
.btn-ajouter__texte {
  display: none;
}

/* =============================================================================
   ÉTIQUETTE « PLUS QUE N EN STOCK »  (2026-11-17)

   La version courte existait deja, mais elle etait ecrite dans categories.css,
   qui ne se charge que sur les pages de rayon : ailleurs, la phrase entiere
   s'affichait et prenait 138 px sur une carte de 152. Elle vit ici, ou toutes
   les pages la voient.
   ============================================================================= */

.badge-low-stock {
  white-space: nowrap;
}

@media screen and (max-width: 991px) {
  .badge-low-stock__long {
    display: none;
  }
}
