/* ============================================================
   AF18 — HOME CSS
   Hero · Avantages · Offres/Comparateur · Actualités
   Guides · Trust Stats
   ============================================================ */

/* ---- HERO ---- */
.hero {
  padding: 148px 0 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse at center top, rgba(255,211,1,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.hero-eyebrow-dot {
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  max-width: 880px;
  margin: 0 auto 20px;
}

.hero h1 .highlight {
  background-image: linear-gradient(to top, rgba(255, 211, 1, 0.35) 0, rgba(255, 211, 1, 0.35) 6px, transparent 6px);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 100%;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0 0.04em;
  animation: hero-highlight-grow 0.6s 0.8s ease-out forwards;
}

.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 660px;
  margin: 0 auto 44px;
  line-height: 1.7;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ---- BTN HERO ---- */
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #0f172a;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  padding: 16px 20px;
  border-radius: 12px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease-out;
}
.btn-hero:hover {
  transform: scale(1.04) translateY(-2px);
}

@keyframes hero-highlight-grow {
  from { background-size: 0 100%; }
  to { background-size: 100% 100%; }
}
.btn-hero:active { transform: scale(0.97); }
.btn-hero .btn-icon { width: 26px; height: 26px; flex-shrink: 0; }
.btn-hero .btn-hero-arrow {
  display: inline-block;
  transition: transform 0.2s ease-out;
  font-style: normal;
}
.btn-hero:hover .btn-hero-arrow { transform: translateX(4px); }

.hero-trust {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.83rem;
  color: var(--muted);
  font-weight: 400;
}
.trust-item svg { color: var(--accent); }

/* ---- OPERATORS STRIP ---- */
.operators-strip {
  margin-top: 40px;
  margin-bottom: 40px;
  overflow: hidden;
  position: relative;
}
.operators-strip::before,
.operators-strip::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 12%;
  z-index: 2;
  pointer-events: none;
}
.operators-strip::before {
  left: 0;
  background: linear-gradient(to right, var(--white), transparent);
}
.operators-strip::after {
  right: 0;
  background: linear-gradient(to left, var(--white), transparent);
}
.operators-track {
  display: flex;
  align-items: center;
  gap: 40px;
  min-width: 200%;
  animation: af18-scroll-logos 28s linear infinite;
}
@keyframes af18-scroll-logos {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.operators-strip__item {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.operators-strip__item img {
  height: 44px;
  width: auto;
  max-width: 160px;
  opacity: 0.8;
  transition: opacity 0.2s;
  object-fit: contain;
}
a.operators-strip__item:hover img { opacity: 0.9; }

/* ---- SHORTCUTS — accès direct aux comparateurs thématiques.
   Réutilise le pattern visuel du bloc Gutenberg "link-cards"
   (cartes blanches avec bord + radius + icône jaune-pâle + hover lift). */
.home-shortcuts {
  background: var(--bg);
  padding: 40px 0 44px;
}

.home-shortcuts .section-header {
  margin-bottom: 28px;
}

.home-shortcuts__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.home-shortcuts__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-shortcuts__heading {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 4px;
}

.home-shortcuts__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 10px;
}

.home-shortcuts__list li {
  display: flex;
}

.home-shortcuts__card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: 100%;
  min-height: 66px;
  padding: 12px 14px;
  background: var(--white-pure);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.18s ease-out, border-color 0.18s, box-shadow 0.18s;
}

.home-shortcuts__card:hover,
.home-shortcuts__card:focus-visible {
  border-color: var(--accent-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  outline: none;
}

/* Icône (rendue via af_blocs_render_mega_menu_icon → .nav-panel__icon) */
.home-shortcuts__card .nav-panel__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-light);
  color: var(--accent-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.home-shortcuts__card .nav-panel__icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-shortcuts__card .nav-panel__icon svg text {
  fill: currentColor;
  stroke: none;
}

.home-shortcuts__card:hover .nav-panel__icon {
  background: var(--accent);
  color: #0f172a;
  transform: scale(1.05);
}

.home-shortcuts__label {
  flex: 1 1 auto;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

.home-shortcuts__arrow {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--muted);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--transition), transform var(--transition), color var(--transition);
  flex-shrink: 0;
}

.home-shortcuts__card:hover .home-shortcuts__arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent-text);
}

