:root {
  --home-green: #075c3b;
  --home-green-2: #0b7d4e;
  --home-green-dark: #033d29;
  --home-gold: #dfad2f;
  --home-soft: #f5f4ef;
  --home-ink: #17221d;
  --home-muted: #68736d;
  --home-border: rgba(7,92,59,.14);
  --home-shadow: 0 24px 60px rgba(20,42,31,.11);
}

.home-page {
  overflow: hidden;
  color: var(--home-ink);
  background: #fff;
}

.home-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  background: var(--home-green-dark);
}

.home-hero-video,
.home-hero-overlay {
  position: absolute;
  inset: 0;
}

.home-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s ease;
}

.home-hero-video.is-ready {
  opacity: 1;
}

.home-hero-overlay {
  background:
    radial-gradient(circle at 80% 20%, rgba(223,173,47,.18), transparent 30%),
    linear-gradient(90deg, rgba(2,43,28,.96), rgba(4,67,44,.79) 55%, rgba(4,67,44,.40));
}

.home-hero .container {
  z-index: 2;
}

.home-kicker,
.home-section-heading > span,
.home-admission-card > div > span,
.home-contact-cta > .container > span {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--home-gold);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.home-hero h1 {
  max-width: 900px;
  margin: 1rem 0 1.2rem;
  font-family: "Playfair Display", serif;
  font-size: clamp(3.5rem, 7vw, 6.6rem);
  line-height: .94;
  text-shadow: 0 10px 30px rgba(0,0,0,.22);
}

.home-hero-lead {
  max-width: 720px;
  color: rgba(255,255,255,.86);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.8;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.home-proof-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  max-width: 820px;
  gap: .8rem;
  margin-top: 2.2rem;
}

.home-proof-grid article {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .9rem 1rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
}

.home-proof-grid i {
  color: var(--home-gold);
}

.home-scroll-down {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  z-index: 2;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transform: translateX(-50%);
  animation: homeBounce 1.8s infinite;
}

.home-section {
  padding: clamp(5rem,8vw,8rem) 0;
}

.home-section-soft {
  background: var(--home-soft);
}

.home-section-heading {
  max-width: 800px;
  margin-bottom: 2.5rem;
}

.home-section-heading.text-center {
  margin-left: auto;
  margin-right: auto;
}

.home-section-heading h2,
.home-admission-card h2,
.home-contact-cta h2 {
  margin: .6rem 0 .8rem;
  font-family: "Playfair Display", serif;
  color: var(--home-ink);
  font-size: clamp(2.35rem,4.5vw,4.2rem);
  line-height: 1.05;
}

.home-section-heading p {
  color: var(--home-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.home-heading-row {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.home-heading-row > div {
  max-width: 760px;
}

.faculty-slider-wrap {
  position: relative;
}

.faculty-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(290px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  padding: .5rem .2rem 1.5rem;
  scroll-behavior: smooth;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.faculty-card {
  scroll-snap-align: start;
  padding: 2rem;
  border: 1px solid var(--home-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 15px 38px rgba(18,54,37,.07);
  transition: transform .28s ease, box-shadow .28s ease;
}

.faculty-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--home-shadow);
}

.faculty-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 1.2rem;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg,var(--home-green),var(--home-green-2));
  font-size: 1.45rem;
}

.faculty-card h3 {
  color: var(--home-green);
  font-size: 1.2rem;
}

.faculty-card p {
  min-height: 112px;
  color: var(--home-muted);
  line-height: 1.7;
}

.faculty-card a,
.news-more {
  color: var(--home-green);
  font-weight: 700;
  text-decoration: none;
}

.faculty-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--home-green);
  box-shadow: 0 10px 24px rgba(7,92,59,.22);
  transform: translateY(-50%);
}

.faculty-prev { left: -22px; }
.faculty-next { right: -22px; }

.news-grid,
.video-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1.2rem;
}

.news-card,
.video-card {
  overflow: hidden;
  border: 1px solid var(--home-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 15px 40px rgba(18,54,37,.07);
  transition: transform .28s ease, box-shadow .28s ease;
}

.news-card:hover,
.video-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--home-shadow);
}

.news-image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.06);
}

.news-date {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: .45rem .7rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(3,61,41,.88);
  font-size: .78rem;
  backdrop-filter: blur(8px);
}

.news-body,
.video-body {
  padding: 1.4rem;
}

.news-body h3,
.video-body h3 {
  color: var(--home-ink);
  font-size: 1.16rem;
  line-height: 1.4;
}

.news-body h3 a {
  color: inherit;
  text-decoration: none;
}

.news-body p,
.video-body p {
  color: var(--home-muted);
  line-height: 1.7;
}

.home-admission-cta {
  padding: 0 0 7rem;
  background: #fff;
}

.home-admission-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2.2rem,5vw,4rem);
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(223,173,47,.19), transparent 28%),
    linear-gradient(135deg,var(--home-green-dark),var(--home-green));
  box-shadow: var(--home-shadow);
}

.home-admission-card h2 {
  color: #fff;
}

.home-admission-card p {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255,255,255,.78);
  font-size: 1.05rem;
  line-height: 1.7;
}

