@import url('https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,100..900;1,100..900&family=Silkscreen:wght@400;700&display=swap');

:root {
    --blanc: #FCFAEF;
  --noir: #1C1C1D;
  --vert: #00C5A2;
}

*,
::after,
::before {
	border-style: solid;
	border-width: 0;
	box-sizing: border-box;
}

* {
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* === Structure de base === */
body,
#app_blocker {
      font-family: "Public Sans", sans-serif;
    background: var(--blanc);
    width: 100%;
	overflow-x:hidden;
}
body::after{
    content: "";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,rgba(200, 200, 200, 0) 10%, rgba(200, 200, 200, 0.5) 40%, rgba(200, 200, 200, 0) 70%);
    mix-blend-mode: multiply;
    pointer-events: none;
    user-select: none;
    z-index: -1;
}

#app_blocker {
    display: block;
    inset: 0;
    min-height: 100lvh;
    opacity: 1;
    pointer-events: auto;
    position: fixed;
    transition: opacity 0.3s ease;
    user-select: none;
    z-index: 999;
}

#app_blocker.hide {
    opacity: 0;
    pointer-events: none;
}

/* === Typographie === */
:is(h1, h2, h3, h4) {
    font-weight: 500;
    letter-spacing: 0.025em;
    line-height: 1.2;
    margin: 0;
    text-wrap: balance;
    text-wrap: pretty;
}

h2 {
    font-size: 3.1575rem;
    color: var(--noir);
}

h3 {
    font-size: 1.33313rem;
    color: var(--noir);
          font-family: "Silkscreen", sans-serif;

}

p {
    color: var(--noir);
    font-size: 1rem;
    letter-spacing: 0.025em;
  min-height:100px;
}

/* === Layout principal === */
.viewport-wrapper {
    height: auto;
    overflow: visible;
    position: relative;
}

.content-scroll {
    display: block;
    width: 100%;
}

main {
    margin: 0;
    display: block;
    position: relative;
}

.wrapper {
    margin-inline: auto;
    width: 100%;
    display: block;
    position: relative;
}

.scroll-cta p{
    max-height:15px;
    display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  align-content: normal;
    font-family: "Silkscreen", sans-serif;
    opacity: 0.7;
    width: 100%;
    max-width: 500px;
}
.arrow {
  position: relative;
  display: inline-block;
  margin-left: 8px;
  background-color: transparent;
  max-height: 1.15rem;
  transform-origin: center;
}
.arrowUP {
  position: relative;
  display: inline-block;
  margin-right: 8px;
  background-color: transparent;
  max-height: 1.15rem;
  transform-origin: center;
    transform: rotate(180deg);
}
.arrow.shifted,.arrowUP.shifted {
  top: 2px;
}


/* === Carousel === */
.carousel {
    --swiper-column-gap: 1.5rem;
    --swiper-column-gap-md-down: calc(1.5rem * 0.5);
    --swiper-slides-perview: 2.25;
    --swiper-slides-perview-md-down: 1.05;
    --swiper-col-width: calc(1 / var(--swiper-slides-perview));
    --swiper-col-width-md-down: calc(1 / var(--swiper-slides-perview-md-down));
    /* carré */
    display: block;
    position: relative;
}

#carousel_1 {
    --max-wrapper-size: 75rem;
}

/* === Swiper === */
.swiper-container {
    perspective: 2000px;
}

.swiper-column-gap {
    border: 0;
    height: 0.0625rem;
    margin: -0.0625rem calc(-1 * var(--swiper-column-gap));
    overflow: clip;
    padding: 0;
    position: absolute;
    width: var(--swiper-column-gap);
    pointer-events: none;
    user-select: none;
}

.swiper-wrapper {
    perspective: 2000px;
}

.swiper-slide {
    height: auto;
    min-width: 0;
    position: relative;
    width: calc(
        (
            var(--max-wrapper-size, 100%) - var(--swiper-column-gap) *
            (var(--swiper-slides-perview) + 1)
        ) * var(--swiper-col-width)
    );

}

