/* TCM Sommaire — carte dans le contenu, rail desktop, pastille + panneau mobile. */

:root {
  --tcm-somm-navy: #0b1f4d;
  --tcm-somm-ink: #1a1a2e;
  --tcm-somm-night: #2a1b5c;
  --tcm-somm-gold: #b28b33;
  --tcm-somm-gold-hi: #e6b343;
  --tcm-somm-blue: #29abe2;
  --tcm-somm-muted: #626a86;
  --tcm-somm-line: #dfe3f1;
  --tcm-somm-soft: #f5f7fd;
  --tcm-somm-radius: 18px;
  --tcm-somm-shadow: 0 10px 30px -12px rgba(11, 31, 77, .28), 0 2px 6px rgba(11, 31, 77, .06);
  --tcm-somm-bottom: 0px;
  --tcm-somm-bottom-base: 14px;
  --tcm-somm-card-w: 480px;     /* réglage « largeur maximale de la carte » */ /* réglage « distance au bas de l'écran » */       /* décalage posé par le JS (bannière d'offre en bas d'écran) */
  --tcm-somm-scroll-gap: 16px;  /* marge au-dessus d'un titre après un clic */
  --tcm-somm-sky:
    radial-gradient(1.2px 1.2px at 12% 30%, rgba(255,255,255,.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 72%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 46% 18%, rgba(255,255,255,.85) 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 58%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 79% 26%, rgba(255,236,170,.95) 50%, transparent 51%),
    radial-gradient(1px 1px at 91% 70%, rgba(255,255,255,.7) 50%, transparent 51%),
    linear-gradient(135deg, #0b1f4d 0%, #1a1a2e 55%, #2a1b5c 100%);
}

/* ------------------------------------------------------------------ */
/* Carte                                                                */
/* ------------------------------------------------------------------ */

.tcm-somm {
  position: relative;
  margin: 1.75rem 0 2.25rem;
  padding: 0;
  background: #fff;
  border: 1px solid var(--tcm-somm-line);
  border-radius: var(--tcm-somm-radius);
  box-shadow: var(--tcm-somm-shadow);
  overflow: hidden;
  font-family: inherit;
  color: var(--tcm-somm-ink);
  max-width: var(--tcm-somm-card-w, 480px);
}

.tcm-somm__head {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1rem 1.15rem;
  background: var(--tcm-somm-sky);
  color: #fff;
}

.tcm-somm__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--tcm-somm-gold-hi);
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(230, 179, 67, .45);
}

.tcm-somm__heading { flex: 1; min-width: 0; }

.tcm-somm__title {
  font-family: 'Raleway', 'Poppins', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: .01em;
}

.tcm-somm__meta {
  margin-top: .15rem;
  font-size: .78rem;
  line-height: 1.2;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--tcm-somm-gold-hi);
}

.tcm-somm__toggle {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .75rem;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font: inherit;
  font-size: .85rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.tcm-somm__toggle:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .45); }
.tcm-somm__toggle:focus-visible { outline: 2px solid var(--tcm-somm-gold-hi); outline-offset: 2px; }
.tcm-somm__toggle svg { transition: transform .25s ease; }
.tcm-somm.is-collapsed .tcm-somm__toggle svg { transform: rotate(-90deg); }

.tcm-somm__body { padding: 1rem 1.15rem 1.15rem; }
.tcm-somm.is-collapsed .tcm-somm__body { display: none; }

/* Liste « parcours » : numéros reliés par un tracé pointillé. */
.tcm-somm .tcm-somm__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}

.tcm-somm .tcm-somm__item {
  position: relative;
  margin: 0;
  padding: 0 0 .2rem;
  font-size: 1rem;
  line-height: 1.45;
}
.tcm-somm .tcm-somm__item::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 34px;
  bottom: -2px;
  border-left: 2px dotted #c9cfe4;
}
.tcm-somm .tcm-somm__item:last-child::before { display: none; }

.tcm-somm a.tcm-somm__link {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: .3rem .5rem .3rem 0;
  border-radius: 10px;
  color: var(--tcm-somm-ink);
  text-decoration: none;
  font-weight: 600;
  transition: color .2s ease;
}

.tcm-somm__num {
  position: relative;
  z-index: 1;
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-top: -.15rem;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--tcm-somm-navy);
  color: var(--tcm-somm-navy);
  font-size: .85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.tcm-somm__label { padding-top: .1rem; }

