:root{
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --teal: #2aa6a8;
  --teal-soft: rgba(42, 166, 168, .14);
  --coral: #f09a82;
  --shadow: 0 18px 40px rgba(2,6,23,.12);
  --radius: 18px;
  --container: 1100px;
  --font-title: "Montserrat", system-ui, -apple-system, sans-serif;
  --font-body: "Calibri", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*{ box-sizing: border-box; }
html{ margin:0; scroll-behavior: smooth; overflow-x: hidden; scroll-padding-top: calc(var(--header-h) + 14px); }

body{
  margin: 0;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  font-family: var(--font-body);
  font-size: 16px;     /* base lisible */
  line-height: 1.55;
  overflow-x: hidden;
}



img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

h1, h2, h3, h4, h5, h6{
  font-family: var(--font-title);
  font-weight: 800;
  letter-spacing: .2px;
  margin: 0;
}

h1{
  font-size: 36px;   /* ≈ 27pt */
  line-height: 1.15;
}

h2{
  font-size: 28px;
  line-height: 1.2;
}

h3{
  font-size: 22px;
  line-height: 1.25;
}

h4{
  font-size: 18px;
}

p, li{
  font-size: 16px;
}


/* Header overlay */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 14px 0;
  background: linear-gradient(to bottom, rgba(255,255,255,.85), rgba(255,255,255,.22));
  backdrop-filter: blur(10px);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.brand-logo{
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  box-shadow: 0 10px 26px rgba(2,6,23,.10);
  padding: 8px;
}

.nav{
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 700;
}
.nav a{
  padding: 10px 12px;
  border-radius: 999px;
  transition: transform .18s ease, background .18s ease;
}
.nav a:hover{ background: rgba(255,255,255,.6); transform: translateY(-1px); }
.nav-cta{
  background: var(--teal);
  color: #fff;
}
.nav-cta:hover{ filter: brightness(.95); }

/* Burger */
.burger{
  display: none;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(7, 5, 5, 0.75);
  box-shadow: 0 10px 26px rgba(2,6,23,.10);
  cursor: pointer;
}
.burger-line{
  display: block;
  width: 22px; height: 2px;
  margin: 5px auto;
  background: white;
  border-radius: 2px;
}

/* HERO */
.hero{
  position: relative;
  height: 100svh;
  min-height: 720px;
  overflow: hidden;
}
.hero-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}


.hero-overlay{
  position: absolute;
  left: 50%;                 /* point de départ AU CENTRE */
  bottom: 10%;
  transform: translateX(-10%); /* on le tire légèrement vers la gauche */
  z-index: 3;
}




.hero-title{
  position: relative;
  background: rgba(42, 166, 168, .75);
  color: #fff;
  padding: 22px 26px;
  border-radius: 14px 0 0 14px;
  box-shadow: var(--shadow);

  max-width: none;
  padding-right: 48px;

  text-align: right;
}

.hero-title::after{
  content: "";
  position: absolute;
  top: 0;
  left: 100%;
  height: 100%;
  width: 100%;          /* au lieu de 100vw */
  background: rgba(42, 166, 168, .75);
}


