:root {
  --green-dark: #123f2b;
  --green: #1f6b52;
  --green-soft: #2f8a67;
  --gold: #f2c94c;
  --cream: #fffaf0;
  --text: #173b30;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  color: var(--text);

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  background:
    linear-gradient(
      135deg,
      #fffdf6,
      #f4f5db
    );
}


/* ============================================================
   NAVIGATION
   ============================================================ */

.activities-navigation {
  position: sticky;
  top: 0;
  z-index: 20;

  display: flex;
  justify-content: center;
  gap: 40px;

  padding: 18px 20px;

  background:
    rgba(
      255,
      255,
      255,
      .94
    );

  box-shadow:
    0 4px 15px
    rgba(0, 0, 0, .05);
}

.activities-navigation a {
  color: var(--green);

  font-size: 17px;
  font-weight: 700;

  text-decoration: none;
}

.activities-navigation a:hover {
  text-decoration: underline;
}


/* ============================================================
   CONTENU
   ============================================================ */

main {
  width: min(
    1380px,
    calc(100% - 40px)
  );

  margin: 0 auto;
}


.activities-intro {
  padding:
    70px
    20px
    45px;

  text-align: center;
}

.activities-intro h1 {
  margin:
    0 0
    14px;

  color: var(--green);

  font-size:
    clamp(
      34px,
      5vw,
      56px
    );
}

.activities-intro p {
  max-width: 820px;

  margin:
    0 auto;

  color: #53655e;

  font-size: 18px;
  line-height: 1.6;
}


/* ============================================================
   CARTES
   ============================================================ */

.activities-grid {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(
        280px,
        350px
      )
    );

  justify-content: center;
  align-items: start;

  gap: 28px;

  width: 100%;

  padding-bottom: 80px;
}

.activity-card {
  position: relative;

  overflow: hidden;

  width: 100%;
  max-width: 350px;

  padding: 20px;

  box-sizing: border-box;

  background: white;

  border-top:
    7px solid
    var(--gold);

  border-radius: 24px;

  box-shadow:
    0 14px 35px
    rgba(0, 0, 0, .12);

  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

.activity-card:hover {
  transform:
    translateY(-4px);

  box-shadow:
    0 16px 36px
    rgba(0, 0, 0, .14);
}

.activity-card__image {
  display: block;

  width: 100%;
  max-width: 310px;
  max-height: 430px;

  margin:
    56px
    auto
    18px;

  object-fit: contain;

  border-radius: 10px;
}

.activity-card__content {
  padding: 0;
}

.activity-card__date {
  display: inline-block;

  margin-bottom: 18px;

  padding:
    9px
    16px;

  color: #25342d;

  font-size: 15px;
  font-weight: 700;

  background:
    var(--gold);

  border-radius: 999px;
}

.activity-card h3 {
  margin:
    16px 0
    12px;

  color: var(--green);

  font-size: 22px;
  line-height: 1.2;
}

.activity-card__place {
  margin:
    0 0
    10px;

  color: #44574f;

  font-weight: 700;
}

.activity-card__description {
  margin-top: 14px;

  color: #53655e;

  font-size: 15px;
  line-height: 1.45;
}

.activities-empty,
.activities-error {
  grid-column:
    1 / -1;

  padding: 60px;

  text-align: center;

  font-size: 18px;
}


/* ============================================================
   NOTRE MISSION
   ============================================================ */

.mission {
  margin:
    0 auto
    80px;

  padding:
    65px
    8vw;

  color: white;

  text-align: center;

  background:
    linear-gradient(
      135deg,
      #1f6b52,
      #338c69
    );

  border-radius: 36px;
}

.mission h2 {
  margin:
    0 0
    35px;

  font-size:
    clamp(
      38px,
      5vw,
      60px
    );
}

.mission p {
  max-width: 1100px;

  margin: 0 auto;

  font-size:
    clamp(
      18px,
      2vw,
      26px
    );

  line-height: 1.7;
}


/* ============================================================
   BOUTON ACCUEIL FLOTTANT
   ============================================================ */

.side-home-button {
  position: fixed;

  left: 0;
  top: 50%;

  z-index: 50;

  display: flex;
  flex-direction: column;

  align-items: center;

  gap: 8px;

  width: 112px;

  padding:
    14px
    8px;

  color: var(--green);

  font-weight: 700;

  text-decoration: none;

  background: white;

  border:
    3px solid
    var(--gold);

  border-left: 0;

  border-radius:
    0
    28px
    28px
    0;

  box-shadow:
    0 8px 24px
    rgba(0, 0, 0, .12);
}

.home-icon {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 62px;
  height: 62px;

  color: white;

  font-size: 31px;

  background:
    var(--green);

  border:
    4px solid
    var(--gold);

  border-radius: 50%;
}


/* ============================================================
   FOOTER
   ============================================================ */

footer {
  padding:
    30px
    20px;

  color: #607069;

  text-align: center;

  background: white;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (
  max-width: 700px
) {
  main {
    width:
      min(
        100% - 24px,
        1380px
      );
  }

  .activities-navigation {
    gap: 18px;

    overflow-x: auto;

    justify-content:
      flex-start;
  }

  .activity-card__image {
    height: auto;
    max-height: 520px;
  }

  .mission {
    padding:
      45px
      24px;

    border-radius: 24px;
  }

  .side-home-button {
    width: 88px;
  }

  .home-icon {
    width: 52px;
    height: 52px;
  }
}



/* ============================================================
   BADGE ACTIVITÉ COMPLÉTÉE
   ============================================================ */

.activity-card__status {
  position: absolute;

  top: 14px;
  right: 14px;

  z-index: 2;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding:
    7px
    12px;

  color: white;

  font-size: .78rem;
  font-weight: 900;

  letter-spacing: 1px;
  text-transform: uppercase;

  background:
    #6c8f7f;

  border-radius: 999px;
}
