/* =========================================================
   EMMAÜS BÉZIERS — Charte graphique
   Refonte 2026 — addict e-services
   ========================================================= */

:root {
  --rouge-emmaus: #e63312;
  --rouge-emmaus-dark: #b8260a;
  --bleu-emmaus: #003b71;
  --bleu-emmaus-clair: #1d5a96;
  --jaune-accent: #f6c042;
  --gris-fond: #f6f4f0;
  --gris-bordure: #e3ddd2;
  --gris-texte: #3a3a3a;
  --blanc: #ffffff;
  --noir: #1a1a1a;

  --font-titre: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-corps: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;

  --radius: 6px;
  --shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.14);
  --transition: all 0.25s ease;
  --max-width: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-corps);
  color: var(--gris-texte);
  line-height: 1.65;
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rouge-emmaus); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--rouge-emmaus-dark); }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-titre);
  font-weight: 700;
  color: var(--bleu-emmaus);
  line-height: 1.25;
  margin-bottom: 0.6em;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }
p { margin-bottom: 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header / Navigation ---------- */
.topbar {
  background: var(--bleu-emmaus);
  color: var(--blanc);
  font-size: 0.875rem;
  padding: 0.5rem 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.topbar a { color: var(--blanc); }
.topbar a:hover { color: var(--jaune-accent); }
.topbar-info { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.topbar-info span::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 0.4rem;
  vertical-align: middle;
  background-size: contain;
  background-repeat: no-repeat;
}

.header {
  background: var(--blanc);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-titre);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--bleu-emmaus);
  text-decoration: none;
}
.logo img {
  height: 64px;
  width: auto;
  display: block;
}
.logo-text {
  line-height: 1.1;
}
.logo-text small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gris-texte);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
@media (max-width: 600px) {
  .logo img { height: 52px; }
  .logo { font-size: 1.05rem; }
  .logo-text small { font-size: 0.65rem; }
}

.nav { display: flex; align-items: center; gap: 0.3rem; }
.nav a {
  color: var(--bleu-emmaus);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  position: relative;
}
.nav a:hover, .nav a.active {
  color: var(--rouge-emmaus);
  background: var(--gris-fond);
}
.nav a.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 1rem;
  right: 1rem;
  height: 3px;
  background: var(--rouge-emmaus);
  border-radius: 2px;
}

