:root {
  --primary-bg-color: #ffffff;
  --primary-color: #155962;
  --primary-color-transparency: hsla(187, 65%, 23%, 0.6);
  --secondary-bg-color: #FFF2D5;
  --secondary-color: #FFB511;
  --ternary-color: #DFA219;
  --button-primary-bg-color: var(--secondary-color);
  --button-primary-font-color: var(--primary-color);
  --button-primary-border-color: var(--ternary-color);
  --button-secondary-bg-color: var(--primary-bg-color);
  --button-secondary-font-color: var(--primary-color);
  --button-secondary-border-color: var(--primary-color-transparency);
}

#cosmo-popup {
  position: fixed;
        bottom: 0;
        right: 20px;
        width: 180px;
        z-index: 9999;
        transform: translateY(100%);
        transition: transform 0.6s ease-out, opacity 0.6s ease-in-out;
        opacity: 0;
        pointer-events: none;
}

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

/* Je fais un petit hack  pour que le footer reste collé en bas de page même quand la page est plus courte que le viewport*/

html,
body {
  height: 100%;
  margin: 0;
}

body {
  background-color: var(--primary-bg-color);
  color: var(--primary-color);
  margin: 0 auto;
  font-family: "Inter", sans-serif;
  line-height: 140%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

ul {
  list-style-type: circle;
}

a {
  color: inherit;
  text-decoration: underline;
}

#contact {
  text-align: right;
}

.content {
  margin: 0 auto;
}