.tcm-somm a.tcm-somm__link:hover,
.tcm-somm a.tcm-somm__link:focus-visible { color: var(--tcm-somm-navy); }
.tcm-somm a.tcm-somm__link:hover .tcm-somm__label { text-decoration: underline; text-decoration-color: var(--tcm-somm-gold); text-underline-offset: 3px; }
.tcm-somm a.tcm-somm__link:hover .tcm-somm__num,
.tcm-somm a.tcm-somm__link:focus-visible .tcm-somm__num {
  background: var(--tcm-somm-navy);
  color: var(--tcm-somm-gold-hi);
  transform: scale(1.06);
}
.tcm-somm a.tcm-somm__link:focus-visible { outline: 2px solid var(--tcm-somm-blue); outline-offset: 2px; }

.tcm-somm .tcm-somm__item.is-active .tcm-somm__num {
  background: var(--tcm-somm-gold);
  border-color: var(--tcm-somm-gold);
  color: #fff;
}

.tcm-somm .tcm-somm__sub {
  list-style: none;
  margin: .1rem 0 .4rem;
  padding: 0 0 0 2.85rem;
}
.tcm-somm .tcm-somm__sub li {
  position: relative;
  margin: 0;
  padding: .15rem 0 .15rem 1rem;
  font-size: .93rem;
  line-height: 1.4;
}
.tcm-somm .tcm-somm__sub li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: .2rem;
  font-size: .65rem;
  color: var(--tcm-somm-gold);
}
.tcm-somm a.tcm-somm__sublink { color: var(--tcm-somm-muted); text-decoration: none; }
.tcm-somm a.tcm-somm__sublink:hover { color: var(--tcm-somm-navy); text-decoration: underline; }

.tcm-somm__more {
  display: none;
  width: 100%;
  margin-top: .5rem;
  padding: .6rem .9rem;
  border: 1px dashed #c9cfe4;
  border-radius: 12px;
  background: var(--tcm-somm-soft);
  color: var(--tcm-somm-navy);
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
}
.tcm-somm__more:hover { border-color: var(--tcm-somm-navy); }

.tcm-somm__cta {
  margin-top: .9rem;
  padding-top: .9rem;
  border-top: 1px dashed var(--tcm-somm-line);
}
.tcm-somm__cta .btn { margin: 0 !important; }

/* Mobile : liste longue repliée après 4 étapes (posé en CSS pour éviter tout décalage au chargement). */
@media (max-width: 767.98px) {
  .tcm-somm { margin: 1.25rem 0 1.75rem; border-radius: 16px; max-width: none; }
  .tcm-somm__head { padding: .85rem 1rem; }
  .tcm-somm__body { padding: .9rem 1rem 1rem; }
  .tcm-somm__toggle-txt { display: none; }
  .tcm-somm__toggle { padding: .45rem; }
  .tcm-somm--long:not(.is-expanded) .tcm-somm__item.is-extra { display: none; }
  .tcm-somm--long:not(.is-expanded) .tcm-somm__item.is-cut::before { display: none; }
  .tcm-somm--long:not(.is-expanded) .tcm-somm__more { display: block; }
}

/* Cibles : ne pas finir collées en haut de l'écran après un clic. */
.tcm-somm-target { scroll-margin-top: var(--tcm-somm-scroll-gap); }

/* ------------------------------------------------------------------ */
/* Rail (grand écran, dans la marge gauche)                            */
/* Même placement que l'ancien sommaire du thème (.toc) : fixé à        */
/* gauche, 15 % du haut puis 5 % dès que la page défile, 13 % de large. */
/* ------------------------------------------------------------------ */

.tcm-somm-rail {
  position: fixed;
  z-index: 1030;
  left: 1.2em;
  top: 15vh;
  width: 13vw;
  min-width: 190px;
  max-width: 300px;
  max-height: calc(100vh - 15vh - 24px);
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--tcm-somm-line);
  border-radius: var(--tcm-somm-radius);
  box-shadow: var(--tcm-somm-shadow);
  color: var(--tcm-somm-ink);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-14px);
  transition: opacity .3s ease, transform .3s ease, top .25s ease, max-height .25s ease, visibility 0s linear .3s;
  overflow: hidden;
}
.tcm-somm-rail.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .3s ease, transform .3s ease, top .25s ease, max-height .25s ease, visibility 0s;
}
.tcm-somm-rail.is-scrolled { top: 5vh; max-height: calc(100vh - 5vh - 24px); }
.admin-bar .tcm-somm-rail.is-scrolled { top: calc(5vh + 32px); max-height: calc(100vh - 5vh - 56px); }

