/* ============================================================
   G.S. Le Serval — Style principal v2
   ============================================================ */
:root {
  --vert       : #0f461e;
  --vert2      : #1b6e32;
  --vert3      : #2ea046;
  --vert-clair : #e8f5ec;
  --or         : #c89b00;
  --or2        : #e6b914;
  --or3        : #ffd750;
  --blanc      : #ffffff;
  --creme      : #fffceb;
  --gris       : #3c3c3c;
  --font       : 'Poppins', sans-serif;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--gris); overflow-x: hidden; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--vert-clair); }
::-webkit-scrollbar-thumb { background: var(--vert2); border-radius: 3px; }

.py-section { padding: 5rem 0; }

/* ══════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════ */
.navbar {
  background: transparent !important;
  padding: 1.2rem 0;
  transition: all 0.4s ease;
  z-index: 1000;
}
.navbar.scrolled {
  background: rgba(15,70,30,0.97) !important;
  padding: 0.5rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
}
.navbar:not(.scrolled) { background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent) !important; }

.navbar-brand { display:flex; align-items:center; gap:12px; }
.navbar-brand img { height:50px; border-radius:6px; border:2px solid var(--or); }
.brand-text { display:flex; flex-direction:column; line-height:1.1; }
.brand-name { font-size:1rem; font-weight:800; color:var(--or2); letter-spacing:1px; }
.brand-sub  { font-size:0.65rem; color:rgba(255,255,255,0.8); font-style:italic; }

.navbar-nav .nav-link {
  color: rgba(255,255,255,0.9) !important;
  font-weight:500; font-size:0.88rem;
  padding: 0.5rem 0.85rem !important;
  border-radius:6px; transition:all 0.25s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color:var(--or2) !important; background:rgba(255,255,255,0.1); }

.navbar-toggler { border-color:var(--or) !important; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28230%2C185%2C20%2C1%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ══════════════════════════════════════════════════════
   HERO SLIDER
══════════════════════════════════════════════════════ */
.hero-swiper { width:100%; height:100vh; min-height:600px; }

.hero-slide {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,40,18,0.82) 0%,
    rgba(15,70,30,0.6) 50%,
    rgba(0,0,0,0.4) 100%
  );
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 0 3rem;
  margin-top: 60px;
}

.hero-badge {
  display: inline-block;
  background: rgba(200,155,0,0.25);
  border: 1px solid var(--or);
  color: var(--or2);
  padding: 0.4rem 1.1rem;
  border-radius: 25px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.3rem;
}

.hero-slide-content h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 900;
  color: var(--blanc);
  line-height: 1.12;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero-slide-content h1 span { color: var(--or2); }

.hero-slide-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  line-height: 1.75;
  max-width: 500px;
}

.btn-hero-primary {
  background: var(--or);
  color: var(--vert);
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(200,155,0,0.45);
  font-size: 0.95rem;
}
.btn-hero-primary:hover {
  background: var(--or2); color: var(--vert);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(200,155,0,0.55);
}

.btn-hero-secondary {
  background: rgba(255,255,255,0.12);
  color: var(--blanc);
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 30px;
  border: 2px solid rgba(255,255,255,0.5);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s;
  font-size: 0.95rem;
  backdrop-filter: blur(4px);
}
.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.2);
  border-color: var(--blanc);
  color: var(--blanc);
  transform: translateY(-2px);
}

/* Swiper custom */
.hero-pagination { bottom: 2rem !important; }
.hero-pagination .swiper-pagination-bullet {
  width: 10px; height: 10px;
  background: rgba(255,255,255,0.5);
  opacity: 1;
  transition: all 0.3s;
}
.hero-pagination .swiper-pagination-bullet-active {
  background: var(--or2);
  width: 28px;
  border-radius: 5px;
}
.hero-btn-prev, .hero-btn-next {
  color: var(--or2) !important;
  background: rgba(255,255,255,0.12);
  width: 48px !important; height: 48px !important;
  border-radius: 50%;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(200,155,0,0.3);
  transition: all 0.3s;
}
.hero-btn-prev:hover, .hero-btn-next:hover {
  background: rgba(200,155,0,0.3);
}
.hero-btn-prev::after, .hero-btn-next::after { font-size: 1rem !important; font-weight: 700 !important; }

.hero-scroll {
  position: absolute;
  bottom: 2.5rem; right: 2.5rem;
  display: flex; flex-direction:column; align-items:center; gap:0.3rem;
  color: rgba(255,255,255,0.6); font-size:0.72rem;
  animation: bounce 2.2s infinite; z-index: 5;
}
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(7px); }
}

