/* Boutique Plantis — fiche produit.
   Jetons, polices, tailles et formes = ceux de plantisapp.com (modèle Plantab).
   Aucune ombre, aucun effet d'apparition : tout le contenu est visible sans JavaScript.
   Formats : ordinateur >= 1200 px, tablette 768-1199 px, téléphone < 768 px. */

:root {
  --pl-ink: #0E160F;
  --pl-text: #505851;
  --pl-green: #317039;
  --pl-grey: #F6F7F6;
  --pl-green-pale: #E4EFD3;
  --pl-bg: #FFFFFF;
  --pl-line: rgba(14, 22, 15, .08);
  --pl-r-panel: 20px;
  --pl-r-card: 24px;
  --pl-r-icon: 12px;
  --pl-r-pill: 99px;
  --pl-max: 1200px;
  --pl-ease: cubic-bezier(.44, 0, .56, 1);
  --pl-head: "Plus Jakarta Sans", "Plus Jakarta Sans Placeholder", sans-serif;
  --pl-body: "Inter", "Inter Placeholder", sans-serif;
  --pl-inter-features: "blwf", "cv03", "cv04", "cv09", "cv11";
}

/* ---------- Socle commun des blocs écrits à la main ---------- */
.pl-shop {
  width: 100%;
  font-family: var(--pl-body);
  font-feature-settings: var(--pl-inter-features);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0;
  color: var(--pl-text);
  text-align: left;
}
:where(.pl-shop) *, :where(.pl-shop) *::before, :where(.pl-shop) *::after { box-sizing: border-box; }
/* Remise à zéro sans poids (:where) : les règles de la page l'emportent toujours */
:where(.pl-shop) :where(h1, h2, h3, p, ul, ol, figure, fieldset, legend, dl, dd) { margin: 0; padding: 0; }
:where(.pl-shop) :where(ul, ol) { list-style: none; }
:where(.pl-shop) fieldset { border: 0; min-width: 0; }
.pl-shop svg { display: block; }
.pl-shop strong { font-weight: 700; color: var(--pl-ink); }

/* Liens du texte : couleur du texte, soulignés, verts au survol (pas le bleu #09F du modèle) */
.pl-shop a.pl-link, .pl-shop .pl-prose a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .3s var(--pl-ease);
}
.pl-shop a.pl-link:hover, .pl-shop .pl-prose a:hover,
.pl-shop a.pl-link:focus-visible, .pl-shop .pl-prose a:focus-visible { color: var(--pl-green); }
.pl-shop a:focus-visible, .pl-shop summary:focus-visible {
  outline: 2px solid var(--pl-green);
  outline-offset: 3px;
  border-radius: 6px;
}

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

/* Titres Plus Jakarta Sans : graisse 500, serrés, sans OpenType d'Inter */
.pl-shop :is(.pl-title, .pl-h2, .pl-acc__title, .pl-btn, .pl-related__all, .pl-visuel__nom, .pl-card__plante) {
  font-family: var(--pl-head);
  font-feature-settings: normal;
  color: var(--pl-ink);
}

/* ---------- Bande 1 : zone d'achat ---------- */
.pl-product {
  max-width: calc(var(--pl-max) + 60px);
  margin: 0 auto;
  padding: 128px 30px 120px;
}
/* Pastille : mêmes mesures que la pastille du héros du site (28 px, Inter 14/500) */
.pl-draft {
  display: inline-flex;
  align-items: center;
  margin-bottom: 24px !important;
  padding: 4px 10px;
  border-radius: var(--pl-r-pill);
  background: var(--pl-green-pale);
  color: var(--pl-ink);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}
.pl-product__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 60px;
  align-items: start;
}