/* ---- AVANTAGES ---- */
.avantages { background: var(--white); }

.avantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.avantage-card {
  min-width: 0;
  background: var(--white-pure);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.22s ease-out, border-color 0.22s;
  cursor: default;
}
.avantage-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-border);
}
.avantage-icon {
  width: 44px; height: 44px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: background var(--transition), transform var(--transition);
}
.avantage-card:hover .avantage-icon      { background: var(--accent); transform: scale(1.07); }
.avantage-icon svg                        { color: var(--accent-text); }
.avantage-card:hover .avantage-icon svg  { color: #0f172a; }

.avantage-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.avantage-text {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ---- COMPARATEUR / OFFRES ---- */
.offers-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  background: var(--bg);
  padding: 4px;
  border-radius: 10px;
  width: fit-content;
}
.offer-tab,
.activity-tab {
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  border: none;
  background: none;
  transition: all 0.2s;
  font-family: var(--font-body);
}
.offer-tab.active,
.activity-tab.active {
  background: var(--white-pure);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}
.offer-tab:hover:not(.active),
.activity-tab:hover:not(.active) { color: var(--text-secondary); }

.activity-panel.is-hidden {
  display: none;
}

.offers-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.offers-table {
  width: 100%;
  border-collapse: collapse;
}
.offers-table th {
  background: var(--bg);
  padding: 14px 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.offers-table td {
  padding: 18px 20px;
  vertical-align: middle;
  font-size: 0.92rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}
.offers-table tr:last-child td        { border-bottom: none; }
.offers-table tbody tr                { transition: background 0.15s; cursor: default; }
.offers-table tbody tr:hover          { background: var(--bg); }
.offers-table tbody tr.best-row       { background: rgba(255,211,1,0.04); }
.offers-table tbody tr.best-row:hover { background: rgba(255,211,1,0.08); }

.operator-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.operator-logo {
  width: 38px; height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  font-family: var(--font-display);
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.op-orange   { background: #FFA500; color: white; }
.op-sfr      { background: #e2001a; color: white; }
.op-free     { background: #CD1317; color: white; }
.op-bouygues { background: #0F5FA8; color: white; }
.op-prixtel  { background: #7c3aed; color: white; }
.op-sosh     { background: #f97316; color: white; }
.op-red      { background: #e2001a; color: white; }
.op-generic  { background: var(--muted); color: white; }

.operator-name { font-weight: 600; font-size: 0.92rem; color: var(--text); }
.operator-plan { font-size: 0.8rem; color: var(--muted); margin-top: 1px; }

.price-cell .price-main {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
}
.price-cell .price-promo {
  font-size: 0.78rem;
  color: var(--green);
  font-weight: 500;
  margin-top: 1px;
}

.badge-best {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--accent);
  color: var(--accent-strong-text);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  animation: badge-in 0.4s 0.5s ease-out both;
}
.badge-promo {
  display: inline-flex;
  background: var(--green-light);
  color: #065f46;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
}
.engagement-badge {
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--border-light);
  padding: 3px 9px;
  border-radius: 6px;
  display: inline-block;
}
.btn-compare {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s, transform 0.15s;
}
.btn-compare:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.offers-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.offers-update {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--muted);
}
.dot-green {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
.offers-link {
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  position: relative;
  padding-bottom: 1px;
}
.offers-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width 0.25s ease-out;
}
.offers-link:hover::after { width: 100%; }

/* ---- ACTUALITÉS ---- */
.actualites { background: var(--white); }
.actualites-scroll-wrap {
  position: relative;
  padding: 0 48px;
}
.actualites-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding: 6px 0 12px;
  scrollbar-width: none;
}
.actualites-scroll::-webkit-scrollbar { display: none; }
.actualites-scroll .news-card {
  flex: 0 0 calc((100% - 60px) / 4);
  min-width: 0;
  scroll-snap-align: start;
}
.actualites-btn[hidden] { display: none; }
.actualites-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--white-pure);
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, opacity 0.15s;
}
.actualites-btn:hover:not(:disabled) {
  background: var(--white-pure);
}
.actualites-btn:disabled {
  color: var(--muted-light);
  cursor: default;
  opacity: 0.55;
}
.actualites-btn--prev { left: 0; }
.actualites-btn--next { right: 0; }
.home-news-more {
  margin-top: 36px;
  text-align: center;
}
.news-empty {
  color: var(--muted);
  padding: 64px 0;
  text-align: center;
}
.news-empty--full {
  padding: 0;
  width: 100%;
}

/* ---- GUIDES ---- */
#guides { background: var(--white); }
.archive-grid-section {
  padding: 0 0 80px;
}
.archive-empty {
  color: var(--muted);
  padding: 64px 0;
  text-align: center;
}
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.home-guides-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 40px;
  text-align: center;
}

/* ---- TRUST STATS ---- */
.trust-section {
  background: #0f172a;
  color: #f8fafc;
}
.trust-section .section-label { color: rgba(255,255,255,0.4); }
.trust-section .section-title { color: #f8fafc; }
.trust-section .section-sub   { color: rgba(255,255,255,0.55); }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 56px;
}
.trust-stat {
  background: #0f172a;
  padding: 40px 32px;
  text-align: center;
  transition: background 0.2s;
}
.trust-stat:hover { background: #1c2535; }

.trust-stat-value {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.trust-stat-label {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
}

.trust-claims {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.trust-claim {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 8px 16px;
  border-radius: 20px;
}
.trust-claim svg { color: var(--accent); flex-shrink: 0; }

/* ---- ACTIVITÉ DU MARCHÉ ---- */
#activite-marche {
  padding: 96px 0 80px;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
}

/* ---- CHIPS DE CHANGEMENTS (utilise par AF-CHANGELOG) ---- */
.activity-item__change {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
}
.change-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  min-width: 90px;
}
.price-before {
  color: var(--muted);
  text-decoration: line-through;
}
.price-arrow { font-weight: 700; font-size: 1rem; }
.price-after { font-weight: 700; color: var(--text); }
.price-period { font-size: 0.75rem; font-weight: 400; color: var(--muted); margin-left: 1px; }

.activity-item__change.is-down .price-arrow,
.activity-item__change.is-down .price-after { color: #15803d; }
[data-theme="dark"] .activity-item__change.is-down .price-arrow,
[data-theme="dark"] .activity-item__change.is-down .price-after { color: #4ade80; }

.activity-item__change.is-up .price-arrow,
.activity-item__change.is-up .price-after { color: #b91c1c; }
[data-theme="dark"] .activity-item__change.is-up .price-arrow,
[data-theme="dark"] .activity-item__change.is-up .price-after { color: #f87171; }

/* ---- AF-CHANGELOG (nouveau design feed marché) ---- */
.af-changelog__empty {
  padding: 24px;
  color: var(--muted);
  font-size: 0.88rem;
}
.af-changelog__row.is-hidden {
  max-height: 0 !important;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  margin-top: 0 !important;
  border: none;
  background: transparent;
  pointer-events: none;
}
.af-changelog__more {
  display: flex;
  justify-content: center;
  padding: 12px;
  margin-top: 10px;
  cursor: pointer;
}
.af-changelog__more:hover { background: var(--bg); }
.af-changelog__more-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 16px;
  border-radius: 6px;
  transition: color 0.15s;
}
.af-changelog__more:hover .af-changelog__more-btn { color: var(--text); }
.af-changelog__more-icon {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.af-changelog__more.is-open .af-changelog__more-icon {
  transform: rotate(180deg);
}
.af-changelog__row {
  display: grid;
  grid-template-columns: 88px 1fr 90px;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 20px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--white-pure);
  max-height: 300px;
  overflow: hidden;
  opacity: 1;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease, background 0.15s;
}
.af-changelog__row + .af-changelog__row { margin-top: 10px; }
.af-changelog__row:hover { background: var(--bg); }

.af-changelog__type {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  width: 88px;
  padding-top: 2px;
}
.af-changelog__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.af-changelog__row--new     .af-changelog__dot { background: #22c55e; }
.af-changelog__row--update  .af-changelog__dot { background: #eab308; }
.af-changelog__row--removed .af-changelog__dot { background: #ef4444; }
.af-changelog__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.af-changelog__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.af-changelog__offer {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}
.af-changelog__logo {
  height: 20px;
  width: auto;
  max-width: 64px;
  object-fit: contain;
}
.af-changelog__initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 20px;
  background: var(--bg);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
}
.af-changelog__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.af-changelog__data {
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--bg);
  padding: 1px 7px;
  border-radius: 20px;
  white-space: nowrap;
  text-align: center;
}
.af-changelog__price {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.af-changelog__period {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.78rem;
}
.af-changelog__chips {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.af-changelog__chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.af-changelog__chip--good { background: #dcfce7; color: #15803d; }
.af-changelog__chip--bad  { background: #fee2e2; color: #b91c1c; }

.af-changelog__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 6px;
  padding-top: 2px;
}
.af-changelog__time {
  font-size: 0.75rem;
  color: var(--muted-light);
  white-space: nowrap;
}
.af-changelog__cta {
  font-size: 0.78rem;
  font-weight: 600;
  color: #0f172a;
  background: var(--accent);
  padding: 3px 10px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.af-changelog__cta:hover { opacity: 0.85; }
.dark .af-changelog__chip--good { background: #14532d; color: #86efac; }
.dark .af-changelog__chip--bad  { background: #7f1d1d; color: #fca5a5; }

@media (max-width: 640px) {
  .af-changelog__type { width: 72px; }
  .af-changelog__row  { padding: 12px 14px; gap: 12px; }
  .af-changelog__name { display: none; }
}
@media (max-width: 480px) {
  .af-changelog__name { display: none; }
  .af-changelog__row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    row-gap: 8px;
  }
  .af-changelog__type {
    grid-column: 1;
    grid-row: 1;
    width: auto;
    padding-top: 0;
  }
  .af-changelog__right {
    grid-column: 2;
    grid-row: 1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    padding-top: 0;
  }
  .af-changelog__cta { display: none; }
  .af-changelog__main {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

.activity-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
}

.activity-footer__social {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.activity-footer__social .newsletter-social {
  margin-top: 0;
  justify-content: flex-start;
}

.activity-footer__intro {
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
  margin: 0;
}

.activity-footer__links {
  display: flex;
  gap: 8px;
}

.activity-footer__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.activity-footer__btn:hover { opacity: 0.85; }

.activity-footer__btn--telegram,
.activity-footer__btn--twitter {
  background: var(--text-secondary, #4b5563);
  color: #fff;
}
.activity-footer__btn--telegram:hover,
.activity-footer__btn--twitter:hover {
  background: var(--text);
}

@media (max-width: 640px) {
  .activity-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .activity-footer__social {
    flex-direction: column;
    align-items: center;
  }
  .activity-footer__social .newsletter-social {
    justify-content: center;
  }
  .activity-footer__links {
    justify-content: center;
  }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .offers-table { font-size: 0.84rem; }
  .offers-table th, .offers-table td { padding: 12px 14px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .avantages-grid { grid-template-columns: repeat(2, 1fr); }
  .actualites-scroll .news-card {
    flex-basis: calc((100% - 20px) / 2);
  }
  .home-shortcuts__grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 640px) {
  .hero { padding: 100px 0 48px; }
  .hero h1 { font-size: 2.2rem; margin-bottom: 12px; }
  .hero p { font-size: 0.95rem; margin-bottom: 28px; }
  .hero-trust { margin-top: 28px; gap: 10px; }
  .hero-ctas { gap: 12px; }
  .btn-hero { font-size: 1rem; padding: 12px 16px; }
  .actualites-scroll-wrap { padding: 0; }
  .actualites-scroll-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 12px;
    width: 30px;
    pointer-events: none;
    background: linear-gradient(to right, transparent, var(--bg));
    z-index: 1;
  }
  .actualites-scroll {
    gap: 16px;
  }
  .actualites-scroll .news-card {
    flex: 0 0 80%;
    max-width: 320px;
  }
  .actualites-btn {
    display: none;
  }
  .guides-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    gap: 16px;
    padding: 6px 0 12px;
    scrollbar-width: none;
  }
  .guides-grid::-webkit-scrollbar { display: none; }
  .guides-grid > * {
    flex: 0 0 80%;
    max-width: 320px;
    scroll-snap-align: start;
  }
  .offers-table .desktop-only { display: none; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-stat-value { font-size: 2.2rem; }
  .trust-stat { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .avantages-grid { grid-template-columns: 1fr; }
  .home-shortcuts__list { grid-template-columns: 1fr; }
}
