:root{
  --bg: #171822;
  --nav: #013956;
  --accent: #518695;
  --accent2:#015585;
  --soft: #BBCEDB;
  --on-dark: #f8fafc;

  --text: #0b0f19;
  --text-2: #334155;
  --border: rgba(187,206,219,.35);

  --shadow: 0 12px 34px rgba(0,0,0,.18);
  --radius: 18px;
  --radius-lg: 26px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.55;
  background: #fff;
  color: var(--text);
}

header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(1,57,86,.96), rgba(1,57,86,.88));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(187,206,219,.25);
}

.bar{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  position: relative;
}

.brand{
  color: var(--on-dark);
  font-weight: 950;
  letter-spacing: .2px;
  white-space: nowrap;
}

.right{
  display:flex;
  align-items:center;
  gap: 10px;
  justify-content: flex-end;
}

.nav{
  display:flex;
  align-items:center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a{
  color: rgba(248,250,252,.92);
  text-decoration:none;
  font-weight: 850;
  font-size: 14px;
  padding: 10px 10px;
  border-radius: 12px;
  display:inline-block;
}
.nav a:hover{ background: rgba(81,134,149,.14); }

.burger{
  display:none;
  background: transparent;
  border: 1px solid rgba(255,255,255,.26);
  color: var(--on-dark);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 18px;
  cursor:pointer;
  line-height: 1;
}

.quit{
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.26);
  color: var(--on-dark);
  border-radius: 12px;
  padding: 8px 12px;
  font-weight: 950;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
}
.quit:hover{ background: rgba(81,134,149,.18); }
@media (max-width: 900px){ .quit{ padding: 8px 10px; } }

@media (max-width: 900px){
  .burger{ display:inline-block; }

  .nav{
    display:none;
    position:absolute;
    left: 12px; right:12px;
    top: 56px;
    background: rgba(23,24,34,.98);
    border: 1px solid rgba(187,206,219,.22);
    border-radius: 16px;
    padding: 8px;
  }
  .nav.open{ display:block; }
  .nav a{ display:block; }
}

.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 16px;
}

.container > h2{
  font-size: 26px;
  margin: 0 0 14px;
  letter-spacing: .2px;
  font-weight: 950;
  text-align: center;
}

.container > .sub{
  text-align: center;
  margin: 0 auto 22px;
  color: var(--text-2);
  font-size: 15px;
  max-width: 700px;
}

.container > h2::after{
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin: 10px auto 0;
  background: var(--accent2);
  border-radius: 2px;
}

.hero{
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 360px;
  background: #111;
}
.hero img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit: cover;
  transform: scale(1.02);
}
.hero .overlay{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(1,57,86,.15), rgba(23,24,34,.65));
}
.hero .inner{
  position: relative;
  padding: 44px 22px;
  color: var(--on-dark);
  display: grid;
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.hero h1{
  margin:0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: .2px;
  color: #ffffff;
}
.hero p{
  margin:0;
  color: rgba(248,250,252,.92);
  font-size: 16px;
  font-weight: 700;
}
.hero-actions{
  display:flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  justify-content: center;
}
.btn{
  background: var(--accent);
  color: #fff;
  border: 1px solid rgba(187,206,219,.15);
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 900;
  cursor: pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap: 8px;
  transition: filter 0.2s ease;
}

.btn:hover{ filter: brightness(1.05); }

.btn.secondary{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(187,206,219,.22);
}

.btn-questions{
  background: #ffd800;
  color: #c00000;
  font-weight: 900;
  border: 2px solid #c00000;
}

.btn-questions:hover{
  background: #ffe95a;
}

.cards{
  display:grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.card{
  background: linear-gradient(135deg, rgba(81,134,149,.22), rgba(1,57,86,.92));
  border: 1px solid rgba(187,206,219,.25);
  border-radius: var(--radius-lg);
  padding: 14px;
  color: var(--on-dark);
  box-shadow: var(--shadow);
}
.card-link{ text-decoration:none; }
.card-link:hover{ outline: 3px solid rgba(187,206,219,.18); }

.kicker{
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  opacity: .85;
  letter-spacing: .25px;
}
.big{
  margin-top: 6px;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.2;
}
.small{
  margin-top: 6px;
  font-size: 12px;
  opacity: .82;
}

.agenda{
  background:#fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(187,206,219,.45);
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
  overflow: hidden;
}
.agenda .row{
  display:grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(187,206,219,.35);
}
.agenda .row:last-child{ border-bottom:none; }
.agenda .date{ font-weight: 950; color: var(--accent2); }
.agenda .where{ color: var(--text-2); }
@media (max-width: 640px){
  .agenda .row{ grid-template-columns: 1fr; }
}

.team-photo{
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(187,206,219,.45);
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
  cursor: pointer;
  background: #0b1220;
}
.team-photo img{
  width: 100%;
  height: 380px;
  object-fit: contain;
  display: block;
  background: #0b1220;
}
@media (max-width: 640px){
  .team-photo img{ height: 280px; }
}

.popup-backdrop{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.62);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
  z-index: 80;
}
.popup{
  width: min(1100px, 100%);
  height: min(90vh, 900px);
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  border: 1px solid rgba(0,0,0,.08);
  display: grid;
  grid-template-rows: auto 1fr;
}
.popup .top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(187,206,219,.45);
  background: #fff;
}
.popup .top .title{ font-weight: 950; }
.popup .top .close{
  background: #fff;
  border: 1px solid rgba(187,206,219,.55);
  border-radius: 14px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 950;
}
.popup iframe{ width: 100%; height: 100%; border: 0; }

footer{
  margin-top: 26px;
  background: #fff;
  border-top: 1px solid rgba(187,206,219,.45);
}
footer .container{
  font-size: 14px;
  color: var(--text-2);
}

@media (prefers-reduced-motion: reduce){
  html { scroll-behavior: auto; }
}

.container[id]{
  scroll-margin-top: 86px;
}

.card.warm{
  background: linear-gradient(135deg, rgba(255,166,92,.30), rgba(176,74,0,.92));
  border-color: rgba(255,166,92,.35);
}

/* Centrage ciblé : Programme, Contact, Réunions */
.container#programme,
.container#contact,
.container#reunions{
  text-align: center;
}

/* Programme : garder les listes lisibles (alignées à gauche) */
#programme details{
  text-align: left;
  max-width: 900px;
  margin: 0 auto 12px;
}

/* Réunions : titre + intro centrés, mais agenda lisible */
#reunions .agenda{
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}

/* ===== Programme – Titres des chapitres ===== */
details summary{
  font-weight: 950;
  font-size: 20px;
  cursor: pointer;
  list-style: none;
  margin-bottom: 10px;
  color: var(--accent2);
}

details summary::-webkit-details-marker{
  display: none;
}

/* ===== Puces personnalisées ===== */
details ul{
  list-style: none;
  padding-left: 0;
  margin-top: 8px;
}

details li{
  position: relative;
  padding-left: 28px;
  margin-bottom: 6px;
}

details li::before{
  content: "➜";   /* plus sobre que 👉 */
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent2);
  font-weight: bold;
}

/* ===== Bouton vers PDF programme ===== */
.programme-header {
  display: flex;
  flex-direction: column;
  align-items: center;   /* centre horizontalement */
  gap: 10px;
}

.btn-pdf {
  background-color: #444;
  color: white;
  padding: 8px 14px;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
}

.btn-pdf:hover {
  background-color: #222;
}

/* ===== Entourage rouge élections ===== */

#elections{ outline: 4px solid red !important; }