@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Lora:wght@500;600;700&display=swap');

:root {
  --als-accent:  #c8920a;
  --als-navy:    #001D41;
  --als-border:  #e4e8ef;
  --als-ff-ui:   'Inter', system-ui, sans-serif;
  --als-ff-img:  'Lora', Georgia, serif;
}

/* ── Wrapper ─────────────────────────────────────────────── */
.als-wrap {
  font-family: var(--als-ff-ui);
  max-width: 1300px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0;
}

/* ── En-tête ─────────────────────────────────────────────── */
.als-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--als-accent);
}
.als-header-bar {
  width: 4px; height: 22px;
  background: var(--als-accent);
  flex-shrink: 0; border-radius: 1px;
}
.als-header h2 {
  font-size: 12px; font-weight: 700;
  color: var(--als-accent);
  margin: 0; text-transform: uppercase; letter-spacing: 2.5px;
}
.als-header-line { display: none; }

/* ── Grille 32/68 ────────────────────────────────────────── */
.als-grid {
  display: grid;
  grid-template-columns: 32fr 68fr;
  height: 520px;
  border: 1px solid var(--als-border);
  overflow: hidden;
  box-shadow: 0 4px 28px rgba(0,29,65,0.13);
  border-radius: 4px;
}

/* ── Colonne gauche ──────────────────────────────────────── */
.als-left {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--als-border);
  background: #fff;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}
.als-left::-webkit-scrollbar { width: 3px; }
.als-left::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }
.als-left-header { display: none; }

/* ── Items — flex:1 pour remplir toute la hauteur ────────── */
.als-item {
  flex: 1 1 0;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--als-border);
  cursor: pointer;
  transition: background 0.15s ease;
  min-height: 72px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  background: #fff;
}
.als-item:last-child  { border-bottom: none; }
.als-item + .als-item { border-top: none; }
.als-item:hover       { background: #f7f8fa; }
.als-item.active      { background: #f3f6fb; }

.als-item-indicator {
  width: 3px; min-width: 3px; flex-shrink: 0;
  background: transparent;
  transition: background 0.15s; align-self: stretch;
}
.als-item.active .als-item-indicator             { background: var(--als-accent); }
.als-item:hover:not(.active) .als-item-indicator { background: #ddd; }

/* Corps item */
.als-item-body {
  padding: 10px 14px 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;  /* badge toujours en haut */
  gap: 6px;
  overflow: hidden;
  width: 100%;
}

/* ── Badge date — pill vert-gris, texte noir toujours ─────── */
.als-item-date {
  display: inline-block;
  font-family: var(--als-ff-ui);
  font-size: 10.5px;
  font-weight: 600;
  color: #111;
  background: #d1e4e3;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.2px;
  align-self: flex-start;
  flex-shrink: 0;
}

.als-item-cat { display: none; }

/* ── Titre liste — noir, visible, 2 lignes max ───────────── */
.als-item-title {
  font-family: var(--als-ff-ui);
  font-size: 14px;
  font-weight: 400;
  color: #1a1a2e;
  line-height: 1.55;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
  text-decoration: none;
  transition: color 0.15s;
  flex-shrink: 0;
}
.als-item:hover .als-item-title  { color: var(--als-accent); text-decoration: underline; text-underline-offset: 3px; }
.als-item.active .als-item-title { color: var(--als-accent); font-weight: 600; }

/* ── Barre de progression ────────────────────────────────── */
.als-item-progress {
  position: absolute; bottom: 0; left: 3px; right: 0;
  height: 2px; overflow: hidden;
}
.als-item-progress-bar {
  height: 100%; width: 0%;
  background: var(--als-accent); transition: none;
}
.als-item.active .als-item-progress-bar.running {
  width: 100%; transition: width 5s linear;
}

/* ── Colonne droite ──────────────────────────────────────── */
.als-right {
  position: relative;
  height: 520px;
  background: var(--als-navy);
  overflow: hidden;
  transition: opacity 0.22s ease;
}

/* ── Image de fond ───────────────────────────────────────── */
.als-right > div:first-child {
  transition: transform 0.7s ease;
}
.als-right:hover > div:first-child {
  transform: scale(1.03);
}

/* Dégradé bas — teal ANEAQ vers transparent, comme référence */
.als-img-overlay-gradient {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 20%;
  top: auto;
  background: linear-gradient(
    to top,
    rgba(14,116,144,1.00)  0%,
    rgba(14,116,144,0.97)  20%,
    rgba(14,116,144,0.80)  55%,
    rgba(14,116,144,0.30)  82%,
    transparent            100%
  );
  pointer-events: none;
}

/* Bande bas — date + titre CENTRÉ */
.als-img-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  pointer-events: none;
}
.als-img-band {
  padding: 12px 48px 26px 48px;
  background: transparent;
  border-top: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: auto;
  width: 100%;
  box-sizing: border-box;
}

/* Badge date image — doré centré, texte blanc */
.als-img-date {
  display: inline-block;
  font-family: var(--als-ff-ui);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--als-accent);
  padding: 4px 18px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.20);
  text-align: center;
}