/* ══════════════════════════════════════════════════════
   STATS
══════════════════════════════════════════════════════ */
.stats-section {
  background: linear-gradient(135deg, var(--vert) 0%, var(--vert2) 100%);
}
.stat-card {
  padding: 2.2rem 1rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-card:last-child { border-right: none; }
.stat-icon { font-size: 2.2rem; margin-bottom: 0.6rem; }
.stat-number {
  font-size: 3rem; font-weight: 900;
  color: var(--or2); line-height:1;
  margin-bottom: 0.4rem;
}
.stat-label { color: rgba(255,255,255,0.75); font-size: 0.9rem; font-weight:500; }

/* ══════════════════════════════════════════════════════
   SECTION TITRES
══════════════════════════════════════════════════════ */
.section-subtitle {
  color: var(--or);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--vert);
  line-height: 1.2;
  margin-bottom: 0;
}
.section-divider {
  width: 60px; height: 4px;
  background: linear-gradient(to right, var(--or), var(--or2));
  border-radius: 2px;
  margin: 1rem auto 2rem;
}
.section-divider.left { margin-left:0; }

/* ══════════════════════════════════════════════════════
   À PROPOS — Grille photos
══════════════════════════════════════════════════════ */
.about-section { background: var(--creme); }

.about-grid {
  position: relative;
  height: 480px;
}
.about-img-main,
.about-img-secondary,
.about-img-third { position: absolute; border-radius: 16px; overflow:hidden; box-shadow: 0 15px 40px rgba(0,0,0,0.15); }

.about-img-main {
  width: 65%; height: 75%;
  top:0; left:0;
}
.about-img-secondary {
  width: 42%; height: 52%;
  bottom:0; right:0;
  border: 4px solid var(--blanc);
}
.about-img-third {
  width: 36%; height: 38%;
  top: 15%; right: 28%;
  border: 3px solid var(--blanc);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  z-index: 2;
}
.about-img-main img,
.about-img-secondary img,
.about-img-third img { width:100%; height:100%; object-fit:cover; display:block; }

.about-year-badge {
  position: absolute;
  bottom: 10px; left: 15px;
  background: var(--vert);
  border: 3px solid var(--or);
  border-radius: 16px;
  padding: 0.8rem 1.2rem;
  text-align: center;
  z-index: 3;
}
.about-year-badge .year { display:block; font-size:1.8rem; font-weight:900; color:var(--or2); line-height:1; }
.about-year-badge .label { font-size:0.7rem; color:rgba(255,255,255,0.8); line-height:1.3; }

.valeur-item { display:flex; align-items:flex-start; gap:1rem; margin-bottom:1.2rem; }
.valeur-icon {
  width:46px; height:46px; min-width:46px;
  background:var(--vert-clair); border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  font-size:1.4rem;
}
.valeur-text h6 { font-weight:700; color:var(--vert); margin-bottom:0.2rem; }
.valeur-text p  { font-size:0.86rem; color:#666; margin:0; }

.btn-vert {
  background: var(--vert); color: var(--blanc);
  border-radius:25px; padding:0.65rem 1.6rem;
  font-weight:600; font-size:0.95rem;
  text-decoration:none; display:inline-flex; align-items:center;
  transition:all 0.3s;
}
.btn-vert:hover { background:var(--vert2); color:var(--blanc); transform:translateY(-2px); }

/* ══════════════════════════════════════════════════════
   CLASSES
══════════════════════════════════════════════════════ */
.classes-section { background: var(--blanc); }

.niveau-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.09);
  transition: all 0.35s;
  background: var(--blanc);
  border: none;
}
.niveau-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(15,70,30,0.15);
}
.niveau-card-img {
  position: relative;
  height: 240px;
  overflow: hidden;
}
.niveau-card-img img {
  width:100%; height:100%; object-fit:cover;
  transition: transform 0.5s ease;
}
.niveau-card:hover .niveau-card-img img { transform: scale(1.06); }

.niveau-card-img-overlay {
  position: absolute;
  inset:0;
  background: linear-gradient(to top, rgba(15,70,30,0.85) 0%, transparent 60%);
  display:flex; align-items:flex-end; padding:1rem 1.2rem;
}
.niveau-card-img-overlay span {
  color: var(--or2); font-weight:700; font-size:1.1rem;
}

.niveau-card-body { padding: 1.6rem; }
.niveau-card-body h3 { font-weight:800; color:var(--vert); font-size:1.3rem; margin-bottom:0.6rem; }

.classe-tag {
  display:inline-block; background:var(--vert-clair); color:var(--vert);
  padding:0.3rem 0.8rem; border-radius:20px;
  font-size:0.8rem; font-weight:600; margin:0.2rem;
  border:1px solid rgba(15,70,30,0.12); transition:all 0.2s;
}
.classe-tag:hover { background:var(--vert); color:var(--blanc); }