.no-interaction {
    pointer-events: none;
    user-select: none;
}

.no-interaction .cta-button {
    pointer-events: none;
}


/* === Carte === */
.card {
    background: transparent;
    display: block;
    height: 600px;
    position: relative;
  text-align: center;
  perspective: 140px;
}

.card-text {
    background: var(--blanc);
    padding: 1.5rem;
    display: block;
    height: 240px;
    position: relative;
  border:6px solid var(--noir);
  border-top:3px solid var(--noir);
  text-align: left;
}

.card-text p {
    margin-bottom: 0;
    margin-top: calc(1.5rem * 0.25);
    overflow: hidden;
    visibility: visible;
    word-wrap: break-word;
  min-height:12%;
}


.ombre{
    z-index: -1;
    width:250px;
    height:150px;
    opacity: 1;
    position:absolute;
    top: calc(50% + 14px);
  left: calc(50% - 44px);
  transform: translate(-50%, -50%);
  perspective: 80px;
  filter: blur(4px);
}
.ombre::before{
    content: "";
    display: block;
    position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotate(-5deg);
  width: 250px;
  height: 60px;
  background: linear-gradient(180deg,rgba(112, 112, 112, 0) 0%, rgba(112, 112, 112, 0.5) 80%);
  clip-path: polygon(16% 0,30% 0, 84% 100%, 54% 100%);
  filter: blur(6px);
}
.ombre::after{
    content: "";
    display: block;
    position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotate(-5deg);
  width: 250px;
  height: 40px;
  background: linear-gradient(180deg,rgba(112, 112, 112, 0) 0%, rgba(112, 112, 112, 0.35) 80%);
  clip-path: polygon(0 0, 100% 0, 84% 100%, 54% 100%);

  filter: blur(2px);
}

/* === Image === */
.media-container {

    display: grid;
    position: relative;
    width: 100%;
  aspect-ratio:16/9;
  	overflow: hidden;
  border:6px solid var(--noir);
  border-bottom:none;
}



/* Slideshow inactif par défaut */
.media-slideshow {
  display: flex;
  width: 100%;
  height: 100%;
  animation: none;
}

/* S’active uniquement si la classe est ajoutée */
.media-slideshow.animate-slideshow {
  animation: slideShow 12s infinite;
}

.media-slideshow img {
  flex: 0 0 100%;
  object-fit: cover;
  
}

/* Animation */
@keyframes slideShow {
  0%, 20%   { transform: translateX(0%); }
  25%, 45%  { transform: translateX(-100%); }
  50%, 70%  { transform: translateX(-200%); }
  75%, 100% { transform: translateX(0%); }
}



:is(img, svg) {
    border: 0;
    display: block;
    height: auto;
    max-width: 100%;
    outline: none;
    pointer-events: none;
    user-select: none;
    vertical-align: middle;
}

img {
    color: transparent;
    background-color: rgb(223, 207, 159);
    font: 0/0 a;
    margin: 0;
    padding: 0;
    position: relative;
    text-shadow: none;
}

