@font-face {
  font-family: "Coolvetica";
  /* font-display: swap; */
  src: url("../fonts/Coolvetica/Coolvetica-Regular.otf");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Coolvetica";
  /* font-display: swap; */
  src: url("../fonts/Coolvetica/Coolvetica-Regular-Italic.otf");
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: "Elbrush";
  /* font-display: swap; */
  src: url("../fonts/Elbrush/Elbrush.woff2");
  font-weight: normal;
  font-style: normal;
}

:root {
  --dark-color: #222222;
  --light-color: white;
  --s-margin: 20px;
  --m-margin: 40px;
  --l-margin: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: var(--dark-color);
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
li {
  color: var(--dark-color);
  margin: 0;
  padding: 0;
  font-weight: normal;
}

h1,
h2,
h3 {
  font-family: "Elbrush", cursive;
}
h2 {
  text-align: center;
  font-size: 2.2rem;
  line-height: 2rem;
}

h3 {
  font-size: 1.4rem;
  line-height: 1.2rem;
}

p {
  line-height: 1.2rem;
}

ul,
li {
  text-decoration: none;
  list-style: none;
  font-size: 1rem;
}

a,
a:visited,
a:active {
  text-decoration: none;
  color: var(--dark-color);
}

html {
  padding: env(safe-area-inset);
}

html,
body {
  -webkit-scroll-behavior: smooth;
  scroll-behavior: smooth;
  padding: 0;
  margin: 0;
  background-color: var(--light-color);
  font-size: 22px;
  font-family: "Coolvetica", sans-serif;
  overflow-x: clip;
}

strong {
  position: relative;
  display: inline-block;
  z-index: 1;
  color: var(--light-color);
  font-weight: normal;
}

strong::before {
  content: "";
  position: absolute;
  top: 50%; /* Centre la brush verticalement */
  left: -5px; /* Légère extension à gauche */
  width: calc(100% + 10px); /* Légère extension des deux côtés */
  height: 1.5rem; /* Hauteur fixe */
  background-image: url("../imgs/underline.svg");
  background-size: auto 1.5rem; /* Garde les proportions, hauteur fixe */
  background-repeat: repeat-x; /* Répète horizontalement */
  background-position: center;
  pointer-events: none;
  z-index: -1;
  transform: translateY(-50%); /* Centre parfaitement */
}

/* strong {
  position: relative;
  display: inline-block;
  z-index: 0;
  color: var(--hightlight-color);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

strong::after {
  content: "";
  position: absolute;
  left: -0.3em;
  right: -0.3em;
  bottom: -0.15em;
  height: 1.5rem;
  background: #5c69ff;
  z-index: -1;
  border-radius: 2px 5px 5px 3px;
  transform: rotate(-0.3deg);
} */
/*------------------- HEADER -------------------*/
header {
  position: fixed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100vw;
  padding: 10px var(--s-margin);
  z-index: 99;
}

#logo-ndp {
  display: flex;
  align-items: center;
  gap: 10px;
}

#logo-ndp img {
  width: 50px;
}

header #nav-toggle:checked ~ nav {
  transform: translateX(0);
}

header nav {
  position: fixed;
  background-color: #fad1ea;
  top: 0;
  right: 0;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  padding: 100px calc(var(--s-margin) * 2);
  height: 100vh;
  max-width: 350px;
  width: 100%;
}

header nav ul {
  margin-bottom: 1rem;
}

header input {
  display: none;
}

header label {
  z-index: 2;
  cursor: pointer;
  user-select: none;
}

.nav-button {
  display: flex;
  gap: calc(var(--s-margin) / 2);
}

.nav-icon {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  justify-items: center;
  cursor: pointer;
  width: 36px;
  height: 30px;
  transition: all 0.3s ease-in-out;

  align-items: center;
}

.nav-icon span {
  background-color: var(--dark-color);
  position: relative;
  display: block;
  width: 100%;
  height: 4px;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  transform-origin: center;
}
header #nav-toggle:checked ~ .nav-button > .nav-icon {
  /* background-color: red; */
  transform: rotate(-180deg);
}
header #nav-toggle:checked ~ .nav-button > .nav-icon > span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

header #nav-toggle:checked ~ .nav-button > .nav-icon > span:nth-child(2) {
  transform: rotate(-45deg);
}

