/* =====================================================================
   ACCUEIL.CSS - Styles propres à la page d'accueil (index.html)
   ===================================================================== */

/* ------------------------------------------------------------------ */
/* HERO                                                               */
/* ------------------------------------------------------------------ */
.home-hero {
  position: relative;
  background: var(--grad-hero);
  color: #fff;
}
.home-hero__grid {
  position: absolute; inset: 0; z-index: 3; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 40%, transparent 100%);
  pointer-events: none;
}
.home-hero__halo {
  position: absolute; border-radius: 50%; filter: blur(130px);
  z-index: 2; pointer-events: none;
}

/* Bandeau de photos en défilement continu avec fondu (fond du hero) */
.home-hero__stream {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; opacity: .24; pointer-events: none;
  /* Fondu vertical : le bandeau se dissout en haut et en bas */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 80%, transparent 100%);
}
.home-hero__stream-track {
  display: flex; height: 100%; width: max-content;
  animation: heroStream 80s linear infinite;
}
.home-hero__stream-track img {
  height: 100%; width: 26vw; min-width: 300px;
  object-fit: cover; object-position: center 22%;
  filter: grayscale(.3) contrast(1.05);
  /* Fondu horizontal : chaque photo s'estompe sur ses bords -> transition en fondu enchaîné */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 76%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 76%, transparent 100%);
}
@keyframes heroStream {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.home-hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, rgba(3,28,51,.94) 0%, rgba(0,41,77,.74) 48%, rgba(0,41,77,.5) 100%);
}
@media (prefers-reduced-motion: reduce) {
  .home-hero__stream-track { animation: none; }
}
.home-hero__halo--gold {
  width: 640px; height: 640px;
  background: rgba(212, 160, 23, 0.28);
  top: -12%; right: -8%;
}
.home-hero__halo--blue {
  width: 560px; height: 560px;
  background: rgba(0, 133, 202, 0.30);
  bottom: -18%; left: -10%;
}
.hero-gradient-text {
  background: linear-gradient(92deg, #FFD100 0%, #F5C400 40%, #D4A017 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-ministat {
  padding-left: .9rem;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}
.hero-ministat:first-child { border-left: none; padding-left: 0; }

.home-hero__scroll {
  position: absolute; left: 50%; bottom: 1.75rem; z-index: 5;
  transform: translateX(-50%);
  width: 44px; height: 44px; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  animation: scrollBounce 2s infinite;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.home-hero__scroll:hover { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
@media (max-width: 767px) { .home-hero__scroll { display: none; } }

/* ------------------------------------------------------------------ */
/* PILIERS                                                            */
/* ------------------------------------------------------------------ */
.pillar-card {
  position: relative; overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 87, 168, 0.10);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.pillar-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 160, 23, 0.5);
  box-shadow: 0 30px 55px -30px rgba(0, 41, 77, 0.45);
}
.pillar-num {
  position: absolute; top: -0.6rem; right: 0.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 8rem; font-weight: 700; line-height: 1;
  color: rgba(0, 87, 168, 0.05);
  transition: color .35s var(--ease);
  pointer-events: none;
}
.pillar-card:hover .pillar-num { color: rgba(212, 160, 23, 0.12); }
.pillar-icon {
  position: relative; z-index: 1;
  width: 3.75rem; height: 3.75rem; border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.75rem;
  box-shadow: 0 12px 24px -12px rgba(0, 41, 77, 0.5);
}
.pillar-card h3, .pillar-card p { position: relative; z-index: 1; }

/* ------------------------------------------------------------------ */
/* TIMELINE EXPRESS                                                   */
/* ------------------------------------------------------------------ */
.tl-express { position: relative; list-style: none; }

/* Mobile : verticale */
.tl-express {
  display: flex; flex-direction: column; gap: 2rem;
  padding-left: 1.75rem;
}
.tl-express::before {
  content: ''; position: absolute; top: 8px; bottom: 8px; left: 6px;
  width: 2px; background: linear-gradient(to bottom, var(--blue-100), var(--blue-100));
}
.tl-express__item { position: relative; display: flex; flex-direction: column; }
.tl-express__item .tl-dot { position: absolute; left: -1.75rem; top: 4px; }
.tl-express__year {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 700; color: var(--blue-900); line-height: 1.1;
}
.tl-express__label { font-size: .92rem; color: var(--slate-600); font-weight: 500; margin-top: .25rem; }
.tl-express__label--strong { color: var(--blue-700); font-weight: 700; }

/* Desktop : horizontale */
@media (min-width: 768px) {
  .tl-express {
    flex-direction: row; justify-content: space-between;
    gap: 1rem; padding-left: 0; padding-top: 2.75rem;
  }
  .tl-express::before {
    top: calc(2.75rem + 7px); bottom: auto; left: 0; right: 0;
    width: auto; height: 2px;
  }
  .tl-express__item { flex: 1; text-align: center; align-items: center; }
  .tl-express__item .tl-dot { position: absolute; left: 50%; top: -2.75rem; transform: translateX(-50%); }
  .tl-express__year { margin-top: .25rem; }
  .tl-express__label { max-width: 15rem; }
}

/* ------------------------------------------------------------------ */
/* PHOTOTHÈQUE (CARROUSEL)                                            */
/* ------------------------------------------------------------------ */
.carousel { position: relative; }
.carousel__viewport { overflow: hidden; border-radius: var(--radius); }
.carousel__track {
  display: flex; list-style: none;
  gap: 1.25rem;
  transition: transform .55s var(--ease);
  will-change: transform;
}
.carousel__slide {
  flex: 0 0 100%;      /* mobile : 1 par vue */
  min-width: 0;
}
.gal-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3; background: var(--blue-900);
}
.gal-card img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
  transition: transform .6s var(--ease);
}
.gal-card:hover img { transform: scale(1.05); }
.gal-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.5rem 1.25rem .95rem;
  font-size: .9rem; font-weight: 600; color: #fff;
  background: linear-gradient(to top, rgba(3,28,51,.9), rgba(3,28,51,.35) 60%, transparent);
}
.gal-card::after {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  pointer-events: none;
}

