/* HERO VIE */
.hero-vie{
  position:relative;
  min-height:55vh;

  background:
    linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.55)),
    url('/assets/photos/photositeinternet/chantiermfr.webp') center/cover no-repeat;

  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:white;
  overflow:hidden;
}

.hero-kicker{
  display:inline-block;
  margin-bottom:10px;
  font-size:14px;
  text-transform:uppercase;
  letter-spacing:1px;
  opacity:0.9;
}

.hero-vie-content{
  max-width:850px;
  padding:20px;
}

.hero-vie h1{
  font-size:clamp(34px,5vw,54px);
  margin:0 0 15px;
  font-family:"Roboto Slab", serif;
  line-height:1.15;
}

.hero-vie p{
  max-width:850px;
  margin:0 auto;
  font-size:18px;
  opacity:0.9;
  line-height:1.45;
}

/* BOUTONS */
.btn-hero{
  display:inline-block;
  margin-top:20px;
  background:linear-gradient(135deg,#ceab5d,#909b25);
  color:white;
  padding:12px 22px;
  border-radius:12px;
  text-decoration:none;
  font-weight:600;
  transition:all 0.25s ease;
  box-shadow:0 10px 25px rgba(0,0,0,0.2);
}

.btn-hero:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 40px rgba(0,0,0,0.3);
}

/* INTRO */
.intro-vie{
  padding:80px 20px 40px;
  text-align:left;
}

.intro-vie-text{
  max-width:800px;
  margin:0 auto;
  text-align:left;
  padding-top:20px;
}

.intro-vie-text p{
  margin:16px 0;
  line-height:1.8;
  color:#555;
  font-size:16px;
  max-width:800px;
  text-align: justify;
  hyphens: auto;
}

.intro-vie-text p:first-of-type{
  font-size:18px;
  color:#222;
  font-weight:500;
}

.intro-vie-text p:last-of-type{
  color:#666;
}

.intro-vie h2{
  font-size:28px;
  margin-bottom:10px;
}

/* SECTION HEAD */
.section-head{
  text-align:center;
  margin-bottom:30px;
}

.section-head h2{
  font-size:28px;
  margin:10px 0;
}

.section-label{
  font-size:20px;
  letter-spacing:2px;
  color:var(--olive);
  font-weight:700;
  margin-bottom:20px;
}

/* Agenda harmonisé : titres, descriptions et catégories alignés */
.events {
  max-width: 1200px;
  margin: auto;
  padding: 45px 20px 70px;
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.events-ready .events-grid { display: none; }
.events-months {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.events .month-column { display: flex; flex-direction: column; gap: 19px; min-width: 0; }
.events .month-group { min-width: 0; }
.events .month-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 21px;
  margin: 0 0 8px;
}
.events .month-heading h3 {
  margin: 0;
  font-size: 13px;
  line-height: 1.2;
  color: #78822e;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
  white-space: nowrap;
}
.events .month-rule {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, #d5b873, #eee9d8);
}
.events .month-count { font-size: 11px; color: #777; white-space: nowrap; }
.events .month-events { display: grid; gap: 7px; }
.events .event-card {
  display: flex;
  width: 100%;
  min-height: 96px;
  height: auto;
  align-items: stretch;
  background: #fff;
  border: 1px solid #e8e8e2;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.055);
  overflow: hidden;
  box-sizing: border-box;
  transition: box-shadow .2s ease;
}
.events .event-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.1); }
.events .event-date {
  width: 54px;
  flex: 0 0 54px;
  background: linear-gradient(145deg,#ceab5d,#909b25);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  line-height: 1.1;
}
.events .event-date .day { font-size: 23px; font-weight: 800; }
.events .event-date .month { margin-top: 2px; font-size: 10px; font-weight: 700; }
.events .event-content {
  flex: 1;
  min-width: 0;
  padding: 7px 6px 7px 12px;
  display: grid;
  grid-template-rows: minmax(31px, auto) minmax(30px, auto) minmax(14px, auto);
  align-content: center;
  row-gap: 2px;
  box-sizing: border-box;
}
.events .event-content h3 {
  margin: 0;
  align-self: start;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  color: #1c1c1c;
}
.events .event-content p {
  margin: 0;
  align-self: start;
  font-size: 12px;
  line-height: 1.3;
  color: #5e5e5e;
}
.events .event-content > .tag,
.events .event-card > .tag {
  align-self: end;
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  margin: 0;
  max-width: 100%;
  width: fit-content;
  border-radius: 0;
  background: transparent;
  color: #777;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  white-space: normal;
}
.events .tag::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #c79b4d;
}
.events .tag.pedago::before { background: #528ac8; }
.events .tag.ouverture::before { background: #46a87d; }
.events .btn-calendar {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  margin: 0 9px 0 4px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: #ceab5d;
  color: #fff;
  text-decoration: none;
  transition: background .2s ease;
}
.events .btn-calendar:hover { background: #a18b3a; }
.events .btn-calendar svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.events .btn-calendar:focus-visible,
.events .past-events summary:focus-visible {
  outline: 2px solid #6f7d26;
  outline-offset: 3px;
}
.events .past-events {
  margin-top: 24px;
  padding: 11px 14px;
  border: 1px solid #e8e8e2;
  border-radius: 10px;
  background: #f8f8f5;
}
.events .past-events[hidden] { display: none; }
.events .past-events summary {
  color: #666;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}
.events .past-events .past-count { color: #777; font-weight: 400; }
.events .past-events .events-months { margin-top: 14px; }
.events .past-events .event-card { opacity: .75; }
.events .past-events .event-date { filter: grayscale(.6); }
.events .past-events .btn-calendar { display: none; }
.events .empty-events { margin: 10px 0; color: #666; font-size: 14px; }
@media (max-width: 700px) {
  .events-grid { grid-template-columns: minmax(0, 1fr); }
  .events-months { display: flex; flex-direction: column; gap: 0; }
  .events-months .month-column { display: contents; }
  .events-months .month-group { margin-bottom: 16px; }
  .events { padding: 35px 14px 60px; }
  .events .past-events { padding: 10px; }
  .events .event-content {
    grid-template-rows: auto auto minmax(14px, auto);
    row-gap: 4px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .events .event-card { min-height: 94px; }
}
.facebook-section{
  padding:60px 20px 30px;
  background:#fff;
  text-align:center;
}

.btn-facebook{
  display:inline-block;
  margin-top:15px;
  padding:12px 22px;
  border-radius:12px;
  background:linear-gradient(135deg,#ceab5d,#909b25);
  color:white;
  text-decoration:none;
  font-weight:700;
  box-shadow:0 10px 25px rgba(0,0,0,0.15);
  transition:all 0.25s ease;
}

.btn-facebook:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 40px rgba(0,0,0,0.25);
}

/* FIX Vie MFR : suppression de l'espace blanc entre le header et le hero */
body:has(.hero-vie) main {
  padding-top: 0 !important;
}

body:has(.hero-vie) .hero-vie {
  margin-top: 0 !important;
  padding-top: var(--header-height);
  min-height: calc(55vh + var(--header-height));
}

