/* Page « Les tutos » — tropicplantes.fr/tutos/
   Reprend le style des pages rayons du site (kit Elementor) : vert #19371F, lime #BBCF0C, olive #8A9641, crème #F2EDE8,
   titres Md Lump, textes Roboto, boutons pilule. Les polices sont déjà chargées par le site.
   Tout est préfixé #tp-tutos pour passer devant les styles du thème et du kit, sans toucher au reste du site. */

#tp-tutos {
  --vert: #19371F; --lime: #BBCF0C; --olive: #8A9641; --creme: #F2EDE8;
  --titre: "Md Lump", sans-serif; --texte: Roboto, sans-serif;
  font-family: var(--texte); font-size: 16px; line-height: 1.5; color: var(--vert); background: var(--creme);
}
#tp-tutos *, #tp-tutos *::before, #tp-tutos *::after { box-sizing: border-box; }
#tp-tutos h1, #tp-tutos h2, #tp-tutos h3, #tp-tutos p { margin: 0; padding: 0; text-transform: none; letter-spacing: normal; }
/* :where() garde cette remise à zéro sous les règles des boutons ci-dessous, y compris au survol. */
#tp-tutos :where(button), #tp-tutos :where(button):hover, #tp-tutos :where(button):focus {
  font: inherit; color: inherit; background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0;
  text-transform: none; letter-spacing: normal; white-space: normal; cursor: pointer;
}
#tp-tutos button:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

/* En-tête, comme les bandeaux des pages rayons (sans photo) */
#tp-tutos .tp-tutos__hero { background: var(--vert); color: #fff; padding: 72px 20px; position: relative; overflow: hidden; }
#tp-tutos .tp-tutos__hero-in { max-width: 1140px; margin: 0 auto; position: relative; z-index: 1; }
#tp-tutos .tp-tutos__title { font-family: var(--titre); font-weight: 400; font-size: clamp(48px, 7vw, 83px); line-height: 1; color: var(--creme); }
#tp-tutos .tp-tutos__title span { display: block; color: var(--lime); }
#tp-tutos .tp-tutos__lead { max-width: 600px; margin-top: 16px; color: #fff; }
#tp-tutos .tp-tutos__hero-deco { position: absolute; right: -40px; bottom: -60px; width: 300px; opacity: .1; pointer-events: none; }

/* Zone principale */
#tp-tutos .tp-tutos__main { max-width: 1140px; margin: 0 auto; padding: 64px 20px 80px; }
#tp-tutos .tp-tutos__h2 { font-family: var(--titre); font-weight: 400; font-size: clamp(36px, 5vw, 57px); line-height: 1.05; color: var(--vert); }
#tp-tutos .tp-tutos__sub { font-family: var(--titre); font-size: clamp(20px, 2.6vw, 28px); line-height: 1.15; color: var(--olive); margin-top: 8px; }

/* Filtres : boutons pilule */
#tp-tutos .tp-tutos__chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 32px; }
#tp-tutos .tp-tutos__chip, #tp-tutos .tp-tutos__chip:hover, #tp-tutos .tp-tutos__chip:focus { font-family: var(--titre); font-size: 15px; line-height: 1; padding: 12px 20px; border-radius: 50px;
  border: 1px solid var(--vert); color: var(--vert); background: transparent; transition: background .15s, color .15s; }
#tp-tutos .tp-tutos__chip:hover { background: rgba(25,55,31,.08); }
#tp-tutos .tp-tutos__chip[aria-pressed="true"], #tp-tutos .tp-tutos__chip[aria-pressed="true"]:hover { background: var(--lime); border-color: var(--lime); color: var(--vert); }
@media (max-width: 600px) {
  #tp-tutos .tp-tutos__chips { flex-wrap: nowrap; overflow-x: auto; margin-right: -20px; padding-right: 20px; scrollbar-width: none; }
  #tp-tutos .tp-tutos__chip { flex: none; }
}

/* Grille de vidéos */
#tp-tutos .tp-tutos__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 28px 22px; }
@media (max-width: 520px) { #tp-tutos .tp-tutos__grid { grid-template-columns: 1fr 1fr; gap: 22px 14px; } }
#tp-tutos .tp-tutos__card, #tp-tutos .tp-tutos__card:hover, #tp-tutos .tp-tutos__card:focus { display: flex; flex-direction: column; gap: 10px; text-align: left; background: none; color: var(--vert); }
#tp-tutos .tp-tutos__thumb { position: relative; display: block; aspect-ratio: 9 / 14; border-radius: 15px; overflow: hidden; background: var(--vert); }
#tp-tutos .tp-tutos__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; transition: transform .35s ease; }
#tp-tutos .tp-tutos__card:hover .tp-tutos__thumb img { transform: scale(1.04); }
#tp-tutos .tp-tutos__thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(25,55,31,.7)); }
#tp-tutos .tp-tutos__play { position: absolute; left: 12px; bottom: 12px; z-index: 1; width: 46px; height: 46px; border-radius: 50%;
  background: var(--lime); display: grid; place-items: center; transition: transform .2s; }
#tp-tutos .tp-tutos__card:hover .tp-tutos__play { transform: scale(1.1); }
#tp-tutos .tp-tutos__play svg { width: 16px; height: 16px; margin-left: 3px; fill: var(--vert); }
#tp-tutos .tp-tutos__tag { position: absolute; top: 10px; left: 10px; z-index: 1; font-family: var(--titre); font-size: 13px; line-height: 1;
  padding: 6px 11px; border-radius: 50px; color: #fff; }