.niveau-features { list-style:none; padding:0; margin-top:0.8rem; }
.niveau-features li {
  padding: 0.3rem 0;
  font-size: 0.86rem; color:#555;
  display:flex; align-items:center; gap:0.5rem;
}
.niveau-features li i { color:var(--vert3); font-size:1rem; }

/* ══════════════════════════════════════════════════════
   GALERIE
══════════════════════════════════════════════════════ */
.galerie-section { background: var(--creme); }

.galerie-filters { display:flex; justify-content:center; flex-wrap:wrap; gap:0.6rem; }
.filter-btn {
  padding: 0.5rem 1.4rem;
  border-radius: 25px;
  border: 2px solid var(--vert3);
  background: transparent;
  color: var(--vert2);
  font-weight: 600; font-size:0.88rem;
  cursor: pointer; transition: all 0.25s;
  font-family: var(--font);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--vert); color: var(--blanc);
  border-color: var(--vert);
}

.galerie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.galerie-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: block;
  cursor: pointer;
}
.galerie-item img {
  width:100%; height:100%; object-fit:cover;
  transition: transform 0.45s ease;
  display:block;
}
.galerie-item:hover img { transform: scale(1.08); }

.galerie-overlay {
  position:absolute; inset:0;
  background: linear-gradient(to top, rgba(15,70,30,0.8) 0%, rgba(0,0,0,0.2) 100%);
  opacity:0; transition:opacity 0.3s;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  gap:0.4rem;
}
.galerie-overlay i { font-size:2rem; color:var(--blanc); }
.galerie-overlay span { color:var(--or2); font-size:0.85rem; font-weight:600; }
.galerie-item:hover .galerie-overlay { opacity:1; }

.galerie-item.hidden { display:none; }

/* ══════════════════════════════════════════════════════
   ACTUALITÉS
══════════════════════════════════════════════════════ */
.actu-section { background: var(--blanc); }

.actu-card {
  border-radius: 18px;
  overflow:hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  transition: all 0.3s; background:var(--blanc);
  height:100%;
  display:flex; flex-direction:column;
}
.actu-card:hover { transform:translateY(-6px); box-shadow:0 16px 40px rgba(15,70,30,0.14); }

