@charset "UTF-8";
/* ==========================================================================
   Page "Mises à jour" (mises-a-jour.php) : éditions hebdomadaires.
   Contenu : includes/changelog.php (changelog_weeks()). Couleurs uniquement
   via les variables de thème de style.css + une couleur par service
   (--cl-light / --cl-dark, posées en ligne par PHP, aussi lues par
   includes/home-shortcuts.php) pour rester lisible en clair comme en sombre.
   ========================================================================== */

.cl-svc {
  --cl-rgb: var(--cl-light);
}
:root[data-theme="dark"] .cl-svc {
  --cl-rgb: var(--cl-dark);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cl-svc {
    --cl-rgb: var(--cl-dark);
  }
}

.cl-page {
  flex: 0 1 auto;
  width: min(880px, 100%);
  margin: 0 auto 64px;
  padding: 32px 24px 0;
  box-sizing: border-box;
}

/* --- En-tête : sobre, la page commence vite ------------------------------ */
.cl-hero {
  margin: 8px 0 32px;
}
.cl-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4.4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
.cl-hero-lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-muted);
}
.cl-hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--text-muted);
}
.cl-hero-meta strong {
  color: var(--text);
  font-weight: 600;
}
.cl-pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}
.cl-pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--success);
  opacity: 0;
  animation: cl-pulse 2.4s var(--ease) infinite;
}
@keyframes cl-pulse {
  0% { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}

.cl-preview-note {
  margin: 0 0 18px;
  padding: 12px 16px;
  border-left: 4px solid var(--warning);
  border-radius: 12px;
  background: var(--warning-bg);
  color: var(--text);
  font-size: 14px;
}

/* --- Éléments communs ---------------------------------------------------- */
.cl-page summary {
  list-style: none;
  cursor: pointer;
}
.cl-page summary::-webkit-details-marker {
  display: none;
}
.cl-page summary:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
  border-radius: 12px;
}
.cl-chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s var(--ease);
}
details[open] > summary .cl-chevron {
  transform: rotate(180deg);
}
.cl-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  vertical-align: 1px;
}
.cl-tag-new {
  background: var(--link-tint);
  color: var(--link);
}
.cl-tag-preview {
  background: var(--warning-bg);
  color: var(--warning);
}
.cl-dot-new {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--link);
  vertical-align: middle;
}
.cl-anchor {
  display: block;
  scroll-margin-top: 80px;
}

