/* =========================================================
   EXPLORER HUB — Cartouches d'orientation (v2)
   ---------------------------------------------------------
   Étape 4 du plan §9 du CdC v3.

   v2 (22/05/2026) : le conteneur blanc et le hero sont
   désormais fournis par sections-v2.css (.v2-single*).
   Ce fichier ne style QUE :
     - le modificateur de hero --hub (couleur de fond)
     - la grille des 3 cartouches d'orientation
     - la phrase finale élégante
   Harmonisé aux jetons de design de custom.css.
   ========================================================= */

/* --- Variante de hero pour le hub (le hero de base vient de sections-v2.css) --- */

.v2-single__hero--hub {
  background: #eef1f8;  /* bleu très clair, écho de --color-accent */
}

/* --- Section englobant les cartouches --- */

.explorer-hub__gates-section {
  /* hérite du padding de .v2-single__section (sections-v2.css) */
}

/* --- Grille des 3 cartouches --- */

.explorer-hub__gates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 0.5rem;
}

/* --- Cartouche individuel --- */

.explorer-hub__gate {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-content, #ffffff);
  border-radius: var(--radius-soft, 10px);
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

a.explorer-hub__gate {
  text-decoration: none;
}

a.explorer-hub__gate:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.10);
  border-color: rgba(80, 108, 145, 0.3);
}

a.explorer-hub__gate:hover .explorer-hub__gate-title {
  color: var(--color-accent, #506c91);
}

a.explorer-hub__gate:hover .explorer-hub__gate-cta {
  color: var(--color-accent-warm, #8b6a4a);
}

a.explorer-hub__gate:hover .explorer-hub__gate-media img,
a.explorer-hub__gate:hover .explorer-hub__gate-placeholder {
  transform: scale(1.04);
}

/* --- État "à venir" (Personnalités V1) --- */

.explorer-hub__gate.is-coming-soon {
  cursor: not-allowed;
  opacity: 0.78;
  filter: saturate(0.55);
}

.explorer-hub__gate.is-coming-soon:hover {
  transform: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.07);
}

/* --- Zone image / placeholder --- */

.explorer-hub__gate-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f0ede5;
  overflow: hidden;
}

.explorer-hub__gate-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  display: block;
  transition: transform 0.4s ease;
}

/* Placeholder coloré + icône (en l'absence d'image), teintes alignées
   sur les accents du site : bleu (articles), vert (communes), brun (perso). */
.explorer-hub__gate-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
  background: linear-gradient(135deg, #dce4f0 0%, #c5d1e3 100%);
}

.explorer-hub__gate-placeholder--articles {
  background: linear-gradient(135deg, #dce4f0 0%, #c5d1e3 100%);
}

.explorer-hub__gate-placeholder--communes {
  background: linear-gradient(135deg, #dde9dc 0%, #bcd4b8 100%);
}

.explorer-hub__gate-placeholder--personnalites {
  background: linear-gradient(135deg, #ece1d5 0%, #d6c2aa 100%);
}

.explorer-hub__gate-icon {
  font-size: 3.6rem;
  opacity: 0.55;
}

/* --- Badge de comptage en surimpression --- */

.explorer-hub__gate-badge {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.68);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(3px);
}

.explorer-hub__gate-badge--coming {
  background: rgba(139, 106, 74, 0.85);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

/* --- Corps texte --- */

.explorer-hub__gate-body {
  padding: 1.2rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.65rem;
}

.explorer-hub__gate-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--color-accent, #506c91);
  margin: 0;
  line-height: 1.2;
  transition: color 0.2s ease;
}

.explorer-hub__gate-desc {
  font-size: 0.92rem;
  color: #5a5a5a;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.explorer-hub__gate-cta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-accent, #506c91);
  margin-top: auto;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.explorer-hub__gate-cta.is-disabled {
  color: #999;
  font-style: italic;
  font-weight: 500;
}

/* --- Phrase finale élégante --- */

.explorer-hub__final-note {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.18rem;
  text-align: center;
  color: #777;
  line-height: 1.6;
  max-width: 38rem;
  margin: 2.4rem auto 0;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.explorer-hub__final-note a {
  color: var(--color-accent, #506c91);
  text-decoration: none;
  border-bottom: 1px dotted rgba(80, 108, 145, 0.45);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.explorer-hub__final-note a:hover {
  color: var(--color-accent-warm, #8b6a4a);
  border-bottom-color: var(--color-accent-warm, #8b6a4a);
}

/* --- Responsive --- */

/* Tablette : 2 colonnes, Personnalités en bandeau bas pleine largeur */
@media (max-width: 900px) {
  .explorer-hub__gates {
    grid-template-columns: repeat(2, 1fr);
  }
  .explorer-hub__gate--personnalites {
    grid-column: 1 / -1;
  }
  .explorer-hub__gate--personnalites .explorer-hub__gate-media {
    aspect-ratio: 21 / 9;
  }
}

/* Mobile : 1 colonne */
@media (max-width: 600px) {
  .explorer-hub__gates {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
  .explorer-hub__gate--personnalites .explorer-hub__gate-media {
    aspect-ratio: 4 / 3;
  }
  .explorer-hub__final-note {
    font-size: 1.05rem;
  }
}

/* Préférence : pas d'animation */
@media (prefers-reduced-motion: reduce) {
  .explorer-hub__gate,
  .explorer-hub__gate-media img,
  .explorer-hub__gate-placeholder,
  .explorer-hub__gate-title,
  .explorer-hub__gate-cta {
    transition: none;
  }
  a.explorer-hub__gate:hover {
    transform: none;
  }
  a.explorer-hub__gate:hover .explorer-hub__gate-media img,
  a.explorer-hub__gate:hover .explorer-hub__gate-placeholder {
    transform: none;
  }
}