/* Boutons */
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5; width: 3rem; height: 3rem; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass-bg); backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
  color: var(--blue-700); cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.carousel__btn:hover { background: var(--blue-700); color: #fff; }
.carousel__btn--prev { left: -0.5rem; }
.carousel__btn--next { right: -0.5rem; }
.carousel__btn[disabled] { opacity: 0; pointer-events: none; }
@media (min-width: 1024px) {
  .carousel__btn--prev { left: -1.5rem; }
  .carousel__btn--next { right: -1.5rem; }
}

/* Points */
.carousel__dots {
  display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem;
  margin-top: 1.75rem;
}
.carousel__dot {
  width: 9px; height: 9px; border-radius: 9999px; border: none; padding: 0;
  background: var(--blue-100); cursor: pointer;
  transition: background .3s var(--ease), width .3s var(--ease);
}
.carousel__dot.active { background: var(--gold-500); width: 26px; }

/* Tablette : 2 par vue / Desktop : 3 par vue */
@media (min-width: 640px) {
  .carousel__slide { flex-basis: calc((100% - 1.25rem) / 2); }
}
@media (min-width: 1024px) {
  .carousel__slide { flex-basis: calc((100% - 2.5rem) / 3); }
}

/* ------------------------------------------------------------------ */
/* LIGHTBOX (agrandissement des photos du carrousel)                 */
/* ------------------------------------------------------------------ */
.gal-card { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 5vh 5vw;
  background: rgba(3, 28, 51, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: lbFade .3s var(--ease);
}
.lightbox[hidden] { display: none; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox__figure {
  margin: 0; max-width: min(1100px, 92vw); text-align: center;
  animation: lbZoom .35s var(--ease);
}
@keyframes lbZoom { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.lightbox__img {
  max-width: 100%; max-height: 78vh; width: auto; height: auto;
  border-radius: var(--radius); object-fit: contain;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7);
  background: var(--blue-950);
}
.lightbox__caption {
  margin-top: 1.1rem; color: #fff; font-weight: 600; font-size: 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.lightbox__close, .lightbox__nav {
  position: absolute; z-index: 2; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9999px; color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .26); }
.lightbox__close { top: 1.25rem; right: 1.25rem; width: 3rem; height: 3rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 3.25rem; height: 3.25rem; }
.lightbox__nav:hover { transform: translateY(-50%) scale(1.06); }
.lightbox__nav--prev { left: 1.25rem; }
.lightbox__nav--next { right: 1.25rem; }
@media (max-width: 640px) {
  .lightbox__nav { width: 2.75rem; height: 2.75rem; }
  .lightbox__nav--prev { left: .5rem; }
  .lightbox__nav--next { right: .5rem; }
  .lightbox__close { top: .75rem; right: .75rem; }
}