header #nav-toggle:checked ~ .nav-button > .nav-icon > span:nth-child(3) {
  transform: translateY(-10px) scale(0) rotate(-45deg);
}
/*------------------- FOOTER -------------------*/

footer {
  /* background-color: var(--primary-color); */
  position: relative;
}

footer > div {
  padding: 1rem 20px;
}

footer > div#section-contact {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-gap: var(--s-margin);
}

footer > div:not(:first-of-type) {
  border-top: 2px dotted var(--dark-color);
  text-align: center;
}

footer .social-links {
  display: flex;
  flex-direction: column;
}

footer > div#pages-footer {
  display: flex;
  justify-content: center;
  gap: var(--s-margin);
}
footer #section-partenaires .logo-partenaire {
  max-width: 140px;
  height: 100px;
  display: inline-flex;
  vertical-align: middle;
  margin: 0 var(--s-margin);
}

footer #section-partenaires img {
  width: 100%;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
}

/* -----------------------GLOBAL------------------------ */

.column-3 {
  grid-column: span 6;
}

.column-4 {
  grid-column: span 4;
}

.column-12 {
  grid-column: span 12;
}

#background-header {
  position: relative;
  width: 100%;
}

#background-header > div {
  padding: 100px var(--s-margin);
  text-align: center;
  background-color: var(--primary-color);
  min-height: 80vh;
}

#page-header-infos * {
  grid-column: 3 / span 8;
}

#page-header-infos {
  text-align: center;
  margin: 0 var(--l-margin) var(--l-margin) var(--l-margin);
  grid-template-columns: repeat(12, 1fr);
  display: grid;
  margin-bottom: 3rem;
}

#page-header-infos h1 {
  font-size: 5rem;
  line-height: 5rem;
}

#page-header-infos img {
  width: 100%;
  margin: var(--m-margin) 0 var(--s-margin) 0;
  border-radius: 20px;
  aspect-ratio: 16/9;
  object-fit: cover;
}

#page-header-illustration {
  margin: var(--l-margin) calc(var(--l-margin) * 2);
}

main {
  position: absolute;
  top: 100px;
  width: 100%;
}

.colored-background {
  background-color: var(--primary-color);
}

.border-texture {
  fill: var(--primary-color);
  width: 100%;
  height: 16px;
  display: block;
}

.button-container {
  display: flex;
  width: 100%;
  aspect-ratio: 1/1;
  justify-content: center;
  align-items: center;
}
.button-container svg {
  aspect-ratio: 1/1;
}

/* LAZYLOADING IMAGES */
.lazyload,
.lazyloading {
  opacity: 0;
}

.lazyloaded {
  opacity: 1;
  transition: opacity 300ms;
}

picture {
  display: block;
  position: relative;
}

.block {
  margin-bottom: var(--l-margin);
}
/* BLOCK HEADER */
.block-heading {
  padding: 0 calc(calc(100% + var(--s-margin)) / 6);
  margin-bottom: var(--s-margin);
}

/* BLOCK TEXT */
.block-text {
  padding: 0 calc(calc(100% + var(--s-margin)) / 6);
}

.block-text p:not(:last-of-type) {
  margin-bottom: 1.2rem;
}

.block-text a {
  text-decoration: underline !important;
}

/* BLOCK LIST */
.block-list {
  padding: 0 calc(calc(100% + var(--s-margin)) / 6);
}

.block-list ul {
  grid-column: 3 / span 8;
}

.block-list li {
  list-style: disc;
  list-style-position: inside;
}

.block-list a {
  text-decoration: underline !important;
}
/* BLOCK TABLEAU */
.table-grid {
  padding: var(--l-margin) calc(calc(100% + var(--s-margin)) / 6);
}

.table-row {
  display: flex;
  gap: var(--s-margin);
  padding: 1rem 0;
}

.table-row:not(:first-of-type) {
  border-top: 2px dotted var(--dark-color);
}

.row-title {
  width: 20%;
}

.row-text {
  width: 80%;
}

.block-tableau a {
  text-decoration: underline !important;
}

/* BLOCK IMAGE */
.block-image {
  padding: 0 var(--l-margin);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}

.block-image picture {
  grid-column: 3 / span 8;
}

.block-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.block-image figcaption {
  grid-column: 3 / span 8;
  text-align: center;
}

/* BLOCK GALLERY */
.block-gallery {
  padding: var(--s-margin) 0;
}

.block-gallery h2 {
  margin-bottom: 2rem;
}

