:root{
  --primary:#1D2565;
  --secondary:#73B47C;
  --light:#f7f8fc;
  --dark:#222;
  --text:#5f6472;
  --white:#ffffff;

  --shadow:
    0 10px 30px rgba(0,0,0,.08);

  --radius:28px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins',sans-serif;
  background: #f4f7fb;
  color: #222;
  line-height: 1.6;
}

.container {
  width: min(1200px, 92%);
  margin: auto;
}

a {
   text-decoration: none;
}

/* =========================
   HEADER
========================== */

.header{
  position:fixed;
  top:0;
  width:100%;
  z-index:999;
  backdrop-filter:blur(12px);
  background:rgba(255,255,255,.75);
  border-bottom:1px solid rgba(255,255,255,.3);
}

.navbar{
  height:85px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.logo{
  font-size:1.9rem;
  font-weight:700;
  color:var(--primary);
  text-decoration: none;
}

.logo span{
  color:var(--secondary);
}

nav{
  display:flex;
  gap:35px;
}

nav a {
  position: relative;
  color: var(--primary);
  font-weight: 500;
  transition: .3s;
}

/* ligne de soulignement */
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background: var(--secondary);

  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

/* hover */
nav a:hover::after {
  transform: scaleX(1);
}

nav a:hover{
  color:var(--secondary);
}

.burger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
   width: 35px;
  height: 25px;
  margin-right: 20px;

  flex-direction: column;
  justify-content: space-between;
}



.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--primary);
  border-radius: 5px;
  transition: 0.3s ease;
}

.burger.active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* MOBILE */
@media (max-width: 980px) {

  @media (max-width: 980px) {

  .burger {
    display: flex;
  }

  nav {
    position: absolute;
    top: 85px;
    right: 0;
    left: 0;
    background: white;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    display: none;
    box-shadow: var(--shadow);
  }

  nav.active {
    display: flex;
  }
}
}

/* =========================
   HERO
========================== */

.hero{
  position:relative;
  min-height:100vh;

  background:
    url("/images/estevelles3.webp")
    center/cover no-repeat;

  display:flex;
  align-items:center;
}

.hero-overlay{
  position:absolute;
  inset:0;

  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,.35),
      rgba(255,255,255,.88)
    );
}

.hero-content{
  position:relative;
  z-index:2;
  text-align:center;
}



.hero h1{
  color:var(--primary);
  font-size:5.5rem;
  line-height:1;
  margin:20px 0;
}

.hero h1 span{
  display:block;
  margin-top:15px;

  color:var(--secondary);

  font-family:'Caveat',cursive;
  font-size:5rem;
}

.hero p{
  max-width:800px;
  margin:auto;

  font-size:1.2rem;
  line-height:1.9;
}

.hero-buttons{
  display:flex;
  justify-content:center;
  gap:20px;
  margin-top:45px;
}


section {
  margin: 50px 0;
}

.section-title {
  margin-bottom: 25px;
}

.section-title h2 {
  font-size: 2rem;
  color: #1e3a8a;
}

/* =========================
   PRESENTATION VILLAGE
========================== */

.village-section{
  padding:120px 0;
  background:white;
}

.village-grid{
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:80px;
  align-items:center;
}

.village-image{
  position:relative;
}

.village-image img{
  width:100%;
  height:600px;
  object-fit:cover;
  object-position: right center;
  border-radius:32px;
  box-shadow:0 25px 60px rgba(0,0,0,.12);
}

.village-card{
  position:absolute;
  bottom:30px;
  right:-30px;

  background:white;
  padding:24px 28px;

  border-radius:22px;
  box-shadow:0 15px 40px rgba(0,0,0,.12);

  max-width:260px;
}

.village-card span{
  display:block;
  color:var(--secondary);
  font-weight:600;
  margin-bottom:8px;
}

.village-card strong{
  color:var(--primary);
  line-height:1.4;
}

.section-badge{
  display:inline-block;

  background:rgba(115,180,124,.12);
  color:var(--secondary);

  padding:10px 18px;
  border-radius:999px;

  font-weight:600;
  margin-bottom:20px;
}

.village-content h2{
  font-size:3.2rem;
  line-height:1.1;
  color:var(--primary);
  margin-bottom:25px;
}

.village-content h2 span{
  display:block;
  color:var(--secondary);
}

.village-content p{
  font-size:1.08rem;
  color:var(--text);
  margin-bottom:20px;
  line-height:1.9;
}

.village-stats{
  display:flex;
  gap:40px;
  margin-top:40px;
}

.village-stats div{
  display:flex;
  flex-direction:column;
}

.village-stats strong{
  font-size:2rem;
  color:var(--primary);
}

.village-stats span{
  color:var(--text);
}


.cards-grid,
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card,
.event-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.card:hover,
.event-card:hover {
  transform: translateY(-4px);
}

.card img,
.association-banner img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.association-banner-page img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
}

.card-content,
.event-content {
  padding: 20px;
}

