/* ═══════════════════════════════════════════
   PROXIMITÉ — Feuille de styles
═══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }

/* ── Fond & overlay ── */
body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: #fff;
  background: url('VILLE BLEUE 1 PEKIN.png') center/cover fixed no-repeat;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(2, 10, 40, 0.50);
}

body.page-circo::before     { background: rgba(2, 12, 45, 0.52); }
body.page-equipe::before    { background: rgba(2, 10, 38, 0.55); }
body.page-programme::before { background: rgba(4, 14, 50, 0.52); }
body.page-accueil {
  background: url('villebleuemodifie.jpg') center/cover fixed no-repeat;
}
body.page-connaitre {
  background: url('Lanternes.jpg') center/cover fixed no-repeat;
}
body.page-connaitre::before { background: rgba(5, 20, 55, 0.65); }
body.page-contact::before   { background: rgba(3, 12, 44, 0.52); }

nav, main, header, footer, .modal-overlay {
  position: relative;
  z-index: 1;
}

/* ── Nav ── */
nav {
  background: rgba(0, 0, 0, 0.30);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  margin-right: auto;
}

.nav-links { display: flex; align-items: center; gap: 20px; }

.nav-links a {
  color: rgba(255,255,255,0.80);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Page wrapper ── */
.page-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 28px 70px;
  position: relative;
  z-index: 1;
}

/* ── Back link ── */
.back-link {
  display: inline-block;
  margin-bottom: 32px;
  color: rgba(255,255,255,0.70);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.back-link:hover { color: #fff; }

/* ── Page title ── */
.page-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 12px;
}

.page-subtitle {
  text-align: center;
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  margin-bottom: 48px;
  letter-spacing: 0.03em;
}

/* ═══════════════════════════════════════════
   HOME PAGE
═══════════════════════════════════════════ */

.home-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.home-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 28px 40px;
  position: relative;
  z-index: 1;
}

.home-logo {
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}

.home-slogan { display: none; }

/* 5 buttons grid */
.home-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.home-buttons .row-2 {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.home-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 16px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.18s, border-color 0.2s;
  backdrop-filter: blur(6px);
  text-align: center;
  position: relative;
}

.home-btn:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.45);
  transform: translateY(-3px);
}

.home-btn svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  opacity: 0.9;
}

.home-btn-label {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
}

.home-btn .badge {
  font-size: 0.7rem;
  background: rgba(255,255,255,0.20);
  border: 1px solid rgba(255,255,255,0.30);
  border-radius: 20px;
  padding: 3px 10px;
  letter-spacing: 0.04em;
  margin-top: 2px;
  white-space: nowrap;
}

.home-btn.disabled {
  opacity: 0.6;
  cursor: default;
}
.home-btn.disabled:hover {
  transform: none;
  background: rgba(255,255,255,0.10);
}

/* Row 2 buttons width */
.home-buttons .row-2 .home-btn {
  width: calc((900px - 40px) / 3);
  max-width: 280px;
  min-width: 180px;
}

/* Home footer logo */
.home-footer {
  text-align: center;
  padding: 32px 20px;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.home-footer-logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.50);
}

/* ═══════════════════════════════════════════
   CIRCO PAGE
═══════════════════════════════════════════ */

.circo-map {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  overflow: hidden;
  max-width: 700px;
  margin: 0 auto 48px;
}

.circo-map img {
  width: 100%;
  display: block;
}

.circo-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.stat-card {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 12px;
  padding: 24px 36px;
  text-align: center;
  backdrop-filter: blur(6px);
}

.stat-card .stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  display: block;
  margin-bottom: 6px;
}

.stat-card .stat-label {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.70);
  text-transform: uppercase;
}

.stat-card .stat-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.50);
  margin-top: 6px;
  line-height: 1.5;
}

.cities-title {
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.60);
  margin-bottom: 24px;
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.city-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
}

