/* ===== Palette ===== */
:root {
  --brand: #1d4ed8;
  --gold: #d4af37;
  --ink: #0f172a;
  --muted: #64748b;
  --bg: #f8fafc;
  --card: #fff;
  --radius: 22px;
  --gradient:
    radial-gradient(1200px 600px at 80% -20%, #93c5fd33, transparent),
    radial-gradient(900px 400px at 0% 0%, #a7f3d033, transparent);
}

html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.container {
  max-width: 1200px;
}

/* ===== Countdown ===== */
.countdown {
  background: #0b1220;
  color: #e5e7eb;
  border-bottom: 1px solid #0f1a33;
}

.countdown .badge-gold {
  background: var(--gold);
  color: #0b1220;
}

.title-small {
  font-size: 0.95rem;
}

.countdown .clock {
  font-weight: 800;
  font-size: 0.95rem;
}

/* ===== Navbar ===== */
.navbar-blur {
  backdrop-filter: saturate(180%) blur(10px);
  background: rgba(255, 255, 255, 0.9);
}

.navbar-brand .logo-mark {
  font-size: 1.1rem;
}

.link-clean {
  text-decoration: none;
}

/* Icône hamburger */
.navbar-toggler-icon {
  background-image: var(--bs-navbar-toggler-icon-bg);
}

/* Offcanvas */
.offcanvas {
  background: #fff;
}

.offcanvas-header {
  padding-top: max(env(safe-area-inset-top), 12px);
}

.offcanvas.offcanvas-end {
  width: min(90vw, 360px);
}

.offcanvas .nav-link {
  display: block;
  padding: 14px 18px;
  font-weight: 600;
  border-bottom: 1px solid #eef2ff;
  color: #0b1220;
}

.offcanvas .nav-link:last-child {
  border-bottom: 0;
}

.offcanvas .nav-link:hover {
  background: #f8fafc;
}

@media (min-width: 992px) {
  .offcanvas .nav-link {
    padding: 8px 12px;
    border: 0;
  }
}

/* Sécurise le conteneur de la liste offcanvas */
.offcanvas-body {
  display: block;
  overflow: auto;
  padding: 1rem;
}

.offcanvas .navbar-nav {
  margin: 0;
}

/* Buttons */
.btn-brand {
  background: var(--brand);
  color: #fff;
  border: 0;
}

.btn-brand:hover {
  background: #163ea8;
  color: #fff;
}

.btn-ghost {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: var(--ink);
}

.btn-map {
  background: #f2dfaa;
  color: #0b1220;
  border: 0;
}

.btn-map:hover,
.btn-map:focus {
  filter: brightness(0.95);
  color: #0b1220;
}

/* Badges */
.badge-soft-gold {
  background: #fff7e0;
  color: #a67c00;
}

/* ===== Sections ===== */
.section {
  padding: clamp(48px, 6vw, 80px) 0;
}

.hero {
  background: var(--gradient);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.85rem;
  background: #eef2ff;
  color: #3730a3;
}

.chip-soft {
  background: #e0f2fe;
  color: #0f172a;
}

.card {
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.shadow-soft {
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.08);
}

.verse-box {
  border-left: 4px solid var(--gold);
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.gallery-card img {
  transition: transform 0.4s;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  bottom: 10px;
  left: 10px;
}

/* Callouts (veillée / convention) */
.callout {
  --bg: #fff9e6;
  --border: #f2dfaa;
  --ink: #0f172a;
  --accent: #d4af37;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 6px solid var(--accent);
  padding: 12px 14px;
}

.callout .icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--border);
  box-shadow: 0 3px 10px rgba(2, 6, 23, 0.06);
  margin-right: 0.5rem;
  flex: 0 0 34px;
}

.callout .title {
  font-weight: 700;
  color: var(--ink);
}

.callout .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
}

.callout .pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.85rem;
  background: #fff;
  border: 1px solid var(--border);
  color: #334155;
}

.callout--brand {
  --bg: #eff6ff;
  --border: #c7ddff;
  --accent: #1d4ed8;
}

.callout--gold {
  --bg: #fff9e6;
  --border: #f2dfaa;
  --accent: #d4af37;
}

/* Carousel (hero) */
.carousel-item {
  height: clamp(260px, 42vh, 520px);
}

.carousel-item > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.55));
  border-radius: 16px;
  padding: 0.75rem 1rem;
}

/* ===== Programmes ===== */
.programs-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.programs-subtitle {
  font-size: 0.9rem;
}

