/* ============================================================
   UD CGT 2A — Feuille de styles principale
   Mobile-first · CSS custom properties · Grid + Flexbox
   ============================================================ */

/* ---- Variables ---- */
:root {
  --red:        #DD382A;
  --red-dark:   #B32418;
  --red-light:  #F04538;
  --orange:     #F5B800;
  --black:      #111111;
  --dark:       #1A1A1A;
  --dark-2:     #2D2D2D;
  --gray:       #5C5C5C;
  --gray-light: #ABABAB;
  --muted:      #F0F0F0;
  --white:      #FFFFFF;
  --gold:       #D4A017;

  --font-head:  'Oswald', sans-serif;
  --font-body:  'Source Sans 3', sans-serif;
  --font-quote: 'Playfair Display', serif;

  --radius:     6px;
  --radius-lg:  12px;
  --shadow:     0 4px 20px rgba(0,0,0,.12);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.18);
  --transition: .3s ease;

  --container:  1200px;
  --gap:        clamp(1.5rem, 4vw, 3rem);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--dark);
  background: #1A1412 url('../images/hero/jocelyne.jpg') center center / cover fixed;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
address { font-style: normal; }

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: .02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 500; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---- Boutons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn--primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(227,6,19,.35);
}
.btn--primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(227,6,19,.45); }
.btn--outline {
  background: transparent;
  border: 2px solid var(--red);
  color: var(--red);
}
.btn--outline:hover { background: var(--red); color: var(--white); }
.btn--white {
  background: var(--white);
  color: var(--red);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.btn--white:hover { background: var(--muted); transform: translateY(-2px); }
.btn--sm { padding: .5rem 1.2rem; font-size: .8rem; }
.btn--dark { background: #5A5A5A; color: var(--white); }
.btn--dark:hover { background: #444444; }

/* ---- Section labels ---- */
.section-label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--red);
  border-left: 3px solid var(--red);
  padding-left: .75rem;
  margin-bottom: 1rem;
}
.section-label--white { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.6); }

