/* ==========================================================
   Avantages La Libre : accès rapides, étiquettes, maquettes
   Complète style.css (socle commun avec le tuto journal numérique)
   ========================================================== */

/* ---------- Hero : deux liens d'ancre à la place des onglets ---------- */

.hero__lead strong { color: #fff; }
.tabs--links .tabs__btn { text-decoration: none; display: inline-flex; align-items: center; }
.tabs--links .tabs__btn.is-active { background: #fff; box-shadow: 0 2px 8px rgb(6 30 77 / .25); }
.tabs--links .tabs__btn:not(.is-active):hover { color: #fff; background: rgb(255 255 255 / .12); }

/* ---------- Étiquettes ---------- */

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  padding: 5px 8px;
  border-radius: var(--radius);
  white-space: nowrap;
}
.tag--abo { background: var(--pay); color: var(--pay-ink); }
.tag--compte { background: var(--magenta-100); color: var(--magenta-700); }
.tag--libre { background: var(--ink-100); color: var(--ink-600); }

/* ---------- Accès rapides ---------- */

.acces { padding-top: 56px; }

.acces__title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 36px;
  line-height: 1.15;
  color: var(--marine);
  margin: 0 0 12px;
}

.acces__lead { font-size: 20px; color: var(--ink-600); max-width: 60ch; margin: 0 0 24px; }

.legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 0;
  margin: 0 0 32px;
  font-size: 15px;
  color: var(--ink-600);
}
.legend .tag { margin-right: 6px; }

.tiles {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0;
  margin: 0;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  padding: 24px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  color: var(--ink);
  text-decoration: none;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease), transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.tile:hover, .tile:active { background: var(--magenta); color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-4); }
.tile:hover .tile__name, .tile:active .tile__name { color: #fff; }
.tile:hover .tile__desc, .tile:active .tile__desc { color: rgb(255 255 255 / .88); }
.tile:hover .tag--compte, .tile:hover .tag--libre, .tile:active .tag--compte, .tile:active .tag--libre { background: rgb(255 255 255 / .18); color: #fff; }
.tile:focus-visible { outline: 0; box-shadow: var(--focus); }

.tile__ic {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--magenta-50);
  color: var(--magenta);
  font-size: 20px;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.tile:hover .tile__ic, .tile:active .tile__ic { background: #fff; color: var(--magenta); }

.tile__body { display: block; flex: 1; }
.tile__name {
  transition: color var(--duration) var(--ease);
  display: block;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.2;
  color: var(--marine);
  margin-bottom: 6px;
}
.tile__desc { display: block; font-size: 15px; line-height: 1.5; color: var(--ink-600); }
.tile .tag { position: absolute; top: 24px; right: 24px; }

/* ---------- Maquettes : barre des rubriques ---------- */

.site__rubs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 7px 14px;
  border-bottom: 1px solid var(--ink-200);
  font-size: 7.5px;
  font-weight: 600;
  color: var(--graphite);
  white-space: nowrap;
  overflow: hidden;
}
.site__rubs i { color: var(--magenta); font-size: 8px; }
.site__rubs span { position: relative; padding: 3px 5px; border-radius: 3px; }
.site__rubs .is-target { background: var(--magenta); color: #fff; }

/* ---------- Maquettes : compte gratuit / abonné ---------- */

.compare { display: grid; gap: 16px; max-width: 440px; margin-inline: auto; }
.compare__row {
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.compare__row--abo { box-shadow: 0 0 0 2px var(--pay), var(--shadow-4); }
.compare__label { display: block; padding: 12px 16px 10px; }
.compare .site__bar { border-radius: 0; }
.site__cta--on { animation: ctaOn 2.4s var(--ease) infinite; }
@keyframes ctaOn {
  0%, 100% { box-shadow: 0 0 0 0 rgb(242 201 61 / .9); }
  50% { box-shadow: 0 0 0 6px rgb(242 201 61 / 0); }
}
.compare__list { list-style: none; padding: 12px 16px 14px; margin: 0; font-size: 14px; line-height: 1.5; color: var(--graphite); }
.compare__list li { display: flex; gap: 8px; align-items: baseline; }
.compare__list li + li { margin-top: 4px; }
.compare__list i { color: #1F8A4C; font-size: 12px; width: 14px; }
.compare__list .is-off { color: var(--ink-400); }
.compare__list .is-off i { color: var(--ink-300); }

/* ---------- Maquettes : page Avantages ---------- */

.avpage { padding: 12px 16px 16px; }
.avpage__title { display: block; font-family: var(--serif); font-weight: 800; font-size: 11px; color: var(--marine); margin-bottom: 8px; }
.avpage__title--rule { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--ink-200); color: var(--magenta); }
.avpage__tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.avpage__tiles span {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 8px 2px 6px;
  background: var(--magenta-50);
  border-radius: 6px;
  color: var(--magenta);
  font-size: 11px;
}
.avpage__tiles small { font-size: 6px; font-weight: 600; color: var(--graphite); }
.avpage__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.avpage__cards .sk { height: 48px; border-radius: 4px; background: linear-gradient(135deg, var(--ink-200), var(--ink-100)); }

/* ---------- Clin d'oeil ---------- */

.toast {
  position: fixed;
  left: 50%; bottom: 32px;
  z-index: 60;
  margin: 0;
  padding: 14px 22px;
  background: var(--marine);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: var(--shadow-4);
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.is-on { animation: toastIn 4.2s var(--ease) both; }
@keyframes toastIn {
  0% { opacity: 0; transform: translate(-50%, 16px); }
  8%, 88% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 16px); }
}

/* ---------- Responsive ---------- */

@media (max-width: 991.98px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767.98px) {
  .acces { padding-top: 40px; }
  .acces__title { font-size: 30px; }
  .acces__lead { font-size: 18px; }
  .tabs--links .tabs__btn { padding: 12px 18px; font-size: 16px; }

  /* Sur téléphone : une liste de lignes, plus rapide à parcourir */
  .tiles { grid-template-columns: 1fr; gap: 10px; }
  .tile { flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; }
  .tile__ic { flex: none; width: 44px; height: 44px; }
  .tile__name { font-size: 18px; margin-bottom: 2px; padding-right: 0; }
  .tile__desc { font-size: 14px; }
  .tile .tag { position: static; align-self: flex-start; font-size: 11px; }
  .tile__body { min-width: 0; }

  #mode-emploi > .acces__title { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .site__cta--on, .toast.is-on { animation: none; }
  .tile, .tile__ic { transition: none; }
}
