/* =====================================================
   HOME REFRESH V2
   Plus visible sur événements / actualités
   Sans toucher à la carte
   ===================================================== */

/* Rythme global */
.search,
.calendar,
.news,
.blockcolor,
.home-faq,
.faq-home,
.contactform,
.partenaires {
  position: relative;
}

.calendar,
.news,
.home-faq,
.faq-home,
.contactform,
.partenaires {
  padding-top: 20px;
}

/* Titres */
.calendar .title,
.news h3,
.contactform .p1,
.faq-home__title,
.home-faq h2 {
  letter-spacing: -0.02em;
  margin-bottom: 26px;
}

.calendar .title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

/* Titre actualités : version plus robuste */
.news h3 {
  position: relative;
  display: block;
  padding-right: 260px;
}

.news h3 .seeall {
  float: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
}

/* Bloc accès */
.search {
  margin-top: 30px;
}

.search .acces-menu {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 53, 104, 0.12);
}

.search .acces-menu .inner-item {
  margin-top: 16px;
  margin-bottom: 16px;
}

.search .acces-menu p {
  line-height: 1.35;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
}

.search .under-acces-menu {
  border-radius: 0 0 28px 28px;
  overflow: hidden;
  box-shadow: 0 20px 34px rgba(0, 53, 104, 0.10);
}

.search .under-acces-menu .second-line {
  padding: 10px 12px;
}

.search .under-acces-menu .second-line > div {
  padding: 6px;
}

.search .under-acces-menu .second-line a {
  background: rgba(255,255,255,0.96);
  border-radius: 18px;
  padding: 14px 16px;
  line-height: 1.35;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(0, 53, 104, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.search .under-acces-menu .second-line a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 53, 104, 0.12);
}

/* ÉVÉNEMENTS - plus visible */
.calendar {
  margin-bottom: 84px;
}

.calendar .inner-event {
  border-radius: 24px !important;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(0, 53, 104, 0.14);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.calendar .inner-event:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 38px rgba(0, 53, 104, 0.18);
}

.calendar .inner-event .image {
  border-radius: 24px 24px 0 0;
  overflow: hidden;
}

.calendar .inner-event .description {
  padding: 24px 22px 56px;
}

.calendar .inner-event .description .title {
  line-height: 1.18;
  margin-bottom: 0;
}

.calendar .inner-event .description .date {
  width: calc(100% - 44px);
  left: 22px;
  right: 22px;
  bottom: -22px;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(219, 1, 135, 0.24);
}

.calendar .inner-event .link {
  right: 22px;
  bottom: 14px;
}

/* ACTUALITÉS - plus visible */
.news {
  padding-bottom: 40px;
}

.news .inside {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0, 53, 104, 0.10);
  padding: 0 0 22px;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news .inside:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0, 53, 104, 0.14);
}

/* Pas de marges sur l'image de tête */
.news .inside > p,
.news .inside > hr,
.news .inside > a:not(:first-child) {
  margin-left: 22px;
  margin-right: 22px;
}

.news .inside > a:first-child {
  display: block;
  margin: 0;
}

.news .inside > a:first-child img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 24px 24px 0 0;
}

.news .inside .date {
  margin-top: 18px;
}

.news .inside hr {
  margin-top: 8px;
  margin-bottom: 14px;
}

.news .inside .title {
  min-height: 44px;
}

.news .inside .content {
  line-height: 1.5;
}

/* Réseaux sociaux */
.news .rs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-left: -8px;
  margin-right: -8px;
}

.news .rs a {
  margin: 8px;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 53, 104, 0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news .rs a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 53, 104, 0.14);
}

.news .rs a img {
  max-width: 34px;
}

/* IMPORTANT : on ne touche plus à la carte ni aux marqueurs */

/* Trois blocs colorés */
.blockcolor {
  margin-bottom: 62px;
}

.blockcolor .blue,
.blockcolor .pink,
.blockcolor .green {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(0, 53, 104, 0.10);
}

/* FAQ */
.faq-home,
.home-faq {
  padding-bottom: 12px;
}

.faq-home__item,
.home-faq .faq-item {
  margin-bottom: 14px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 53, 104, 0.08);
  background: #fff;
}

.faq-home__question,
.home-faq .faq-question {
  padding-left: 24px;
  padding-right: 24px;
}