.tcm-somm-rail__head {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .75rem .9rem;
  background: var(--tcm-somm-sky);
  color: #fff;
}
.tcm-somm-rail__head .tcm-somm__icon { width: 30px; height: 30px; }
.tcm-somm-rail__head .tcm-somm__icon svg { width: 16px; height: 16px; }
.tcm-somm-rail__title { flex: 1; font-family: 'Raleway', 'Poppins', system-ui, sans-serif; font-weight: 700; font-size: .98rem; }
.tcm-somm-rail__pct { font-size: .78rem; font-weight: 700; color: var(--tcm-somm-gold-hi); font-variant-numeric: tabular-nums; }

.tcm-somm-rail__bar { height: 3px; background: rgba(11, 31, 77, .08); }
.tcm-somm-rail__bar span {
  display: block;
  height: 100%;
  width: calc(var(--p, 0) * 100%);
  background: linear-gradient(90deg, var(--tcm-somm-gold), var(--tcm-somm-gold-hi));
  transition: width .15s linear;
}

.tcm-somm-rail__list {
  list-style: none;
  margin: 0;
  padding: .6rem .5rem .7rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.tcm-somm-rail__list li { position: relative; margin: 0; padding: 0; font-size: .9rem; line-height: 1.35; }
.tcm-somm-rail__list li::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--tcm-somm-line);
}
.tcm-somm-rail__list li:first-child::before { top: 50%; }
.tcm-somm-rail__list li:last-child::before { bottom: 50%; }
.tcm-somm-rail__list li.is-done::before,
.tcm-somm-rail__list li.is-active::before { background: var(--tcm-somm-gold); }
.tcm-somm-rail__list li.is-active::before { bottom: 50%; }
.tcm-somm-rail__list li.is-active:first-child::before { display: none; }

.tcm-somm-rail__list a {
  position: relative;
  display: block;
  padding: .45rem .5rem .45rem 2.05rem;
  border-radius: 10px;
  color: var(--tcm-somm-muted);
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tcm-somm-rail__list a::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #c3c9de;
  box-sizing: border-box;
  transition: all .25s ease;
}
.tcm-somm-rail__list a:hover { color: var(--tcm-somm-navy); background: var(--tcm-somm-soft); }
.tcm-somm-rail__list a:focus-visible { outline: 2px solid var(--tcm-somm-blue); outline-offset: -2px; }
.tcm-somm-rail__list li.is-done a::before { background: var(--tcm-somm-gold); border-color: var(--tcm-somm-gold); }
.tcm-somm-rail__list li.is-active a { color: var(--tcm-somm-navy); font-weight: 700; background: #fff8e8; }

/* Étape en cours : étoile scintillante. */
.tcm-somm-rail__list li.is-active a::before {
  content: "";
  left: 8px;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 0;
  border-radius: 0;
  background: var(--tcm-somm-gold-hi);
  -webkit-clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  filter: drop-shadow(0 0 4px rgba(230, 179, 67, .9));
  animation: tcm-somm-twinkle 2.4s ease-in-out infinite;
}

.tcm-somm-rail__cta { padding: .7rem .9rem .9rem; border-top: 1px dashed var(--tcm-somm-line); }
.tcm-somm-rail__cta .btn { display: block; width: 100%; margin: 0 !important; font-size: .9rem; }

@keyframes tcm-somm-twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.2) rotate(45deg); }
}

/* ------------------------------------------------------------------ */
/* Pastille (mobile et écrans moyens)                                  */
/* ------------------------------------------------------------------ */

.tcm-somm-pill {
  position: fixed;
  z-index: 1035;
  left: 50%;
  bottom: calc(var(--tcm-somm-bottom-base) + var(--tcm-somm-bottom) + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: .7rem;
  width: min(420px, calc(100vw - 24px));
  padding: .45rem .55rem .45rem .45rem;
  border: 1px solid rgba(230, 179, 67, .35);
  border-radius: 999px;
  background: var(--tcm-somm-sky);
  box-shadow: 0 14px 34px -10px rgba(11, 31, 77, .55), 0 2px 6px rgba(0, 0, 0, .12);
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 130%);
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.2), opacity .25s ease, visibility 0s linear .35s, bottom .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.tcm-somm-pill.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.2), opacity .25s ease, visibility 0s, bottom .25s ease;
}
.tcm-somm-pill:focus-visible { outline: 3px solid var(--tcm-somm-gold-hi); outline-offset: 3px; }