.hero-kicker{
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.hero-title h1{
  white-space: nowrap;      /* INTERDIT le retour à la ligne */
  margin: 0;
  font-size: 38px;          /* garde ta taille actuelle */
}


@media (max-width: 700px){
  .hero-overlay{
    left: 16px;
    right: 16px;
    transform: none;
  }

  .hero-title::after{
    display: none;
  }
}

/* Formes PNG (tes fichiers) */
.shape{
  position: absolute;
  z-index: 2;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  filter: drop-shadow(0 18px 26px rgba(2,6,23,.10));
}

/* Orange (forme-orange-agir-pour-villemur.png) */
.shape-orange{
  width: 260px;
  height: 190px;
  left: 34px;
  bottom: 18vh;
  background-image: url("../img/forme-orange-agir-pour-villemur.png");
}

/* Bleue (Forme-bleue-agirpourvillemur.png) */
.shape-bleue{
  width: 280px;
  height: 260px;
  right: -70px;
  top: 34vh;
  background-image: url("../img/Forme-bleue-agirpourvillemur.png");
}

/* Verte (Forme-verte-agirpourvillemur.png) */
.shape-verte{
  background-image: url("../img/Forme-verte-agirpourvillemur.png");
}
.shape-verte-1{
  width: 210px;
  height: 210px;
  right: 18px;
  bottom: 10vh;
}
.shape-verte-2{
  width: 190px;
  height: 190px;
  right: -55px;
  bottom: -55px;
}

/* Sections */
.section{
  position: relative;
  padding: 86px 0;
}

.section-head {
    margin-top: 80px;
}

.section-soft{
  background: linear-gradient(180deg, var(--teal-soft), transparent 60%);
}
.section-head h2{
  margin: 0 0 10px;
  font-size: clamp(26px, 2.6vw, 38px);
}
.lead{
  margin: 0;
  max-width: 78ch;
}
.muted{ color: var(--muted); }
.small{ font-size: .9rem; }

/* Editorial */
.editorial{
  padding-top: 96px;
  overflow: hidden;
}
.editorial-grid{
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 26px;
  align-items: start;
  margin-top: 28px;
}
.editorial-media{
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}
.editorial-media img{
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.shape-left{
  width: 360px;
  height: 360px;
  left: -180px;
  top: 30%;
  opacity: .95;
  z-index: 1;
}
.shape-right{
  width: 300px;
  height: 300px;
  right: -160px;
  top: 12%;
  z-index: 1;
}

/* Cards */
.cards{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}
.card{
  background: rgba(255,255,255,.92);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, .06);
}
.card h3{ margin: 0 0 10px; }
.list{ margin: 0; padding-left: 18px; }
.list li{ margin: 6px 0; }

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 999px;
  border: 0;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.btn:hover{ filter: brightness(.95); }

/* Contact */
.contact-grid{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  margin-top: 26px;
}
.form label{
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  font-weight: 700;
}
input, textarea{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.12);
  padding: 12px 12px;
  font: inherit;
  background: rgba(255,255,255,.9);
}
input:focus, textarea:focus{
  outline: 3px solid rgba(42, 166, 168, .28);
  border-color: rgba(42, 166, 168, .5);
}
.sep{
  border: 0;
  border-top: 1px solid rgba(15,23,42,.12);
  margin: 16px 0;
}
.rs-img{
  width: 180px;
  height: auto;
  margin-top: 6px;
}

/* Footer orange */
.site-footer{
  background: var(--coral);
  color: #fff;
  padding: 18px 0;
}
.footer-inner{
  display: grid;
  grid-template-columns: 110px 1fr 160px;
  align-items: center;
  gap: 18px;
}
.footer-brand img{
  width: 88px;
  height: 88px;
  object-fit: contain;
  background: rgba(255,255,255,.9);
  padding: 10px;
  border-radius: 999px;
}
.footer-title{
  margin: 0;
  font-weight: 900;
}
.footer-sub{
  margin: 6px 0 0;
  opacity: .95;
}
.footer-right{
  text-align: right;
}
.footer-top{
  display: inline-block;
  margin-top: 6px;
  font-weight: 800;
  opacity: .95;
}

/* Responsive */
@media (max-width: 900px){
  .burger{ display: inline-block; }

  .nav{
    position: fixed;
    top: 74px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255,255,255,.92);
    border-radius: 18px;
    padding: 12px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
  }
  .nav.is-open{ display: flex; }
  .nav a{ background: rgba(15,23,42,.04); }

  .hero{ min-height: 640px; }
  .hero-overlay{
    left: 16px;
    right: 16px;
    bottom: 16%;
    transform: none;
    background-color: var(--teal) !important;
  }
  .hero-title{ max-width: 100%; }

  .editorial-grid{
    grid-template-columns: 1fr;
  }
  .cards{
    grid-template-columns: 1fr;
  }
  .contact-grid{
    grid-template-columns: 1fr;
  }
  .footer-inner{
    grid-template-columns: 1fr;
    text-align: left;
  }
  .footer-right{ text-align: left; }

  /* on évite de surcharger en mobile */
  .shape-orange{ display: none; }
  .shape-right{ display: none; }
}