/* ---- Topbar ---- */
.topbar {
  background: rgba(17,17,17,.92);
  color: rgba(255,255,255,.75);
  font-size: .8rem;
  padding: .45rem 0;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.topbar__info { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.topbar__info a, .topbar__info span { color: rgba(255,255,255,.75); transition: color var(--transition); }
.topbar__info a:hover { color: var(--white); }
.topbar__social { display: flex; gap: .5rem; align-items: center; }
.topbar__social a {
  line-height: 0;
  transition: transform var(--transition), filter var(--transition);
}
.topbar__social a:hover .social-icon { filter: sepia(.5) saturate(1.8) brightness(1.05) drop-shadow(0 2px 6px rgba(221,56,42,.6)); transform: scale(1.15) translateY(-1px); }

.social-icon {
  display: block;
  border-radius: 8px;
  transition: filter var(--transition), transform var(--transition);
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled { background: rgba(255,255,255,.97); box-shadow: 0 4px 24px rgba(0,0,0,.18); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .75rem;
  gap: 1rem;
}
.header__logo img { height: 60px; width: auto; transition: transform var(--transition); }
.header__logo:hover img { transform: scale(1.04); }
.header__social {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}
.header__social a {
  line-height: 0;
  transition: transform var(--transition), filter var(--transition);
}
.header__social a:hover .social-icon { filter: sepia(.5) saturate(1.8) brightness(1.05) drop-shadow(0 2px 6px rgba(221,56,42,.6)); transform: scale(1.15) translateY(-1px); }

/* Nav */
.main-nav {}
.nav__list { display: flex; align-items: center; gap: .25rem; }
.nav__link {
  display: block;
  padding: .5rem .85rem;
  font-family: var(--font-head);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--dark);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: .85rem; right: .85rem;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link:hover, .nav__link.is-active { color: var(--red); }
.nav__link--cta {
  background: var(--red);
  color: var(--white) !important;
  padding: .5rem 1.1rem;
  margin-left: .5rem;
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { background: var(--orange); }

.nav__link--elections {
  color: var(--dark) !important;
  background: var(--orange);
  padding: .5rem 1.1rem;
  margin-left: .5rem;
  font-weight: 600;
}
.nav__link--elections::after { display: none; }
.nav__link--elections:hover { background: #e0a800; color: var(--dark) !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  width: 38px;
}
.nav-toggle span {
  display: block;
  height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   HERO — Parallax multi-couches
   ============================================================ */
.hero {
  position: relative;
  height: 90vh;
  min-height: 560px;
  max-height: 820px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__layer {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.hero__layer--bg {
  background-image: url('../images/hero-bg.jpg');
  transform: translateY(0);
}
.hero__layer--overlay {
  background: linear-gradient(
    135deg,
    rgba(17,17,17,.85) 0%,
    rgba(179,0,15,.55) 50%,
    rgba(17,17,17,.7) 100%
  );
  inset: 0;
}
.hero__layer--pattern {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,.02) 40px,
    rgba(255,255,255,.02) 80px
  );
  inset: 0;
}
.hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--white);
  padding: 2rem;
  max-width: 860px;
  animation: heroIn .9s cubic-bezier(.2,.8,.3,1) both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__logo {
  width: clamp(120px, 20vw, 220px);
  margin: 0 auto 2rem;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,.5));
  animation: heroIn .9s .1s cubic-bezier(.2,.8,.3,1) both;
}
.hero__badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .4rem 1.2rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
  animation: heroIn .9s .15s cubic-bezier(.2,.8,.3,1) both;
}
.hero__title {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
  margin-bottom: 1rem;
  animation: heroIn .9s .2s cubic-bezier(.2,.8,.3,1) both;
}
.hero__title span { color: var(--red-light); }
.hero__subtitle {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.8);
  font-style: italic;
  font-family: var(--font-quote);
  margin-bottom: 2rem;
  animation: heroIn .9s .3s cubic-bezier(.2,.8,.3,1) both;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: heroIn .9s .4s cubic-bezier(.2,.8,.3,1) both;
}
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.6);
  font-size: .75rem;
  font-family: var(--font-head);
  letter-spacing: .1em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  animation: bounce 2.5s ease-in-out infinite;
  z-index: 10;
}
.hero__scroll svg { animation: arrowDown 2s ease-in-out infinite; }
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }
@keyframes arrowDown { 0%,100% { opacity: .6; } 50% { opacity: 1; } }

/* ---- Scroll animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--left  { transform: translateX(-40px); }
.reveal--right { transform: translateX(40px); }
.reveal--left.is-visible, .reveal--right.is-visible { transform: translateX(0); }
.reveal--delay-1 { transition-delay: .1s; }
.reveal--delay-2 { transition-delay: .2s; }
.reveal--delay-3 { transition-delay: .3s; }
.reveal--delay-4 { transition-delay: .4s; }

/* ============================================================
   SECTIONS génériques
   ============================================================ */
.section { padding: clamp(3rem, 8vw, 6rem) 0; background: rgba(255,255,255,.88); }
.section--dark { background: rgba(26,20,18,.93); color: var(--white); }
.section--red  { background: rgba(221,56,42,.93); color: var(--white); }
.section--muted { background: rgba(240,240,240,.88); }
.section__header { text-align: center; margin-bottom: var(--gap); }
.section__header h2 { margin-bottom: .75rem; }
.section__header p  { color: var(--gray); max-width: 600px; margin-inline: auto; font-size: 1.05rem; }
.section--dark .section__header p,
.section--red  .section__header p  { color: rgba(255,255,255,.75); }

/* ---- Chiffres clés ---- */
.stats-band {
  background: var(--red);
  color: var(--white);
  padding: 3rem 0;
}
.stats-band__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat__number {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  display: block;
}
.stat__label {
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .85;
  margin-top: .4rem;
}
.stat__sep {
  width: 40px;
  height: 2px;
  background: rgba(255,255,255,.4);
  margin: .75rem auto 0;
}

