/* ============================================================
   PAGE D'ACCUEIL — styles propres à index.php
   (le design system partagé reste dans css/accueil.css)
   ============================================================ */

/* Conteneur avec marges latérales confortables, utilisé pour toutes
   les sections de la page d'accueil (sinon le contenu va jusqu'aux
   bords de l'écran sur les grands écrans). */
.wrap {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 50px;
  box-sizing: border-box;
}

@media (max-width: 700px) {
  .wrap { padding: 0 24px; }
}

/* ============================================================
   === APPARITION AU DÉFILEMENT
   ============================================================ */
html.js .rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s, transform 0.7s;
}

html.js .rv.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.js .rv {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   === BANNIÈRE D'ALERTE
   ============================================================ */
/* Le header n'est plus fixe : la bannière suit naturellement juste
   en dessous, pas besoin de décalage. */
.home-alert {
  background: linear-gradient(90deg, #8a2a1b, var(--c-danger));
  font-size: 14px;
}

.home-alert + .hero { margin-top: 20px; }

.home-alert .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 1850px;
  margin: 0 auto;
  padding: 10px 30px;
}

.home-alert svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
  flex: none;
}

.home-alert p {
  margin: 0;
  color: #fff;
}

.home-alert a {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 5px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.home-alert a:hover { background: rgba(255, 255, 255, 0.32); }

/* ============================================================
   === SECTIONS GÉNÉRIQUES
   ============================================================ */
.home-section { padding-top: 70px; padding-bottom: 10px; }

.home-section-head {
  text-align: center;
  margin-bottom: 40px;
}

.home-section-head .eyebrow { justify-content: center; }

.home-section-head h2 {
  font-size: clamp(1.7em, 3.5vw, 2.3em);
  margin: 10px 0 0;
}

.home-section-head p {
  color: var(--c-text-muted);
  margin: 8px 0 0;
}

/* ============================================================
   === ACCÈS RAPIDES
   ============================================================ */
.home-quick {
  margin-top: -36px;
  position: relative;
  z-index: 3;
}

.home-quick .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.home-qt {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: var(--c-text);
  transition: transform 0.25s var(--ease), border-color 0.25s ease;
}

.home-qt:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 112, 58, 0.4);
}

.home-qt .home-ic {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(217, 112, 58, 0.14);
  color: var(--c-accent);
  flex: none;
}

.home-qt .home-ic svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-qt b { display: block; font-size: 1rem; }
.home-qt span { font-size: 0.82rem; color: var(--c-text-muted); }

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

@media (max-width: 520px) {
  .home-quick .grid { grid-template-columns: 1fr; }
}

/* ============================================================
   === DERNIÈRES ACTUALITÉS
   ============================================================ */
.home-news {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  margin-top: 10px;
}

.home-nw {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  color: var(--c-text);
  transition: transform 0.3s ease;
}

.home-nw:hover { transform: translateY(-4px); }

.home-nw .home-im {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.home-nw .home-im img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.home-nw:hover .home-im img { transform: scale(1.05); }

.home-nw::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(22, 19, 15, 0.96));
}

.home-nw .home-tx {
  position: relative;
  z-index: 2;
  padding: 22px;
}

.home-nw .home-date {
  font-size: 13px;
  color: var(--c-accent);
  font-weight: 600;
}

.home-nw h3 {
  font-size: 1.15rem;
  margin: 4px 0 0;
  line-height: 1.25;
}

.home-nw p {
  font-size: 0.88rem;
  color: var(--c-text-muted);
  margin: 6px 0 0;
}

.home-nw.big { grid-row: span 2; min-height: 460px; }
.home-nw.big h3 { font-size: 1.6rem; }

.home-news-col { display: grid; gap: 18px; }

.home-center { text-align: center; margin-top: 30px; }

@media (max-width: 820px) {
  .home-news { grid-template-columns: 1fr; }
  .home-nw.big { min-height: 320px; }
}

/* ============================================================
   === CONCOURS + CARTE
   ============================================================ */
.home-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 10px;
}

.home-box {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.home-box h3 { font-size: 1.4rem; margin: 10px 0 8px; }
.home-box > p { color: var(--c-text-muted); }

.home-date-row {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 22px 0;
}

.home-cal {
  width: 72px;
  height: 78px;
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, var(--c-accent), var(--c-accent-2));
  color: var(--c-accent-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  line-height: 1;
  flex: none;
}

.home-cal b { font-size: 1.7rem; }
.home-cal span { font-size: 11px; text-transform: uppercase; margin-top: 4px; }

.home-map {
  display: block;
  height: 190px;
  border-radius: var(--radius-md);
  margin: 20px 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(217, 112, 58, 0.35) 0 8px, transparent 9px),
    radial-gradient(circle at 62% 58%, rgba(255, 90, 106, 0.55) 0 8px, transparent 9px),
    radial-gradient(circle at 78% 30%, rgba(184, 84, 42, 0.55) 0 8px, transparent 9px),
    linear-gradient(135deg, var(--c-surface-2), var(--c-bg-soft));
  position: relative;
  overflow: hidden;
}

.home-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--c-text-muted);
}

.home-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

@media (max-width: 820px) {
  .home-duo { grid-template-columns: 1fr; }
}

/* ============================================================
   === PARTENAIRES
   ============================================================ */
.home-partners {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.home-partners a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.home-partners a:hover {
  border-color: rgba(217, 112, 58, 0.4);
  transform: translateY(-3px);
}

.home-partners img {
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

@media (max-width: 480px) {
  .home-partners {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .home-partners a { padding: 8px 6px; }

  .home-partners img {
    height: 30px;
    max-width: 70px;
  }
}
