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

/*
 * Police choisie :
 *  - Inter       : titres liste + UI (lisibilité optimale, moderne, institutionnel)
 *  - Lora        : titre dans l'image (serif élégant, bonne lisibilité sur fond sombre)
 */

:root {
  --als-accent:    #CDBA68;
  --als-gold-mid:  #ac9d5d;
  --als-dark-navy: #001D41;
  --als-date-img:  #8CBD22;
  --als-border:    #e4e8ef;
  --als-height:    530px;
  --als-ff-ui:     'Inter', system-ui, sans-serif;
  --als-ff-img:    'Lora', Georgia, serif;
}

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

/* ── En-tête ─────────────────────────────────────────────── */
.als-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
  padding-bottom: 8px;
  border-bottom: 2px solid #CDBA68;
}
.als-header-bar { width: 4px; height: 22px; background: #CDBA68; flex-shrink: 0; }
.als-header h2 {
  font-family: var(--als-ff-ui);
  font-size: 12px;
  font-weight: 700;
  color: #CDBA68;
  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: var(--als-height);
  border: 1px solid var(--als-border);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,29,65,0.07);
}

/* ── Colonne gauche ──────────────────────────────────────── */
.als-left {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--als-border);
  background: #fff;
  overflow: hidden;
}
.als-left-header { display: none; }

/* ── Items ───────────────────────────────────────────────── */
.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: 0;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  background: #fff;
}
.als-item:last-child  { border-bottom: none; }
.als-item:hover       { background: #faf8f2; }
.als-item.active      { background: #fdf9ef; }

.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: #CDBA68; }
.als-item:hover:not(.active) .als-item-indicator { background: #e8ddb0; }

.als-item-body {
  padding: 0 18px 0 15px;
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

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

/* ── Titre liste — NOIR, Inter, professionnel ────────────── */
.als-item-title {
  font-family: var(--als-ff-ui);
  font-size: 15px;
  font-weight: 500;
  color: #111111;          /* Noir franc */
  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;
  letter-spacing: -0.1px;
}
.als-item:hover .als-item-title  { color: #8a7840; }
.als-item.active .als-item-title { color: #ac9d5d; 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: #CDBA68;
  transition: none;
}
.als-item.active .als-item-progress-bar.running {
  width: 100%;
  transition: width 5s linear;
}

/* ── Colonne droite ──────────────────────────────────────── */
.als-right {
  display: flex;
  flex-direction: column;
  background: #001D41;
  overflow: hidden;
  transition: opacity 0.22s ease;
}
.als-img {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
  min-height: 0;
}
.als-img-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s ease;
}
.als-right:hover .als-img-bg { transform: scale(1.03); }
.als-img-shapes { position: absolute; inset: 0; overflow: hidden; }
.als-img-shapes svg { width: 100%; height: 100%; }
.als-img-tag   { display: none; }
.als-feat-body { display: none; }

/* Dégradé renforcé pour lisibilité du texte */
.als-img-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,8,20,0.92) 0%,
    rgba(0,8,20,0.22) 38%,
    transparent 65%
  );
}

/* Bande texte bas */
.als-img-content { position: absolute; bottom: 0; left: 0; right: 0; }
.als-img-band {
  padding: 18px 84px 22px 24px;
  background: rgba(0,22,50,0.52);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(205,186,104,0.25);
}
.als-img-date {
  font-family: var(--als-ff-ui);
  font-size: 10.5px;
  font-weight: 700;
  color: #8CBD22;
  letter-spacing: 1.2px;
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.als-img-title-overlay {
  font-family: var(--als-ff-img);   /* Lora serif */
  font-size: 21px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.42;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
  transition: color 0.15s;
  letter-spacing: 0.1px;
}
.als-img-title-overlay:hover { color: #e8d98a; }

/* Flèches rondes */
.als-img-footer { position: absolute; bottom: 20px; right: 18px; }
.als-nav { display: flex; gap: 7px; }
.als-nav-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255,255,255,0.88);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #001D41;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 10px rgba(0,0,0,0.28);
  transition: background 0.15s, transform 0.12s;
  user-select: none;
}
.als-nav-btn:hover { background: #fff; transform: scale(1.1); }

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

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .als-wrap { padding: 1.5rem 1rem 1rem; }
  :root { --als-height: auto; }
  .als-grid {
    grid-template-columns: 1fr;
    height: auto;
    box-shadow: none;
  }
  .als-left {
    overflow-y: auto;
    max-height: 300px;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
  }
  .als-item { flex: 0 0 auto; min-height: 64px; }
  .als-right { min-height: 380px; }
  .als-img   { min-height: 380px; }
  .als-img-title-overlay { font-size: 18px; }
}