/* ---- Welcome split ---- */
.welcome-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  align-items: center;
}
@media (min-width: 768px) {
  .welcome-split { grid-template-columns: 1fr 1fr; }
}
.welcome-split__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  max-width: 60%;
  justify-self: center;
}
.welcome-split__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease, box-shadow .6s ease;
}
.welcome-split__image:hover img {
  transform: scale(1.15);
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.welcome-split__text {}
.welcome-split__text .section-label { margin-bottom: 1rem; }
.welcome-split__text h2 { margin-bottom: 1.5rem; }
.welcome-split__text blockquote {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gray);
  border-left: 4px solid var(--red);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
}
.welcome-split__sig {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.welcome-split__sig img {
  width: 60px; height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--red);
}
.welcome-split__sig strong { display: block; font-family: var(--font-head); font-size: 1rem; }
.welcome-split__sig span   { font-size: .85rem; color: var(--gray); }

/* ---- Why union — 4 cards ---- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}
.why-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  border-top: 4px solid transparent;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.why-card:hover { border-color: var(--red); transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.why-card__icon {
  width: 56px; height: 56px;
  background: rgba(221,56,42,.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  color: var(--red);
}
.why-card__icon img { width: 34px; height: 34px; object-fit: contain; }
.why-card h3 { font-size: 1.05rem; margin-bottom: .75rem; color: var(--dark); }
.why-card p  { font-size: .9rem; color: var(--gray); margin: 0; }

/* Cartes sur fond sombre */
.section--dark .why-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: none;
}
.section--dark .why-card:hover { background: rgba(255,255,255,.13); box-shadow: none; }
.section--dark .why-card__icon { background: rgba(221,56,42,.25); }
.section--dark .why-card h3 { color: var(--white); }
.section--dark .why-card p  { color: rgba(255,255,255,.65); }

/* ---- Articles / Cards ---- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}
.article-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); background: rgba(255,255,255,0.18); }

/* Cartes sur fond clair */
.section:not(.section--dark):not(.section--muted) .article-card,
.section--muted .article-card {
  background: rgba(255,255,255,0.85);
  border-color: rgba(0,0,0,0.06);
}
.article-card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--muted);
  position: relative;
}
.article-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.article-card:hover .article-card__image img { transform: scale(1.06); }
.article-card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
}
.article-card__image--placeholder svg { opacity: .2; }
.article-card__badge {
  position: absolute;
  top: .75rem; left: .75rem;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .25rem .7rem;
  border-radius: 3px;
}
.article-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.article-card__meta {
  font-size: .8rem;
  color: var(--gray-light);
  font-family: var(--font-head);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.article-card__meta span::before { content: '•'; margin-right: .5rem; }
.article-card__meta span:first-child::before { content: ''; margin: 0; }
.article-card h3 {
  font-size: 1.05rem;
  margin-bottom: .75rem;
  line-height: 1.3;
  color: var(--dark);
  transition: color var(--transition);
}
.article-card:hover h3 { color: var(--red); }
.article-card p {
  font-size: .9rem;
  color: var(--gray);
  flex: 1;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card__link {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: gap var(--transition);
  margin-top: auto;
}
.article-card__link:hover { gap: .8rem; }

/* Texte des cartes sur section sombre */
.section--dark .article-card h3 { color: rgba(255,255,255,.9); }
.section--dark .article-card p  { color: rgba(255,255,255,.6); }
.section--dark .article-card__meta { color: rgba(255,255,255,.4); }
.article-card__link svg { transition: transform var(--transition); }
.article-card__link:hover svg { transform: translateX(3px); }

.articles-cta { text-align: center; margin-top: 3rem; }

/* ---- Services section ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card__number {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(227,6,19,.12);
  line-height: 1;
  margin-bottom: .5rem;
}
.service-card h3 { font-size: 1.1rem; margin-bottom: .75rem; }
.service-card p  { font-size: .9rem; color: var(--gray); margin: 0; }

/* ---- Organigramme ---- */
.team-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 1rem;
}
.team-grid .team-card {
  flex: 1 1 0;
  min-width: 0;
}
@media (max-width: 900px) {
  .team-grid { flex-wrap: wrap; }
  .team-grid .team-card { flex: 0 0 calc(25% - 1rem); }
}
@media (max-width: 500px) {
  .team-grid .team-card { flex: 0 0 calc(33.33% - 1rem); }
}
.team-card {
  text-align: center;
  transition: transform var(--transition);
}
.team-card:hover { transform: translateY(-4px); }
.team-card__photo {
  width: 100%; max-width: 120px; height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: none;
  transition: transform var(--transition);
}
.team-card:hover .team-card__photo { transform: scale(1.06); }
.team-card__name  { font-family: var(--font-head); font-size: .95rem; font-weight: 600; }
.team-card__role  { font-size: .8rem; color: var(--gray); margin-top: .3rem; }

/* ---- Pôles organigramme ---- */
.poles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.pole-card {
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition);
}
.pole-card:hover { transform: translateY(-4px); }
.pole-card::after {
  content: '';
  position: absolute;
  bottom: -30px; right: -30px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(227,6,19,.2);
}
.pole-card__num {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: .5rem;
}
.pole-card h3 { font-size: 1rem; margin-bottom: .75rem; color: var(--white); }
.pole-card p  { font-size: .88rem; color: rgba(255,255,255,.65); margin: 0; }
.pole-card__responsables {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.12);
}
.pole-card__resp-label {
  display: block;
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  margin-bottom: .5rem;
}
.pole-card__resp-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
  transition: color var(--transition);
  padding-left: .25rem;
  margin-bottom: .3rem;
}
.pole-card__resp-link::before {
  content: "●";
  font-size: .55rem;
  flex-shrink: 0;
  margin-top: .05em;
}
.pole-card__resp-link:hover { color: var(--orange); }