.media-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.fit-cover {
    background-repeat: no-repeat;
    background-size: cover;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.fit-cover.middle-center {
    background-position: 50% 50%;
    object-position: 50% 50%;
}

/* === Bouton CTA === */
.card-text a{
  position:absolute;
  height:1rem;
  bottom:-1rem;
  left:calc(50% - (30%));
  width: calc(100% - (1.5rem*8));
}
.cta-button {
    align-items: center;
    background-color: var(--blanc);
    border:6px solid var(--noir);
    color: var(--button-color);
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 500;
    justify-content: center;
    letter-spacing: 0.025em;
    margin-top: calc(1.5rem * 0.5);
    min-height: 2rem;
    min-width: 60%;
    position: absolute;
  bottom: 0;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    width: max-content;
    display: inline-flex;
    font-family: inherit;
    user-select: none;
}

.cta-button .text {
    cursor: inherit;
    font-size: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    padding: 0.25rem 0.5rem;
    text-align: center;
    width: auto;
    display: inline-flex;
    user-select: none;
    font-family: "Public Sans", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

/* === Pagination === */
.swiper-pagination-container {
    display: block;
    margin-top: 1.5rem;
    position: relative;
    pointer-events: none;
}

.swiper-pagination-wrapper {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
    position: relative;
    pointer-events: none;
}

.swiper-pagination {
    position: relative;
    pointer-events: auto;
}

/* === Dummy Block === */
.dummy-block {
    display: block;
    position: relative;
    width: 100%;
}

.dummy-block > * {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-inline: auto;
    padding-block: 3rem;
    pointer-events: none;
    text-align: center;
    user-select: none;
    width: calc(100% - 1.5rem * 2);
}

.dummy-block :is(h2, h3) {
    color: var(--light-color);
    font-size: 1rem;
    margin-bottom: 0;
}

.text-before {
  display: block;
  width: calc(
    (
      var(--max-wrapper-size, 100%) - var(--swiper-column-gap) *
      (var(--swiper-slides-perview) + 1)
    ) * var(--swiper-col-width)
  );
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem calc(1.5rem * 1.5) 0;
  text-align: left;
  font-size: 1em;
}
.text-before h1{
    display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: normal;
  align-items: normal;
  align-content: normal;
  font-weight: bold;
}
.text-before h1 span span{
    font-size: 1.22em;
    position: relative;
}
h1 span span::before {
      background-color: var(--vert);
      content: "";
      position: absolute;
      width: calc(100% + 4px);
      height: 60%;
      left: -2px;
      bottom: 0;
      z-index: -1;
      transform: rotate(var(--rotation));
      }

.resources-layer {
	bottom: 0;
	display: block;
	position: fixed;
	right: 0;
	z-index: 1000;
}

.resources {
	background: var(--resources-bg-color);
	display: grid;
	font-family: Inter, Roboto, "Helvetica Neue", "Arial Nova", "Nimbus Sans",
		Arial, sans-serif;
	font-size: 0.6875rem;
	font-weight: 300;
	grid-auto-flow: column;
	line-height: 1.3;
	padding: 0.5rem;
	pointer-events: auto;
}

.resources a {
	align-content: center;
	display: grid;
	justify-content: center;
	padding: 0 0.5rem;
	place-content: center;
	transition: color 0.2s ease-in-out;
}

.resources a,
.resources a:visited {
	color: var(--resources-color);
}

.resources a:active,
.resources a:focus-visible {
	color: var(--resources-active-color);
}

.resources a:focus-visible {
	outline: none;
}

.resources a:not(:first-child) {
	border-inline-start: thin solid currentColor;
}


.cta-button{
  position:relative;
  bottom:-0px;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.card:has(.media-slideshow.animate-slideshow) .cta-button {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.35s ease;
}


@media (hover: hover) and (pointer: fine) {
    .cta-button:active:not(:hover),
    .cta-button:hover {
        background-color: var(--vert);
    }
}


/* === Responsive === */
@media (max-width: 820px) {
canvas#skin-container {
  touch-action: pan-y;
  pointer-events: none;
}

    h2 {
        font-size: 2.36875rem;
    }

    p {
        font-size: 0.9375rem;
        line-height: 1.3;
    }

    .text-before {
        margin-left: 0;
        max-width: 100%;
        padding: 0 calc(1.5rem * 0.5) calc(1.5rem * 1.5);
    }

    .swiper-column-gap {
        margin: -0.0625rem calc(-1 * var(--swiper-column-gap-md-down));
        width: var(--swiper-column-gap-md-down);
    }

    .swiper-slide {
        width: calc(
            (
                100% - var(--swiper-column-gap-md-down) *
                (var(--swiper-slides-perview-md-down) + 1)
            ) * var(--swiper-col-width-md-down)
        );
    }

    .card-text {
        padding: 1.5rem calc(1.5rem * 0.5);
    }

    .dummy-block > * {
        width: calc(100% - 1.5rem);
    }
}