/* Table Programmes (dans la carte Programmes) */
.table-times td,
.table-times th {
  padding: 0.75rem 0.85rem;
}

.table-times thead th {
  background: #f1f5ff;
  color: #1e3a8a;
  border-bottom: 0;
  font-size: 0.9rem;
}

.table-times tbody tr:nth-child(even) td {
  background: #fff;
}

.table-times tbody tr td {
  border-top: 1px solid #eef2ff;
  font-size: 0.93rem;
}

/* Accentuer la 1ère colonne (Jour) */
.table-times tbody td:first-child {
  font-weight: 700;
  color: #1d4ed8;
}

/* Empilement propre dans la carte Programmes */
.programs-stack {
  display: flex;
  flex-direction: column;
}

.programs-stack .table-wrap {
  margin: 0;
  border: 0;
  border-radius: 0;
}

.programs-stack .table-wrap .table {
  margin-bottom: 0;
}

.programs-stack .programs-photo {
  margin: 0;
  border-top: 1px solid #e5e7eb;
}

.programs-stack .programs-photo img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

@media (max-width: 575.98px) {
  .programs-stack .programs-photo img {
    height: 120px;
  }
}

/* Equal height cols */
.row-stretch .col-lg-7 > .card,
.row-stretch .col-lg-5 > .card {
  height: 100%;
}

@media (min-width: 992px) {
  .row-stretch .col-lg-7,
  .row-stretch .col-lg-5 {
    display: flex;
  }
}

/* Responsive table Programmes (mobile) */
@media (max-width: 576px) {
  .table-times thead {
    display: none;
  }

  .table-times tr {
    display: block;
    margin-bottom: 12px;
    background: #fff;
    border-radius: 14px;
    padding: 0.6rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  }

  .table-times td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.4rem 0;
  }

  .table-times td::before {
    content: attr(data-label);
    font-weight: 700;
    color: #334155;
    padding-right: 8px;
    font-size: 0.85rem;
  }

  .table-times tbody td:first-child {
    color: #1d4ed8;
  }
}

/* ===== Section Évènements (grille) ===== */
.events {
  padding: 3rem 1rem;
  background: #f8fafc;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.events-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 1.25rem;
}

/* Carte évènement */
.event-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
}

.event-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Contenu de la carte */
.event-body {
  padding: 0.9rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.event-top-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.25rem;
}

/* Badge catégorie */
.event-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: #ecfeff;
  color: white;
}

/* Date/heure (chip) */
.event-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: #eef2ff;
  color: #1e3a8a;
}

/* Titre & textes */
.event-title {
  font-size: 1rem;
  margin: 0;
  font-weight: 700;
}

.event-desc {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
}

.event-place {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: #4b5563;
  font-weight: 500;
}

/* Responsive petits écrans */
@media (max-width: 480px) {
  .events {
    padding-inline: 0.75rem;
  }

  .event-image {
    height: 200px;
  }
}

/* ===== Galerie ===== */
.gallery-slider {
  position: relative;
}

.gallery-viewport {
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  border: 1px solid #e5e7eb;
}

.gallery-track {
  display: flex;
  gap: 10px;
  padding: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.gallery-item {
  flex: 0 0 calc((100% - 20px) / 3);
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  border: 1px solid #0b12200f;
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid #e5e7eb;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(2, 6, 23, 0.15);
  z-index: 2;
}

.gallery-btn:hover {
  background: #f8fafc;
}

.gallery-btn.prev {
  left: -14px;
}

.gallery-btn.next {
  right: -14px;
}

@media (max-width: 991.98px) {
  .gallery-item {
    flex: 0 0 calc((100% - 10px) / 2);
  }
}

@media (max-width: 575.98px) {
  .gallery-item {
    flex: 0 0 100%;
  }

  .gallery-item img {
    height: 220px;
  }
}

/* Tailles fixes images */
.img-fixed-hero {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

@media (max-width: 575.98px) {
  .img-fixed-hero {
    height: 300px;
  }
}

.card-img-top-fixed {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

@media (max-width: 575.98px) {
  .card-img-top-fixed {
    height: 200px;
  }
}

/* Newsletter */
.newsletter-cta {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  padding: 32px 0 42px;
  border-top: 1px solid #e5e7eb;
}

.newsletter-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 20px 24px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.newsletter-form {
  min-width: 300px;
}

/* Footer */
.footer {
  background: #0b1220;
  color: #cbd5e1;
  border-top: 1px solid #0f1a33;
}

.footer a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
}

/* Dropdown active */
.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active {
  background: #eff6ff;
  color: #1d4ed8;
}

/* A11y & Motion */
:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  .carousel,
  .gallery-track {
    scroll-behavior: auto;
  }
}

/* Petites optimisations responsives */
@media (max-width: 991.98px) {
  .row-stretch .col-lg-7,
  .row-stretch .col-lg-5 {
    display: block;
  }
}

.event-btn-clean {
  margin-top: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;

  padding: 4px 10px; /* compact mais lisible */
  background: var(--brand);
  color: #fff;

  font-size: 0.75rem;
  font-weight: 600;

  border-radius: 6px;
  text-decoration: none;

  width: fit-content; /* ⚡ Ne s'étire jamais */
  max-width: max-content; /* ⚡ Sécurise sur tous navigateurs */

  white-space: nowrap; /* Empêche l'agrandissement vertical */

  transition: 0.15s ease-in-out;
}

.event-btn-clean:hover {
  background: #163ea8;
  transform: translateY(-1px);
}

.event-btn-clean i {
  font-size: 0.85rem;
}

.event-image-wrapper {
  width: 100%;
  height: 260px;
  overflow: hidden;
  border-radius: 10px;
}

.event-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* EVENEMENTS */

.events {
  padding: 60px 0;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.event-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px);
}