/* ---- Structures implantées ---- */
.structures-band {
  padding: 5rem 0;
  background: #1e1e22;
}
.structures-band__inner {
  display: flex;
  align-items: center;
  gap: 0;
}
.structures-band__left {
  flex: 0 0 38%;
  padding-right: 4rem;
}
.structures-band__title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--red);
  line-height: 1.15;
  margin-bottom: 2rem;
}
.structures-band__btn {
  font-size: .75rem;
  letter-spacing: .18em;
  padding: .6rem 1.4rem;
}
.structures-band__sep {
  flex: 0 0 2px;
  align-self: stretch;
  background: var(--red);
  min-height: 260px;
  margin: 0 3rem;
}
.structures-band__right {
  flex: 1;
}
.structures-logos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 3rem;
  align-items: center;
  justify-items: center;
}
.structures-logos img {
  max-height: 80px;
  max-width: 200px;
  width: auto;
  height: auto;
  opacity: .85;
  filter: brightness(0) invert(1);
  transition: opacity var(--transition);
}
.structures-logos img:hover { opacity: 1; }

@media (max-width: 768px) {
  .structures-band__inner { flex-direction: column; gap: 2.5rem; }
  .structures-band__left { flex: none; width: 100%; padding-right: 0; text-align: center; }
  .structures-band__sep { min-height: 2px; width: 60px; flex: 0 0 2px; }
  .structures-band__right { width: 100%; }
}