.faq-home__answer,
.home-faq .faq-answer {
  padding-left: 24px;
  padding-right: 24px;
  padding-bottom: 22px;
}

/* Contact */
.contactform {
  padding-top: 24px;
}

.contactform .container {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 14px 36px rgba(0, 53, 104, 0.08);
  padding-top: 26px;
  padding-bottom: 34px;
}

.contactform hr {
  margin-top: 0;
  margin-bottom: 24px;
}

.contactform #select-city-form {
  border-radius: 18px;
  min-height: 46px;
  padding-left: 16px;
  padding-right: 16px;
}

/* Partenaires */
.partenaires .container {
  padding-top: 10px;
}

/* Responsive prudent */
@media (max-width: 992px) {
  .news .inside,
  .calendar .inner-event {
    margin-bottom: 20px;
  }

  .search .under-acces-menu .second-line a {
    min-height: auto;
  }

  .contactform .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 767px) {
  .search .acces-menu,
  .search .under-acces-menu,
  .news .inside,
  .calendar .inner-event,
  .blockcolor .blue,
  .blockcolor .pink,
  .blockcolor .green,
  .faq-home__item,
  .home-faq .faq-item,
  .contactform .container {
    border-radius: 20px;
  }

  .news h3 {
    padding-right: 0;
  }

  .news h3 .seeall {
    position: static;
    transform: none;
    display: block;
    margin-top: 10px;
  }

  .news .inside > a,
  .news .inside > p,
  .news .inside > hr,
  .faq-home__question,
  .faq-home__answer,
  .home-faq .faq-question,
  .home-faq .faq-answer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .news .rs a {
    width: 62px;
    height: 62px;
    border-radius: 18px;
  }
}

/* Ajustement date actualités */
.news .inside .date {
  margin-left: 22px;
  margin-right: 22px;
  margin-top: 18px;
}

.news .inside hr {
  margin-left: 22px;
  margin-right: 22px;
}


/* =====================================================
   PETIT CALENDRIER - refresh visuel
   ===================================================== */

.calendar .jsCalendar {
  width: 100% !important;
  border: 0 !important;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 16px 34px rgba(0, 53, 104, 0.12);
  overflow: hidden;
  padding: 16px 18px 18px;
}

.calendar .jsCalendar table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 8px 8px;
}

.calendar .jsCalendar thead .jsCalendar-title-name {
  color: #003568;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05em;
}

.calendar .jsCalendar thead .jsCalendar-nav-left,
.calendar .jsCalendar thead .jsCalendar-nav-right {
  color: #DB0187;
  font-weight: 700;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.calendar .jsCalendar thead .jsCalendar-nav-left:hover,
.calendar .jsCalendar thead .jsCalendar-nav-right:hover {
  opacity: 0.75;
  transform: scale(1.08);
}

.calendar .jsCalendar thead {
  border-bottom: 1px solid rgba(0, 53, 104, 0.08);
}

.calendar .jsCalendar thead th {
  padding-bottom: 10px;
}

.calendar .jsCalendar tbody td,
.calendar .jsCalendar tbody td.jsCalendar-current {
  width: 36px;
  height: 36px;
  line-height: 36px;
  border-radius: 50%;
  font-size: 14px;
  color: #003568;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.calendar .jsCalendar tbody td:hover {
  background: rgba(219, 1, 135, 0.10);
  color: #DB0187;
  transform: scale(1.04);
}

.calendar .jsCalendar tbody td.jsCalendar-selected,
.calendar .jsCalendar tbody td.selected,
.calendar .jsCalendar tbody td.event,
.calendar .jsCalendar tbody td.has-event {
  background: #DB0187 !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(219, 1, 135, 0.30);
}

.calendar .jsCalendar tbody td.jsCalendar-current {
  box-shadow: inset 0 0 0 2px #003568;
  font-weight: 700;
}

.calendar .jsCalendar tbody td.jsCalendar-next,
.calendar .jsCalendar tbody td.jsCalendar-previous {
  color: rgba(0, 53, 104, 0.35);
}

.calendar .jsCalendar thead .jsCalendar-week-days th {
  color: rgba(0, 53, 104, 0.65);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 767px) {
  .calendar .jsCalendar {
    margin-top: 24px;
  }
}
