/* Lot 15 — composants (type de bloc « sx_composant »). Tout est sous .sxc (classe posée par les seuls gabarits
   partials/sx/composants/*). Couleurs : celles du thème (currentColor, --c-pink) ; lisibles sur tout fond du bloc. */

/* ---------- Texte géant défilant ---------- */
.sxc-geant { overflow: hidden; }
.sxc-geant .sxc-geant__cadre { overflow: hidden; }
.sxc-geant .sxc-geant__piste { display: flex; width: max-content; animation: sxc-defile 38s linear infinite; }
.sxc-geant .sxc-geant__cadre[data-v="lent"] .sxc-geant__piste { animation-duration: 60s; }
.sxc-geant .sxc-geant__cadre[data-v="rapide"] .sxc-geant__piste { animation-duration: 22s; }
.sxc-geant .sxc-geant__cadre:hover .sxc-geant__piste,
.sxc-geant .sxc-geant__cadre:focus-within .sxc-geant__piste { animation-play-state: paused; }
.sxc-geant .sxc-geant__suite { margin: 0; padding-right: .6em; white-space: nowrap; font-family: var(--ff-display, inherit); font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 6.5rem); line-height: 1.05; letter-spacing: -.02em; }
.sxc-geant .sxc-geant__sep { display: inline-block; margin: 0 .45em; font-size: .45em; vertical-align: middle; color: var(--c-pink, currentColor); }
@keyframes sxc-defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .sxc-geant .sxc-geant__piste { animation: none; width: auto; display: block; padding: 0 1rem; }
  .sxc-geant .sxc-geant__suite { white-space: normal; text-align: center; }
  .sxc-geant .sxc-geant__suite[aria-hidden="true"] { display: none; }
}