/* ---- Contact CTA band ---- */
.contact-cta {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}
.contact-cta h2 { margin-bottom: 1rem; }
.contact-cta p { color: rgba(255,255,255,.75); max-width: 520px; margin-inline: auto; margin-bottom: 2rem; }
.contact-cta__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- Page header (pages intérieures) ---- */
.page-header {
  background: url('../images/banniere.jpg') center center / cover no-repeat;
  color: var(--white);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(10,10,10,.80) 0%, rgba(10,10,10,.55) 55%, rgba(180,20,10,.45) 100%);
}
.page-header .container { position: relative; z-index: 1; }
.page-header__breadcrumb {
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  font-family: var(--font-head);
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.page-header__breadcrumb a { color: rgba(255,255,255,.55); }
.page-header__breadcrumb a:hover { color: var(--white); }
.page-header__breadcrumb span { color: rgba(255,255,255,.35); margin: 0 .4rem; }
.page-header h1 { color: var(--white); }

/* ---- Affiche élections (desktop only) ---- */
.elections-poster-wrap {
  display: none;
  flex-shrink: 0;
}
.elections-poster-img {
  width: 300px;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,.55)) drop-shadow(0 4px 10px rgba(0,0,0,.35));
  animation: posterEntrance .8s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes posterEntrance {
  from {
    opacity: 0;
    transform: translateX(40px) scale(.93) rotate(3deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1) rotate(0deg);
  }
}
@media (min-width: 1024px) {
  .elections-poster-wrap { display: flex; }
}

/* ---- Article single ---- */
.article-single {
  padding: 4rem 0;
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, .18), 0 8px 40px rgba(0, 0, 0, .18);
  position: relative;
  z-index: 1;
}
.article-single__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .article-single__layout { grid-template-columns: minmax(0,1fr) 320px; }
}
.article-single__cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2.5rem;
  aspect-ratio: 16/9;
}
.article-single__cover img { width: 100%; height: 100%; object-fit: cover; }
.article-single__content { font-size: 1.05rem; line-height: 1.8; }
.article-single__content h2,
.article-single__content h3 { margin: 2rem 0 1rem; }
.article-single__content p  { margin-bottom: 1.25rem; }
.article-single__content strong { color: var(--dark); }
.article-single__content ul,
.article-single__content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.article-single__content li { margin-bottom: .4rem; }
.article-single__content blockquote {
  border-left: 4px solid var(--red);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gray);
}