.video-frame {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #dfe5e1;
}

.video-frame video,
.video-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-body small {
  color: var(--home-green);
  font-weight: 600;
}

.video-actions {
  display: flex;
  gap: .6rem;
}

.home-about-image {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--home-shadow);
}

.home-about-image img {
  width: 100%;
  min-height: 500px;
  object-fit: cover;
  transition: transform .5s ease;
}

.home-about-image:hover img {
  transform: scale(1.04);
}

.home-about-list {
  display: grid;
  gap: .8rem;
  margin: 1.7rem 0 2rem;
  padding: 0;
  list-style: none;
}

.home-about-list li {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: #3e4a44;
}

.home-about-list i {
  color: var(--home-green);
}

.home-contact-cta {
  padding: 6rem 0;
  color: #fff;
  background:
    linear-gradient(rgba(3,61,41,.89),rgba(3,61,41,.93)),
    url('../images/BATMENT.jpg') center/cover no-repeat;
}

.home-contact-cta h2 {
  max-width: 900px;
  margin: .7rem auto;
  color: #fff;
}

.home-contact-cta p {
  margin-bottom: 2rem;
  color: rgba(255,255,255,.78);
  font-size: 1.05rem;
}

.home-empty-state {
  padding: 3rem;
  border: 1px dashed var(--home-border);
  border-radius: 20px;
  color: var(--home-muted);
  background: var(--home-soft);
  text-align: center;
}

.home-empty-state i {
  display: block;
  margin-bottom: 1rem;
  color: var(--home-green);
  font-size: 2rem;
}

@keyframes homeBounce {
  0%,100% { transform:translate(-50%,0); }
  50% { transform:translate(-50%,8px); }
}

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

  .home-heading-row,
  .home-admission-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .news-grid,
  .video-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .faculty-prev { left: 5px; }
  .faculty-next { right: 5px; }
}

@media (max-width: 767.98px) {
  .home-hero h1 {
    font-size: clamp(3rem,14vw,4.7rem);
  }

  .home-hero-actions .btn {
    width: 100%;
  }

  .news-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .home-about-image img {
    min-height: 340px;
  }

  .faculty-control {
    display: none;
  }
}


/* =========================================================
   ACCUEIL PREMIUM V2 — VIE UNIVERSITAIRE ET RECHERCHE
   ========================================================= */
.home-campus-life {
  background: #fff;
}

.home-masonry {
  columns: 3 280px;
  column-gap: 1rem;
}

.home-gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 260px;
  margin-bottom: 1rem;
  border-radius: 22px;
  break-inside: avoid;
  background: #e8ebe9;
  box-shadow: 0 14px 34px rgba(20, 42, 31, .08);
}

.home-gallery-item img {
  display: block;
  width: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform .55s ease, filter .55s ease;
}

.home-gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 48%, rgba(2, 43, 28, .82));
}

.home-gallery-item span {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  color: #fff;
  font-weight: 700;
  transform: translateY(5px);
  transition: transform .3s ease;
}

.home-gallery-item:hover img {
  transform: scale(1.07);
  filter: brightness(.82);
}

.home-gallery-item:hover span {
  transform: translateY(0);
}

.home-gallery-tall img {
  min-height: 550px;
}

.home-gallery-wide img {
  min-height: 340px;
}

.home-research {
  padding: 0 0 7rem;
  background: #fff;
}

.home-research-card {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  overflow: hidden;
  border-radius: 30px;
  background:
    radial-gradient(circle at 85% 20%, rgba(223,173,47,.15), transparent 30%),
    linear-gradient(135deg, var(--home-green-dark), var(--home-green));
  box-shadow: var(--home-shadow);
}

.home-research-media {
  min-height: 520px;
}

.home-research-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-research-content {
  padding: clamp(2.2rem, 5vw, 4.2rem);
  color: #fff;
}

.home-research-content > span {
  color: var(--home-gold);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.home-research-content h2 {
  margin: .7rem 0 1rem;
  font-family: "Playfair Display", serif;
  color: #fff;
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  line-height: 1.04;
}

.home-research-content > p {
  color: rgba(255,255,255,.79);
  font-size: 1.04rem;
  line-height: 1.8;
}

.home-research-points {
  display: grid;
  gap: .9rem;
  margin-top: 1.7rem;
}

.home-research-points article {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: .8rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
}

.home-research-points i {
  grid-row: 1 / span 2;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  color: var(--home-green-dark);
  background: var(--home-gold);
  font-size: 1.15rem;
}

.home-research-points strong {
  color: #fff;
}

.home-research-points small {
  color: rgba(255,255,255,.68);
}

@media (max-width: 991.98px) {
  .home-research-card {
    grid-template-columns: 1fr;
  }

  .home-research-media {
    min-height: 390px;
  }
}

@media (max-width: 767.98px) {
  .home-masonry {
    columns: 1;
  }

  .home-gallery-item,
  .home-gallery-item img,
  .home-gallery-tall img,
  .home-gallery-wide img {
    min-height: 290px;
  }

  .home-research-media {
    min-height: 320px;
  }
}