/* IMAGE */
.event-media {
  position: relative;
  height: 380px;
  overflow: hidden;
  background: #f5f5f5;
}

.event-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* TEXTE SUR IMAGE */

.event-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 18px;
  color: white;

  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
}

.event-badge {
  background: #1d4ed8;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  margin-bottom: 6px;
  display: inline-block;
}

.event-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.event-date {
  font-size: 13px;
}

/* BODY */

.event-body {
  padding: 18px;
}

.event-desc {
  font-size: 14px;
  margin-bottom: 10px;
  color: #555;
}

.event-place {
  font-weight: 600;
  margin-bottom: 14px;
}

.event-btn {
  display: inline-block;
  padding: 8px 16px;
  background: #c79a35;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.event-btn:hover {
  background: #b2872c;
}

/* MOBILE */

@media (max-width: 768px) {
  .event-media {
    height: 260px;
  }
}

/* ===== Palette ===== */
:root {
  --brand: #1d4ed8;
  --gold: #d4af37;
  --ink: #0f172a;
  --muted: #64748b;
  --bg: #f8fafc;
  --card: #fff;
  --radius: 22px;
  --gradient:
    radial-gradient(1200px 600px at 80% -20%, #93c5fd33, transparent),
    radial-gradient(900px 400px at 0% 0%, #a7f3d033, transparent);
}

html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.container {
  max-width: 1200px;
}

/* ===== Countdown ===== */
.countdown {
  background: #0b1220;
  color: #e5e7eb;
  border-bottom: 1px solid #0f1a33;
}

.countdown .badge-gold {
  background: var(--gold);
  color: #0b1220;
}

.title-small {
  font-size: 0.95rem;
}

.countdown .clock {
  font-weight: 800;
  font-size: 0.95rem;
}

/* ===== Navbar ===== */
.navbar-blur {
  backdrop-filter: saturate(180%) blur(10px);
  background: rgba(255, 255, 255, 0.9);
}

.navbar-brand .logo-mark {
  font-size: 1.1rem;
}

.link-clean {
  text-decoration: none;
}

/* Icône hamburger */
.navbar-toggler-icon {
  background-image: var(--bs-navbar-toggler-icon-bg);
}

/* Offcanvas */
.offcanvas {
  background: #fff;
}

.offcanvas-header {
  padding-top: max(env(safe-area-inset-top), 12px);
}

.offcanvas.offcanvas-end {
  width: min(90vw, 360px);
}

.offcanvas .nav-link {
  display: block;
  padding: 14px 18px;
  font-weight: 600;
  border-bottom: 1px solid #eef2ff;
  color: #0b1220;
}

.offcanvas .nav-link:last-child {
  border-bottom: 0;
}

.offcanvas .nav-link:hover {
  background: #f8fafc;
}

@media (min-width: 992px) {
  .offcanvas .nav-link {
    padding: 8px 12px;
    border: 0;
  }
}

/* Sécurise le conteneur de la liste offcanvas */
.offcanvas-body {
  display: block;
  overflow: auto;
  padding: 1rem;
}

.offcanvas .navbar-nav {
  margin: 0;
}

/* Buttons */
.btn-brand {
  background: var(--brand);
  color: #fff;
  border: 0;
}

.btn-brand:hover {
  background: #163ea8;
  color: #fff;
}

.btn-ghost {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: var(--ink);
}

.btn-map {
  background: #f2dfaa;
  color: #0b1220;
  border: 0;
}

.btn-map:hover,
.btn-map:focus {
  filter: brightness(0.95);
  color: #0b1220;
}

/* Badges */
.badge-soft-gold {
  background: #fff7e0;
  color: #a67c00;
}

/* ===== Sections ===== */
.section {
  padding: clamp(48px, 6vw, 80px) 0;
}

.hero {
  background: var(--gradient);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.85rem;
  background: #eef2ff;
  color: #3730a3;
}

.chip-soft {
  background: #e0f2fe;
  color: #0f172a;
}

.card {
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.shadow-soft {
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.08);
}

.verse-box {
  border-left: 4px solid var(--gold);
}

/* Callouts (veillée / convention) */
.callout {
  --bg: #fff9e6;
  --border: #f2dfaa;
  --ink: #0f172a;
  --accent: #d4af37;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 6px solid var(--accent);
  padding: 12px 14px;
}

.callout .icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--border);
  box-shadow: 0 3px 10px rgba(2, 6, 23, 0.06);
  margin-right: 0.5rem;
  flex: 0 0 34px;
}

