/* ============================================================
   index.css — Page d'accueil v3
   ============================================================ */

/* ── HERO ── */
.hero {
  background: url("/assets/images/catho.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
  padding: calc(5rem + var(--navbar-h, 64px)) 0 4rem;
  position: relative;
  overflow: hidden;
  animation: scrollHero 60s linear infinite;
}

@keyframes scrollHero {
  0%   { background-position: center top; }
  50%  { background-position: center bottom; }
  100% { background-position: center top; }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.50);
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--jaune);
  z-index: 1;
}

.hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-titre);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--jaune);
  margin-bottom: .875rem;
}
.hero__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--blanc);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}
.hero__desc {
  color: rgba(255,255,255,.85);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 520px;
}
.hero__actions { display: flex; gap: .875rem; flex-wrap: wrap; }

.hero__info-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(4px);
}
.hero__info-card h3 {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blanc);
  margin-bottom: 1rem;
}
.info-row {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .625rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: .875rem;
}
.info-row:last-child { border-bottom: 0; padding-bottom: 0; }
.info-row__label { color: rgba(255,255,255,.5); flex-shrink: 0; width: 80px; }
.info-row__val   { color: rgba(255,255,255,.9); font-weight: 500; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__side  { display: none; }
}
@media (max-width: 600px) {
  .hero { padding-top: calc(3rem + var(--navbar-h, 64px)); padding-bottom: 2.5rem; }
}

/* ── ACCÈS RAPIDE ── */
.quick-access {
  border-bottom: 1px solid var(--gris-20);
  background: var(--blanc);
}
.quick-access__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.qa-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1.5rem .75rem;
  text-align: center;
  border-right: 1px solid var(--gris-20);
  text-decoration: none;
  color: var(--noir);
  transition: background var(--tr);
}
.qa-item:last-child { border-right: 0; }
.qa-item:hover { background: var(--gris-10); }
.qa-item__icon {
  width: 44px; height: 44px;
  background: var(--gris-10);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: background var(--tr);
}
.qa-item:hover .qa-item__icon { background: var(--jaune); }
.qa-item__label {
  font-family: var(--font-titre);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--gris-80);
}
@media (max-width: 900px) { .quick-access__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 500px) { .quick-access__grid { grid-template-columns: repeat(2, 1fr); } }

/* ── À LA UNE ── */
.featured-article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--gris-20);
  border-radius: var(--radius-lg);
  overflow: hidden;
  align-items: stretch;
  margin-bottom: 2rem;
}
.featured-article__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: var(--gris-20);
  min-height: 200px;
}
.featured-article__img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: var(--gris-10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gris-40);
  font-size: 3rem;
}
.featured-article__body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-article__tag {
  display: inline-block;
  font-family: var(--font-titre);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--jaune);
  color: var(--noir);
  padding: .22rem .6rem;
  border-radius: 2px;
  margin-bottom: .875rem;
}
.featured-article__title {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  margin-bottom: .75rem;
  line-height: 1.2;
}
.featured-article__excerpt {
  color: var(--gris-80);
  margin-bottom: 1.5rem;
  line-height: 1.65;
  font-size: .9375rem;
}
@media (max-width: 700px) {
  .featured-article { grid-template-columns: 1fr; }
  .featured-article__img { height: 220px; }
}

/* ── ÉVÉNEMENTS SIDEBAR ── */
.event-mini {
  display: flex;
  align-items: stretch;
  gap: .875rem;
  padding: .875rem 0;
  border-bottom: 1px solid var(--gris-20);
}
.event-mini:last-child { border-bottom: 0; }
.event-mini__date {
  background: var(--noir);
  color: var(--blanc);
  min-width: 48px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: .375rem .25rem;
  flex-shrink: 0;
  text-align: center;
}
.event-mini__day { font-family: var(--font-titre); font-size: 1.25rem; font-weight: 700; line-height: 1; }
.event-mini__mon { font-size: .625rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: .1rem; }
.event-mini__title { font-family: var(--font-titre); font-size: .875rem; font-weight: 600; color: var(--noir); line-height: 1.3; margin-bottom: .25rem; }
.event-mini__lieu  { font-size: var(--petit); color: var(--gris-60); }

/* ── HOME LAYOUT ── */
.home-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) { .home-layout { grid-template-columns: 1fr; } }

/* ── PANNEAU POCKET ── */
.panneau-pocket__frame iframe {
  display: block;
  width: 100%;
  min-height: 440px;
  border: none;
}

/* ════════════════════════════════════════════════════
   BANDEAU ALERTES
════════════════════════════════════════════════════ */
#alert-strip {
  position: fixed;
  top: var(--navbar-h, 64px);
  left: 0; right: 0;
  z-index: 500;
  height: 38px;
  display: none;
  overflow: hidden;
}
#alert-strip.visible { display: block; }

.as-slot {
  position: relative;
  width: 100%;
  height: 38px;
  overflow: hidden;
}

.as-band {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 38px;
  display: flex;
  align-items: center;
  transform: translateX(100%);
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.as-band.active    { transform: translateX(0); }
.as-band.exit-left { transform: translateX(-100%); }

.as-band.level-urgent      { background: #C8102E; color: #fff; }
.as-band.level-warning     { background: #F5C518; color: #111; }
.as-band.level-info        { background: #1A56DB; color: #fff; }
.as-band.level-maintenance { background: #444444; color: #fff; }

.as-icon { flex-shrink: 0; padding: 0 .6rem 0 .9rem; font-size: .95rem; line-height: 1; }
.as-track { flex: 1; overflow: hidden; height: 100%; position: relative; display: flex; align-items: center; }
.as-ticker {
  position: absolute;
  white-space: nowrap;
  font-family: 'Montserrat', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  will-change: transform;
}
.as-label { font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .72; margin-right: .4rem; }
.as-sep { display: inline-block; padding: 0 2.5rem; opacity: .35; }
.as-close {
  flex-shrink: 0;
  display: flex; align-items: center;
  padding: 0 .875rem;
  height: 100%;
  background: none; border: none; cursor: pointer;
  color: inherit; opacity: .65; font-size: 1rem;
  transition: opacity .15s;
}
.as-close:hover { opacity: 1; }

/* Quand une alerte est active, pousser le contenu */
body.has-alert { padding-top: calc(var(--navbar-h, 64px) + 38px); }
body.has-alert .hero { padding-top: calc(5rem + var(--navbar-h, 64px) + 38px); }