:root {
  --about-green: #075c3b;
  --about-green-2: #0a7a4d;
  --about-green-soft: #eaf5ef;
  --about-gold: #dfad2f;
  --about-ink: #17221d;
  --about-muted: #66716b;
  --about-border: rgba(7, 92, 59, .14);
  --about-shadow: 0 24px 60px rgba(20, 42, 31, .11);
}

html { scroll-behavior: smooth; }

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

.about-hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #043b28;
}

.about-hero-media,
.about-hero-overlay {
  position: absolute;
  inset: 0;
}

.about-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  will-change: transform;
}

.about-hero-overlay {
  background:
    radial-gradient(circle at 85% 18%, rgba(223,173,47,.22), transparent 30%),
    linear-gradient(90deg, rgba(2,44,29,.95) 0%, rgba(4,71,47,.90) 48%, rgba(4,71,47,.45) 72%, rgba(4,71,47,.18) 100%);
}

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

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

.about-hero h1 {
  max-width: 760px;
  margin: 1rem 0 1.2rem;
  font-family: "Playfair Display", serif;
  font-size: clamp(3.4rem, 7vw, 6.4rem);
  line-height: .94;
  text-shadow: 0 8px 30px rgba(0,0,0,.2);
}

.about-lead {
  max-width: 690px;
  margin-bottom: 2rem;
  color: rgba(255,255,255,.86);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  line-height: 1.8;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.about-signature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  margin-top: 2rem;
  color: rgba(255,255,255,.74);
  font-weight: 600;
}

.about-hero-card {
  padding: .8rem;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 30px;
  background: rgba(255,255,255,.10);
  box-shadow: 0 35px 80px rgba(0,0,0,.28);
  backdrop-filter: blur(14px);
  transform-style: preserve-3d;
  transition: transform .25s ease;
}

.about-hero-card img {
  display: block;
  width: 100%;
  min-height: 390px;
  object-fit: cover;
  border-radius: 22px;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  z-index: 3;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  animation: bounceDown 1.8s infinite;
}

.about-nav {
  position: sticky;
  top: 64px;
  z-index: 30;
  border-bottom: 1px solid var(--about-border);
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(16px);
}

.about-nav .container {
  display: flex;
  gap: .65rem;
  overflow-x: auto;
  padding-top: .85rem;
  padding-bottom: .85rem;
  scrollbar-width: none;
}

.about-nav a {
  flex: 0 0 auto;
  padding: .65rem 1rem;
  border-radius: 999px;
  color: var(--about-green);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: .25s ease;
}

.about-nav a:hover,
.about-nav a.active {
  color: #fff;
  background: var(--about-green);
}

.about-section {
  padding: clamp(4.7rem, 8vw, 7.5rem) 0;
}

.about-section-soft { background: #f5f4ef; }

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

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

.section-heading h2,
.location-card h2,
.about-share h2,
.video-content h2 {
  margin: .6rem 0 .8rem;
  font-family: "Playfair Display", serif;
  color: var(--about-ink);
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 1.05;
}

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

.rector-card {
  display: grid;
  grid-template-columns: minmax(280px, .86fr) minmax(0, 2fr);
  overflow: hidden;
  border: 1px solid var(--about-border);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--about-shadow);
  transition: transform .25s ease;
}

.rector-photo-wrap {
  position: relative;
  min-height: 540px;
  background: var(--about-green-soft);
}

.rector-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rector-badge {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1rem;
  border-radius: 15px;
  color: #fff;
  font-weight: 700;
  background: rgba(7,92,59,.92);
  backdrop-filter: blur(10px);
}

.rector-content {
  position: relative;
  padding: clamp(2rem, 5vw, 4.5rem);
}

.quote-mark {
  position: absolute;
  top: 1.2rem;
  right: 2rem;
  color: var(--about-green-soft);
  font-family: Georgia, serif;
  font-size: 8rem;
  line-height: 1;
}