.btn-burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}
.btn-burger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--bleu-emmaus);
  margin: 5px 0;
  transition: var(--transition);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius);
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-align: center;
}
.btn-primary {
  background: var(--rouge-emmaus);
  color: var(--blanc);
}
.btn-primary:hover {
  background: var(--rouge-emmaus-dark);
  color: var(--blanc);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.btn-secondary {
  background: transparent;
  color: var(--bleu-emmaus);
  border-color: var(--bleu-emmaus);
}
.btn-secondary:hover {
  background: var(--bleu-emmaus);
  color: var(--blanc);
}
.btn-white {
  background: var(--blanc);
  color: var(--rouge-emmaus);
}
.btn-white:hover { background: var(--gris-fond); color: var(--rouge-emmaus-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 480px;
  background: linear-gradient(135deg, rgba(0, 59, 113, 0.85), rgba(230, 51, 18, 0.75)),
              url('https://images.unsplash.com/photo-1593113598332-cd288d649433?auto=format&fit=crop&w=1600&q=80') center/cover;
  color: var(--blanc);
  display: flex;
  align-items: center;
  padding: 5rem 0;
}
.hero h1 { color: var(--blanc); font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.hero p.lead { font-size: 1.2rem; max-width: 720px; margin-bottom: 2rem; }

/* ---------- Hero — mise en avant du nom Emmaüs Béziers ---------- */
.brand-title {
  font-family: var(--font-titre);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 0.6rem;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  color: var(--blanc);
}
.brand-emmaus {
  font-size: clamp(3rem, 9vw, 6.2rem);
  color: var(--jaune-accent);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  display: inline-block;
}
.brand-beziers {
  font-size: clamp(2.4rem, 7vw, 5rem);
  color: var(--blanc);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  display: inline-block;
  margin-top: -0.15em;
}
.brand-tagline {
  font-family: var(--font-titre);
  font-weight: 600;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--blanc);
  opacity: 0.95;
  margin: 0.3rem 0 1.6rem;
  padding-bottom: 1.2rem;
  border-bottom: 3px solid var(--jaune-accent);
  display: inline-block;
}
.brand-slogan {
  font-family: var(--font-titre);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--blanc);
  margin-bottom: 0.8rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-badge {
  display: inline-block;
  background: var(--jaune-accent);
  color: var(--noir);
  padding: 0.3rem 0.9rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero court pour pages intérieures */
.hero-page {
  min-height: 260px;
  padding: 3rem 0;
}
.hero-page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

/* ---------- Sections ---------- */
section { padding: 4rem 0; }
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title h2 { display: inline-block; position: relative; padding-bottom: 0.8rem; }
.section-title h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--rouge-emmaus);
  border-radius: 2px;
}
.section-title p { color: var(--gris-texte); max-width: 720px; margin: 0 auto; }

.bg-light { background: var(--gris-fond); }
.bg-blue { background: var(--bleu-emmaus); color: var(--blanc); }
.bg-blue h2, .bg-blue h3 { color: var(--blanc); }

/* ---------- Mission / 3 colonnes ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.feature-card {
  background: var(--blanc);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  border-top: 4px solid var(--rouge-emmaus);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.2rem;
  background: var(--rouge-emmaus);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
}

/* ---------- Chiffres clés ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat .number {
  display: block;
  font-family: var(--font-titre);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--jaune-accent);
  line-height: 1;
}
.stat .label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Communautés (2 cartes) ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.community-card {
  background: var(--blanc);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.community-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.community-card .img-wrap {
  height: 240px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.community-card .img-wrap::after {
  content: attr(data-label);
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: var(--rouge-emmaus);
  color: white;
  padding: 0.4rem 1rem;
  font-family: var(--font-titre);
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
}
.community-card .content { padding: 1.8rem; }
.community-card .content h3 { color: var(--bleu-emmaus); }
.community-card .info-line {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.6rem 0;
  font-size: 0.95rem;
}
.community-card .info-line strong { color: var(--bleu-emmaus); min-width: 80px; }

/* ---------- Formulaire ---------- */
.form-wrap {
  background: var(--blanc);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 780px;
  margin: 0 auto;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.2rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--bleu-emmaus);
  font-size: 0.95rem;
}
.form-group label .req { color: var(--rouge-emmaus); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gris-bordure);
  border-radius: var(--radius);
  font-family: var(--font-corps);
  font-size: 1rem;
  background: var(--gris-fond);
  transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--rouge-emmaus);
  background: var(--blanc);
  box-shadow: 0 0 0 3px rgba(230, 51, 18, 0.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.6rem;
}
.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--gris-fond);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
  color: var(--gris-texte);
  transition: var(--transition);
}
.checkbox-grid label:hover { background: var(--gris-bordure); }
.checkbox-grid input { width: auto; }
.form-info {
  background: rgba(0, 59, 113, 0.07);
  border-left: 4px solid var(--bleu-emmaus);
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.form-success {
  display: none;
  background: #e8f5e9;
  border-left: 4px solid #2e7d32;
  padding: 1.2rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  color: #1b5e20;
}
.form-success.show { display: block; }

/* ---------- Galerie ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--gris-fond);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 1.5rem 1rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: pointer;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: var(--radius); }
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--rouge-emmaus);
  color: white;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
}

/* ---------- Carte / Horaires ---------- */
#map { height: 450px; border-radius: var(--radius); box-shadow: var(--shadow); }
.map-small { height: 280px; }
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--blanc);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.schedule-table th {
  background: var(--bleu-emmaus);
  color: white;
  padding: 0.9rem;
  text-align: left;
  font-family: var(--font-titre);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.schedule-table td {
  padding: 0.9rem;
  border-bottom: 1px solid var(--gris-bordure);
  vertical-align: top;
}
.schedule-table tr:last-child td { border-bottom: 0; }
.schedule-table tr:nth-child(even) { background: var(--gris-fond); }
.badge-open { background: #e8f5e9; color: #2e7d32; padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.85rem; font-weight: 600; }
.badge-closed { background: #ffebee; color: #c62828; padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.85rem; font-weight: 600; }

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gris-bordure);
  transform: translateX(-50%);
}
.timeline-item {
  position: relative;
  width: 50%;
  padding: 1rem 2.5rem;
}
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-item::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--rouge-emmaus);
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--rouge-emmaus);
  top: 1.4rem;
}
.timeline-item:nth-child(odd)::before { right: -10px; }
.timeline-item:nth-child(even)::before { left: -10px; }
.timeline-card {
  background: var(--blanc);
  padding: 1.4rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.timeline-year {
  display: inline-block;
  background: var(--rouge-emmaus);
  color: white;
  padding: 0.2rem 0.8rem;
  border-radius: 4px;
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* ---------- CTA bandeau ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--rouge-emmaus), var(--rouge-emmaus-dark));
  color: white;
  text-align: center;
  padding: 4rem 0;
}
.cta-band h2 { color: white; }
.cta-band p { font-size: 1.15rem; max-width: 640px; margin: 0 auto 2rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bleu-emmaus);
  color: var(--blanc);
  padding: 3rem 0 1.5rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer h4 {
  color: var(--blanc);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--rouge-emmaus);
  display: inline-block;
}
.footer a { color: rgba(255, 255, 255, 0.85); display: block; padding: 0.25rem 0; }
.footer a:hover { color: var(--jaune-accent); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Page intérieure : layout 2 colonnes ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Liste OK / NOK ---------- */
.list-yes-no {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}
.list-yes-no .card {
  background: var(--blanc);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
}
.list-yes-no .card.yes { border-top: 4px solid #2e7d32; }
.list-yes-no .card.no { border-top: 4px solid #c62828; }
.list-yes-no h3 { display: flex; align-items: center; gap: 0.6rem; }
.list-yes-no ul li {
  padding: 0.4rem 0 0.4rem 1.6rem;
  position: relative;
}
.list-yes-no .yes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2e7d32;
  font-weight: 700;
}
.list-yes-no .no li::before {
  content: "✗";
  position: absolute;
  left: 0;
  color: #c62828;
  font-weight: 700;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .btn-burger { display: block; }
  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0;
    box-shadow: var(--shadow);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 0.9rem 1rem; border-bottom: 1px solid var(--gris-fond); }
  .nav a.active::after { display: none; }

  .form-row { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }

  .timeline::before { left: 18px; }
  .timeline-item { width: 100%; left: 0 !important; padding-left: 3rem; padding-right: 0; text-align: left; }
  .timeline-item::before { left: 8px !important; right: auto !important; }
}
