/* =========================================================
   ÉNERGIE CITOYENNE — v4 "graphique & vivant"
   Palette : Orange #ff8e25 · Bleu #364ca2 · Blanc #ffffff
   ========================================================= */

:root {
  --orange: #ff8e25;
  --orange-light: #fff4e6;
  --orange-dark: #d97200;
  --blue: #364ca2;
  --blue-light: #ebeffe;
  --blue-dark: #1f2d66;
  --white: #ffffff;
  --text: #1a2040;
  --bg: #f8f9ff;
  --radius: 12px;
}

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 3.5rem;
}

body {
  font-family: "Open Sans", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

/* ========== LAYOUT ========== */
.wrap {
  width: min(1100px, 90%);
  margin-inline: auto;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 70vh;
  min-height: 70svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(54, 76, 162, 0.92) 30%, rgba(255, 142, 37, 0.88) 100%),
    url("Capture%20d%27%C3%A9cran%20du%202026-02-28%2017-17-34.png") center / cover no-repeat;
  z-index: 0;
}

/* grain / texture subtile */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.18), transparent 50%),
              radial-gradient(circle at 75% 75%, rgba(255,142,37,0.22), transparent 45%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 5vh 1rem 2rem;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-logo {
  width: min(200px, 42vw);
  margin: 0 auto 1.4rem;
  filter: drop-shadow(0 10px 30px rgba(10, 17, 40, 0.35));
  animation: float 6s ease-in-out infinite;
  border-radius: 20px;
  padding:20px;
  border:5px solid white;
  background-color: white;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.hero-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  text-transform: uppercase;
  letter-spacing: 0.015em;
  line-height: 1.1;
  margin-bottom: 0.3rem;
  text-shadow: 0 4px 20px rgba(10, 18, 50, 0.3);
}

.hero-subtitle {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.hero-location {
  font-size: 1.1rem;
  font-weight: 500;
  opacity: 0.92;
  margin-bottom: 1.6rem;
}

/* CTA Button */
.btn {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn--hero {
  background: var(--orange);
  color: var(--white);
  padding: 0.7rem 1.6rem;
  font-size: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 24px rgba(255, 142, 37, 0.35);
}

.btn--hero:hover {
  box-shadow: 0 12px 32px rgba(255, 142, 37, 0.5);
}

/* Navigation bar */
.topnav {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  padding: 1rem 0.5rem 0;
}

.topnav a {
  color: var(--white);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(3px);
  transition: background 0.2s;
}

.topnav a:hover {
  background: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

/* Vague decorative en bas du hero */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 2;
}

/* ========== SECTIONS ========== */
.sec {
  padding: 5rem 0;
}

.sec-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  color: var(--blue);
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.sec-title span {
  position: relative;
  display: inline-block;
}

.sec-title span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 5px;
  width: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-dark));
}

.sec-title--light {
  color: var(--white);
}

.sec-title--light span::after {
  background: rgba(255, 255, 255, 0.5);
}

.sec-lead {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 2rem;
  max-width: 700px;
}

.sec-lead--light {
  color: rgba(255, 255, 255, 0.92);
}

/* ========== INTRO / PRÉSENTATION ========== */
.intro-block {
  position: relative;
  
  border-radius: var(--radius);
  padding-left: clamp(1.3rem, 4vw, 2.4rem);
  margin-top: clamp(1.3rem, 4vw, 2.4rem);
  overflow: hidden;
}

.intro-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 100%;
  background: linear-gradient(180deg, var(--blue), var(--orange));
  border-radius: var(--radius) 0 0 var(--radius);
}

.intro-text {
  padding-left: 0.6rem;
}

.intro-salut {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--blue);
  margin-bottom: 0.6rem;
}

.intro-text p {
  margin-bottom: 0.85rem;
}

.intro-text p:last-child {
  margin-bottom: 0;
}

/* ========== PHOTO RIBBON (bandeau) ========== */
.photo-ribbon {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  overflow: hidden;
  height: clamp(160px, 22vw, 300px);
}

.photo-ribbon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== PROJETS ========== */
.sec--blue {
  background: linear-gradient(145deg, var(--blue-dark), var(--blue) 65%, #4b65c7);
  color: var(--white);
}

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

.project {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 1.5rem 1.2rem 1.2rem;
  transition: transform 0.25s, box-shadow 0.25s;
}

.project:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(10, 18, 50, 0.3);
}

.project-num {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--orange);
  opacity: 0.7;
  display: block;
  margin-bottom: 0.3rem;
}

.project h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}

.project p {
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.88;
}

/* ========== VALEURS ========== */
.values {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.value {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.2rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(24, 40, 80, 0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}

.value:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(24, 40, 80, 0.14);
}

.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-light), var(--orange-light));
  color: var(--blue);
  margin-bottom: 0.8rem;
}

.value h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--blue);
  margin-bottom: 0.35rem;
}