.rector-content p {
  position: relative;
  z-index: 2;
  color: #3f4c45;
  font-size: 1.04rem;
  line-height: 1.9;
}

.rector-signature {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin-top: 2rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--about-border);
}

.rector-signature strong { color: var(--about-green); }
.rector-signature span { color: var(--about-muted); }

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

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

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

.identity-card-featured {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(145deg, var(--about-green), var(--about-green-2));
}

.identity-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 1.2rem;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: var(--about-green);
  font-size: 1.5rem;
}

.identity-card-featured .identity-icon {
  color: var(--about-green);
  background: var(--about-gold);
}

.identity-card h3 {
  color: var(--about-green);
  font-size: 1.3rem;
}

.identity-card-featured h3,
.identity-card-featured p { color: #fff; }

.identity-card p,
.identity-card li {
  color: var(--about-muted);
  line-height: 1.75;
}

.identity-card-featured p { color: rgba(255,255,255,.82); }

.about-counters {
  padding: 2rem 0 0;
  background: #f5f4ef;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  overflow: hidden;
  border: 1px solid var(--about-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--about-shadow);
}

.counter-grid article {
  padding: 2rem;
  text-align: center;
}

.counter-grid article + article {
  border-left: 1px solid var(--about-border);
}

.counter-grid strong {
  display: block;
  color: var(--about-green);
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem,5vw,4rem);
}

.counter-grid span {
  color: var(--about-muted);
}

.history-timeline {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}

.history-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 115px;
  width: 2px;
  background: linear-gradient(var(--about-green), var(--about-gold));
}

.history-item {
  position: relative;
  display: grid;
  grid-template-columns: 90px minmax(0,1fr);
  gap: 3rem;
  padding-bottom: 2rem;
}

.history-year {
  padding-top: 1.2rem;
  color: var(--about-green);
  font-size: 1.15rem;
  font-weight: 800;
  text-align: right;
}

.history-content {
  position: relative;
  padding: 1.65rem 1.8rem;
  border: 1px solid var(--about-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(18,54,37,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}

.history-content:hover {
  transform: translateX(6px);
  box-shadow: var(--about-shadow);
}

.history-icon {
  position: absolute;
  top: 1.2rem;
  left: -3.9rem;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 5px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--about-green);
  box-shadow: 0 0 0 1px var(--about-border);
}

.history-content h3 {
  color: var(--about-green);
  font-size: 1.18rem;
}

.history-content p {
  margin: 0;
  color: var(--about-muted);
  line-height: 1.75;
}

.about-section-dark {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg,#033d29,#075c3b);
}

.section-heading.light h2,
.section-heading.light p { color: #fff; }
.section-heading.light p { color: rgba(255,255,255,.78); }

.parallax-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(223,173,47,.14);
  filter: blur(2px);
}

.shape-one { width: 320px; height: 320px; top: -100px; right: 8%; }
.shape-two { width: 180px; height: 180px; bottom: -60px; left: 10%; }

.governance-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 1rem;
}

.glass-card {
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  transition: transform .25s ease, background .25s ease;
}

.glass-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,.14);
}

.glass-card i {
  color: var(--about-gold);
  font-size: 1.65rem;
}

.glass-card h3 {
  margin: .75rem 0 .45rem;
  color: #fff;
  font-size: 1.08rem;
}

.glass-card p {
  margin: 0;
  color: rgba(255,255,255,.74);
  font-size: .92rem;
  line-height: 1.65;
}

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

.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  margin-bottom: 1rem;
  border-radius: 20px;
  break-inside: avoid;
  background: #ddd;
}

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

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

.gallery-item span {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  color: #fff;
  font-weight: 700;
  opacity: 0;
  transform: translateY(12px);
  transition: .3s ease;
}

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

.gallery-tall img { min-height: 540px; }
.gallery-wide img { min-height: 330px; }

.about-video {
  padding: 0 0 6rem;
  background: #f5f4ef;
}

.video-banner {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--about-shadow);
}