/* Galerie */
.pl-media {
  position: sticky;
  top: 96px;               /* le menu fixe fait 104 px et se cache en descendant */
  min-width: 0;
  width: 100%;
  /* la galerie collée tient dans l'écran (portable 1366 × 768 compris) : photo + vignettes */
  max-width: calc(100vh - 212px);
  max-width: calc(100svh - 212px);
  min-width: min(100%, 360px);
  justify-self: center;
}
.pl-media__frame { position: relative; }
.pl-media__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border-radius: var(--pl-r-panel);
  background: var(--pl-grey);
}
.pl-media__track::-webkit-scrollbar { display: none; }
.pl-media__slide {
  flex: 0 0 100%;
  aspect-ratio: 1 / 1;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scroll-margin-top: 110px;   /* sans JS, une ancre ne cache pas la photo sous le menu */
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pl-grey);
}
.pl-media__slide svg { width: 78%; height: 78%; }
/* Légende posée dans le coin de la photo */
.pl-media__note {
  position: absolute;
  left: 16px;
  top: 12px;
  right: 16px;
  font-size: 14px;
  line-height: 20px;
  pointer-events: none;
}
.pl-media__thumbs {
  display: flex;
  gap: 12px;
  margin-top: 12px !important;
}
.pl-media__thumbs a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: var(--pl-r-icon);
  background: var(--pl-grey);
  border: 1px solid transparent;
  transition: border-color .3s var(--pl-ease);
}
.pl-media__thumbs a:hover { border-color: rgba(14, 22, 15, .45); }
.pl-media__thumbs a[aria-current="true"] { border-color: var(--pl-ink); }
.pl-media__thumbs svg { width: 72%; height: 72%; }
.pl-media__dots { display: none; }

/* Colonne d'achat */
.pl-info { min-width: 0; display: flex; flex-direction: column; }
.pl-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; line-height: 22px; }
.pl-crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--pl-text); }
.pl-crumbs a { color: var(--pl-text); text-decoration: none; transition: color .3s var(--pl-ease); }
.pl-crumbs a:hover { color: var(--pl-green); text-decoration: underline; text-underline-offset: 3px; }
.pl-crumbs [aria-current="page"] { color: var(--pl-ink); }

.pl-vendor {
  margin-top: 20px !important;
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
}
/* Plante du produit, sous la marque (le client arrive depuis la fiche d'une plante) */
.pl-plante { margin-top: 2px !important; font-size: 14px; line-height: 22px; }
.pl-title {
  margin-top: 6px !important;
  font-size: 48px;
  line-height: 56px;
  font-weight: 500;
  letter-spacing: -2px;
  text-wrap: balance;
}
.pl-format { margin-top: 12px !important; }

/* Bouton pilule (mêmes mesures que le grand bouton du site : 51 px, PJS 16/700, -0,5 px) */
.pl-buy { margin-top: 28px; }
.pl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 51px;
  padding: 15px 24px 17px;
  border-radius: var(--pl-r-pill);
  background: var(--pl-ink);
  color: #FFFFFF !important;
  font-size: 16px;
  line-height: 19.2px;
  font-weight: 700;
  letter-spacing: -.5px;
  text-decoration: none;
  transition: background-color .3s var(--pl-ease);
}
@media (hover: hover) { .pl-btn:hover { background: var(--pl-green); } }
.pl-btn:focus-visible { background: var(--pl-green); outline: 2px solid var(--pl-green); outline-offset: 3px; }
/* Sous le bouton : chez qui se trouvent prix et livraison, et la mention partenaire (toujours visible) */
.pl-buy__notes { margin-top: 12px; font-size: 14px; line-height: 22px; text-align: center; }
.pl-buy__notes p + p { margin-top: 4px; }

/* Réassurance : carte grise comme les cartes du site, icônes au trait, jamais de coches */
.pl-assure {
  display: grid;
  gap: 12px;
  margin-top: 28px !important;
  padding: 20px 24px !important;
  border-radius: var(--pl-r-card);
  background: var(--pl-grey);
}
.pl-assure li { display: flex; align-items: flex-start; gap: 12px; }
.pl-assure svg { width: 20px; height: 20px; margin-top: 2px; flex: none; color: var(--pl-text); }

.pl-desc { margin-top: 24px; }
.pl-desc p + p { margin-top: 12px; }