/* Titre image — BLANC centré majuscules sur dégradé teal */
.als-img-title-overlay {
  font-family: var(--als-ff-ui);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff !important;
  line-height: 1.45;
  margin: 0 auto;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
  transition: color 0.15s;
  word-break: break-word;
  width: 100%;
  text-shadow: 0 1px 6px rgba(0,0,0,0.15);
}
.als-img-title-overlay:hover { color: #f5d060 !important; }

/* ── Flèches latérales ───────────────────────────────────── */
.als-nav-left,
.als-nav-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
}
.als-nav-left  { left: 12px; }
.als-nav-right { right: 12px; }

.als-nav-btn {
  width: 38px; height: 38px; border: none;
  background: rgba(255,255,255,0.22);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #fff;
  font-size: 22px; font-weight: 300; line-height: 1;
  box-shadow: 0 2px 10px rgba(0,0,0,0.22);
  transition: background 0.15s, transform 0.12s;
  user-select: none;
  backdrop-filter: blur(4px);
}
.als-nav-btn:hover { background: rgba(255,255,255,0.45); transform: scale(1.08); }

/* Masquer footer bas (inutilisé) */
.als-img-footer { display: none; }
.als-feat-body  { display: none; }

/* ── Pied de section ─────────────────────────────────────── */
.als-footer {
  display: flex; justify-content: flex-end; margin-top: 10px;
}
.als-all-link {
  font-size: 13px; font-weight: 600;
  color: var(--als-accent);
  text-decoration: underline; text-underline-offset: 3px;
  display: inline-flex; align-items: center; gap: 5px;
  transition: color 0.15s;
}
.als-all-link:hover { color: #8a6208; }

/* ── MOBILE ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .als-wrap { padding: 0; }
  .als-grid {
    grid-template-columns: 1fr;
    height: auto;
    border: none;
    box-shadow: none;
    overflow: visible;
  }
  .als-right { order: -1; height: auto; min-height: 0; }

  .als-mobile-carousel {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    touch-action: pan-y;
  }
  .als-mobile-track {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    transition: transform 0.35s ease;
    will-change: transform;
  }
  .als-mobile-slide {
    flex: 0 0 100%;
    width: 100%;
    position: relative;
    aspect-ratio: 16/9;
    min-height: 240px;
    overflow: hidden;
    background: var(--als-navy);
    display: block;
    flex-shrink: 0;
  }
  /* Image de fond mobile — couvre toute la slide */
  .als-mobile-slide > div:first-child {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
  }
  .als-img-band {
    padding: 8px 14px 10px !important;
    gap: 5px !important;
  }
  .als-img-date {
    font-size: 10px !important;
    padding: 2px 10px !important;
  }
  .als-img-title-overlay {
    font-size: 13px !important;
    -webkit-line-clamp: 2 !important;
  }

  .als-nav-left, .als-nav-right { display: none; }

  .als-mobile-dots {
    display: flex; justify-content: center;
    gap: 6px; padding: 10px 0 6px; background: #fff;
  }
  .als-mobile-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #ddd;
    transition: background 0.2s, transform 0.2s; cursor: pointer;
  }
  .als-mobile-dot.active { background: var(--als-accent); transform: scale(1.3); }

  .als-left {
    border-right: none;
    border-top: 1px solid var(--als-border);
    order: 1; overflow-y: auto; max-height: none;
  }
  .als-item { flex: 0 0 auto; min-height: 70px; }
  .als-item-title { font-size: 13px; }
  .als-footer { padding: 0 1rem; }
}