.video-banner > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg,rgba(3,49,32,.90),rgba(3,49,32,.28));
}

.video-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding: clamp(2rem,6vw,5rem);
  color: #fff;
}

.video-content h2 { color: #fff; }

.video-content p {
  color: rgba(255,255,255,.80);
  font-size: 1.08rem;
}

.play-button {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-top: 1rem;
  padding: .85rem 1.2rem;
  border-radius: 999px;
  color: var(--about-green);
  background: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform .25s ease;
}

.play-button:hover { transform: translateY(-3px); }

.location-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2rem,5vw,3.5rem);
  border: 1px solid var(--about-border);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--about-shadow);
  transition: transform .25s ease;
}

.location-card:hover { transform: translateY(-5px); }

.location-card p {
  max-width: 760px;
  color: var(--about-muted);
  line-height: 1.75;
}

.location-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  color: var(--about-green);
  font-weight: 600;
}

.about-share {
  padding: 4rem 0;
  background: #fff;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 1.5rem;
}

/* Reveal animations */
.section-observe,
.reveal-up,
.reveal-scale {
  opacity: 0;
}

.section-observe.is-visible {
  animation: fadeSection .8s ease forwards;
}

.reveal-up {
  transform: translateY(22px);
  animation: revealUp .75s ease forwards;
}

.reveal-scale {
  transform: scale(.94);
  animation: revealScale .85s ease .25s forwards;
}

.reveal-delay-1 { animation-delay: .12s; }
.reveal-delay-2 { animation-delay: .24s; }
.reveal-delay-3 { animation-delay: .36s; }
.reveal-delay-4 { animation-delay: .48s; }

@keyframes revealUp {
  to { opacity:1; transform:translateY(0); }
}

@keyframes revealScale {
  to { opacity:1; transform:scale(1); }
}

@keyframes fadeSection {
  to { opacity:1; }
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }

  .section-observe,
  .reveal-up,
  .reveal-scale { opacity:1 !important; transform:none !important; }
}

@media (max-width: 991.98px) {
  .about-hero { min-height: auto; padding: 5rem 0; }
  .about-nav { top: 56px; }
  .rector-card { grid-template-columns: 1fr; }
  .rector-photo-wrap { min-height: 430px; }
  .identity-grid { grid-template-columns: 1fr; }
  .location-card { align-items:flex-start; flex-direction:column; }
  .counter-grid { grid-template-columns: 1fr; }
  .counter-grid article + article { border-left:0; border-top:1px solid var(--about-border); }
}

@media (max-width: 767.98px) {
  .about-hero { padding: 3.5rem 0; }
  .about-hero-card img { min-height: 250px; }
  .about-actions .btn { width:100%; }
  .rector-photo-wrap { min-height: 360px; }
  .governance-grid { grid-template-columns:1fr; }
  .history-timeline::before { left:20px; }
  .history-item {
    grid-template-columns:1fr;
    gap:.65rem;
    padding-left:3.2rem;
  }
  .history-year { padding-top:0; text-align:left; }
  .history-icon { top:1.1rem; left:-3.25rem; }
  .location-details { flex-direction:column; }
  .masonry-gallery { columns:1; }
  .gallery-tall img,
  .gallery-wide img { min-height:300px; }
  .video-banner { min-height:430px; }
}


/* =========================================================
   CORRECTIF GALERIE V2 — IMAGES AUTHENTIQUES FOURNIES
   ========================================================= */
.gallery-item {
  min-height: 260px;
  background:
    linear-gradient(135deg, rgba(7, 92, 59, .10), rgba(223, 173, 47, .10)),
    #e8ebe9;
}

.gallery-item img {
  display: block;
  opacity: 1;
}

.gallery-item img[src=""],
.gallery-item img:not([src]) {
  visibility: hidden;
}

@media (max-width: 767.98px) {
  .gallery-item,
  .gallery-item img,
  .gallery-tall img,
  .gallery-wide img {
    min-height: 280px;
  }
}
