/* ===============================
   palette (ajuste les hex si besoin)
   =============================== */
   /* sarcelle */ /* #2fa39a */
   /* sarcelle foncé */ /* #0f3b3a */
   /* mauve accent */ /* #6f2dbd */
   /* orange bouton */ /* #f29b38 */
   /* gris pâle */ /* #f3f6f6 */
   /* gris moyen */ /* #cfd9d9 */
   
/* ===============================
   bandeau de titre page (fond orange)
   =============================== */

.page-hero {
  background: #d45a2e;         /* orange de tes titres */
  color: #ffffff;
}

.page-hero__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 30px 0px 20px 0px;          /* épaisseur du bandeau */
}

.page-hero h1,
.page-hero .entry-title {
  margin: 0;
  padding: 0 0 10px 0;
  font-family: 'Lato', Helvetica, Arial, Lucida, sans-serif;
  font-size: 29px;        /* pour matcher le 28.8px */
  font-weight: 700;       /* même graisse que ton Actualités */
  color: #f4f4f4;         /* blanc cassé comme sur Actualités */
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

/* espace entre le bandeau et la liste */
.ev-wrap { padding-top: 20px; }
   

/* ===============================
   conteneur général et titres
   =============================== */

.ev-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 16px;
}

.ev-head h1 {
  margin: 0 0 8px 0;
  color: #0f3b3a;
  font-size: 28px;
  line-height: 1.25;
}

.ev-section {
  margin: 26px 0;
}

/* ===============================
   Titres des sections (À venir, Passés)
   =============================== */
.ev-section-title {
  margin: 0 0 10px 0;
  font-size: 22px;           /* +2px par rapport au 20px */
  font-weight: 700;          /* en gras */
  color: #0f3b3a;
  border-bottom: 2px solid #6f2dbd;
  padding-bottom: 6px;
}


/* ===============================
   liste des cartes (flex, pas de grid)
   =============================== */

.ev-list {
  display: flex;
  flex-wrap: wrap;
  margin-left: -12px;
  margin-right: -12px;
}

.ev-card {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
}

@media (min-width: 700px) { .ev-card { width: 50%; } }
@media (min-width: 1000px){ .ev-card { width: 33.333%; } }

/* ===============================
   carte événement
   =============================== */

.ev-link {
  display: flex;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  background: #ffffff;
  border: 1px solid #cfd9d9;
  border-radius: 14px;
  /* ombre douce au repos */
  box-shadow: 0 1px 0 rgba(15,59,58,0.04);
  transition: transform .08s ease, box-shadow .08s ease, border-color .08s ease;
}

/* barre couleur à gauche (dégradé site) */
.ev-leftbar {
  width: 8px;
  background: linear-gradient(180deg, #2fa39a 0%, #f29b38 100%);
  border-radius: 14px 0 0 14px;
}

/* contenu de la carte */
.ev-body {
  flex: 1;
  padding: 16px 18px;
}

.ev-title {
  margin: 0 0 8px 0;
  color: #0f3b3a;
  font-size: 20px;
}

/* ===============================
   pastilles : date / heure / lieu
   =============================== */

.ev-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  background:#f3f6f6;
  border:1px solid #cfd9d9;
  border-radius:10px;
  padding:6px 8px;
  margin:0 0 12px 0;
}

/* base d'une pastille */
.ev-chip{
  display:inline-block;
  line-height:1;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid #cfd9d9;
  background:#fff;
  margin-right:8px;          /* pas de gap, on gère à la main */
  margin-bottom:6px;         /* revient à la ligne proprement si petit écran */
  font-size:14px;
  white-space:nowrap;
}

/* date (mauve) */
.ev-chip--date{
  border-color:#6f2dbd;
  color:#6f2dbd;
}

/* heure (orange doux) */
.ev-chip--time{
  border-color:#f29b38;
  color:#a25b1e;
  background:#fffdfa;
}

/* lieu (teal) */
.ev-chip--loc{
  border-color:#2fa39a;
  color:#0f3b3a;
  background:#f3fffd;
}

/* petit hover discret */
.ev-chip:hover{
  box-shadow:0 0 0 3px rgba(111,45,189,0.08);
}

/* ===============================
   Image de l’événement
   =============================== */
.ev-thumb {
  margin: 12px 0;
  border-radius: 10px;
  overflow: hidden;
}
.ev-thumb img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform .3s ease;
}
.ev-card:hover .ev-thumb img {
  transform: scale(1.04);
}

/* ===============================
   Résumé (excerpt)
   =============================== */