.city-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.35);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.city-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.city-name {
  padding: 10px 6px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════
   TEAM PAGE
═══════════════════════════════════════════ */

.team-hint {
  text-align: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  margin-top: -30px;
  margin-bottom: 36px;
  letter-spacing: 0.03em;
  font-style: italic;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.team-card {
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  position: relative;
  border: 1px solid rgba(255,255,255,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.4);
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.team-card-placeholder {
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,0.40);
}

.team-card-placeholder svg {
  width: 60px;
  height: 60px;
}

.card-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  padding: 24px 14px 12px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
}

/* ── Team Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.80);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: linear-gradient(145deg, rgba(8, 30, 80, 0.97), rgba(4, 18, 55, 0.97));
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 40px;
  -webkit-overflow-scrolling: touch;
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.20);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 16px;
  flex-shrink: 0;
  transition: background 0.2s;
  z-index: 1;
}

.modal-close:hover { background: rgba(255,255,255,0.22); }

.modal-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
  clear: both;
}

.modal-text h2 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.modal-text .modal-role {
  color: rgba(255,255,255,0.60);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  font-style: italic;
}

.modal-text p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.65;
  margin-bottom: 12px;
}

.modal-text p.lead {
  font-weight: 600;
  color: #fff;
  font-size: 0.92rem;
}

.modal-action {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-photo {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.35);
  font-size: 0.78rem;
  text-align: center;
  padding: 20px;
  letter-spacing: 0.03em;
}

.action-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* ═══════════════════════════════════════════
   PROGRAMME PAGE
═══════════════════════════════════════════ */

.programme-box {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  padding: 60px 40px;
  backdrop-filter: blur(6px);
}

.programme-box svg {
  width: 52px;
  height: 52px;
  opacity: 0.6;
  margin-bottom: 24px;
}

.programme-box h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.programme-date {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 12px;
}

.programme-legal {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  font-style: italic;
}

/* ═══════════════════════════════════════════
   VOUS CONNAÎTRE & CONTACT — Formulaires
═══════════════════════════════════════════ */

.form-page-box {
  max-width: 700px;
  margin: 0 auto;
}

.form-intro {
  text-align: center;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 40px;
}

.contact-form {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px;
  padding: 36px 32px;
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.30);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.15);
}

.form-group select option { background: #0a2050; color: #fff; }

.form-group textarea { resize: vertical; min-height: 130px; }

.form-submit {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 28px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  align-self: flex-start;
}

.form-submit:hover {
  background: rgba(255,255,255,0.26);
  transform: translateY(-1px);
}

.contact-email {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.60);
}

.contact-email a {
  color: rgba(255,255,255,0.90);
  font-weight: 600;
  text-decoration: none;
}

.contact-email a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */

@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .cities-grid { grid-template-columns: repeat(3, 1fr); }
  .modal-inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {

  nav { padding: 12px 18px; flex-wrap: wrap; gap: 0; }
  .brand { margin-right: 0; }
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding-top: 10px;
    gap: 0;
  }
  nav.open .nav-links { display: flex; }
  .nav-links a {
    width: 100%;
    padding: 11px 0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .home-logo { letter-spacing: 0.12em; }
  .home-slogan { font-size: 0.95rem; margin-bottom: 40px; }

  .home-buttons {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .home-buttons .row-2 { gap: 14px; }
  .home-buttons .row-2 .home-btn { width: 100%; max-width: none; }

  .team-grid { grid-template-columns: 1fr; gap: 16px; }
  .team-card { aspect-ratio: unset; height: 280px; }

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

  .page-content { padding: 32px 16px 56px; }
  .page-title { font-size: 1.5rem; }

  .modal-box { padding: 24px 18px; }
  .modal-inner { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 18px; }

  .circo-stats { gap: 16px; }
  .stat-card { padding: 18px 24px; }

  .programme-box { padding: 40px 24px; }
}