/* Sections de l'étiquette : cartes grises comme la FAQ du site (24 px de marge, PJS 20/28) */
.pl-acc { display: grid; gap: 12px; margin-top: 28px; }
.pl-acc__item {
  border-radius: var(--pl-r-card);
  background: var(--pl-grey);
}
.pl-acc__item > summary, .pl-acc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  list-style: none;
}
.pl-acc__item > summary { cursor: pointer; border-radius: var(--pl-r-card); }
.pl-acc__item > summary::-webkit-details-marker { display: none; }
.pl-acc__title { font-size: 20px; line-height: 28px; font-weight: 500; letter-spacing: 0; }
.pl-acc__icon { position: relative; flex: none; width: 28px; height: 28px; }
.pl-acc__icon::before, .pl-acc__icon::after {
  content: ""; position: absolute; left: 6px; top: 13.25px; width: 16px; height: 1.5px;
  background: var(--pl-text); transition: transform .3s var(--pl-ease), background-color .3s var(--pl-ease);
}
.pl-acc__icon::after { transform: rotate(90deg); }
.pl-acc__item[open] .pl-acc__icon::before, .pl-acc__item[open] .pl-acc__icon::after { background: var(--pl-ink); }
.pl-acc__item[open] .pl-acc__icon::after { transform: rotate(0deg); }
.pl-acc__body { padding: 0 24px 24px; }
.pl-acc__body p + p { margin-top: 12px; }
.pl-acc__body dl { display: grid; gap: 12px; }
.pl-acc__body dt { font-weight: 500; color: var(--pl-ink); }
/* Blocs fixes (informations obligatoires) : même carte, sans bouton, toujours ouverts */
.pl-acc__item--fixed .pl-acc__head { padding-bottom: 12px; }

/* ---------- Bande 2 : « Autres plantes » (panneau gris collé au pied) ---------- */
.pl-related-wrap { width: 100%; padding: 0 12px; }
.pl-related {
  border-radius: var(--pl-r-panel) var(--pl-r-panel) 0 0;
  background: var(--pl-grey);
  padding: 140px 30px;
}
.pl-related__inner { max-width: var(--pl-max); margin: 0 auto; }
.pl-related__head { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.pl-h2 { font-size: 48px; line-height: 56px; font-weight: 500; letter-spacing: -2px; }
.pl-related__sub { margin-top: 12px !important; }
/* Pilule en contour, comme le bouton contour du site (filet de 1 px) */
.pl-related__all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-height: 51px;
  padding: 15px 24px 17px;
  border: 1px solid var(--pl-ink);
  border-radius: var(--pl-r-pill);
  font-size: 16px;
  line-height: 19.2px;
  font-weight: 700;
  letter-spacing: -.5px;
  color: var(--pl-ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .3s var(--pl-ease), color .3s var(--pl-ease);
}
@media (hover: hover) { .pl-related__all:hover { background: var(--pl-ink); color: #FFFFFF !important; } }
.pl-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 52px !important; }
.pl-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px 16px 28px;
  border-radius: var(--pl-r-card);
  background: var(--pl-bg);
  color: inherit;
  text-decoration: none;
}
.pl-card__img {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 3; border-radius: var(--pl-r-panel); background: var(--pl-grey);
  overflow: hidden; /* tient le 4/3 même avec une photo haute */
}
.pl-card__img svg { width: 62%; height: 82%; }
.pl-card__text { display: flex; flex-direction: column; padding: 20px 8px 0; }
/* Carte sans photo (droit_visuels faux) : le texte seul, rangé par plante */
.pl-card__text:first-child { padding-top: 8px; }
/* En gros le nom de la plante (PJS 500), son nom latin en italique, puis le produit et la marque */
.pl-card__plante {
  font-size: 28px; line-height: 34px; font-weight: 500; letter-spacing: -1px;
  transition: color .3s var(--pl-ease);
}
.pl-card > a:hover .pl-card__plante { color: var(--pl-green); }
.pl-card__latin { margin-top: 2px; font-style: italic; font-size: 14px; line-height: 22px; }
.pl-card__name { margin-top: 16px; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--pl-ink); }
.pl-card__brand { font-size: 14px; line-height: 22px; }