.swiper-slide {
  text-align: center;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.swiper-wrapper {
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
}

.block-gallery .swiper-slide picture,
.block-gallery .swiper-slide picture img {
  display: block;
  height: 600px;
  width: 100%;
  object-fit: contain;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  border-radius: 20px;
}

.swiper-slide {
  width: auto;
}

#prev,
#next {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.swiper-controls {
  width: 100%;
  align-items: center;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-gap: var(--s-margin);
  padding: var(--s-margin) var(--l-margin);
}

.swiper-button-next,
.swiper-button-prev {
  position: relative;
  width: 100%;
  height: 100%;
  top: 0;
  margin: 0;
  color: var(--dark-color);
  border: none;
  background: none;
  font-size: 1rem;
  font-family: "Coolvetica";
  gap: 0.5rem;
}

.arrow {
  height: 30px;
  aspect-ratio: 1/1;
}

.swiper-button-prev {
  left: 0;
  justify-content: left;
  grid-column: 3 / span 2;
}

.swiper-button-next {
  justify-content: right;
  right: 0;
  grid-column: 9 / span 2;
}
.swiper-button-prev *,
.swiper-button-next * {
  fill: var(--dark-color);
}
.swiper-button-prev svg {
  transform: scaleX(-100%);
}
.swiper-button-next:after,
.swiper-button-prev:after {
  content: " ";
}

.swiper-button-next svg,
.swiper-button-prev svg {
  height: 1.5rem;
}

.swiper-pagination {
  position: relative;
  text-align: center;
  transition: 0.3s opacity;
  transform: translate3d(0, 0, 0);
  z-index: 10;
  align-content: center;
  grid-column: span 4;
}

.swiper-pagination-bullet {
  border-radius: 0;
  background: var(--inactive-color);
  width: 0.8rem;
  height: 0.8rem;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  opacity: var(--swiper-pagination-bullet-opacity, 1);
  background: var(--dark-color);
}

.swiper-horizontal > .swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal,
.swiper-pagination-custom,
.swiper-pagination-fraction {
  bottom: 0;
  left: 0;
  width: 100%;
}

#prev p,
#next p {
  font-size: 30px;
}

#next {
  right: 0;
  justify-content: right;
}

/* block-video */
.block-video {
  padding: 0 var(--l-margin);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}
.block-video h2 {
  grid-column: 3 / span 8;
  text-align: center;
  margin-bottom: var(--s-margin);
}
.block-video figure {
  grid-column: 4 / span 6;
}

.block-video iframe {
  width: 100%;
  aspect-ratio: 16/9;
  height: 100%;
  border: 0;
}

/* BLOCK GRILLE */
.block-grille {
  padding: 0 calc(calc(100% + var(--s-margin)) / 10);
  display: flex;
  flex-wrap: wrap;
  gap: var(--m-margin);
  justify-content: center;
}

.block-grille .grille-element {
  /* width: calc(100% / 4 - var(--s-margin) * 2); */
  text-align: center;
}

.block-grille .grille-element img {
  width: 100%;
  object-fit: contain;
  text-align: center;
  aspect-ratio: 1/1;
}
/* block-cta */
.block-cta {
  padding: var(--s-margin) var(--l-margin);
  text-align: center;
}

.cta-button {
  text-align: center;
  padding: 20px 40px;
  background-color: hsla(235, 100%, 68%, 1);
  border-radius: 100px;
  color: var(--light-color) !important;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: hsla(235, 100%, 68%, 0.8);
  padding: 25px 45px;
}

/* cards-event */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-gap: var(--s-margin);
}

.programmation-container {
  display: flex;
  flex-wrap: wrap;
  row-gap: 100px;
  column-gap: var(--s-margin);
  padding: var(--l-margin) 0;
  text-align: center;
  grid-column: 2 / span 10;
}

.card-event {
  display: block;
  width: calc(100% / 3 - var(--s-margin) * 2 / 3);
  height: fit-content;
  border-radius: 20px;
  overflow: hidden;
}

.card-event .tags {
  background-color: var(--dark-color);
  color: var(--light-color);
  font-family: "elbrush", cursive;
  font-weight: normal;
  letter-spacing: 1px;
  padding: 0.5rem 0.25rem 0.25rem 0.25rem;
}

.card-event img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.card-event-infos {
  padding: 0.5rem 2rem 0.75rem 2rem;
}