.value p {
  font-size: 0.96rem;
}

/* ========== RENDEZ-VOUS / AGENDA ========== */
.sec--orange {
  background: linear-gradient(150deg, var(--orange), #ff9e43 60%, #ffc16e);
  color: var(--white);
}

.agenda-week {
  margin-bottom: 2rem;
}

.agenda-week:last-child {
  margin-bottom: 0;
}

.agenda-week__title {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.8rem;
  opacity: 0.85;
}

.agenda-cards {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

.ev {
  display: flex;
  gap: 0.9rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  padding: 0.9rem;
  transition: transform 0.2s;
}

.ev:hover {
  transform: scale(1.02);
}

.ev-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  background: var(--white);
  color: var(--blue);
  border-radius: 10px;
  padding: 0.5rem 0.35rem;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  line-height: 1.15;
  flex-shrink: 0;
}

.ev-day {
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ev-num {
  font-weight: 900;
  font-size: 1.7rem;
  color: var(--orange);
}

.ev-month {
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.ev-body p {
  margin: 0 0 0.4rem;
  font-size: 0.93rem;
  line-height: 1.45;
}

.ev-body p:last-child {
  margin-bottom: 0;
}

.ev-body em {
  opacity: 0.85;
}

/* ========== LA LISTE / EQUIPE ========== */
.team-photo {
  margin-bottom: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(24, 40, 80, 0.14);
}

.team-photo img {
  width: 100%;
  display: block;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.45rem 0.8rem;
}

.team-member {
  display: block;
  padding: 0.45rem 0.65rem;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(24, 40, 80, 0.06);
  font-size: 0.95rem;
  transition: background 0.15s;
}

.team-member:hover {
  background: var(--blue-light);
}

.team-member b {
  color: var(--orange);
  font-weight: 800;
  font-family: "Montserrat", sans-serif;
}

.communautaire {
  margin-top: 2rem;
  background: var(--blue-light);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.communautaire h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.6rem;
}

.communautaire-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.35rem 0.8rem;
}

.communautaire-list span {
  display: block;
  padding: 0.35rem 0.5rem;
  background: var(--white);
  border-radius: 6px;
  font-size: 0.94rem;
}

.communautaire-list b {
  color: var(--blue);
  font-weight: 800;
  font-family: "Montserrat", sans-serif;
}

/* ========== DOCUMENTS ========== */
.sec--docs {
  background: linear-gradient(145deg, var(--blue-dark), var(--blue));
  color: var(--white);
}

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

.doc-card {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}

.doc-card:hover {
  transform: translateY(-4px) rotate(-0.5deg);
  box-shadow: 0 16px 40px rgba(10, 18, 50, 0.35);
}

.doc-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.doc-card figcaption {
  padding: 0.5rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  opacity: 0.85;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--blue-dark);
  color: var(--white);
  padding: 3.5rem 0 2rem;
}

.footer-inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  height: 100px;
  background-color: white; border-radius: 5px; padding:1px; background: white;
  filter: brightness(1.1) drop-shadow(0 3px 8px rgba(0,0,0,0.25));
}

.footer-tagline {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.25;
  text-transform: uppercase;
}

.footer-tagline span {
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: none;
  opacity: 0.7;
}

.footer-contact h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: var(--orange);
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  transition: color 0.15s;
}

.footer-link:hover {
  color: var(--orange);
  text-decoration: none;
}

.footer-link svg {
  flex-shrink: 0;
}

.footer-copy {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.55;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.2rem;
  margin-top: 0.5rem;
}

/* ========== MODALE ========== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.modal--open {
  pointer-events: auto;
  opacity: 1;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 40, 0.82);
  backdrop-filter: blur(6px);
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.modal-close {
  position: absolute;
  top: -1rem;
  right: -1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--blue-dark);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  display: grid;
  place-items: center;
  transition: background 0.15s, transform 0.15s;
}

.modal-close:hover {
  background: var(--orange);
  color: var(--white);
  transform: scale(1.1);
}

/* ========== BACK TO TOP ========== */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(24, 40, 80, 0.35);
  transition: background 0.15s, transform 0.15s;
}

.back-to-top:hover {
  background: var(--orange);
  transform: translateY(-3px);
  text-decoration: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .sec {
    padding: 3.5rem 0;
  }

  .hero-inner {
    padding-top: 12vh;
  }

  .topnav a {
    font-size: 0.82rem;
    padding: 0.3rem 0.6rem;
  }

  .photo-ribbon {
    grid-template-columns: 1fr;
    height: auto;
  }

  .photo-ribbon img {
    height: 180px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .ev {
    flex-direction: column;
    align-items: flex-start;
  }

  .ev-date {
    flex-direction: row;
    gap: 0.4rem;
    min-width: unset;
    padding: 0.35rem 0.8rem;
  }

  .ev-num {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-wave {
    height: 35px;
  }

  .agenda-cards {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .docs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