.tcm-somm-pill__ring { position: relative; flex: none; width: 44px; height: 44px; }
.tcm-somm-pill__ring svg { display: block; width: 44px; height: 44px; transform: rotate(-90deg); }
.tcm-somm-pill__ring circle { fill: none; stroke-width: 3.5; }
.tcm-somm-pill__ring .bg { stroke: rgba(255, 255, 255, .16); }
.tcm-somm-pill__ring .fg {
  stroke: var(--tcm-somm-gold-hi);
  stroke-linecap: round;
  stroke-dasharray: 113.1;
  stroke-dashoffset: calc(113.1 - 113.1 * var(--p, 0));
  transition: stroke-dashoffset .2s linear;
}
.tcm-somm-pill__num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: .82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.tcm-somm-pill__txt { flex: 1; min-width: 0; line-height: 1.2; }
.tcm-somm-pill__eyebrow {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--tcm-somm-gold-hi);
}
.tcm-somm-pill__label {
  display: block;
  margin-top: .15rem;
  font-size: .95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tcm-somm-pill__chev {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
}

@media (min-width: 768px) {
  .tcm-somm-pill {
    left: 24px;
    bottom: calc(var(--tcm-somm-bottom-base) + 10px + var(--tcm-somm-bottom));
    width: 360px;
    transform: translate(0, 130%);
  }
  .tcm-somm-pill.is-visible { transform: translate(0, 0); }
}

/* ------------------------------------------------------------------ */
/* Panneau (bottom sheet mobile / popover desktop)                     */
/* ------------------------------------------------------------------ */

.tcm-somm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1044;
  background: rgba(10, 16, 40, .45);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .25s ease;
}
.tcm-somm-backdrop.is-open { opacity: 1; }