.frugal-image {
    margin: 32px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.frugal-image img {
    display: block;
    /* width: 100%; */
    height: auto;
    border-radius: 10px;
}

.frugal-image figcaption {
    margin-top: 10px;
    font-size: 0.9em;
    line-height: 1.4;
    opacity: 0.8;
}


h1 {
  margin: 40px 0 30px;
  font-family: Antonio;
  letter-spacing: -2px;
  font-weight: 700;
}

h2 {
  margin: 30px 0 20px;
  font-family: Inter;
  font-weight: 700;
}

h3 {
  margin: 20px 0 10px;
  font-family: Inter;
  font-weight: 700;
}

.mod-color {
  padding: 20px 10px;
  background-color: var(--secondary-bg-color)
}

.mod-white {
  padding: 20px 10px;
  background-color: var(--primary-bg-color);
}

.mod-title {
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.mod-title h2{
  margin: 0;
}

/* Header - logo et top infos */
.header {
  display: flex;
  justify-content: space-between;
  padding: 16px 24px 12px 24px;
  gap: 50px;
}

footer {
  margin: 50px auto 0;
  padding: 35px 24px;
  text-align: center;
  background-color: var(--primary-color);
  color: var(--primary-bg-color);
  font-size: 0.9em;
  width: 100%;
}

footer p {
  margin: 0 auto;
}

.footer-logo-wrapper {
  margin-top: 32px;
  flex-wrap: wrap;
  display: flex;
  justify-content: center;
  gap: 32px;
  align-items: center;
  width: 100%;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.9em;
  padding: 0.5rem 24px 0.5rem 24px;
  background-color: var(--secondary-bg-color);
}

.breadcrumb-separator {
  margin: 0 0.5rem;
}

.breadcrumb-current {
  font-weight: 700;
}

/* Hero */
.hero {
  padding: 50px 20px;
  background-color: var(--primary-color);
  color: var(--primary-bg-color);
  font-family: Antonio;
  text-align: center;
}

.hero>div {}

/* CTA Button */
.cta-button-wrapper {
  text-align: center;
  margin: 10px auto;
}

.cta-button {
  width: 300px;
  display: inline-block;
  padding: 10px;
  background-color: var(--button-primary-bg-color);
  /* Set it up in the partial */
  border: solid 2px;
  border-radius: 10px;
  border-color: var(--button-primary-border-color);
  font-weight: 500;
  ;
  color: var(--button-primary-font-color);
  text-decoration: none;
}

.not-found {
    margin-top: 48px;
    margin-bottom: 80px;
    text-align: center;
}

.not-found-code {
    font-family: Antonio;
    font-size: clamp(64px, 16vw, 140px);
    line-height: 1;
    letter-spacing: -4px;
    color: var(--primary-color-transparency);
}

.not-found h1 {
    margin: 0.3em 0;
}

.not-found p {
    margin: 0 auto;
    max-width: 52ch;
}



table {
  border-collapse: collapse;
  /* Adjacent cells merge */
  width: 100%;
}

th, td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

th {
  background-color: var(--secondary-bg-color, #f4f4f4);
  border-bottom: 2px solid #ccc;
}

ul, ol {
  list-style-position: inside;
}

p, ol li, ul li {
  margin-bottom: 10px;
}

ul li li {
  padding-left: 20px;
  margin-bottom: 0;
}

#matomo-opt-out {
  text-align: center;
  margin: 30px auto;
  width: 50%;
  font-size: 0.8em;
  line-height: 100%;
  font-weight: lighter;
}

.events-grid {
  margin-bottom: 20px;
}

.events-grid h3{
  margin-bottom: 0;
}
.events-grid p{
  margin-bottom: 0;
}

.event-card{
  margin-bottom: 10px;
}

.event-description {
  font-style: italic;
  font-size: 0.9em;
}

.recent-posts{
  margin-top: 10px;
}

.recent-posts ul li,
.highlighted-initiativezs ul li {
  margin-bottom: 5px;
}

.date-chip-blank-bg {
  background-color: var(--secondary-bg-color); padding: 4px 12px; border-radius: 15px;
}

.date-chip-col-bg {
  background-color: var(--ternary-color); padding: 4px 12px; border-radius: 15px;
  color: #ffffff
}


.location-chip {
  color: #ffffff; background-color: var(--primary-color); padding: 4px 12px; border-radius: 15px;
}

.category-chip {
  color: #ffffff; background-color: var(--primary-color); padding: 4px 12px; border-radius: 15px;
  display: inline-flex;
  align-items: center;     
  justify-content: center; 
  white-space: nowrap;
  height: 32px;
}

.tag-chip {
  color: #ffffff; background-color: var(--ternary-color); padding: 4px 12px; border-radius: 15px;
  display: inline-flex;
  align-items: center;    
  justify-content: center; 
  white-space: nowrap;
  height: 32px;
  margin: 0;
}

.category-chip:hover {
  background-color: var(--primary-color-transparency);
}

.tag-chip:hover {
  background-color: var(--secondary-bg-color);
  color: var(--primary-color);
}

.date-chip-blank-bg.sm,
.date-chip-col-bg.sm,
.location-chip.sm,
.category-chip.sm,
.tag-chip.sm {
  font-size: 12px;
    height: 24px;
}

a.chip { 
  text-decoration: none;
  margin-right: 2px;
}



/*DESKTOP*/
@media screen and (min-width: 700px) {
  body {
    font-size: 20px;
  }

  .header {
    display: flex;
    justify-content: space-between;
    padding: 20px;
  }

  #contact {
    font-size: 14px;
  }

  #logo {
    width: 250px;
    height: auto;
  }

  .hero {
    margin-bottom: 50px;
    font-size: 50px;
    line-height: 60px;
    letter-spacing: -2px;
  }

  .hero>div {}

  .content {
    padding: 0 10px;
    max-width: 820px;
  }

  h1 {
    font-size: 50px;
    line-height: 110%;
  }

  .mod-title {
    margin: 0 auto;
    max-width: 820px;
  }


  h2 {
    font-size: 28px;
    line-height: 120%;
  }

  .cta-button {
    padding: 0.65rem 1rem;
    font-size: 0.85em;
  }
}

/*MOBILE*/
@media (max-width: 699px) {
  body {
    font-size: 16px;
  }

      .frugal-image {
        margin: 24px 0;
    }

  .header {
    display: flex;
    justify-content: space-between;
    padding: 15px;
  }

  #contact {
    font-size: 14px;
  }

  #logo {
    width: 160px;
  }

  .hero {
    margin-bottom: 30px;
    font-size: 42px;
    line-height: 50px;
    letter-spacing: -2px;
  }

  .hero>div {}

  .content {
    padding: 0 15px;
  }

  h1 {
    font-size: 36px;
    line-height: 110%;
  }

  .mod-title {
    margin: 0 auto;
  }

  h2 {
    font-size: 24px;
  }

  .cta-button {
    padding: 0.65rem 1rem;
    font-size: 0.85em;
  }

  br.desktop {
    display: none;
  }
}

@font-face {
  font-family: 'Antonio';
  src: url('fonts/Antonio.ttf') format('truetype');
  font-weight: 700;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Regular.ttf');
}

@font-face {
  font-family: 'Inter';
  font-style: italic;
  src: url('fonts/Inter-Italic.ttf');
}