/* Vidéo embed */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin: 2rem 0;
  box-shadow: var(--shadow);
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* Article sidebar */
.article-sidebar {}
.sidebar-widget {
  background: var(--muted);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-widget h3 {
  font-size: 1rem;
  border-bottom: 2px solid var(--red);
  padding-bottom: .5rem;
  margin-bottom: 1rem;
}
.sidebar-article {
  display: flex;
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.sidebar-article:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-article img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.sidebar-article__text h4 { font-size: .85rem; margin-bottom: .25rem; line-height: 1.3; }
.sidebar-article__text span { font-size: .75rem; color: var(--gray); font-family: var(--font-head); }
.sidebar-article a:hover h4 { color: var(--red); }

/* ---- Filtres articles ---- */
.articles-filters {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: .4rem 1rem;
  border-radius: 20px;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 2px solid var(--muted);
  background: var(--white);
  color: var(--gray);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.is-active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* ---- Formulaires ---- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 600px) {
  .form-grid--2col { grid-template-columns: 1fr 1fr; }
}
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dark);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid var(--muted);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--red); }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-hint { font-size: .8rem; color: var(--gray-light); }
.form-success {
  background: #e8f5e9;
  border: 2px solid #4caf50;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: #2e7d32;
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.form-error {
  background: #fce4e4;
  border: 2px solid var(--red);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: var(--red-dark);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

/* ---- Se syndiquer ---- */
.syndic-steps {
  counter-reset: steps;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.syndic-step {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
  counter-increment: steps;
}
.syndic-step::before {
  content: counter(steps);
  position: absolute;
  top: -16px; left: 1.5rem;
  width: 36px; height: 36px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
}
.syndic-step h3 { margin-bottom: .75rem; margin-top: .5rem; }
.syndic-step p  { font-size: .9rem; color: var(--gray); margin: 0; }

/* ---- Page Contact ---- */
.contact-page { background: rgba(255,255,255,.97); }

.contact-page__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
@media (min-width: 900px) {
  .contact-page__grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

/* Colonne gauche */
.contact-page__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
}
.contact-icon-wrap { line-height: 0; }
.contact-page__tagline {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--dark);
  margin: 1rem 0 .75rem;
}
.contact-page__desc {
  font-size: .95rem;
  color: var(--gray);
  max-width: 320px;
  line-height: 1.7;
  margin-bottom: 0;
}
.contact-page__org {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
  margin: 1rem 0 .75rem;
}
.contact-page__address {
  font-style: normal;
  font-size: .95rem;
  color: var(--gray);
  line-height: 2;
}
.contact-page__tel {
  color: var(--red);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}
.contact-page__tel:hover { text-decoration: underline; }

/* Colonne droite — formulaire */
.contact-page__form { padding: 2rem 0; }
.contact-page__form-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.75rem;
}
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.cf-group { display: flex; flex-direction: column; gap: .35rem; }
.cf-group label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--dark);
}
.cf-required { color: var(--red); }
.cf-group input,
.cf-group textarea {
  width: 100%;
  border: 1.5px solid #ccc;
  border-radius: 4px;
  padding: .65rem .85rem;
  font-size: .95rem;
  font-family: var(--font-body);
  color: var(--dark);
  background: #fff;
  transition: border-color .2s;
  box-sizing: border-box;
}
.cf-group input:focus,
.cf-group textarea:focus {
  border-color: var(--red);
  outline: none;
}
.cf-group textarea { resize: vertical; min-height: 130px; }
.cf-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.cf-counter {
  font-size: .8rem;
  color: var(--gray);
}
.contact-form__submit {
  align-self: flex-start;
  letter-spacing: .14em;
  padding: .75rem 2.5rem;
  font-size: .85rem;
}
.contact-success {
  background: #e6f4ea;
  border-left: 4px solid #2e7d32;
  padding: 1rem 1.25rem;
  border-radius: 4px;
  color: #1b5e20;
  margin-bottom: 1.5rem;
  font-size: .95rem;
}
.contact-errors {
  background: #fdecea;
  border-left: 4px solid var(--red);
  padding: 1rem 1.25rem;
  border-radius: 4px;
  color: #b71c1c;
  margin-bottom: 1.5rem;
  font-size: .9rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

/* Ancien contact-info (conservé pour compatibilité) */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-info-item svg {
  flex-shrink: 0;
  color: var(--red);
  margin-top: .1rem;
}
.contact-info-item strong { display: block; font-family: var(--font-head); font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: .2rem; }
.contact-info-item p, .contact-info-item a { font-size: .95rem; color: var(--gray); margin: 0; }
.contact-info-item a:hover { color: var(--red); }

/* ---- Footer ---- */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,.75);
  padding: 4rem 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__logo { margin-bottom: 1rem; max-width: 140px; height: auto; }
.footer__tagline { font-size: .88rem; color: rgba(255,255,255,.55); }
.footer__social { display: flex; gap: .6rem; margin-top: 1.25rem; align-items: center; }
.footer__social a {
  line-height: 0;
  transition: transform var(--transition), filter var(--transition);
}
.footer__social a:hover .social-icon { filter: sepia(.5) saturate(1.8) brightness(1.05) drop-shadow(0 3px 8px rgba(221,56,42,.65)); transform: scale(1.15) translateY(-2px); }
.footer__heading {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 1.25rem;
}
.footer__links li { margin-bottom: .6rem; }
.footer__links a { font-size: .9rem; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer__links a:hover { color: var(--white); }
.footer__address { font-size: .9rem; color: rgba(255,255,255,.6); line-height: 1.7; margin-bottom: .75rem; }
.footer__text { font-size: .88rem; color: rgba(255,255,255,.55); margin-bottom: 1rem; }
.footer__bottom {
  padding: 1.25rem 0;
  display: flex;
}
.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer__bottom p { font-size: .8rem; color: rgba(255,255,255,.35); margin: 0; }
.footer__bottom a { color: rgba(255,255,255,.35); transition: color var(--transition); }
.footer__bottom a:hover { color: rgba(255,255,255,.7); }

/* ---- Pagination ---- */
.pagination {
  display: flex;
  gap: .5rem;
  justify-content: center;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 500;
  border: 2px solid var(--muted);
  color: var(--gray);
  transition: all var(--transition);
}
.page-link:hover, .page-link.is-active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .topbar { display: none; }

  /* Supprime le containing-block créé par backdrop-filter sur iOS/Chrome */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
  /* Idem pour la homepage scrollée (spécificité plus haute que la règle au-dessus) */
  .homepage .site-header.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; }

  /* Nav mobile au-dessus du header (1001 > 1000) pour éviter que le header transparent intercepte les touches */
  .main-nav { z-index: 1001; }

  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 80vw);
    height: 100vh;
    background: var(--dark);
    padding: 5rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 999;
    box-shadow: -8px 0 40px rgba(0,0,0,.3);
  }
  .main-nav.is-open { transform: translateX(0); }

  .nav__list { flex-direction: column; align-items: flex-start; gap: .25rem; }
  .nav__link { color: rgba(255,255,255,.8); font-size: 1.05rem; padding: .75rem 0; width: 100%; }
  .nav__link:hover, .nav__link.is-active { color: var(--white); }
  .nav__link::after { background: rgba(255,255,255,.5); }
  .nav__link--cta {
    background: var(--red);
    color: var(--white) !important;
    padding: .75rem 1.25rem;
    border-radius: var(--radius);
    margin-left: 0;
    margin-top: 1rem;
    width: auto;
    display: inline-flex;
  }
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
  }
  .nav-overlay.is-open { opacity: 1; pointer-events: all; }
}