.card h3 {
  margin-bottom: 10px;
  color: #1d4ed8;
}

.card p {
  margin-bottom: 15px;
  color: #555;
}

.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:5px 20px;
  border-radius:999px;
  background:var(--secondary);
  color:white;
  font-weight:600;
  transition:.3s;
}

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

.btn-outline{
  background:transparent;
  border:2px solid white;
  color:white;
}


footer {
  background: #111827;
  color: white;
  padding: 30px 0;
  text-align: center;
  margin-top: 50px;
}

.page-header {
  padding: 20px 0;
}

.back-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: bold;
}

.association-page {
  padding-bottom: 60px;
}

.association-banner {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 30px;
  background: white;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.association-content {
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.association-content h1 {
  margin-bottom: 15px;
  color: #1e3a8a;
}

.association-meta {
  margin: 20px 0;
  display: grid;
  gap: 12px;
}

.association-meta div {
  background: #eff6ff;
  padding: 12px;
  border-radius: 10px;
}

.association-description {
  margin-top: 20px;
}

.association-description p {
  margin-bottom: 14px;
}

.event-date {
  display: inline-block;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  margin-bottom: 12px;
  font-weight: bold;
}


/* Galerie */

.association-gallery {
  margin-top: 3rem;
}

.association-gallery h2 {
  margin-bottom: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-image:hover {
  transform: scale(1.03);
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 12px;
}

#lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  line-height: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  user-select: none;
  transition: background 0.2s ease;
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.25);
}

#lightbox-prev {
  left: 20px;
}

#lightbox-next {
  right: 20px;
}

/* =========================
   RECHERCHE ASSOCIATIONS
========================== */

.associations-search {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
}

.associations-search input {
  width: 100%;
  max-width: 500px;

  padding: 16px 22px;

  border: none;
  border-radius: 999px;

  background: white;

  font-size: 1rem;
  font-family: 'Poppins', sans-serif;

  box-shadow: 0 8px 20px rgba(0,0,0,0.08);

  outline: none;

  transition: 0.3s ease;
}

.associations-search input:focus {
  box-shadow: 0 8px 30px rgba(29,37,101,0.15);
}

.associations-search input::placeholder {
  color: #9ca3af;
}
.schedule-inline {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.schedule-line {
  font-size: 0.95rem;
  color: var(--text);
  padding-left: 5px;
  position: relative;
}

.schedule-line::before {
  content: "•";
  color: var(--secondary);
  margin-right: 8px;
}


.social-section {
  margin-top: 3rem;
  padding: 35px;
  background: linear-gradient(135deg, #ffffff, #f7f8fc);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.social-section h2 {
  text-align: center;
  font-size: 1.7rem;
  margin-bottom: 25px;
  color: var(--primary);
  font-weight: 700;
}

/* GRID */
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* CARD */
.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 25px;
  border-radius: 18px;

  background: white;
  text-decoration: none;

  box-shadow: 0 8px 20px rgba(0,0,0,0.06);

  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* IMAGE */
.social-card img {
  width: 55px;
  height: 55px;
  object-fit: contain;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

/* TEXT */
.social-card span {
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.5px;
}

/* HOVER EFFECT */
.social-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.social-card:hover img {
  transform: scale(1.1);
}

/* ACCENT COLORS (effet premium subtil) */
.social-card.facebook::before,
.social-card.instagram::before,
.social-card.tiktok::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: 0.3s;
  z-index: 0;
}

.social-card.facebook:hover::before {
  background: rgba(24, 119, 242, 0.08);
  opacity: 1;
}

.social-card.instagram:hover::before {
  background: rgba(225, 48, 108, 0.08);
  opacity: 1;
}

.social-card.tiktok:hover::before {
  background: rgba(0, 0, 0, 0.06);
  opacity: 1;
}

/* MOBILE */
@media (max-width: 980px) {
  .social-grid {
    grid-template-columns: 1fr;
  }

  .social-section {
    padding: 25px;
  }
}
/* Responsive */

@media (max-width: 980px){

.logo {
  font-size: 1.2em;
}

.btn {
  padding:10px 20px;
}

.hero h1 {
  font-size: 1.7em;}

  .hero h1 span {
    font-size: 1.3em;
  }

  .hero p { 
    font-size: 1em;
  }

  .hero-content {
    margin-top: 150px;
  }

  .card {
    margin-bottom: 50px;
  }

  .village-grid{
    grid-template-columns:1fr;
    gap:50px;
  }

  .village-content{
    text-align:center;
  }

  .village-stats{
    justify-content:center;
    flex-wrap:wrap;
  }

  .village-image img{
    height:450px;
  }

  .village-card{
    background:rgba(255,255,255,0.80);
    right:20px;
    bottom:20px;
  }

  .village-content h2{
    font-size:2.4rem;
  }

  .association-banner-page img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* .association-content {
  padding: 0px;
 
} */
 .gallery-image {
  width: 100%;
  height: 120px;
}


}