/* -------------------------------------------------------------------------- */
/* Vive Montreuil — Système CSS                                               */
/* -------------------------------------------------------------------------- */

:root {
  --vm-violet: #702f8a;
  --vm-violet-100: #f4eefa;
  --vm-gray-50: #f8f7f6;
  --vm-magenta: #e03c6a;
  --vm-yellow: #ffd500;
  --vm-text: #222222;
  --vm-muted: #555555;
  --vm-border: #e8e6eb;

  --vm-h1: clamp(36px, 5vw, 56px);
  --vm-h2: clamp(28px, 3.5vw, 40px);
  --vm-h3: 24px;
  --vm-body: 18px;
  --vm-small: 15px;

  --vm-radius: 12px;
  --vm-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);

  --vm-sec-pad: 72px;
  --vm-sec-min: 640px;

  --vm-gap-xl: 32px;
  --vm-gap-lg: 24px;
  --vm-gap-md: 16px;
}

@media (max-width: 1199px) {
  :root {
    --vm-sec-pad: 56px;
    --vm-sec-min: 560px;
  }
}

@media (max-width: 767px) {
  :root {
    --vm-sec-pad: 40px;
    --vm-sec-min: 520px;
  }
}

body {
  font-size: var(--vm-body);
  color: var(--vm-text);
  line-height: 1.6;
}

body a {
  color: var(--vm-violet);
  text-decoration: none;
  transition: color 0.2s ease;
}

body a:hover,
body a:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--vm-yellow);
}

body :focus-visible {
  outline: 2px solid var(--vm-yellow);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 1.2em;
  margin-bottom: 0.3em;
  line-height: 1.1;
  font-weight: 700;
  text-transform: none;
}

h1 { font-size: clamp(36px, 5vw, 56px); }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 24px; }
h4,
h5,
h6 { font-size: 20px; }

@media (max-width: 480px) {
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin-top: 1em;
  }
}

/* -------------------------------------------------------------------------- */
/* Sections communes                                                          */
/* -------------------------------------------------------------------------- */
#heros h1,
#le-programme h2,
#bilan h2,
#s-engager h2,
#agenda-militant h2,
#photos h2 {
  margin: 0 0 24px;
}

/* FORMULAIRE ------------------------------------------- */
#engager .form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

/* Lignes en colonnes */
#engager .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 700px) {
  #engager .row {
    grid-template-columns: 1fr;
  }
}

/* Labels */
#engager label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
}

/* Champs textes / select — SANS checkbox */
#engager input:not([type="checkbox"]),
#engager select {
  width: 100%;
  padding: .55rem .7rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}
#engager p {
  margin: .3rem;
}
#engager .wpcf7-spinner {
  display: none !important;
}

/* Layout 2 colonnes pour le hero shortcode */
.vm-hero-columns {
  display: flex;
  gap: 2rem;
  align-items: stretch;
}

/* 70 % pour le texte */
.vm-hero-col-left {
  flex: 0 1 70%;
}

/* 30 % pour l'image */
.vm-hero-col-right {
  flex: 0 1 30%;
  display: flex;
}

.vm-hero-col-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Empilage sur mobile */
@media (max-width: 768px) {
  .vm-hero-columns {
    flex-direction: column;
  }

  .vm-hero-col-left,
  .vm-hero-col-right {
    flex: 0 0 100%;
  }
}

/* -------------------------------------------------------------------------- */
/* Ajustements du Header Builder de Neve                                     */
/* -------------------------------------------------------------------------- */
#header-grid .header-top .builder-item--custom-html .nv-html-content {
  flex: 1;
  text-align: center;
}

#header-grid .header-top .hfg-slot.center {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#header-grid .header-top .hfg-slot.center nav[aria-label="Réseaux sociaux"] {
  margin-left: auto;
  width: auto;
}

#header-grid .header-bottom .builder-item--primary-menu {
  width: 100%;
}

@media (max-width: 767px) {
  #header-grid .header-top .hfg-slot.center {
    flex-direction: column;
  }

  #header-grid .header-top .hfg-slot.center nav[aria-label="Réseaux sociaux"] {
    margin-left: 0;
    margin-bottom: 0.5rem;
    justify-content: center;
  }
}