/* --- Une semaine --------------------------------------------------------- */
.cl-week {
  border-top: 1px solid var(--border);
}
.cl-week:last-of-type {
  border-bottom: 1px solid var(--border);
}
.cl-week-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 20px 4px;
}
.cl-week-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.cl-week-label {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.cl-week.is-current .cl-week-label {
  font-size: 24px;
}
.cl-week-dates {
  font-size: 13.5px;
  color: var(--text-muted);
}
.cl-week-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.cl-week-count {
  font-size: 13px;
  color: var(--text-muted);
}
.cl-week-teaser {
  flex-basis: 100%;
  overflow: hidden;
  font-size: 14px;
  color: var(--text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cl-week[open] .cl-week-teaser {
  display: none;
}
.cl-week-head:hover .cl-week-label {
  color: var(--link);
}
.cl-week-body {
  padding: 0 0 28px;
}

/* --- Grosses nouveautés : cartes --------------------------------------- */
.cl-cards {
  display: grid;
  grid-template-columns: repeat(var(--cl-cols, 3), minmax(0, 1fr));
  gap: 14px;
}
.cl-cards-1 { --cl-cols: 1; }
.cl-cards-2 { --cl-cols: 2; }
.cl-cards-3 { --cl-cols: 3; }

.cl-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.cl-card:hover {
  border-color: rgba(var(--cl-rgb), 0.45);
}
/* Carte ouverte : prend toute la largeur pour lire le détail à l'aise. */
.cl-card[open] {
  grid-column: 1 / -1;
  box-shadow: var(--shadow-soft);
}
.cl-card > summary {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.cl-card[open] > summary {
  height: auto;
}
.cl-card-art {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(var(--cl-rgb), 0.32), transparent 60%),
    radial-gradient(100% 120% at 100% 100%, rgba(var(--cl-rgb), 0.18), transparent 60%),
    rgba(var(--cl-rgb), 0.06);
  color: rgb(var(--cl-rgb));
}
.cl-card-art svg {
  width: 40px;
  height: 40px;
}
.cl-cards-1 .cl-card > summary,
.cl-card[open] > summary {
  flex-direction: row;
}
.cl-cards-1 .cl-card-art,
.cl-card[open] .cl-card-art {
  flex: 0 0 132px;
  height: auto;
  min-height: 120px;
}
.cl-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 18px;
}
.cl-card-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgb(var(--cl-rgb));
  font-size: 12.5px;
  font-weight: 600;
}
.cl-card-title {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.cl-card-summary {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.5;
}
.cl-card-more {
  margin-top: auto;
  padding-top: 4px;
  color: var(--link);
  font-size: 13.5px;
  font-weight: 600;
}
.cl-more-open,
.cl-card[open] .cl-more-closed {
  display: none;
}
.cl-card[open] .cl-more-open {
  display: inline;
}
.cl-card-detail {
  padding: 4px 22px 20px;
  border-top: 1px solid var(--border);
}

/* --- Le reste : lignes dépliables -------------------------------------- */
.cl-section-title {
  margin: 28px 4px 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.cl-week-body > .cl-rows:first-child {
  margin-top: 0;
}
.cl-rows {
  display: flex;
  flex-direction: column;
}
.cl-row {
  border-radius: 14px;
  transition: background 0.15s var(--ease);
}
.cl-row:hover,
.cl-row[open] {
  background: var(--btn-bg);
}
.cl-row > summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
}
.cl-row-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(var(--cl-rgb), 0.12);
  color: rgb(var(--cl-rgb));
}
.cl-row-icon svg {
  width: 19px;
  height: 19px;
}
.cl-row-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.cl-row-title {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}
.cl-row-sub {
  color: var(--text-muted);
  font-size: 12.5px;
}
.cl-row-detail {
  padding: 0 16px 14px 62px;
}
.cl-row-summary {
  margin: 0 0 4px;
  color: var(--text-muted);
  font-size: 14px;
}

/* --- Listes de changements --------------------------------------------- */
.cl-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.cl-li {
  position: relative;
  padding: 6px 0 6px 18px;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.55;
}
.cl-li::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}
.cl-li-nouveau::before,
.cl-li-highlight::before {
  background: var(--link);
}
.cl-li-ameliore::before {
  background: var(--success);
}
.cl-li-corrige::before {
  background: var(--text-muted);
  opacity: 0.6;
}
.cl-li-highlight strong {
  font-weight: 600;
}
.cl-li-svc {
  margin-right: 4px;
  color: rgb(var(--cl-rgb));
  font-size: 12.5px;
  font-weight: 600;
}

/* --- Corrections de la semaine ------------------------------------------ */
.cl-fixes {
  margin-top: 18px;
  padding: 2px 14px;
  border: 1px dashed var(--border);
  border-radius: 14px;
}
.cl-fixes > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}
.cl-fixes > summary > svg:first-child {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cl-fixes > summary .cl-chevron {
  margin-left: auto;
}
.cl-fixes > .cl-list {
  margin: 0 0 12px;
}

.cl-empty {
  padding: 40px 0;
  color: var(--text-muted);
  text-align: center;
}
.cl-back {
  margin-top: 36px;
  text-align: center;
}

/* --- Tablette / téléphone ------------------------------------------------ */
@media (max-width: 760px) {
  .cl-page {
    padding: 20px 16px 0;
  }
  .cl-cards,
  .cl-cards-2,
  .cl-cards-3 {
    --cl-cols: 1;
  }
  .cl-card > summary,
  .cl-cards-1 .cl-card > summary,
  .cl-card[open] > summary {
    flex-direction: row;
  }
  .cl-card-art,
  .cl-cards-1 .cl-card-art,
  .cl-card[open] .cl-card-art {
    flex: 0 0 76px;
    height: auto;
    min-height: 0;
  }
  .cl-card-art svg {
    width: 30px;
    height: 30px;
  }
  .cl-card-detail {
    padding: 4px 16px 16px;
  }
  .cl-row-detail {
    padding: 0 12px 12px;
  }
  .cl-week.is-current .cl-week-label {
    font-size: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cl-pulse::after {
    animation: none;
  }
  .cl-chevron,
  .cl-card,
  .cl-row {
    transition: none;
  }
}
