/* ==========================================================================
   Enlèvement d’encombrants — styles spécifiques à la page
   Préfixe .enc- : héro (comparateur dont la poignée est un camion), types
   d’encombrants, déroulement sur panneau sombre, tri responsable, FAQ, CTA.
   ========================================================================== */

/* --- UTILITAIRES DE LA PAGE ---------------------------------------------- */
/* intros centrées : lignes équilibrées, pas de mot orphelin */
.section-head--center .lead, .cta-band .lead { text-wrap: balance; }
@media (max-width: 639px) {
  /* masqué visuellement sur mobile, toujours lu par les lecteurs d’écran */
  .enc-sr-sm {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
}

/* --- HÉRO ---------------------------------------------------------------- */
/* padding-top et taille du H1 : échelle commune .page-hero (main.css) */
.enc-hero {
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(255, 211, 219, .75), transparent 62%),
    radial-gradient(55% 50% at 0% 100%, rgba(230, 220, 255, .5), transparent 70%),
    linear-gradient(180deg, var(--blush-100), var(--paper) 88%);
}
.enc-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  align-items: center;
}
@media (min-width: 1000px) {
  .enc-hero__grid { grid-template-columns: 1.08fr .92fr; }
}
.enc-hero__content { justify-items: start; }
.page-hero .enc-hero__title {
  line-height: .98;
  letter-spacing: -.02em;
  max-width: 14ch;
}
.enc-hero__title .hl::after { bottom: -.05em; height: .26em; }
.enc-hero__content .lead { max-width: 46ch; }
.enc-hero__ctas { --cluster-gap: .8rem; margin-top: .3rem; }
/* réassurance : une seule ligne discrète sous les boutons */
.enc-hero__perks {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin-top: .2rem;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--ink-2);
}
.enc-hero__perks li { padding-left: 1.75rem; }
.enc-hero__perks li::before { width: 1.25rem; height: 1.25rem; top: .08em; }
@media (max-width: 560px) {
  .enc-hero__ctas { width: 100%; }
  .enc-hero__ctas .btn { width: 100%; padding-inline: 1.1rem; font-size: 1rem; white-space: normal; }
}

/* Visuel : comparateur dont la poignée est un camion */
.enc-hero__visual {
  width: min(100%, 500px);
  margin-inline: auto;
  padding: 4.8rem clamp(.4rem, 2vw, 1.4rem) 2.8rem;
}
.enc-ba { position: relative; z-index: 2; }
.enc-ba .ba {
  border-radius: clamp(26px, 3vw, 38px);
  box-shadow: var(--shadow-sticker-lg), 0 40px 80px -30px rgba(176, 42, 75, .45);
  transform: rotate(-1.6deg);
}
.enc-ba .ba__label { top: 1rem; bottom: auto; }
.enc-ba .ba__handle.enc-truck {
  width: 82px;
  height: 60px;
  border-radius: 20px;
  background: var(--sun);
  box-shadow: 0 5px 0 var(--ink);
}
.enc-ba .ba:hover .enc-truck,
.enc-ba .ba.is-dragging .enc-truck { background: var(--sun); transform: translate(-50%, -50%) scale(1.08); }
.enc-truck .icon {
  width: 38px;
  height: 38px;
  stroke-width: 1.8;
  transform: scaleX(-1);               /* le camion roule vers la gauche : il « emporte » le désordre */
  transition: transform .45s var(--ease-bounce);
}
.enc-ba .ba.is-right .enc-truck .icon { transform: none; }
.enc-ba .ba.is-moving .enc-truck .icon { animation: encBump .26s ease-in-out infinite; }
.enc-ba .ba.is-arrived .enc-truck { animation: encArrive .6s var(--ease-bounce); }
@keyframes encBump { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }
@keyframes encArrive { 0%, 100% { scale: 1; } 40% { scale: 1.2; } }