.callout .title {
  font-weight: 700;
  color: var(--ink);
}

.callout .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
}

.callout .pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.85rem;
  background: #fff;
  border: 1px solid var(--border);
  color: #334155;
}

.callout--brand {
  --bg: #eff6ff;
  --border: #c7ddff;
  --accent: #1d4ed8;
}

.callout--gold {
  --bg: #fff9e6;
  --border: #f2dfaa;
  --accent: #d4af37;
}

/* Carousel (hero) */
.carousel-item {
  height: clamp(260px, 42vh, 520px);
}

.carousel-item > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.55));
  border-radius: 16px;
  padding: 0.75rem 1rem;
}

/* ===== Programmes ===== */
.programs-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.programs-subtitle {
  font-size: 0.9rem;
}

/* Table Programmes (dans la carte Programmes) */
.table-times td,
.table-times th {
  padding: 0.75rem 0.85rem;
}

.table-times thead th {
  background: #f1f5ff;
  color: #1e3a8a;
  border-bottom: 0;
  font-size: 0.9rem;
}

.table-times tbody tr:nth-child(even) td {
  background: #fff;
}

.table-times tbody tr td {
  border-top: 1px solid #eef2ff;
  font-size: 0.93rem;
}

/* Accentuer la 1ère colonne (Jour) */
.table-times tbody td:first-child {
  font-weight: 700;
  color: #1d4ed8;
}

/* Empilement propre dans la carte Programmes */
.programs-stack {
  display: flex;
  flex-direction: column;
}

.programs-stack .table-wrap {
  margin: 0;
  border: 0;
  border-radius: 0;
}

.programs-stack .table-wrap .table {
  margin-bottom: 0;
}

.programs-stack .programs-photo {
  margin: 0;
  border-top: 1px solid #e5e7eb;
}

.programs-stack .programs-photo img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

@media (max-width: 575.98px) {
  .programs-stack .programs-photo img {
    height: 120px;
  }
}

/* Equal height cols */
.row-stretch .col-lg-7 > .card,
.row-stretch .col-lg-5 > .card {
  height: 100%;
}

@media (min-width: 992px) {
  .row-stretch .col-lg-7,
  .row-stretch .col-lg-5 {
    display: flex;
  }
}

/* Responsive table Programmes (mobile) */
@media (max-width: 576px) {
  .table-times thead {
    display: none;
  }

  .table-times tr {
    display: block;
    margin-bottom: 12px;
    background: #fff;
    border-radius: 14px;
    padding: 0.6rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  }

  .table-times td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.4rem 0;
  }

  .table-times td::before {
    content: attr(data-label);
    font-weight: 700;
    color: #334155;
    padding-right: 8px;
    font-size: 0.85rem;
  }

  .table-times tbody td:first-child {
    color: #1d4ed8;
  }
}

/* ===== Section Évènements (grille) ===== */
.events {
  padding: 3rem 1rem;
  background: #f8fafc;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.events-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 1.25rem;
}

/* Carte évènement */
.event-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
}

.event-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Contenu de la carte */
.event-body {
  padding: 0.9rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.event-top-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.25rem;
}

/* Badge catégorie */
.event-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: #ecfeff;
  color: white;
}

/* Date/heure (chip) */
.event-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: #eef2ff;
  color: #1e3a8a;
}

/* Titre & textes */
.event-title {
  font-size: 1rem;
  margin: 0;
  font-weight: 700;
}

