:root{
  /* Nature (plus dense, plus méditerranéen) */
  --primary:#1f8a70;
  --primary-dark:#146351;
  --primary-soft:#d9efe7;

  /* Végétation sèche (plus marquée) */
  --secondary:#5f7f4f;

  /* Terre / village / tuiles (plus solaire) */
  --accent:#e0642b;
  --accent-soft:#f8e2d6;

  /* Soleil (franc, attractif) */
  --sun:#ffb200;

  /* Fonds (plus chauds et visibles) */
  --bg:#fff4e8;
  --bg-alt:#f2e6d8;
  --surface:#ffffff;

  /* Texte (contraste renforcé) */
  --text:#121a16;
  --muted:#4f6258;
  --line:#cfd8cf;

  /* Footer (plus profond, plus premium) */
  --footer:#0f1a15;

  --radius:20px;
  --radius-lg:28px;

  --shadow:0 16px 40px rgba(15,26,21,.14);
  --shadow-soft:0 12px 30px rgba(31,138,112,.20);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  color:var(--text);
  
  line-height:1.65;
}

img{max-width:100%;display:block}
a{color:var(--primary);text-decoration:none;transition:color .2s ease}
a:hover{color:var(--primary-dark)}

h1,h2,h3,h4,h5{
  font-weight:800;
  letter-spacing:-.03em;
  line-height:1.15;
  margin-top:0;
}

.section{padding:3rem 0}
.section-title{
  font-size:clamp(1.9rem,3vw,2.8rem);
  margin-bottom:1rem;
}
.lead-muted,.text-secondary{color:var(--muted)!important}

.list-clean{list-style:none;padding:0;margin:0}
.list-clean li+li{margin-top:.5rem}

.brand-mark{
  color:var(--primary)!important;
  font-size:1.35rem;
  letter-spacing:-.04em;
  font-weight:800;
}

/* NAVBAR */
.main-navbar{
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(217,223,215,.85);
}

.navbar .nav-link{
  font-weight:600;
  color:var(--text);
  border-radius:999px;
  padding:.55rem .95rem!important;
  transition:background .2s ease,color .2s ease;
}

.navbar .nav-link.active,
.navbar .nav-link:hover{
  background:rgba(47,93,80,.08);
  color:var(--primary);
}

.dropdown-menu{
  border:1px solid rgba(217,223,215,.8);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:.75rem;
  background:rgba(255,255,255,.96);
}
.dropdown-header{
  color:  var(--accent);
}
.dropdown-item{
  border-radius:12px;
  padding:.65rem .8rem;
}

.dropdown-item:hover{
  background:rgba(47,93,80,.08);
  color:var(--primary);
}

/* HERO */
.hero{
  min-height:38rem;
  padding:6rem 0 4.5rem;
  position:relative;
  background:
    linear-gradient(135deg, rgba(36,72,62,.20), rgba(47,93,80,.20)),
    var(--hero-image, linear-gradient(135deg,#24483e,#4b6b5d));
  background-size:cover;
  background-position:center;
  color:#fff;
  overflow:hidden;
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255,255,255,.10), transparent 22rem),
    radial-gradient(circle at 82% 10%, rgba(176,137,104,.16), transparent 18rem),
    linear-gradient(180deg, rgba(12,18,15,.10), rgba(12,18,15,.20));
}

.hero-panel{
  position:relative;
  z-index:1;
  max-width:48rem;
  padding:2.2rem;
  border-radius:var(--radius-lg);
  background:rgba(255,255,255,.15);
  /*border:1px solid rgba(255,255,255,.12);*/
  /*backdrop-filter:blur(5px);*/
  /*box-shadow:0 20px 50px rgba(0,0,0,.05);*/
}

.hero-badge,
.badge-soft{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.48rem .95rem;
  border-radius:999px;
  font-size:.9rem;
  font-weight:700;
}

.hero-badge{
  background:rgba(255,255,255,.05);
  color:#fff;
  border:1px solid rgba(255,255,255,.18);
}

.badge-soft{
  background:var(--accent);
  color:#fff;
}

.hero h1{
  font-size:clamp(2.5rem,5vw,4.8rem);
  line-height:1.02;
  margin-top:1rem;
  margin-bottom:1rem;
}

.hero p{
  font-size:1.08rem;
  max-width:40rem;
  color:rgba(255,255,255,.9);
}