/* ---------- Cartes retournables ---------- */
.sxc-cartes .sxc-cartes__liste { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.sxc-cartes .sxc-carte { margin: 0; }
.sxc-cartes .sxc-carte__btn { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; border-radius: 16px; text-align: left; color: inherit; }
.sxc-cartes .sxc-carte__btn:focus-visible { outline: 3px solid var(--c-pink, #a4226b); outline-offset: 3px; }
.sxc-cartes .sxc-carte__face { box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 22px; border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, .1); background: #fff; color: #1f1d1b; min-height: 180px; }
.sxc-cartes .sxc-carte__titre { font-family: var(--ff-display, inherit); font-weight: 700; font-size: 1.25rem; line-height: 1.25; }
.sxc-cartes .sxc-carte__aide { align-self: flex-end; font-size: 1.1rem; opacity: .8; }
.sxc-cartes .sxc-carte__verso { background: #1f1d1b; color: #fff; margin-top: 8px; }
.sxc-cartes .sxc-carte__texte { font-size: .98rem; line-height: 1.5; }
/* Avec JavaScript (et sans « moins d'animations ») : les deux faces se superposent et la carte se retourne. */
@media (prefers-reduced-motion: no-preference) {
  .sxc-js .sxc-cartes .sxc-carte__btn { display: grid; perspective: 1000px; }
  .sxc-js .sxc-cartes .sxc-carte__face { grid-area: 1 / 1; margin: 0; backface-visibility: hidden; transition: transform .5s ease; }
  .sxc-js .sxc-cartes .sxc-carte__verso { transform: rotateY(180deg); }
  .sxc-js .sxc-cartes .sxc-carte__btn[aria-pressed="true"] .sxc-carte__recto { transform: rotateY(-180deg); }
  .sxc-js .sxc-cartes .sxc-carte__btn[aria-pressed="true"] .sxc-carte__verso { transform: rotateY(0); }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .sxc-js .sxc-cartes .sxc-carte__btn:hover .sxc-carte__recto { transform: rotateY(-180deg); }
  .sxc-js .sxc-cartes .sxc-carte__btn:hover .sxc-carte__verso { transform: rotateY(0); }
}

/* ---------- Lot 15, 2e volet : manifeste, grande citation ---------- */
.sxc-manifeste .sxc-manifeste__liste { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 4px; }
.sxc-manifeste .sxc-manifeste__item { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding: 22px 0; border-top: 1px solid currentColor; border-top-color: rgba(127, 127, 127, .35); }
.sxc-manifeste .sxc-manifeste__num { font-family: var(--ff-display, inherit); font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: .9; color: var(--c-pink, currentColor); min-width: 2ch; }
.sxc-manifeste .sxc-manifeste__titre { font-size: clamp(1.2rem, 2.4vw, 1.6rem); margin: .2em 0 .35em; }
.sxc-manifeste .sxc-manifeste__texte { margin: 0; font-size: 1rem; line-height: 1.55; max-width: 62ch; }
.sxc-citation .sxc-citation__liste { display: grid; gap: 34px; margin-top: 1rem; }
.sxc-citation .sxc-citation__item { margin: 0; text-align: center; }
.sxc-citation .sxc-citation__texte { margin: 0 auto; max-width: 30ch; }
.sxc-citation .sxc-citation__texte p { margin: 0; font-family: var(--ff-display, inherit); font-size: clamp(1.6rem, 4vw, 2.9rem); line-height: 1.2; font-weight: 600; }
.sxc-citation .sxc-citation__texte p::before { content: "« "; color: var(--c-pink, currentColor); }
.sxc-citation .sxc-citation__texte p::after { content: " »"; color: var(--c-pink, currentColor); }
.sxc-citation .sxc-citation__auteur { margin-top: 14px; font-size: 1rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Lot 15, 3e volet : liste à coches, comparatif ---------- */
.sxc-coches .sxc-coches__liste { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 12px 26px; }
@media (min-width: 768px) { .sxc-coches .sxc-coches__liste { grid-template-columns: 1fr 1fr; } }
.sxc-coches .sxc-coches__item { display: flex; gap: 12px; align-items: center; font-size: 1.08rem; font-weight: 600; }
.sxc-coches .sxc-coches__coche { flex: 0 0 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--c-pink, #a4226b); color: #fff; }
.sxc-comparatif .sxc-comparatif__table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 1rem; background: #fff; color: #1f1d1b; border: 1px solid rgba(0, 0, 0, .12); border-radius: 16px; overflow: hidden; }
.sxc-comparatif th, .sxc-comparatif td { padding: 14px 16px; text-align: left; vertical-align: top; border-top: 1px solid rgba(0, 0, 0, .08); }
.sxc-comparatif thead th { border-top: 0; font-size: 1rem; }
.sxc-comparatif .sxc-comparatif__avec { background: var(--c-pink-soft, #fbeaf3); font-weight: 600; }
.sxc-comparatif .sxc-comparatif__ico { display: inline-block; width: 1.4em; font-weight: 800; }
.sxc-comparatif .sxc-comparatif__avec .sxc-comparatif__ico { color: #157a52; }
.sxc-comparatif .sxc-comparatif__sans .sxc-comparatif__ico { color: #b91c1c; }
.sxc-comparatif .sxc-comparatif__sans { color: #4b463e; }

/* ---------- Lot 15, 4e volet : cartes empilées, presse ---------- */
.sxc-pile .sxc-pile__liste { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 18px; }
.sxc-pile .sxc-pile__carte { box-sizing: border-box; padding: 28px 26px; border-radius: 20px; background: #fff; color: #1f1d1b; border: 1px solid rgba(0, 0, 0, .1); box-shadow: 0 10px 30px rgba(0, 0, 0, .08); }
.sxc-pile .sxc-pile__titre { font-family: var(--ff-display, inherit); font-size: clamp(1.3rem, 2.6vw, 1.9rem); margin: 0 0 .4em; color: #1f1d1b; }
.sxc-pile .sxc-pile__texte { margin: 0; font-size: 1.02rem; line-height: 1.55; color: #3b3631; max-width: 62ch; }
@media (min-width: 992px) and (prefers-reduced-motion: no-preference) {
  .sxc-pile .sxc-pile__carte { position: sticky; top: calc(90px + var(--sxc-i, 0) * 18px); min-height: 220px; }
}
.sxc-presse .sxc-presse__intro { margin: 0 0 .6rem; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.sxc-presse .sxc-presse__liste { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 40px; }
.sxc-presse .sxc-presse__nom { font-family: var(--ff-display, Georgia, serif); font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 700; letter-spacing: .02em; }

/* ---------- Lot 15 : texte mis en forme (HTML nettoyé) ---------- */
.sxc-html .sxc-html__corps { max-width: 72ch; }
.sxc-html .sxc-html__corps h2, .sxc-html .sxc-html__corps h3, .sxc-html .sxc-html__corps h4 { margin: 1.1em 0 .45em; }
.sxc-html .sxc-html__corps a { color: var(--c-pink-dk, #7c1450); text-decoration: underline; }
.sxc-html .sxc-html__corps blockquote { margin: 1em 0; padding-left: 1em; border-left: 3px solid var(--c-pink, #a4226b); }

/* ---------- Lot 15e : avant / après ---------- */
.sxc-aa .sxc-aa__cadre { --sxc-pos: 50%; position: relative; max-width: 960px; margin: 0 auto; overflow: hidden; border-radius: var(--ui-media-radius, 14px); line-height: 0; }
.sxc-aa .sxc-aa__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.sxc-aa .sxc-aa__apres { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--sxc-pos)); }
.sxc-aa .sxc-aa__apres .sxc-aa__img { height: 100%; }
.sxc-aa .sxc-aa__trait { position: absolute; top: 0; bottom: 0; left: var(--sxc-pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25); pointer-events: none; }
.sxc-aa .sxc-aa__trait::after { content: '\2194'; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #fff; color: #111; font: 700 20px/44px system-ui, sans-serif; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.sxc-aa .sxc-aa__eti { position: absolute; top: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.72); color: #fff; font: 600 13px/1.4 system-ui, sans-serif; pointer-events: none; }
.sxc-aa .sxc-aa__eti--avant { left: 12px; } .sxc-aa .sxc-aa__eti--apres { right: 12px; }
.sxc-aa .sxc-aa__curseur { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; touch-action: pan-y; }
.sxc-aa .sxc-aa__curseur:focus-visible + .sxc-aa__trait::after { outline: 3px solid var(--c-pink-dk, #7c1450); outline-offset: 2px; }
/* ---------- Lot 15e : galerie défilante ---------- */
.sxc-gd { overflow: hidden; }
.sxc-gd .sxc-gd__piste { display: flex; gap: 16px; width: max-content; animation: sxc-gd 40s linear infinite; }
.sxc-gd[data-vitesse="lent"] .sxc-gd__piste { animation-duration: 70s; } .sxc-gd[data-vitesse="rapide"] .sxc-gd__piste { animation-duration: 22s; }
.sxc-gd:hover .sxc-gd__piste, .sxc-gd:focus-within .sxc-gd__piste { animation-play-state: paused; }
.sxc-gd .sxc-gd__fig { flex: 0 0 auto; margin: 0; }
.sxc-gd .sxc-gd__img { display: block; height: 260px; width: auto; max-width: 420px; object-fit: cover; border-radius: var(--ui-media-radius, 12px); }
@media (max-width: 767.98px) { .sxc-gd .sxc-gd__img { height: 180px; max-width: 300px; } }
@keyframes sxc-gd { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .sxc-gd { overflow-x: auto; } .sxc-gd .sxc-gd__piste { animation: none; } .sxc-gd .sxc-gd__double { display: none; } }