#tp-tutos .tp-tutos__card-title { font-family: var(--titre); font-weight: 400; font-size: 23px; line-height: 1.1; color: var(--vert); }
#tp-tutos .tp-tutos__card-sub { font-size: 15px; line-height: 1.4; color: var(--vert); opacity: .85; }
@media (max-width: 520px) { #tp-tutos .tp-tutos__card-title { font-size: 19px; } #tp-tutos .tp-tutos__card-sub { font-size: 14px; } }

/* Bientôt (aperçu seulement) */
#tp-tutos .tp-tutos__soon { margin-top: 72px; }
#tp-tutos .tp-tutos__soon-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
#tp-tutos .tp-tutos__soon-list li { background: #fff; border-radius: 15px; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; }
#tp-tutos .tp-tutos__soon-list b { display: block; font-family: var(--titre); font-weight: 400; font-size: 18px; }
#tp-tutos .tp-tutos__soon-list small { opacity: .8; }
#tp-tutos .tp-tutos__dot { width: 10px; height: 10px; border-radius: 50%; flex: none; margin-top: 6px; }

/* Fenêtre vidéo */
#tp-tutos .tp-tutos__modal { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center;
  background: rgba(25,55,31,.92); padding: 16px; }
#tp-tutos .tp-tutos__modal.is-open { display: flex; }
#tp-tutos .tp-tutos__sheet { background: var(--creme); border-radius: 15px; overflow: hidden; display: grid; grid-template-columns: auto 320px;
  max-height: calc(100vh - 32px); max-width: 760px; width: 100%; position: relative; }
#tp-tutos .tp-tutos__video { background: #000; height: min(80vh, 720px); aspect-ratio: 9 / 16; display: block; }
#tp-tutos .tp-tutos__info { padding: 28px 24px; overflow: auto; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
#tp-tutos .tp-tutos__info .tp-tutos__tag { position: static; }
#tp-tutos .tp-tutos__info h3 { font-family: var(--titre); font-weight: 400; font-size: 30px; line-height: 1.05; color: var(--vert); }
#tp-tutos .tp-tutos__where { background: #fff; border-radius: 15px; padding: 12px 14px; align-self: stretch; }
#tp-tutos .tp-tutos__where b { display: block; font-family: var(--titre); font-weight: 400; font-size: 18px; color: var(--olive); }
#tp-tutos .tp-tutos__by { font-size: 14px; opacity: .8; }
#tp-tutos .tp-tutos__btn, #tp-tutos .tp-tutos__btn:hover, #tp-tutos .tp-tutos__btn:focus {
  font-family: var(--titre); font-size: 15px; line-height: 1; padding: 14px 24px; border-radius: 50px; background: var(--lime); color: var(--vert); }
#tp-tutos .tp-tutos__btn:hover { filter: brightness(1.06); }

/* Instagram : bouton contour dans la fiche vidéo, bouton plein en bas de page */
#tp-tutos .tp-tutos__insta, #tp-tutos .tp-tutos__insta:hover, #tp-tutos .tp-tutos__insta:focus, #tp-tutos .tp-tutos__insta:visited {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--titre); font-size: 15px; line-height: 1; padding: 13px 22px;
  border-radius: 50px; border: 1px solid var(--vert); background: transparent; color: var(--vert); text-decoration: none; }
#tp-tutos .tp-tutos__insta:hover { background: rgba(25,55,31,.08); }
#tp-tutos .tp-tutos__insta svg { width: 18px; height: 18px; flex: none; }
#tp-tutos .tp-tutos__insta--fort, #tp-tutos .tp-tutos__insta--fort:hover, #tp-tutos .tp-tutos__insta--fort:visited {
  background: var(--lime); border-color: var(--lime); color: var(--vert); font-size: 17px; padding: 16px 28px; }
#tp-tutos .tp-tutos__reseaux { display: flex; flex-wrap: wrap; gap: 10px; }
#tp-tutos .tp-tutos__follow { margin-top: 56px; padding: 32px 24px; border-radius: 15px; background: var(--vert);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
#tp-tutos .tp-tutos__follow-txt { font-family: var(--titre); font-size: clamp(22px, 3vw, 30px); line-height: 1.1; color: var(--creme); max-width: 560px; }
#tp-tutos .tp-tutos__close, #tp-tutos .tp-tutos__close:hover, #tp-tutos .tp-tutos__close:focus {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  background: var(--vert); color: var(--lime); font-size: 24px; line-height: 40px; text-align: center; }
#tp-tutos .tp-tutos__wait { height: min(80vh, 720px); aspect-ratio: 9 / 16; background: var(--vert); color: var(--lime); display: grid; place-items: center;
  text-align: center; padding: 24px; font-family: var(--titre); font-size: 40px; line-height: 1.05; }

@media (max-width: 720px) {
  #tp-tutos .tp-tutos__modal { padding: 0; align-items: stretch; }
  #tp-tutos .tp-tutos__sheet { grid-template-columns: 1fr; border-radius: 0; max-height: none; max-width: none; overflow: auto; }
  #tp-tutos .tp-tutos__video { height: auto; width: 100%; max-height: 78vh; }
  #tp-tutos .tp-tutos__wait { aspect-ratio: auto; width: 100%; height: 38vh; font-size: 32px; }
  #tp-tutos .tp-tutos__info { padding: 20px 20px 32px; }
}
@media (prefers-reduced-motion: reduce) { #tp-tutos * { transition: none !important; } }