/* Petits nuages de poussière derrière le camion */
.enc-truck__puffs {
  position: absolute;
  top: 50%;
  left: 100%;
  width: 40px;
  height: 34px;
  margin-top: -12px;
  pointer-events: none;
}
.enc-ba .ba.is-right .enc-truck__puffs { left: auto; right: 100%; transform: scaleX(-1); }
.enc-truck__puffs i {
  position: absolute;
  left: 2px;
  top: 10px;
  width: 15px;
  height: 15px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  opacity: 0;
}
.enc-truck__puffs i:nth-child(2) { top: 2px; width: 11px; height: 11px; }
.enc-truck__puffs i:nth-child(3) { top: 19px; width: 12px; height: 12px; }
.enc-ba .ba.is-moving .enc-truck__puffs i { animation: encPuff .66s ease-out infinite; }
.enc-ba .ba.is-moving .enc-truck__puffs i:nth-child(2) { animation-delay: .22s; }
.enc-ba .ba.is-moving .enc-truck__puffs i:nth-child(3) { animation-delay: .44s; }
@keyframes encPuff {
  0% { opacity: .95; transform: translate(0, 0) scale(.4); }
  100% { opacity: 0; transform: translate(24px, -7px) scale(1.25); }
}

.enc-ba__caption {
  position: absolute;
  left: clamp(.2rem, 2.4vw, 1.2rem);
  bottom: 0;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  max-width: calc(100% - 2rem);
  padding: .5rem 1rem .5rem .7rem;
  border: var(--border);
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: var(--shadow-sticker-sm);
  font-size: var(--step--1);
  font-weight: 750;
  line-height: 1.25;
  transform: translateY(42%) rotate(-3deg);
}
.enc-ba__caption .icon { width: 1.25em; height: 1.25em; color: var(--mint-dark); }

/* Seule annotation manuscrite de la page : elle s’efface dès qu’on prend la main */
.enc-hero__hint {
  position: absolute;
  top: 1.1rem;
  left: -.4rem;
  z-index: 6;
  display: inline-flex;
  align-items: flex-end;
  gap: .3rem;
  font-size: clamp(1.45rem, 1.1rem + 1vw, 1.9rem);
  white-space: nowrap;
  transform: rotate(-6deg);
  pointer-events: none;
  transition: opacity .5s, transform .6s var(--ease-out);
}
.enc-hero__hint svg { width: 54px; height: 44px; margin-bottom: -1.5rem; color: var(--brand); }
.enc-hero__visual.has-interacted .enc-hero__hint { opacity: 0; transform: rotate(-6deg) translateY(-10px); }

/* Le lapin jette un œil par-dessus la photo */
.enc-hero__bunny {
  position: absolute;
  top: -2.3rem;
  right: 8%;
  z-index: 1;
  width: clamp(92px, 5vw + 66px, 132px);
  pointer-events: none;
}
.enc-hero__bunny img { width: 100%; height: auto; transform: scaleX(-1) rotate(-4deg); }

@media (max-width: 560px) {
  .enc-hero__visual { padding-top: 4.2rem; }
  .enc-hero__hint { top: .9rem; font-size: 1.4rem; }
  .enc-hero__hint svg { width: 44px; height: 36px; margin-bottom: -1.2rem; }
  .enc-hero__bunny { top: -1.5rem; right: 6%; }
  .enc-ba .ba__handle.enc-truck { width: 70px; height: 52px; border-radius: 17px; }
  .enc-truck .icon { width: 32px; height: 32px; }
  .enc-ba__caption { max-width: calc(100% - .4rem); padding: .42rem .85rem .42rem .6rem; font-size: .8rem; white-space: nowrap; }
}