/* Le panneau gris se colle au pied de page sombre, comme la FAQ du site */
:root:has(.pl-related) .framer-ghru90 { border-top-left-radius: 0 !important; border-top-right-radius: 0 !important; }
/* Pied : colonnes de liens alignées en haut (elles n'ont pas toutes 3 liens) */
.framer-WpkJl [data-framer-name="Links"][data-border="true"] { align-items: flex-start !important; }

/* ---------- Barre d'achat collée en bas (téléphone, avec JS seulement) ---------- */
.pl-bar { display: none; }

/* ---------- Tablette 768-1199 px ---------- */
@media (max-width: 1199.98px) {
  .pl-product { padding: 128px 30px 80px; }
  .pl-product__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .pl-title { font-size: 40px; line-height: 46px; letter-spacing: -1.7px; }
  .pl-h2 { font-size: 40px; line-height: 46px; letter-spacing: -1.7px; }
  .pl-related { padding: 100px 30px; }
  .pl-cards { gap: 16px; margin-top: 40px !important; }
  .pl-media__thumbs a { width: 64px; height: 64px; }
}

/* ---------- Téléphone < 768 px : photo, nom, prix, offres, « Commander » dans le 1er écran ---------- */
@media (max-width: 767.98px) {
  .pl-product { padding: 78px 20px 60px; }
  .pl-draft { margin-bottom: 12px !important; }
  .pl-product__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  /* Panneau à 12 px du bord, arrondi à 20 px, comme le héros du site */
  .pl-media { position: static; margin: 0 -8px; width: auto; max-width: none; min-width: 0; justify-self: stretch; }
  .pl-media__slide { aspect-ratio: 4 / 3; scroll-margin-top: 78px; }
  .pl-media__slide svg { width: 74%; height: 74%; }
  .pl-media__note { left: 16px; top: 10px; }
  .pl-media__thumbs { display: none; }
  /* Points posés dans la photo, zones tactiles de 44 px */
  .pl-media__dots { display: flex; justify-content: center; position: absolute; left: 0; right: 0; bottom: 0; height: 44px; }
  .pl-media__dots a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
  .pl-media__dots a::before {
    content: ""; width: 8px; height: 8px; border-radius: 4px;
    background: rgba(14, 22, 15, .45); transition: background-color .3s var(--pl-ease), width .3s var(--pl-ease);
  }
  .pl-media__dots a[aria-current="true"]::before { background: var(--pl-ink); width: 20px; }
  .pl-crumbs { display: none; }
  .pl-vendor { margin-top: 0 !important; }
  .pl-title { margin-top: 4px !important; font-size: 34px; line-height: 38px; letter-spacing: -1.4px; }
  .pl-format { margin-top: 6px !important; font-size: 14px; line-height: 22px; }
  .pl-buy { margin-top: 16px; }
  .pl-buy__notes { margin-top: 8px; }
  .pl-assure { padding: 20px !important; }
  .pl-related { padding: 48px 16px; }
  .pl-related__head { flex-direction: column; align-items: start; gap: 20px; }
  .pl-h2 { font-size: 34px; line-height: 38px; letter-spacing: -1.4px; }
  .pl-cards { grid-template-columns: 1fr; gap: 12px; margin-top: 40px !important; }
  .pl-card > a { flex-direction: row; align-items: center; gap: 16px; padding: 12px; }
  .pl-card__img { flex: none; width: 96px; aspect-ratio: 1 / 1; }
  .pl-card__text { padding: 0; }
  .pl-card__text:first-child { padding: 8px; }
  .pl-card__plante { font-size: 24px; line-height: 30px; letter-spacing: -.8px; }
  .pl-card__name { margin-top: 10px; }

  .pl-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: flex; align-items: center; gap: 12px;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    background: var(--pl-bg);
    border-top: 1px solid var(--pl-line);
    transform: translateY(110%);
    visibility: hidden;
    transition: transform .3s var(--pl-ease), visibility 0s linear .3s;
  }
  .pl-bar[hidden] { display: none; }
  .pl-bar.pl-bar--on { transform: none; visibility: visible; transition: transform .3s var(--pl-ease); }
  .pl-bar__text { min-width: 0; flex: 1; display: flex; flex-direction: column; }
  .pl-bar__name { font-family: var(--pl-head); font-feature-settings: normal; font-size: 16px; line-height: 20px; font-weight: 500; color: var(--pl-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pl-bar__note { font-size: 13px; line-height: 18px; color: var(--pl-text); }
  .pl-bar .pl-btn { width: auto; flex: none; min-height: 51px; padding: 15px 24px 17px; }
  html.pl-bar-shown .framer-1kxjyud-container { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .pl-shop *, .pl-bar { transition: none !important; }
  .pl-media__track { scroll-behavior: auto; }
}

/* Lien d'évitement (clavier) */
.pl-skip {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 99px; background: #0E160F; color: #FFFFFF;
  font: 700 14px/20px "Inter", "Inter Placeholder", sans-serif; text-decoration: none;
  transform: translateY(-200%);
}
.pl-skip:focus { transform: none; }

/* ---------- Ajouts de la boutique à la maquette validée ---------- */
/* Photos de la marque : entières, jamais rognées, posées sur le panneau gris */
.pl-media__slide img { display: block; width: 86%; height: 86%; object-fit: contain; }
.pl-media__thumbs img { display: block; width: 84%; height: 84%; object-fit: contain; }
.pl-card__img img { display: block; width: 78%; height: 86%; object-fit: contain; }
/* Visuel de remplacement (photo de la marque sans droit_visuels) : le panneau gris, le nom de la plante
   en Plus Jakarta Sans et son nom latin en italique. Jamais la photo de la marque. */
.pl-visuel { flex-direction: column; gap: 8px; padding: 24px; text-align: center; }
.pl-visuel__nom { font-size: 40px; line-height: 46px; font-weight: 500; letter-spacing: -1.7px; text-wrap: balance; }
.pl-visuel__latin { font-style: italic; font-size: 16px; line-height: 24px; }
.pl-card__img.pl-visuel { gap: 4px; padding: 16px; }
.pl-card__img .pl-visuel__nom { font-size: 24px; line-height: 30px; letter-spacing: -1px; }
.pl-card__img .pl-visuel__latin { font-size: 14px; line-height: 22px; }

/* Bandeau de l'aperçu local (brouillons) : n'existe jamais dans une version publiée */
.pl-apercu {
  margin-bottom: 24px;
  padding: 16px 20px;
  border-radius: var(--pl-r-panel);
  background: var(--pl-green-pale);
  color: var(--pl-ink);
  font-size: 14px;
  line-height: 22px;
}

/* Accueil : les produits de A à Z sur le nom de la plante, mêmes cartes que « Autres plantes » */
.pl-home { max-width: calc(var(--pl-max) + 60px); margin: 0 auto; padding: 128px 30px 120px; }
.pl-home__lead { margin-top: 12px !important; max-width: 640px; }
.pl-home .pl-cards { margin-top: 64px !important; }
.pl-home__vide { margin-top: 48px !important; }
.pl-home .pl-card > a { background: var(--pl-grey); }
.pl-home .pl-card__img { background: var(--pl-bg); }

/* Pages légales : ancres sous le menu fixe, liens couleur du texte (pas le bleu du modèle) */
[data-framer-name="Text Wrapper"][id] { scroll-margin-top: 110px; }
[data-framer-name="Hero Section"] a.framer-text {
  color: inherit !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  transition: color .3s var(--pl-ease);
}
[data-framer-name="Hero Section"] a.framer-text:hover { color: var(--pl-green) !important; }

@media (max-width: 1199.98px) {
  .pl-home { padding: 128px 30px 80px; }
}
@media (max-width: 767.98px) {
  .pl-home { padding: 78px 20px 60px; }
  .pl-home .pl-cards { margin-top: 32px !important; }
  .pl-media__slide img { width: 80%; height: 80%; }
  .pl-visuel__nom { font-size: 34px; line-height: 38px; letter-spacing: -1.4px; }
  .pl-card__img.pl-visuel { padding: 8px; }
  .pl-card__img .pl-visuel__nom { font-size: 16px; line-height: 20px; letter-spacing: -.5px; }
  .pl-card__img .pl-visuel__latin { font-size: 12px; line-height: 16px; }
}