/* état actif du menu */
/* état actif du menu */
.nav a.is-active{
  background: var(--teal);
  color: #fff;
  box-shadow: 0 6px 18px rgba(42,166,168,.45);
}

/* si Contact est actif, il reprend le style actif */
.nav a.nav-cta.is-active{
  background: var(--teal);
  color: #fff;
}



:root{
  --header-h: 86px; /* ajuste si besoin */
}

.site-header{
  height: var(--header-h);
  display: flex;
  align-items: center;
}

/* le hero laisse respirer en haut */
.hero{
  padding-top: var(--header-h);
  height: calc(100svh + var(--header-h));
}


.brand-text-only{
  font-weight: 800;
  letter-spacing: .3px;
}


.hero-logo{
  position: absolute;
  top: 150px;              /* sous le menu */
  left: 180px;              /* marge comme sur la maquette */
  width: 450px;            /* TAILLE DU LOGO */
  height: auto;
  z-index: 3;

  background: rgba(255,255,255,.85);
  padding: 14px;
  border-radius: 50%;
  box-shadow: 0 20px 40px rgba(2,6,23,.25);
}

@media (max-width: 900px){
  .hero-logo{
    width: 20px;
    top: 90px;
    left: 20px;
  }
}

@media (max-width: 500px){
  .hero-logo{
    width: 196px;
    top: 80px;
    left: 80px;
  }
}

@media (max-width: 900px){
  h1{ font-size: 30px; }
  h2{ font-size: 24px; }
}

@media (max-width: 500px){
  h1{ font-size: 26px; }
  h2{ font-size: 22px; }
}





.hero-bridge{
  position: relative;
  height: 0;          /* on ne crée pas d’espace, juste un ancrage */
  z-index: 5;         /* au-dessus des sections */
}

/* Orange à cheval : moitié sur le hero, moitié sur le blanc */
.hero-bridge .shape-orange{
  /* ton code EXISTANT */
  position: absolute;
  width: 330px;
  height: 260px;
  left: 0px;
  top: -180px;
  background-image: url("../img/forme-orange-agir-pour-villemur.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  filter: drop-shadow(0 18px 26px rgba(2,6,23,.10));

  /* AJOUT SIMPLE */
  transform: scale(1.55);
  transform-origin: center;
}


@media (max-width: 700px){
  .hero-bridge .shape-orange{
    width: 240px;
    height: 190px;
    left: 14px;
    top: -80px;
  }
}



.agirtitre { font-size: 2rem; }


/* ====== Composant équipe : fiche + onglets ====== */
.team-card{
  border: 1px solid #000;
  background: #fff;
  padding: 24px;
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  grid-template-rows: auto auto;
  gap: 22px;

}

.team-photo{
  margin: 0;
  border: 1px solid rgba(15,23,42,.12);
  overflow: hidden;
  background: #f5f5f5;
  min-height: 280px;
}

.team-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-content{
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
}

.team-name{
  border: 1px solid #000;
  padding: 14px 16px;
  font-weight: 800;
  font-size: clamp(18px, 2vw, 28px);
}

.team-bio{
  border: 1px solid rgba(15,23,42,.12);
  padding: 18px 18px;
  font-size: clamp(16px, 1.6vw, 26px);
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 220px;
}

.team-tabs{
  grid-column: 1 / -1;
  border: 1px solid #000;
  padding: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.team-tab{
  border: 1px solid #000;
  background: #fff;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.team-tab:hover{
  transform: translateY(-1px);
}

.team-tab.is-active{
  background: #000;
  color: #fff;
}

/* Responsive */
@media (max-width: 900px){
  .team-card{
    grid-template-columns: 1fr;
  }
  .team-bio{
    min-height: 160px;
  }
}

/* FIX BIO: empêcher l'affichage en colonnes / cassage bizarre */
.team-bio{
  border: 1px solid rgba(15,23,42,.12);
  padding: 18px;
  font-size: 16px;
  line-height: 1.55;

  /* IMPORTANT : on enlève le flex centré */
  display: block;
  text-align: left;

  min-height: 220px;
}


/* option: largeur pleine sur mobile */
@media (max-width: 900px){
  #teamBio{ max-width: 100%; }
}


#teamBio p{
  margin: 0 0 12px;
}

#teamBio ul{
  margin: 0 0 12px;
  padding-left: 18px;
}