/* --- CE QUE NOUS ENLEVONS ------------------------------------------------- */
.enc-types__grid {
  position: relative;
  z-index: 1;
  list-style: none;
  display: grid;
  gap: clamp(.9rem, .6rem + 1vw, 1.5rem);
}
@media (min-width: 620px) { .enc-types__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .enc-types__grid { grid-template-columns: repeat(4, 1fr); } }
.enc-type {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  row-gap: .3rem;
  align-content: start;
  padding: 1.2rem 1.25rem 1.3rem;
  border: var(--border);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-sticker-sm);
}
html:not(.has-gsap) .enc-type,
.enc-types__grid.is-revealed > .enc-type { transition: transform .5s var(--ease-bounce), box-shadow .4s var(--ease-out), background-color .3s; }
.enc-type__icon {
  grid-row: span 2;
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border: var(--border);
  border-radius: 16px;
  background: var(--accent, var(--blush-100));
  color: var(--ink);
  box-shadow: 0 3px 0 var(--ink);
}
.enc-type__icon .icon { grid-area: 1 / 1; width: 26px; height: 26px; transition: transform .55s var(--ease-out); }
.enc-type__icon .icon + .icon { transform: translateY(170%); }
.enc-type__title { font-size: var(--step-1); line-height: 1.2; }
.enc-type__text { font-size: var(--step--1); line-height: 1.55; color: var(--ink-2); }
@media (min-width: 1100px) {
  .enc-type { grid-template-columns: 1fr; padding: 1.7rem 1.5rem 1.8rem; }
  .enc-type__icon { grid-row: auto; width: 64px; height: 64px; margin-bottom: .9rem; border-radius: 18px; }
  .enc-type__icon .icon { width: 30px; height: 30px; }
}
/* Survol : l’icône est « embarquée », une coche apparaît */
.enc-type::after {
  content: "";
  position: absolute;
  top: -11px;
  right: -11px;
  width: 34px;
  height: 34px;
  border: var(--border);
  border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a1a20' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / 58% no-repeat;
  box-shadow: 0 3px 0 var(--ink);
  transform: scale(0) rotate(-40deg);
  transition: transform .45s var(--ease-bounce);
}
.enc-type:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow-sticker); }
.enc-type:nth-child(even):hover { transform: translateY(-6px) rotate(1deg); }
.enc-type:hover::after { transform: scale(1) rotate(0deg); }
.enc-type:hover .enc-type__icon .icon:first-child { transform: translateY(-170%) rotate(-16deg); }
.enc-type:hover .enc-type__icon .icon + .icon { transform: none; }

/* --- DÉROULEMENT : 3 étapes sur panneau sombre ----------------------------- */
.enc-process__panel {
  position: relative;
  margin-inline: 0;
  padding: clamp(2.6rem, 1.6rem + 4vw, 5.5rem) clamp(1.1rem, .5rem + 3vw, 4.5rem);
}
.enc-process__panel > .decor { inset: 0; overflow: hidden; }
.enc-process__panel > :not(.decor) { position: relative; z-index: 1; }
.enc-steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.enc-steps .step { display: grid; align-content: start; }
.enc-steps .step:nth-child(2) .step__num { color: var(--mint); }
.enc-steps .step:nth-child(3) .step__num { color: var(--sun); }
.enc-steps .step:nth-child(2) .step__icon { background: var(--mint); color: var(--ink); }
.enc-steps .step:nth-child(3) .step__icon { background: var(--sun); color: var(--ink); }

/* --- TRI RESPONSABLE ------------------------------------------------------ */
.enc-eco {
  background:
    radial-gradient(80% 60% at 0% 0%, rgba(166, 234, 217, .5), transparent 65%),
    radial-gradient(70% 60% at 100% 100%, rgba(230, 220, 255, .55), transparent 70%),
    #effaf6;
}
.enc-eco__grid {
  list-style: none;
  display: grid;
  gap: clamp(2rem, 1.4rem + 2vw, 3rem) clamp(1.5rem, 1rem + 2vw, 3.5rem);
  max-width: 1040px;
  margin-inline: auto;
}
@media (min-width: 760px) { .enc-eco__grid { grid-template-columns: repeat(3, 1fr); } }
.enc-eco__item { justify-items: center; text-align: center; }
.enc-eco__item .feature__text { max-width: 30ch; }
.enc-eco__icon { background: var(--accent, var(--pink-400)); }
/* mobile : icône à gauche, texte à droite (liste plus compacte) */
@media (max-width: 759px) {
  .enc-eco__grid { max-width: 30rem; gap: 1.7rem; }
  .enc-eco__item { grid-template-columns: auto 1fr; column-gap: 1.1rem; row-gap: .15rem; justify-items: start; text-align: left; }
  .enc-eco__item .enc-eco__icon { grid-row: span 2; width: 56px; height: 56px; margin: 0; }
}

/* --- FAQ ------------------------------------------------------------------ */
.enc-faq__grid { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4.5rem); }
@media (min-width: 1000px) {
  .enc-faq__grid { grid-template-columns: .85fr 1.15fr; align-items: start; }
  .enc-faq__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.enc-faq__intro { display: grid; gap: 1.2rem; justify-items: start; }
.enc-faq__more { font-size: var(--step--1); color: var(--ink-2); max-width: 46ch; }
.enc-faq__more a { font-weight: 700; color: var(--brand-dark); }

/* --- CTA FINAL ------------------------------------------------------------ */
.enc-cta { padding-top: 0; }
.enc-cta .cta-band .lead { max-width: 40ch; }