/* BUTTONS */
.btn{
  border-radius:999px;
  padding:.9rem 1.45rem;
  font-weight:700;
  box-shadow:none!important;
  transition:transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

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

.btn-lg{padding:1rem 1.7rem}

.btn-primary{
  background:var(--primary);;
  border:none;
  color:#fff;
}

.btn-primary:hover{
  background:var(--primary-dark);
}

.btn-outline-primary{
  border:1px solid rgba(47,93,80,.22);
  color:var(--primary);
  background:#fff;
}
.btn-outline-primary:hover{
  border:1px solid rgba(47,93,80,.22);
  color:#fff;
  background:var(--primary);
}
.btn-outline-light{
  border:1px solid rgba(255,255,255,.32);
  background:rgba(255,255,255,.06);
  color:#fff;
}

/* CARDS */
.info-card,
.content-block,
.contact-card,
.card-elevated,
.split-card,
.member-card{
  border-radius:var(--radius);
  background:var(--surface);
  box-shadow:var(--shadow);
  border:1px solid rgba(217,223,215,.55);
}

.info-card,
.content-block{
  padding:1.5rem;
}

.info-card-highlight{
  border:1px solid rgba(47,93,80,.10);
}

.info-card-link,
.card-elevated{
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.info-card-link:hover,
.card-elevated:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-soft);
  border-color:rgba(47,93,80,.16);
}

.home-news-card{
  overflow:hidden;
  position:relative;
}

.home-news-card::after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:4px;
  background:var(--accent);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .28s ease;
}

.home-news-card:hover::after{transform:scaleX(1)}

.home-news-image{
  aspect-ratio:16/10;
  width:100%;
  object-fit:cover;
  transition:transform .35s ease;
}

.home-news-card:hover .home-news-image{transform:scale(1.04)}

.home-news-card .card-body{padding:1.25rem 1.25rem 1.35rem}
.home-news-card p{
  display:-webkit-box;
  -webkit-line-clamp:4;
  -webkit-box-orient:vertical;
  overflow:hidden;
}


.quick-link-image{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  border-radius:16px;
  margin-bottom:1rem;
  box-shadow:var(--shadow-soft);
}

.welcome-paragraph{
  line-height:1.85;
}

.icon{
  width:3rem;
  height:3rem;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:var(--primary-soft);
  color:var(--primary);
  font-size:1.2rem;
  margin-bottom:1rem;
}

.intro-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:1.5rem;
}

/* NEWS / SECTIONS */
.section-news{
  background: var(--bg-alt);
}

.card-elevated{
  overflow:hidden;
  height:100%;
}

.card-elevated img{
  width:100%;
  height:230px;
  object-fit:cover;
}

.card-elevated .card-body{
  padding:1.35rem 1.35rem 1.55rem;
}

.card-meta{
  color:var(--primary);
  font-weight:700;
  font-size:.82rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:.65rem;
}

/* GALLERY */
.home-gallery-grid{
  display:grid;
  grid-template-columns:repeat(12,1fr);
  gap:1rem;
  margin-top:2rem;
}

.gallery-card{
  grid-column:span 3;
  margin:0;
  position:relative;
  overflow:hidden;
  min-height:15rem;
  border-radius:24px;
  box-shadow:var(--shadow);
  background:#dfe7df;
}

.gallery-card:nth-child(1){grid-column:span 5;min-height:22rem}
.gallery-card:nth-child(2){grid-column:span 3}
.gallery-card:nth-child(3){grid-column:span 4}
.gallery-card:nth-child(4){grid-column:span 6}

.gallery-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .35s ease;
}

.gallery-card:hover img{transform:scale(1.03)}

.gallery-card figcaption{
  position:absolute;
  left:1rem;
  right:1rem;
  bottom:1rem;
  padding:.8rem 1rem;
  border-radius:999px;
  background:rgba(255,255,255,.82);
  color:var(--text);
  font-weight:700;
  backdrop-filter:blur(8px);
}

.gallery-intro{max-width:48rem}

/* CONTACT / FORM */
.contact-card{
  padding:2.2rem;
  border-radius:var(--radius-lg);


  border:1px solid var(--line);
  box-shadow:var(--shadow);
}

/* Champs */
.form-control{
  min-height:3.2rem;
  border-radius:14px;
  border:1px solid var(--line);
  padding:.9rem 1rem;

  background:#ffffff;
  color:var(--text);

  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background .2s ease,
    transform .08s ease;
}

/* Hover léger (donne vie) */
.form-control:hover{
  border-color:rgba(31,138,112,.35);
}

/* Focus (beaucoup plus lisible et brandé) */
.form-control:focus{
  border-color:var(--primary);
  box-shadow:
    0 0 0 .2rem rgba(31,138,112,.18),
    0 4px 12px rgba(31,138,112,.12);

  background:#ffffff;
  transform:translateY(-1px);
}

/* Placeholder plus propre */
.form-control::placeholder{
  color:var(--muted);
  opacity:.8;
}

textarea.form-control{min-height:9rem}

/* PAGE HERO */
.page-hero{
  padding:4rem 0 2rem;
  background: var(--primary-soft);
}

/* SPLIT / TABLE */
.split-card{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:1.5rem;
  padding:1.5rem;
}

.split-card img,
.directory-image--wide{
  width:100%;
  border-radius:18px;
  object-fit:cover;
}

.split-card img{height:100%}

.info-card--directory .directory-image--wide{
  aspect-ratio:16/9;
  max-height:240px;
  margin-bottom:1rem;
}