.actu-img { position:relative; height:210px; overflow:hidden; }
.actu-img img { width:100%; height:100%; object-fit:cover; object-position:center top; transition:transform 0.5s; display:block; }
.actu-card:hover .actu-img img { transform:scale(1.06); }
.actu-img-placeholder {
  height:210px;
  background:linear-gradient(135deg, var(--vert-clair), rgba(200,155,0,0.1));
  display:flex; align-items:center; justify-content:center; font-size:4rem;
}
.actu-category {
  position:absolute; top:1rem; left:1rem;
  background:var(--vert); color:var(--blanc);
  padding:0.25rem 0.8rem; border-radius:20px;
  font-size:0.75rem; font-weight:700;
}
.actu-body { padding:1.4rem; flex:1; display:flex; flex-direction:column; }
.actu-date { color:var(--or); font-size:0.78rem; font-weight:600; margin-bottom:0.6rem; }
.actu-body h5 { font-weight:700; color:var(--vert); font-size:1rem; line-height:1.4; margin-bottom:0.6rem; }
.actu-body p  { font-size:0.86rem; color:#666; line-height:1.6; flex:1; margin-bottom:1rem; }
.actu-link {
  color:var(--vert2); font-weight:600; font-size:0.85rem;
  text-decoration:none; display:inline-flex; align-items:center; gap:0.3rem;
  transition:all 0.2s;
}
.actu-link:hover { color:var(--or); gap:0.6rem; }

/* ══════════════════════════════════════════════════════
   PARALLAX CITATION
══════════════════════════════════════════════════════ */
.parallax-section {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  padding: 6rem 0;
  position: relative;
}
.parallax-overlay {
  position:absolute; inset:0;
  background: rgba(10,40,18,0.78);
}
.parallax-quote-icon {
  font-size: 4rem; color:var(--or);
  opacity:0.6; display:block; margin-bottom:0.5rem;
}
.parallax-quote {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight:700; color:var(--blanc);
  font-style:italic; line-height:1.5;
  max-width:700px; margin:0 auto 1rem;
}
.parallax-cite {
  color:var(--or2); font-size:0.9rem;
  font-style:normal; font-weight:600;
}

/* ══════════════════════════════════════════════════════
   ESPACE PARENTS
══════════════════════════════════════════════════════ */
.espace-section { background: #f9fdf9; }

.ressource-card {
  background:var(--blanc); border-radius:18px;
  padding:2rem 1.5rem; text-align:center;
  box-shadow:0 6px 24px rgba(0,0,0,0.07);
  border:1px solid rgba(15,70,30,0.08);
  transition:all 0.3s; height:100%;
  display:flex; flex-direction:column; align-items:center;
}
.ressource-card:hover {
  transform:translateY(-6px);
  box-shadow:0 16px 40px rgba(15,70,30,0.13);
  border-color:var(--vert3);
}
.ressource-icon {
  width:68px; height:68px; border-radius:18px;
  display:flex; align-items:center; justify-content:center;
  font-size:2rem; margin-bottom:1.1rem;
}
.ressource-card h5 { font-weight:700; color:var(--vert); margin-bottom:0.6rem; font-size:1rem; }
.ressource-card p  { font-size:0.86rem; color:#666; line-height:1.6; flex-grow:1; margin-bottom:1.2rem; }

.ressource-link {
  color:var(--vert2); font-weight:600; font-size:0.88rem;
  text-decoration:none; display:inline-flex; align-items:center; gap:0.3rem;
  padding:0.4rem 1rem; border-radius:20px;
  border:2px solid var(--vert3); transition:all 0.25s;
}
.ressource-link:hover { background:var(--vert); color:var(--blanc); border-color:var(--vert); }
.ressource-link.whatsapp-link { color:#25d366; border-color:#25d366; }
.ressource-link.whatsapp-link:hover { background:#25d366; color:var(--blanc); border-color:#25d366; }

.preinscription-band {
  background: linear-gradient(135deg, var(--vert), var(--vert2));
  border-radius:18px; padding:1.8rem 2.5rem;
  border:2px solid var(--or); color:var(--blanc);
}
.preinscription-band h5 { color:var(--or2); font-weight:700; font-size:1.1rem; }
.btn-preinscription {
  background:var(--or); color:var(--vert);
  font-weight:700; padding:0.7rem 1.5rem;
  border-radius:25px; text-decoration:none;
  display:inline-flex; align-items:center; gap:0.4rem;
  font-size:0.9rem; transition:all 0.3s; white-space:nowrap;
}
.btn-preinscription:hover {
  background:var(--or2); color:var(--vert);
  transform:translateY(-2px); box-shadow:0 6px 20px rgba(200,155,0,0.4);
}

/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
footer { background:var(--vert); color:rgba(255,255,255,0.75); padding:4rem 0 0; }
footer .footer-logo img { height:60px; border-radius:8px; border:2px solid var(--or); margin-bottom:1rem; }
footer .footer-name    { color:var(--or2); font-weight:800; font-size:1.1rem; }
footer .footer-tagline { font-size:0.82rem; color:rgba(175,225,175,0.9); font-style:italic; }
footer h6 {
  color:var(--or2); font-weight:700; font-size:0.88rem;
  letter-spacing:1px; text-transform:uppercase;
  margin-bottom:1.2rem; padding-bottom:0.5rem;
  border-bottom:2px solid rgba(200,155,0,0.25);
}
footer a {
  color:rgba(255,255,255,0.7); text-decoration:none;
  font-size:0.87rem; transition:color 0.2s;
  display:block; margin-bottom:0.5rem;
}
footer a:hover { color:var(--or2); }
footer .footer-contact-item {
  display:flex; align-items:flex-start; gap:0.6rem;
  margin-bottom:0.8rem; font-size:0.86rem;
}
footer .footer-contact-item .icon { color:var(--or); min-width:18px; margin-top:2px; }
.footer-socials { display:flex; gap:0.8rem; margin-top:0.5rem; }
.footer-socials a {
  width:38px; height:38px; border-radius:50%;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(200,155,0,0.3);
  display:flex; align-items:center; justify-content:center;
  font-size:1.1rem; color:rgba(255,255,255,0.7);
  transition:all 0.25s; margin:0;
}
.footer-socials a:hover { background:var(--or); color:var(--vert); border-color:var(--or); }
.footer-bottom {
  border-top:1px solid rgba(255,255,255,0.08);
  padding:1.2rem 0; margin-top:3rem;
  text-align:center; font-size:0.8rem; color:rgba(255,255,255,0.45);
}
.footer-bottom span { color:var(--or); }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero-swiper { height: 80vh; min-height: 520px; }
  .hero-slide { background-position: top center; }
  .hero-slide-content { padding: 0 1.5rem; }
  .hero-slide-content h1 { font-size:2rem; }
  .about-grid { height:320px; }
  .about-img-third { display:none; }
  .galerie-grid { grid-template-columns: repeat(2, 1fr); }
  .parallax-section { background-attachment:scroll; }
  .preinscription-band { padding:1.4rem 1.2rem; }
  .stat-number { font-size:2.2rem; }
}
@media (max-width: 480px) {
  .galerie-grid { grid-template-columns: repeat(2, 1fr); gap:8px; }
  .hero-btn-prev, .hero-btn-next { display:none !important; }
}