/* #teamBio blockquote{
  margin: 14px 0 30px; 
  padding: 12px 14px;
  border-left: 4px solid rgba(42,166,168,.65);
  background: rgba(42,166,168,.08);
  border-radius: 10px;
  font-style: italic;
} */


#teamPhoto{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-photo-wrap{
  height: 420px;        /* ajuste selon ton design */
  overflow: hidden;
}

/* ====== TEAM LIST (empilé + alternance) ====== */
.team-list{
  display: grid;
  gap: 24px;
  margin-top: 18px;
}

.team-card{
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 18px;
  align-items: stretch;
  background: #fff;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(2,6,23,.08);
  overflow: hidden;
}

/* alternance garantie : on change l'ordre, pas la grille */
.team-card .team-photo{ order: 1; }
.team-card .team-content{ order: 2; }

.team-card.is-reverse .team-photo{ order: 2; }
.team-card.is-reverse .team-content{ order: 1; }

/* sans photo */
.team-card.no-photo{
  grid-template-columns: 1fr;
}

.team-photo{
  position: relative;
  min-height: 360px;
  background: #f1f5f9;
  margin: 0;
}

.team-photo img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.team-content{
  padding: 16px 18px;
}

.team-name{
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 28px;
  margin: 0 0 10px;
  border: 1px solid rgba(15,23,42,.12);
  padding: 10px 12px;
}


.team-bio p{
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

.team-bio blockquote{
  margin: 14px 0 30px;
  padding: 12px 14px;
  border-left: 4px solid rgba(42,166,168,.65);
  background: rgba(42,166,168,.08);
  border-radius: 10px;
  font-style: italic;
}

@media (max-width: 900px){
  .team-card{ grid-template-columns: 1fr; }
  .team-photo{ min-height: 260px; }

  /* en mobile : empilement naturel */
  .team-card.is-reverse .team-photo,
  .team-card.is-reverse .team-content{
    order: initial;
  }
}


/* Responsive */
@media (max-width: 900px){
  .team-card,
  .team-card.is-reverse{
    grid-template-columns: 1fr;
  }
  .team-photo{ min-height: 260px; }
}

/* Carte sans photo */
.team-card.no-photo{
  grid-template-columns: 1fr;
}

.team-card.no-photo .team-content{
  padding-left: 20px;
}


.team-card{
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 18px;
  align-items: stretch;
  background: #fff;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(2,6,23,.08);
  overflow: hidden;
}

/* par défaut : photo à gauche */
.team-card .team-photo{ order: 1; }
.team-card .team-content{ order: 2; }

/* inversé : photo à droite */
.team-card.is-reverse .team-photo{ order: 2; }
.team-card.is-reverse .team-content{ order: 1; }

/* sans photo */
.team-card.no-photo{
  grid-template-columns: 1fr;
}


@media (max-width: 900px){
  .team-card{ grid-template-columns: 1fr; }
  .team-photo{ min-height: 260px; }
  .team-card.is-reverse .team-photo,
  .team-card.is-reverse .team-content{
    order: initial; /* en mobile, on remet un empilement naturel */
  }
}


.team-card.photo-only{
  grid-template-columns: 1fr;
}

.team-card.photo-only .team-photo{
  min-height: 520px; /* plus grand si photo seule */
}


@media (max-width: 700px){
  .hero-title h1{
    white-space: normal;
    font-size: 28px;      /* ajuste si besoin */
    line-height: 1.1;
  }

  .hero-title{
    max-width: calc(100% - 32px); /* évite que le bandeau sorte */
  }
}



/* =========================
   ACTUALITÉS (2 colonnes responsive)
========================= */
.news-grid{
  width: 100%;
  display: grid;
  gap: 18px;

  /* 2 colonnes sur écran “normal” */
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Mobile : 1 colonne */
@media (max-width: 700px){
  .news-grid{ grid-template-columns: 1fr; }
}


.news-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
}


/* Peu importe ce que renvoie list.php (article, div, a...) */
.news-grid > *{
  width: 100%;
  min-width: 0;
}



/* Style “carte” robuste */
.news-card,
.news-grid > article,
.news-grid > a,
.news-grid > div{
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: #2c6d73 !important;
}

/* Zone image si présente */
.news-thumb{
  width: 100%;
  height: 150px;
  background: #f2f2f2;
}
.news-thumb img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Contenu */
.news-body{
  padding: 12px 14px;
}
/* Date des news */
.news-card .news-date{
  color: #5a5a5a;      /* plus foncé */
  font-weight: 500;    /* légèrement renforcé */
  font-size: 0.9rem;
  text-align: left;
}
.news-title{
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 8px;
}
.news-excerpt{
  margin: 0 0 10px;
}
.news-more{
  margin-top: auto;
  font-weight: 700;
  color: rgba(42,166,168,1);
}

.news-section{
  max-width: 1200px;
  margin: 0 auto;
}

/* Cartes news */
.news-card{
  background: #fff;

  /* cadre doux mais visible */
  border: 1px solid rgba(0,0,0,0.10);

  /* léger relief */
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);

  border-radius: 14px;

  padding: 18px 20px;

  transition: all 0.25s ease;
}