.event-desc {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
}

.event-place {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: #4b5563;
  font-weight: 500;
}

/* Responsive petits écrans */
@media (max-width: 480px) {
  .events {
    padding-inline: 0.75rem;
  }

  .event-image {
    height: 200px;
  }
}

/* ===== Galerie ===== */
.gallery-slider {
  position: relative;
}

.gallery-viewport {
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  border: 1px solid #e5e7eb;
}

.gallery-track {
  display: flex;
  gap: 10px;
  padding: 10px;
  scroll-behavior: smooth;
}

.gallery-item {
  flex: 0 0 calc((100% - 20px) / 3);
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  border: 1px solid #0b12200f;
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid #e5e7eb;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(2, 6, 23, 0.15);
  z-index: 2;
}

.gallery-btn:hover {
  background: #f8fafc;
}

.gallery-btn.prev {
  left: -14px;
}

.gallery-btn.next {
  right: -14px;
}

@media (max-width: 991.98px) {
  .gallery-item {
    flex: 0 0 calc((100% - 10px) / 2);
  }
}

@media (max-width: 575.98px) {
  .gallery-item {
    flex: 0 0 100%;
  }

  .gallery-item img {
    height: 220px;
  }
}

/* Tailles fixes images */
.img-fixed-hero {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

@media (max-width: 575.98px) {
  .img-fixed-hero {
    height: 300px;
  }
}

.card-img-top-fixed {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

@media (max-width: 575.98px) {
  .card-img-top-fixed {
    height: 200px;
  }
}

/* Newsletter */
.newsletter-cta {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  padding: 32px 0 42px;
  border-top: 1px solid #e5e7eb;
}

.newsletter-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 20px 24px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.newsletter-form {
  min-width: 300px;
}

/* Footer */
.footer {
  background: #0b1220;
  color: #cbd5e1;
  border-top: 1px solid #0f1a33;
}

.footer a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
}

/* Dropdown active */
.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active {
  background: #eff6ff;
  color: #1d4ed8;
}

/* A11y & Motion */
:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  .carousel,
  .gallery-track {
    scroll-behavior: auto;
  }
}

/* Petites optimisations responsives */
@media (max-width: 991.98px) {
  .row-stretch .col-lg-7,
  .row-stretch .col-lg-5 {
    display: block;
  }
}

.event-btn-clean {
  margin-top: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;

  padding: 4px 10px; /* compact mais lisible */
  background: var(--brand);
  color: #fff;

  font-size: 0.75rem;
  font-weight: 600;

  border-radius: 6px;
  text-decoration: none;

  width: fit-content; /* ⚡ Ne s'étire jamais */
  max-width: max-content; /* ⚡ Sécurise sur tous navigateurs */

  white-space: nowrap; /* Empêche l'agrandissement vertical */

  transition: 0.15s ease-in-out;
}

.event-btn-clean:hover {
  background: #163ea8;
  transform: translateY(-1px);
}

.event-btn-clean i {
  font-size: 0.85rem;
}

.event-image-wrapper {
  width: 100%;
  height: 260px;
  overflow: hidden;
  border-radius: 10px;
}

.event-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* EVENEMENTS */

.events {
  padding: 60px 0;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.event-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px);
}

/* IMAGE */
.event-media {
  position: relative;
  height: 380px;
  overflow: hidden;
  background: #f5f5f5;
}

.event-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* TEXTE SUR IMAGE */

.event-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 18px;
  color: white;

  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
}

.event-badge {
  background: #1d4ed8;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  margin-bottom: 6px;
  display: inline-block;
}

.event-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.event-date {
  font-size: 13px;
}

/* BODY */

.event-body {
  padding: 18px;
}

.event-desc {
  font-size: 14px;
  margin-bottom: 10px;
  color: #555;
}

.event-place {
  font-weight: 600;
  margin-bottom: 14px;
}

.event-btn {
  display: inline-block;
  padding: 8px 16px;
  background: #c79a35;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.event-btn:hover {
  background: #b2872c;
}

/* MOBILE */

@media (max-width: 768px) {
  .event-media {
    height: 260px;
  }
}

.gallery-viewport {
  overflow-x: auto;
  scroll-behavior: smooth;
}

.gallery-track {
  display: flex;
  gap: 10px;
}

.gallery-item {
  flex: 0 0 auto;
  width: 300px;
}

@media (max-width: 768px) {
  .gallery-item {
    width: 220px;
  }
}

@media (max-width: 480px) {
  .gallery-item {
    width: 180px;
  }
}
