/* ###################### */
/* GLOBAL (INTRODUCTION) */
/* #################### */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: sans-serif;
  background: #f0f0ee;
}

/* ################ */
/* HEAD (BANNIERE) */
/* ############## */

.wrapper {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
}

.banner-img {
  width: 100%;
  display: block;
  max-height: 200px;
  object-fit: cover;
  object-position: top;
}

/* ########################### */
/* HEAD (BARRE DE NAVIGATION) */
/* ######################### */

.nav-bar {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 4px solid #e5e5e5;
}

.nav-links {
  display: flex;
  gap: 2px;
}

.nav-link {
  font-size: 13px;
  color: #555;
  padding: 12px 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  display: inline-block;
}

.nav-link:hover {
  color: #111;
  background: #f5f5f5;
}

.nav-link.active {
  color: #0F6E56;
  font-weight: 500;
  border-bottom: 2px solid #1D9E75;
}

.nav-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  background: #1D9E75;
  color: #fff;
  padding: 7px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.nav-cta:hover {
  background: #0F6E56;
}

.nav-cta-outline {
  background: #fff;
  color: #0F6E56;
  border: 1px solid #1D9E75;
}

.nav-cta-outline:hover {
  background: #E1F5EE;
}

/* ################################################ */
/* SECTION OUTILS (PAR DEFAUT POUR CHAQUE SECTION) */
/* ############################################## */

.section {
  padding: 16px 32px;
  border-bottom: 4px solid #e5e5e5;
}

.section-gray {
  background: #f7f7f5;
}

.section-green {
  background: #0F6E56;
  text-align: center;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #111;
}

.section-link {
  font-size: 13px;
  color: #0F6E56;
  text-decoration: none;
}

.section-link:hover {
  text-decoration: underline;
}

/* ######################### */
/* SECTION 1 (INTRODUCTION) */
/* ####################### */

.hero {
  padding: 16px 32px;
  border-bottom: 4px solid #e5e5e5;
}

.hero-tag {
  display: inline-block;
  font-size: 12px;
  color: #0F6E56;
  background: #E1F5EE;
  padding: 6px 8px;
  border-radius: 99px;
  margin-bottom: 18px;
}

.hero-text h1 {
  font-size: 32px;
  font-weight: 600;
  color: #111;
  line-height: 1.25;
  margin-bottom: 14px;
}

.hero-text p {
  font-size: 15px;
  color: #555;
  max-width: 100%;
  line-height: 1.7;
  margin-bottom: 24px;
}

.hero-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-main {
  background: #1D9E75;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.btn-main:hover {
  background: #0F6E56;
}

.btn-outline {
  background: #fff;
  color: #111;
  font-size: 13px;
  padding: 9px 18px;
  border-radius: 8px;
  border: 1px solid #d5d5d5;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.btn-outline:hover {
  background: #f5f5f5;
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  font-size: 13px;
  padding: 9px 18px;
  border-radius: 8px;
  border: 1px solid #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
}

/* ###################### */
/* SECTION 2 (EVENEMENT) */
/* #################### */

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.event-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 16px;
  cursor: pointer;
}

.event-card:hover {
  border-color: #1D9E75;
}

.event-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.event-date-box {
  background: #E1F5EE;
  border-radius: 6px;
  padding: 4px 10px;
  text-align: center;
}

.event-day {
  font-size: 18px;
  font-weight: 600;
  color: #0F6E56;
  line-height: 1;
}

.event-month {
  font-size: 10px;
  color: #0F6E56;
  text-transform: uppercase;
}

.event-type {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 99px;
  font-weight: 500;
}

.event-type.atelier {
  background: #E1F5EE;
  color: #0F6E56;
}

.event-type.permanence {
  background: #E6F1FB;
  color: #185FA5;
}

.event-type.install {
  background: #FAEEDA;
  color: #854F0B;
}

.event-title {
  font-size: 13px;
  font-weight: 500;
  color: #111;
  margin-bottom: 8px;
  line-height: 1.4;
}

.event-meta {
  font-size: 12px;
  color: #888;
}

/* ################################ */
/* CARROUSEL (EVENEMENTS+ARTICLES) */
/* ############################## */

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  margin: 0 -32px;
  padding: 0 32px;
}

.carousel-viewport {
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 12px;
  transition: transform 0.3s ease;
}

.carousel-track .event-card {
  min-width: calc(25% - 9px);
  max-width: calc(25% - 9px);
  flex-shrink: 0;
}

.carousel-track .path-card {
  min-width: calc(50% - 6px);
  max-width: calc(50% - 6px);
  flex-shrink: 0;
}

.carousel-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #d5d5d5;
  background: #fff;
  color: #0F6E56;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: all 0.15s;
}

.carousel-prev { left: 6px; }
.carousel-next { right: 6px; }

.carousel-btn:hover {
  background: #E1F5EE;
  border-color: #1D9E75;
}

/* ##################### */
/* SECTION 3 (ARTICLES) */
/* ################### */

.paths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.path-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 20px;
}

.path-card:hover {
  border-color: #1D9E75;
}

.path-title {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  margin-bottom: 8px;
}

.path-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 14px;
}

.path-link {
  font-size: 13px;
  color: #0F6E56;
  text-decoration: none;
  font-weight: 500;
}

.path-link:hover {
  text-decoration: underline;
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-date {
  font-size: 11px;
  color: #aaa;
}

.article-antenne {
  font-size: 11px;
  color: #0F6E56;
  background: #E1F5EE;
  padding: 2px 8px;
  border-radius: 99px;
}

/* ##################### */
/* SECTION 4 (ANTENNES) */
/* ################### */

.antennes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.antenne-pill {
  font-size: 12px;
  color: #0F6E56;
  background: #E1F5EE;
  border-radius: 99px;
  padding: 5px 14px;
  cursor: pointer;
}

.antenne-pill:hover {
  background: #9FE1CB;
}

/* ######################### */
/* SECTION 5 (PIED DE PAGE) */
/* ####################### */

.footer {
  padding: 20px 32px;
  border-top: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: #fff;
}

.footer-left {
  font-size: 12px;
  color: #aaa;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-link {
  font-size: 12px;
  color: #888;
  text-decoration: none;
}

.footer-link:hover {
  color: #111;
}