.table-wrap{
  overflow:auto;
  border:1px solid rgba(217,223,215,.9);
  border-radius:20px;
  background:linear-gradient(180deg, #ffffff 0%, #fbfcfb 100%);
  box-shadow:0 12px 32px rgba(31,42,36,.06);
}

.table{
  margin:0;
  --bs-table-bg:transparent;
  --bs-table-striped-bg:rgba(47,93,80,.035);
  --bs-table-hover-bg:rgba(47,93,80,.07);
}

.table thead th{
  background:var(--accent);
  color:#fff;
  font-size:.84rem;
  text-transform:uppercase;
  letter-spacing:.04em;
  font-weight:700;
  border-bottom:1px solid var(--line);
  white-space:nowrap;
}

.table>:not(caption)>*>*{
  padding:1rem 1.05rem;
  border-bottom:1px solid rgba(217,223,215,.75);
}

.table tbody tr{
  transition:transform .18s ease, box-shadow .2s ease, background-color .2s ease;
}

.table tbody tr:hover{
  transform:translateX(2px);
  box-shadow:inset 3px 0 0 rgba(47,93,80,.3);
}

.table tbody tr:last-child td{
  border-bottom:0;
}

.table td{
  vertical-align:middle;
}

/* TEAM */
.council-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
  gap:1rem;
}

.member-card{
  padding:1.3rem 1rem;
  text-align:center;
}

.member-avatar,
.member-photo{
  width:5.5rem;
  height:5.5rem;
  border-radius:50%;
  margin:0 auto 1rem;
}

.member-avatar{
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,var(--primary),#6f7f63);
  color:#fff;
  font-weight:800;
}

.member-photo{object-fit:cover}

.pagination > li > a
{
    background-color: white;
    color: var(--primary);
}

.pagination > li > a:focus,
.pagination > li > a:hover,
.pagination > li > span:focus,
.pagination > li > span:hover
{
    color: var(--primary);
    background-color: #fff;
    border-color: #ddd;
}

.pagination > .active > a
{
    color: white;
    background-color: var(--primary) !Important;
    border: solid 1px var(--primary) !Important;
}

.pagination > .active > a:hover
{
    background-color: var(--primary) !Important;
    border: solid 1px var(--primary);
}

/* FOOTER */
footer{
  background:var(--footer);
  color:#dfe7df;
  padding:2.5rem 0;
  margin-top:4rem;
}

footer a{color:#fff}

/* ADMIN / CODE */
.admin-thumb{
  max-width:90px;
  max-height:70px;
  border-radius:12px;
  border:1px solid var(--line);
}

.admin-thumb-lg{
  max-width:140px;
  max-height:90px;
}

.admin-table-wrap{overflow:auto}
.admin-editor-table td,
.admin-editor-table th{min-width:130px}

code{
  background:#f1eee8;
  padding:.15rem .4rem;
  border-radius:.35rem;
  color:#5a4a3e;
}

/* ACTUALITE ARTICLE */
.article-gallery{
  display:grid;
  gap:1.5rem;
  margin-top:2rem;
}

.article-gallery-item img{
  width:100%;
  border-radius:14px;
}

@media (min-width:992px){
  .article-gallery{
    grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
  }

  .article-gallery-item img,
  .article-cover{
    width:100%;
    max-width:760px;
    object-fit:cover;
    margin-inline:auto;
  }
}

/* RESPONSIVE */
@media (max-width:991px){
  .hero{
    min-height:30rem;
    padding-top:5rem;
  }

  .hero-panel{padding:1.6rem}

  .split-card{grid-template-columns:1fr}

  .gallery-card,
  .gallery-card:nth-child(1),
  .gallery-card:nth-child(2),
  .gallery-card:nth-child(3),
  .gallery-card:nth-child(4){
    grid-column:span 6;
    min-height:16rem;
  }
}

@media (max-width:767px){
  .section{padding:3rem 0}

  .hero h1{font-size:2.5rem}
  .hero p{font-size:1rem}

  .gallery-card,
  .gallery-card:nth-child(1),
  .gallery-card:nth-child(2),
  .gallery-card:nth-child(3),
  .gallery-card:nth-child(4){
    grid-column:span 12;
    min-height:14rem;
  }

  .contact-card,
  .content-block,
  .info-card{
    padding:1.25rem;
  }
}

@media (max-width: 767.98px){
  .table-wrap{
    border-radius:16px;
  }

  .table thead{
    display:none;
  }

  .table,
  .table tbody,
  .table tr,
  .table td{
    display:block;
    width:100%;
  }

  .table tbody tr{
    padding:.55rem .4rem;
    border-bottom:1px solid rgba(217,223,215,.75);
  }

  .table tbody tr:last-child{
    border-bottom:0;
  }

  .table td{
    border:0;
    padding:.55rem .85rem;
    display:grid;
    grid-template-columns:minmax(110px, 40%) 1fr;
    gap:.75rem;
    align-items:flex-start;
    word-break:break-word;
  }

  .table td::before{
    content:attr(data-label);
    font-size:.76rem;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.04em;
    color:var(--accent);
  }
}