.ev-excerpt {
  margin: 12px 0;
  color: #243434;
  line-height: 1.6;
  font-size: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 5; /* limite à 5 lignes */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* appel à l’action discret */
.ev-cta {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #2fa39a;
  color: #2fa39a;
  border-radius: 999px;
  font-size: 13px;
}

/* hover/focus accessibles */
.ev-link:hover,
.ev-link:focus {
  transform: translateY(-2px);
  border-color: #b9c9c9;
  box-shadow: 0 10px 20px rgba(15,59,58,0.10);
  outline: none;
}

/* ===============================
   états vides
   =============================== */

.ev-empty {
  margin: 10px 0;
  color: #243434;
  background: #f3f6f6;
  border: 1px dashed #cfd9d9;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

/* ===============================
   petites retouches responsives
   =============================== */

@media (max-width: 680px) {
  .ev-body { padding: 14px 14px; }
  .ev-title { font-size: 19px; }
  .ev-cta { padding: 6px 10px; }
}

/* ===============================
   version "passé" optionnelle
   (si tu veux un style différent pour les événements passés,
   ajoute la classe ev-past sur la carte)
   =============================== */

.ev-past .ev-leftbar {
  background: linear-gradient(180deg, #cfd9d9 0%, #9fb3b3 100%);
}

.ev-past .ev-title {
  color: #425252;
}

/* ===============================
   focus clavier clair pour accessibilité
   =============================== */

.ev-link:focus .ev-cta {
  border-color: #f29b38;
  color: #f29b38;
  box-shadow: 0 0 0 3px rgba(242,155,56,0.25);
}

/* ===============================
   Fiche événement (single)
   =============================== */

/* conteneur général */
.ev-single-article {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 16px;
}

/* méta : date / heure / lieu */
.ev-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 24px 0;
}

/* style des "chips" */
.ev-chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  background: #fff;
  border: 1px solid #cfd9d9;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
}
.ev-chip--date {
  border-color: #6f2dbd;
  color: #6f2dbd;
}
.ev-chip--time {
  border-color: #f29b38;
  color: #f29b38;
}
.ev-chip--loc {
  border-color: #2fa39a;
  color: #2fa39a;
}
.ev-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

/* image principale */
.ev-hero-thumb {
  margin: 0 0 28px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(15,59,58,0.1);
}
.ev-hero-thumb img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* contenu */
.ev-content {
  color: #243434;
  line-height: 1.7;
  font-size: 16px;
}
.ev-content p {
  margin: 0 0 1.2em 0;
}
.ev-content h2 {
  margin: 1.5em 0 .6em 0;
  color: #0f3b3a;
  font-size: 22px;
  font-weight: 600;
  border-left: 4px solid #6f2dbd;
  padding-left: 10px;
}

/* lien retour */
.ev-single-nav {
  margin: 30px 0 10px 0;
  text-align: center;
}
.ev-back {
  text-decoration: none;
  display: inline-block;
  border: 1px solid #2fa39a;
  color: #2fa39a;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 15px;
  transition: all 0.2s ease;
}
.ev-back:hover {
  border-color: #f29b38;
  color: #f29b38;
  background: #fffdfa;
}

/* ===============================
   Section accueil – Prochains événements
   =============================== */
/* ===============================
   Liste d’événements (cartes)
   =============================== */
.home-events__list {
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: center;
}
.home-events .ev-card {
  flex: 1 1 300px;
  max-width: 350px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.home-events .ev-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}
.home-events .ev-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.home-events .ev-body {
  padding: 18px 20px;
}

/* image */
.home-events .ev-thumb {
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.home-events .ev-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.home-events .ev-card:hover .ev-thumb img {
  transform: scale(1.05);
}

/* titre */
.home-events .ev-title {
  margin: 0 0 10px 0;
  font-size: 20px;
  font-weight: 600;
  color: #0f3b3a;
}

/* méta chips (date / heure / lieu) */
.home-events .ev-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.home-events .ev-chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: #f6f6f6;
  border: 1px solid #ddd;
}
.ev-chip--date { border-color:#6f2dbd; color:#6f2dbd; }
.ev-chip--time { border-color:#f29b38; color:#f29b38; }
.ev-chip--loc  { border-color:#2fa39a; color:#2fa39a; }

/* résumé */
.home-events .ev-excerpt {
  font-size: 15px;
  color: #243434;
  line-height: 1.6;
  margin: 0 0 15px 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* bouton détails dans la carte */
.home-events .ev-cta {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #2fa39a;
  color: #2fa39a;
  font-size: 13px;
  transition: all 0.2s ease;
}
.home-events .ev-cta:hover {
  border-color: #f29b38;
  color: #f29b38;
}

/* ===============================
   Bouton "En voir plus"
   =============================== */
.home-events__more {
  text-align: center;
  margin-top: 40px;
}
.btn-more {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 9999px;
  background: #d45a2e;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid #d45a2e;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-more:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  background: #c14f26;
  border-color: #c14f26;
}


