/* ==========================================================================
   05-homepage.css - Styles spécifiques à la page d'accueil
   ========================================================================== */

/* ---- Hero ---- */
.tinderet-hero {
  position: relative;
  /* Pleine hauteur d'écran : la section suivante reste sous la ligne de flottaison */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #042b3d;
  /* Pleine largeur : sort du conteneur centré .ast-container (max-width) */
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.tinderet-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.tinderet-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Cadrage : montre la patinoire et les montagnes, évite le ciel vide */
  object-position: center 55%;
  opacity: 0.72;
  /* Filtre photo : légèrement froid, contraste renforcé - alpine winter mood */
  filter: saturate(0.65) brightness(0.78) contrast(1.08);
}

.tinderet-hero__overlay {
  position: absolute;
  inset: 0;
  /* Dégradé directionnel : sombre à gauche (lisibilité texte) → transparent droite */
  background: linear-gradient(
    105deg,
    rgba(4, 35, 50, 0.80) 0%,
    rgba(6, 70, 95, 0.55) 45%,
    rgba(0, 120, 160, 0.18) 100%
  );
  z-index: 1;
}

.tinderet-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--t-max-wide);
  margin: 0 auto;
  padding: var(--t-space-24) var(--t-gutter) var(--t-space-20);
  color: var(--t-white);
}

.tinderet-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--t-space-2);
  font-family: var(--t-font-heading);
  font-size: var(--t-font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--t-space-5);
  background: rgba(255,255,255,0.1);
  padding: var(--t-space-2) var(--t-space-4);
  border-radius: var(--t-radius-full);
  backdrop-filter: blur(8px);
}

.tinderet-hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--t-white);
  line-height: 1.1;
  margin-bottom: var(--t-space-6);
  max-width: 700px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.tinderet-hero__title span {
  color: #4ED4F2;
}

.tinderet-hero__subtitle {
  font-size: var(--t-font-size-lg);
  color: rgba(255,255,255,0.88);
  max-width: 560px;
  margin-bottom: var(--t-space-10);
  line-height: 1.6;
}

.tinderet-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--t-space-4);
  align-items: center;
}

.tinderet-hero__scroll {
  position: absolute;
  bottom: var(--t-space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.6);
  text-align: center;
  animation: tinderet-bounce 2s infinite;
}

.tinderet-hero__scroll svg {
  display: block;
  margin: 0 auto;
  width: 24px;
  height: 24px;
}

@keyframes tinderet-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ---- Section activités rapides ---- */
.tinderet-activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: var(--t-space-4);
}

/* ---- Section projet en bref ---- */
.tinderet-project-brief {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--t-space-16);
  align-items: center;
}

.tinderet-project-brief__content { }

.tinderet-project-brief__visual {
  border-radius: var(--t-radius-xl);
  overflow: hidden;
  box-shadow: var(--t-shadow-xl);
  background: var(--t-border);
}

.tinderet-project-brief__visual--inline {
  display: none;
}

.tinderet-project-brief__figure {
  margin: 0;
}

.tinderet-project-brief__visual img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.tinderet-project-brief__attribution {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  color: var(--t-text);
  opacity: 0.55;
  text-align: center;
}

.tinderet-project-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--t-space-6);
  margin-top: var(--t-space-8);
  padding-top: var(--t-space-8);
  border-top: 1px solid var(--t-border);
}

/* ---- Section infos clés (3 blocs) ---- */
.tinderet-key-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--t-space-8);
}

/* ---- Section bannière intermédiaire ---- */
.tinderet-banner {
  background: linear-gradient(135deg, var(--t-secondary) 0%, var(--t-secondary-dark) 100%);
  padding: var(--t-space-16) var(--t-gutter);
  text-align: center;
  color: var(--t-white);
}

.tinderet-banner__title {
  font-size: var(--t-font-size-2xl);
  color: var(--t-white);
  margin-bottom: var(--t-space-4);
}

.tinderet-banner__text {
  font-size: var(--t-font-size-md);
  color: rgba(255,255,255,0.88);
  max-width: 600px;
  margin: 0 auto var(--t-space-8);
}

/* ---- Grille news + events ---- */
.tinderet-news-events {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--t-space-12);
  align-items: start;
}

.tinderet-section-link {
  display: inline-flex;
  align-items: center;
  gap: var(--t-space-2);
  font-family: var(--t-font-heading);
  font-size: var(--t-font-size-sm);
  font-weight: 600;
  color: var(--t-primary-dark);
  text-decoration: none;
  margin-top: var(--t-space-6);
  transition: gap var(--t-transition-fast);
}
.tinderet-section-link:hover { gap: var(--t-space-3); }
.tinderet-section-link::after { content: '→'; }

/* Responsive */
@media (max-width: 900px) {
  .tinderet-project-brief {
    grid-template-columns: 1fr;
  }
  .tinderet-project-brief__visual:not(.tinderet-project-brief__visual--inline) {
    display: none;
  }
  .tinderet-project-brief__visual--inline {
    display: block;
    margin-bottom: var(--t-space-6);
  }
  .tinderet-key-features {
    grid-template-columns: 1fr;
  }
  .tinderet-news-events {
    grid-template-columns: 1fr;
  }
  .tinderet-project-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .tinderet-hero {
    min-height: 100vh;
    min-height: 100svh;
  }
  .tinderet-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .tinderet-project-stats {
    grid-template-columns: 1fr;
  }
}