@media (max-width: 600px) {
  .hero__actions { flex-direction: column; align-items: center; }
  .article-single__layout { grid-template-columns: 1fr; }
  .footer__bottom .container { flex-direction: column; text-align: center; }
}

/* ============================================================
   Homepage — header transparent intégré dans le hero
   ============================================================ */
.homepage .topbar { display: none; }

.homepage .site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: transparent;
  box-shadow: none;
  z-index: 1000;
}
.homepage .site-header.scrolled {
  position: fixed;
  background: rgba(20, 20, 20, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}

/* Liens nav blancs sur fond sombre (scrolled) */
.homepage .site-header.scrolled .nav__link { color: rgba(255,255,255,.85); }
.homepage .site-header.scrolled .nav__link:hover,
.homepage .site-header.scrolled .nav__link.is-active { color: var(--white); }
.homepage .site-header.scrolled .nav__link::after { background: var(--white); }
.homepage .site-header.scrolled .nav__link--cta {
  background: var(--red);
  color: var(--white) !important;
}
.homepage .site-header.scrolled .nav__link--cta:hover { background: var(--orange); }
.homepage .site-header.scrolled .nav__link--elections {
  background: var(--orange);
  color: var(--dark) !important;
}
.homepage .site-header.scrolled .nav__link--elections:hover { background: #e0a800; }

/* Liens nav blancs sur fond transparent (non scrolled) */
.homepage .site-header:not(.scrolled) .nav__link { color: rgba(255,255,255,.88); }
.homepage .site-header:not(.scrolled) .nav__link:hover,
.homepage .site-header:not(.scrolled) .nav__link.is-active { color: var(--white); }
.homepage .site-header:not(.scrolled) .nav__link::after { background: var(--white); }
.homepage .site-header:not(.scrolled) .nav__link--cta {
  background: var(--red);
  color: var(--white) !important;
}
.homepage .site-header:not(.scrolled) .nav__link--cta:hover { background: var(--orange); }
.homepage .site-header:not(.scrolled) .nav__link--elections {
  background: var(--orange);
  color: var(--dark) !important;
}
.homepage .site-header:not(.scrolled) .nav__link--elections:hover { background: #e0a800; }

/* Logo légèrement plus lumineux sur fond sombre */
.homepage .site-header:not(.scrolled) .header__logo img {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
}

/* Hamburger blanc sur mobile */
@media (max-width: 900px) {
  .homepage .site-header:not(.scrolled) .nav-toggle span { background: var(--white); }
}

/* ---- Utilitaires ---- */
.text-center { text-align: center; }
.text-red { color: var(--red); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