/* Responsive */
@media (max-width: 900px){
  .news-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px){
  .news-grid{ grid-template-columns: 1fr; }
}

.section-transition-soft {
  position: relative;
  height: 120px;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0),
    rgba(255,255,255,1)
  );
  margin-top: -120px;
  z-index: 2;
}


.team-photos{
  flex-wrap: wrap;              /* autorise la ligne suivante */
}

.team-photos .photo-large{
  flex: 0 0 100%;               /* la grande photo prend toute la largeur */
}

.team-photos > div:last-child{
  flex: 0 0 100%;               /* le crédit passe en dessous */
}

.alalign{
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  justify-content: flex-end; /* <-- pousse le contenu à droite */
  margin-top: 6px;
  text-align: initial;       /* optionnel : évite les conflits */
}

.alalign p{
  margin: 0;
  color: #000;
  margin-right: 15px;
}

/*
.team-photos {
    display: flex;
    gap: 15px;
    margin: 0;
}

/* Grande photo 
.photo-large {
    flex: 2;
    margin-top: 0 !important;
}*/

/* .photo-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
} */

.photo-large img {
    width: 100%;
    height: auto;
    display: block;
}


/* Groupe des petites */
/*.photo-small-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.photo-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}
*/


.hero,
.section,
.editorial{
  overflow-x: clip;   /* mieux que hidden quand dispo */
}


.compteur-visites{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.25);
  font-size: .85rem;
 /* color: rgba(255,255,255,.95); */
  backdrop-filter: blur(4px);
  text-align: center;
  color: #000 !important;
}


.compteur-visites strong{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
}


.compteur-visites > span:first-child{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #000 !important;
}



.cv-icon{
  display: inline-block;
  transform: translateY(-1px);
}

.compteur-visites:hover .cv-icon{
  animation: cvblink .6s ease-in-out;
}

@keyframes cvblink{
  0%,100%{ transform: translateY(-1px) scale(1); }
  50%{ transform: translateY(-1px) scale(1.2); }
}

@media (max-width: 700px){

  .hero{
    height: 100svh;
    min-height: 100svh;
    padding-top: var(--header-h);
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-items: center;
  }

}

@media (max-width: 700px){

  .hero-logo{
    position: static;
    width: 160px;
    margin: 0 auto 0;
    margin-bottom: 18px;
    background: rgba(255,255,255,.9);
    transform: translateX(-80px); 
  }

}

@media (max-width: 700px){
  .hero-bg{
   /* margin-top: 80px; */
    object-position: 75% 35%;
  }
}


@media (max-width: 700px){

.hero-title{
  text-align: center;
  border-radius: 14px;
  padding: 16px 18px;
  transform: translate(20px, 70px); /* X, Y */
}

}