.tcm-somm-sheet {
  position: fixed;
  z-index: 1045;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  max-height: min(78vh, 640px);
  background: #fff;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -18px 40px -12px rgba(11, 31, 77, .45);
  color: var(--tcm-somm-ink);
  transform: translateY(105%);
  transition: transform .35s cubic-bezier(.2, .9, .3, 1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  overflow: hidden;
}
.tcm-somm-sheet.is-open { transform: translateY(0); }
.tcm-somm-sheet[hidden], .tcm-somm-backdrop[hidden] { display: none; }

.tcm-somm-sheet__head {
  position: relative;
  padding: 1.35rem 1.1rem 1rem;
  background: var(--tcm-somm-sky);
  color: #fff;
  touch-action: none;
}
.tcm-somm-sheet__grip {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 42px;
  height: 4px;
  margin-left: -21px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .45);
}
.tcm-somm-sheet__row { display: flex; align-items: center; gap: .75rem; }
.tcm-somm-sheet__title { flex: 1; font-family: 'Raleway', 'Poppins', system-ui, sans-serif; font-weight: 700; font-size: 1.15rem; line-height: 1.2; }
.tcm-somm-sheet__sub { display: block; margin-top: .2rem; font-family: inherit; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--tcm-somm-gold-hi); }
.tcm-somm-sheet__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
}
.tcm-somm-sheet__close:hover { background: rgba(255, 255, 255, .22); }
.tcm-somm-sheet__close:focus-visible { outline: 2px solid var(--tcm-somm-gold-hi); outline-offset: 2px; }
.tcm-somm-sheet__bar { margin-top: .9rem; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.tcm-somm-sheet__bar span { display: block; height: 100%; width: calc(var(--p, 0) * 100%); border-radius: 4px; background: linear-gradient(90deg, var(--tcm-somm-gold), var(--tcm-somm-gold-hi)); }

.tcm-somm-sheet__list {
  list-style: none;
  margin: 0;
  padding: .6rem .6rem .8rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.tcm-somm-sheet__list li { margin: 0; padding: 0; font-size: 1rem; line-height: 1.35; }
.tcm-somm-sheet__list a {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-height: 48px;
  padding: .55rem .7rem;
  border-radius: 14px;
  color: var(--tcm-somm-ink);
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease;
}
.tcm-somm-sheet__list a:hover { background: var(--tcm-somm-soft); }
.tcm-somm-sheet__list a:focus-visible { outline: 2px solid var(--tcm-somm-blue); outline-offset: -2px; }
.tcm-somm-sheet__list .tcm-somm__num { margin-top: 0; width: 30px; height: 30px; font-size: .8rem; }
.tcm-somm-sheet__list .tcm-somm__label { flex: 1; padding-top: 0; }
.tcm-somm-sheet__list li.is-done .tcm-somm__num { background: #f6efdc; border-color: var(--tcm-somm-gold); color: var(--tcm-somm-gold); }
.tcm-somm-sheet__list li.is-active a { background: #fff8e8; box-shadow: inset 3px 0 0 var(--tcm-somm-gold); }
.tcm-somm-sheet__list li.is-active .tcm-somm__num { background: var(--tcm-somm-gold); border-color: var(--tcm-somm-gold); color: #fff; }
.tcm-somm-sheet__here {
  flex: none;
  padding: .2rem .5rem;
  border-radius: 999px;
  background: var(--tcm-somm-navy);
  color: var(--tcm-somm-gold-hi);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
}
.tcm-somm-sheet__list .tcm-somm-sheet__child a { min-height: 40px; padding-left: 3.4rem; font-weight: 500; font-size: .93rem; color: var(--tcm-somm-muted); }

.tcm-somm-sheet__foot {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: .75rem 1rem 1rem;
  border-top: 1px solid var(--tcm-somm-line);
}
.tcm-somm-sheet__foot .btn { display: block; width: 100%; margin: 0 !important; }
.tcm-somm-sheet__top {
  border: 0;
  background: none;
  color: var(--tcm-somm-muted);
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 768px) {
  .tcm-somm-sheet {
    left: 24px;
    right: auto;
    bottom: calc(var(--tcm-somm-bottom-base) + 82px + var(--tcm-somm-bottom));
    width: 400px;
    max-height: min(70vh, 620px);
    border-radius: 22px;
    box-shadow: var(--tcm-somm-shadow), 0 24px 60px -20px rgba(11, 31, 77, .5);
    transform: translateY(16px) scale(.98);
    opacity: 0;
    transform-origin: bottom left;
    transition: transform .25s ease, opacity .2s ease;
  }
  .tcm-somm-sheet.is-open { transform: none; opacity: 1; }
  .tcm-somm-sheet__grip { display: none; }
  .tcm-somm-sheet__head { padding-top: 1.1rem; }
  .tcm-somm-backdrop { background: rgba(10, 16, 40, .18); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

html.tcm-somm-lock, html.tcm-somm-lock body { overflow: hidden; }

@media print {
  .tcm-somm-rail, .tcm-somm-pill, .tcm-somm-sheet, .tcm-somm-backdrop, .tcm-somm__toggle, .tcm-somm__more { display: none !important; }
  .tcm-somm { box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tcm-somm *, .tcm-somm-rail, .tcm-somm-rail *, .tcm-somm-pill, .tcm-somm-pill *, .tcm-somm-sheet, .tcm-somm-backdrop {
    transition: none !important;
    animation: none !important;
  }
}

/* ------------------------------------------------------------------ */
/* Options                                                             */
/* ------------------------------------------------------------------ */

.tcm-somm--nocount .tcm-somm__meta { display: none; }
.tcm-somm-rail.no-percent .tcm-somm-rail__pct,
.tcm-somm-rail.no-percent .tcm-somm-rail__bar { display: none; }

@media (min-width: 768px) {
  .tcm-somm-pill.is-right { left: auto; right: 24px; }
  .tcm-somm-sheet.is-right { left: auto; right: 24px; transform-origin: bottom right; }
}

.tcm-somm__btn[data-tcm-go] { cursor: pointer; }
.tcm-somm__btn:focus-visible { outline: 2px solid var(--tcm-somm-blue); outline-offset: 2px; }

/* ------------------------------------------------------------------ */
/* Cohabitation avec les éléments fixes du site                        */
/* ------------------------------------------------------------------ */

/* Le bandeau d'offre mobile (#sticky-offer-banner) a un z-index de 9999 :
   le panneau ouvert et son fond passent au-dessus. La pastille, elle, se place
   au-dessus du bandeau (--tcm-somm-bottom, calculé en JS). */
.tcm-somm-backdrop { z-index: 10000; }
.tcm-somm-sheet { z-index: 10001; }

/* Icône des cookies en bas à gauche : la pastille se décale (--tcm-somm-avoid-left, calculé en JS). */
@media (max-width: 767.98px) {
  .tcm-somm-pill {
    left: var(--tcm-somm-avoid-left, 12px);
    right: 12px;
    width: auto;
    max-width: 420px;
    margin: 0 auto;
    transform: translateY(130%);
  }
  .tcm-somm-pill.is-visible { transform: none; }
}
@media (min-width: 768px) {
  .tcm-somm-pill:not(.is-right) { left: max(24px, var(--tcm-somm-avoid-left, 0px)); }
  .tcm-somm-sheet:not(.is-right) { left: max(24px, var(--tcm-somm-avoid-left, 0px)); }
}