@media (max-width: 700px){
  .hero-overlay{
    margin: 0 auto 32px;
  }
}

/* ===== Accordéon équipe ===== */
.team-accordion{
  margin-bottom: 16px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(2,6,23,.08);
}

/* Titre cliquable */
.team-accordion-title{
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 800;
  background: #fff;
  border: none;
  cursor: pointer;
  position: relative;
}

/* petite flèche */
.team-accordion-title::after{
  content: "＋";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
}

.team-accordion.is-open .team-accordion-title::after{
  content: "−";
}

/* Contenu replié */
.team-accordion-content{
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  background: #fff;
}

/* Quand ouvert */
.team-accordion.is-open .team-accordion-content{
  max-height: 2000px; /* large marge */
}


.small.is-ok { color: #0f766e; font-weight: 600; }
.small.is-err { color: #b91c1c; font-weight: 600; }


.reseaux {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.rs-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Couleurs réseaux */
.reseaux {
  display: flex;
  gap: 16px;
  margin: 15px 0 20px;
  justify-content: center;
}

.rs-btn {
  width: 64px;
  height: 64px;
  border-radius: 18px; /* arrondi moderne */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Facebook */
.rs-btn.facebook {
  background: linear-gradient(135deg, #1877f2, #0f5bd5);
}

/* Instagram */
.rs-btn.instagram {
  background: linear-gradient(
    135deg,
    #f58529,
    #dd2a7b,
    #8134af,
    #515bd4
  );
}

/* WhatsApp */
.rs-btn.whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

/* Hover bien visible */
.rs-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}



.card{
  display: flex;
  flex-direction: column;
  justify-content: center;   /* ← centrage vertical */
  min-height: 100%;
}

.btn-group{
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 24px;   /* petit espace sous le titre */
}


/* .btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
} */


.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 16px 28px;   /* bouton plus grand */
  min-height: 56px;     /* hauteur confortable */

  font-size: 1.5rem;   /* texte plus gros */
  font-weight: 700;

  border-radius: 999px;
}



/* 
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
}

.card {
  display: flex;
  flex-direction: column;
}

.btn-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
} */

@media (max-width: 600px) {
  .btn-group {
    flex-direction: column;
    align-items: center;
  }
}


.footer-legal-links {
  margin-top: 6px;
}

.footer-legal-links a {
  color: inherit;
  text-decoration: underline;
}

.footer-legal-links a:hover {
  opacity: 0.8;
}


/* ===== ENCART CITOYEN ===== */
.encart-citoyen{
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 30px;
  border: 1px solid rgba(15,23,42,.08);

  width: 100%;
  margin: 0;
}

.encart-citoyen h2{
  margin: 0 0 12px;
  color: var(--teal);
}

.encart-citoyen h3{
  margin: 0 0 16px;
  font-size: 22px;
}

.encart-citoyen p{
  margin: 0 0 14px;
  line-height: 1.50;
  font-size: 1.3rem;
}



/* mobile */
@media (max-width: 700px){
  .encart-citoyen{
    padding: 20px;
  }
  .mobile {
    padding: 20px;
  }
}

/* ===== Header mobile plus visible ===== */
@media (max-width: 900px){

  .site-header{
    background: rgba(42,166,168,0.92); /* bleu/teal */
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(2,6,23,.18);
  }

  .nav a{
    color: #000;   /* lisibilité */
  }

  .burger{
    background: rgba(255,255,255,0.18);
  }
}


@media (max-width: 700px){

  .hero{
    position: relative;
    height: 100svh;
    min-height: 100svh;
    overflow: hidden;
  }

  .hero-overlay{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;          /* ⭐ COLLÉ EN BAS */
    transform: none;
    margin: 0;
    z-index: 4;
  }

  .hero-title{
    transform: none;    /* plus de translate */
    border-radius: 0;   /* style plein largeur (optionnel mais plus pro) */
    padding: 16px 18px;
    text-align: right;
  }

  .hero-title::after{
    display: none;
  }
}

[id]{
  scroll-margin-top: calc(var(--header-h) + 20px);
}

#newsList { min-height: 300px; }
