@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

@font-face { font-family: 'test_metric'; src: url(Fonts/testmetric-black-webfont.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'nnarosa_black'; src: url(Fonts/nnarosa-black-webfont.woff2) format('woff2'); }
@font-face { font-family: 'grenettepro_regular'; src: url(Fonts/grenettepro-regular-webfont.woff2) format('woff2'); }
@font-face { font-family: 'couriernew'; src: url(Fonts/CourierNewPS-BoldMT.woff2) format('woff2'); }
@font-face { font-family: 'spectral_light'; src: url(Fonts/Spectral-Light.woff2) format('woff2'); }
@font-face { font-family: 'emulogic'; src: url(Fonts/emulogic-zrew-webfont.woff2) format('woff2'); }
@font-face { font-family: 'futura_pt_bold'; src: url(Fonts/Futura-Medium.woff2) format('woff2'); }
@font-face { font-family: 'sakkal'; src: url(Fonts/SakkalMajalla-Bold.woff2) format('woff2'); }
@font-face { font-family: 'fairsans'; src: url(Fonts/FairSansTextW00-BoldItalic.woff2) format('woff2'); }
@font-face { font-family: 'value_serif'; src: url(Fonts/ValueSerifPro-Medium.woff2) format('woff2'); }
@font-face { font-family: 'ultima'; src: url(Fonts/UltimaPro-Bold.woff2) format('woff2'); }


:root {
--couleur: #FF2E63;
--marge-page: clamp(1.25rem, 5vw, 5rem);
--espace-section: clamp(2rem, 8vw, 12rem);
}


/* base */

html, body {
overflow-x: clip;
}

body {
margin: 0;
background-color: #000;
color: var(--couleur);
font-family: 'Montserrat', sans-serif;
animation: fondu 0.4s ease backwards;
}

body.page-sortie {
animation: sortie 0.3s ease forwards;
}

@keyframes fondu {
from { opacity: 0; }
}

@keyframes sortie {
to { opacity: 0; }
}

::selection {
background-color: var(--couleur);
color: #fff;
}

a, button {
cursor: pointer;
}

a[x-apple-data-detectors] {
color: inherit !important;
text-decoration: none !important;
}

.marge-page {
padding-left: var(--marge-page);
padding-right: var(--marge-page);
}

.titre {
font-family: 'test_metric', sans-serif;
font-weight: 900;
text-decoration: none;
}

.barre-progression {
position: fixed;
top: 0;
left: 0;
z-index: 1040;
width: 100%;
height: 4px;
background-color: var(--couleur);
transform: scaleX(0);
transform-origin: left;
pointer-events: none;
}


/* nav */

.navbar {
height: 100px;
pointer-events: none;
}

.navbar .container-fluid {
padding: 0 var(--marge-page);
}

.nav-icone {
display: flex;
align-items: center;
color: var(--couleur);
pointer-events: auto;
transition: opacity 0.4s, transform 0.4s, color 0.3s;
}

.navbar.nav-cachee .nav-icone {
opacity: 0;
transform: translateY(-20px);
pointer-events: none;
}

@media (hover: hover) {
.nav-icone:hover {
color: #fff;
}
}

/* logo en masque pour suivre la couleur */
.logo {
position: relative;
}

.logo img {
height: 60px;
visibility: hidden;
}

.logo::after {
content: "";
position: absolute;
inset: 0;
background-color: currentColor;
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 275.29 284.74'%3E%3Cpath d='M87.3,130.51l-36.56-47.11v82.84H.41V.02h47.69l39.74,56.58L127.84.02h47.69v166.23h-50.34v-82.84l-36.83,47.11h-1.06Z'/%3E%3Cpath d='M177.95,118.54v47.64h-50.59V0h79.19c35.75,0,61.18,22.19,61.18,60.63,0,23.55-10.59,40.87-27.81,50.07l33.64,55.48h-56.41l-27.28-47.64h-11.92ZM177.95,77.41h21.72c13.24,0,18.27-6.77,18.27-16.78s-5.03-17.05-18.27-17.05h-21.72v33.83Z'/%3E%3Cpath d='M47.06,265.5l-19.68-25.36v44.6H.27v-89.5h25.67l21.4,30.46,21.54-30.46h25.67v89.5h-27.1v-44.6l-19.83,25.36h-.57Z'/%3E%3Cpath d='M158.08,195.49l32.86,88.87h-27.76l-4.53-12.88h-30.59l-4.53,12.88h-26.91l32.86-88.87h28.61ZM136.12,248.75h14.45l-7.22-20.41-7.22,20.41Z'/%3E%3Cpath d='M275.29,284.35h-22.52l-31.73-44.43v44.43h-26.49v-88.87h25.64l28.61,41.39v-41.39h26.49v88.87Z'/%3E%3C/svg%3E") center / contain no-repeat;
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 275.29 284.74'%3E%3Cpath d='M87.3,130.51l-36.56-47.11v82.84H.41V.02h47.69l39.74,56.58L127.84.02h47.69v166.23h-50.34v-82.84l-36.83,47.11h-1.06Z'/%3E%3Cpath d='M177.95,118.54v47.64h-50.59V0h79.19c35.75,0,61.18,22.19,61.18,60.63,0,23.55-10.59,40.87-27.81,50.07l33.64,55.48h-56.41l-27.28-47.64h-11.92ZM177.95,77.41h21.72c13.24,0,18.27-6.77,18.27-16.78s-5.03-17.05-18.27-17.05h-21.72v33.83Z'/%3E%3Cpath d='M47.06,265.5l-19.68-25.36v44.6H.27v-89.5h25.67l21.4,30.46,21.54-30.46h25.67v89.5h-27.1v-44.6l-19.83,25.36h-.57Z'/%3E%3Cpath d='M158.08,195.49l32.86,88.87h-27.76l-4.53-12.88h-30.59l-4.53,12.88h-26.91l32.86-88.87h28.61ZM136.12,248.75h14.45l-7.22-20.41-7.22,20.41Z'/%3E%3Cpath d='M275.29,284.35h-22.52l-31.73-44.43v44.43h-26.49v-88.87h25.64l28.61,41.39v-41.39h26.49v88.87Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* burger et croix */
.bouton-menu {
position: relative;
display: flex;
flex-direction: column;
justify-content: space-between;
width: 44px;
height: 28px;
padding: 0;
border: 0;
background: none;
}

.bouton-menu span {
width: 100%;
height: 4px;
background-color: currentColor;
}

.bouton-fermer {
position: absolute;
top: 36px;
right: var(--marge-page);
color: #000;
}

.bouton-fermer span {
position: absolute;
top: 12px;
left: 2px;
width: 40px;
transform: rotate(45deg);
}

.bouton-fermer span + span {
transform: rotate(-45deg);
}

.menu {
position: fixed;
inset: 0;
z-index: 2000;
display: flex;
align-items: center;
justify-content: center;
background-color: var(--couleur);
opacity: 0;
visibility: hidden;
transform: translateY(-20px);
transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

.menu.ouvert {
opacity: 1;
visibility: visible;
transform: none;
}

.menu ::selection {
background-color: #000;
color: var(--couleur);
}

.menu ul {
margin: 0;
padding: 0;
list-style: none;
text-align: center;
}

.menu li {
margin: 20px 0;
}

.menu a {
font-size: clamp(4rem, 10vw, 14rem);
line-height: 1;
color: #fff;
}

.menu a:hover {
color: #000;
}


/* footer */

footer {
padding: 1.75rem 0;
background-color: var(--couleur);
}

footer a {
color: #fff;
text-decoration: none;
}

footer a:hover {
color: #000;
}

.footer-lien {
font-weight: 700;
font-size: 1.15rem;
line-height: 1.2;
}

.footer-cv {
display: inline-block;
font-size: 2.4rem;
line-height: 1;
}

@media (min-width: 768px) {
.footer-lien {
font-size: clamp(0.95rem, 1.5vw, 1.35rem);
}

.footer-cv {
font-size: clamp(2rem, 3.6vw, 3.4rem);
}
}


/* titres */

.titre-bloc {
container-type: inline-size;
text-align: center;
text-transform: uppercase;
line-height: 0.72;
color: var(--couleur);
}

.titre-bloc span {
display: block;
}

.titre-s { font-size: 5cqw; }
.titre-m { font-size: 7cqw; }
.titre-l { font-size: 13.5cqw; }
.titre-xl { font-size: 17.5cqw; }

.lien-titre {
color: var(--couleur);
transition: color 0.3s;
}

.lien-titre:hover {
color: #fff;
}

.retour {
container-type: inline-size;
padding: clamp(4rem, 10vw, 10rem) var(--marge-page);
text-align: center;
}

.retour a {
display: block;
font-size: 5cqw;
line-height: 0.72;
white-space: nowrap;
}

.retour .suivant {
margin-bottom: clamp(3rem, 8vw, 6rem);
font-size: max(4cqw, 1.6rem);
}

.suivant span {
display: flex;
align-items: center;
justify-content: center;
gap: 0.3em;
margin-bottom: 0.5em;
font-size: max(0.4em, 0.9rem);
}

.page-404 a {
margin-top: clamp(4rem, 12vw, 9rem);
font-size: max(2.5cqw, 1.2rem);
}

.suivant svg {
width: 0.8em;
height: 0.8em;
transition: transform 0.3s;
}

.suivant:hover svg {
transform: translateX(0.3em);
}


/* accueil */

.intro {
position: relative;
isolation: isolate;
display: grid;
place-items: center;
height: 100vh;
height: 100svh;
padding: 0 var(--marge-page);
overflow: hidden;
text-align: center;
}

.intro-texte {
position: relative;
z-index: 2;
grid-area: 1 / 1;
margin: 0;
line-height: 0.9;
opacity: 0;
animation: intro-texte 8s ease-in-out infinite both;
}

.intro-texte span {
display: block;
}

.intro-texte:nth-of-type(2) { animation-delay: 2s; }
.intro-texte:nth-of-type(3) { animation-delay: 4s; }
.intro-texte:nth-of-type(4) { animation-delay: 6s; }

.intro-petit {
font-size: clamp(1.5rem, 6vw, 3.5rem);
}

.intro-grand {
font-size: clamp(3.5rem, 16vw, 10rem);
}

.intro-texte .accent {
display: inline-block;
position: relative;
}

.accent::after {
content: "";
position: absolute;
top: -0.2em;
left: 50%;
width: 0.13em;
height: 0.28em;
background-color: currentColor;
transform: translateX(-20%) rotate(45deg);
}

.fleche {
position: absolute;
bottom: clamp(1.5rem, 5vh, 3rem);
left: 50%;
z-index: 2;
width: clamp(2rem, 4vw, 2.75rem);
color: var(--couleur);
opacity: 0;
transform: translateX(-50%);
animation: fleche 8s ease-in-out 6s infinite both;
}

.fleche svg {
display: block;
width: 100%;
height: auto;
animation: rebond 2s ease-in-out infinite;
}

@keyframes intro-texte {
0% { opacity: 0; transform: translateY(60px); }
6.25%, 18.75% { opacity: 1; transform: none; }
25%, 100% { opacity: 0; transform: translateY(-60px); }
}

@keyframes fleche {
6.25%, 18.75% { opacity: 1; }
25%, 100% { opacity: 0; }
}

@keyframes rebond {
20%, 60% { transform: translateY(8px); }
0%, 40%, 80%, 100% { transform: none; }
}

.fleche-fixe {
position: fixed;
z-index: 10;
opacity: 1;
animation: none;
transition: opacity 0.4s;
}

.fleche-fixe svg {
animation: rebond-pause 4s ease-in-out 2s infinite;
}

.fleche-fixe.fin {
opacity: 0;
}

@keyframes rebond-pause {
10%, 30% { transform: translateY(8px); }
0%, 20%, 40%, 100% { transform: none; }
}

.lien-principal {
font-size: clamp(3rem, 10vw, 8rem);
}

.texte-secondaire {
font-size: clamp(1rem, 3vw, 1.5rem);
color: #fff;
}

/* objets qui rebondissent */
.objets {
position: absolute;
inset: 0;
pointer-events: none;
}

.objets img {
position: absolute;
top: 0;
left: 0;
z-index: 1;
width: var(--taille-objet, 120px);
height: var(--taille-objet, 120px);
object-fit: contain;
will-change: transform;
}

.objets .devant {
z-index: 3;
}


/* easter egg */

.couleur-changee .image-survol {
filter: url(#filtreCouleur);
}

.easter {
width: min(90vw, 480px);
padding: clamp(2rem, 6vw, 3rem) clamp(1.5rem, 5vw, 2.5rem);
border: 0;
background-color: #FF2E63;
color: #fff;
text-align: center;
}

.easter[open] {
animation: easter 0.35s ease-out;
}

@keyframes easter {
from { opacity: 0; transform: scale(0.9); }
}

.easter::backdrop {
background-color: rgba(0, 0, 0, 0.75);
}

.easter ::selection {
background-color: #fff;
color: #FF2E63;
}

.easter .titre {
margin: 0 0 1.25rem;
font-size: clamp(2rem, 8vw, 3rem);
line-height: 0.9;
}

.easter p {
margin: 0 0 0.9rem;
font-weight: 700;
line-height: 1.3;
}

.easter-ok {
margin-top: 0.75rem;
padding: 0.6rem 1.6rem;
border: 0;
background-color: #fff;
color: #FF2E63;
font-size: 1.25rem;
transition: background-color 0.3s, color 0.3s;
}

.easter-ok:hover {
background-color: #000;
color: #fff;
}

.easter .bouton-fermer {
top: 0.9rem;
right: 0.9rem;
width: 28px;
color: #fff;
}

.easter .bouton-fermer span {
left: 0;
width: 100%;
height: 3px;
}

.easter .bouton-fermer:hover {
color: #000;
}


/* page projets */

.titre-page {
container-type: inline-size;
max-width: 1100px;
margin: 0 auto;
padding: 130px 1rem 7rem;
font-size: 0;
line-height: 0.72;
text-align: center;
text-transform: uppercase;
}

.titre-page span {
display: block;
}

.titre-page .ligne-my {
display: inline;
font-size: 5cqw;
}

.titre-page .ligne-and {
font-size: 17.5cqw;
}

.titre-page .ligne-creations {
font-size: 9.5cqw;
}

.carte {
position: relative;
display: flex;
flex-direction: column;
padding: 1rem;
overflow: hidden;
container-type: inline-size;
background-color: #fff;
color: var(--couleur);
text-decoration: none;
transition: background-color 0.4s;
}

.carte.texte-bas {
flex-direction: column-reverse;
}

.carte-carree {
aspect-ratio: 1;
--zoom-image: 1.6;
}

.carte-large {
aspect-ratio: 2;
--zoom-image: 1.15;
--largeur-image: 55%;
}

.carte img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: contain;
transform: translate(var(--decalage-x, 0), var(--decalage-y, 0)) rotate(var(--rotation-image, 0deg)) scale(var(--zoom-image, 1));
transition: opacity 0.4s;
}

.carte-large img {
left: auto;
width: var(--largeur-image);
}

.image-survol {
opacity: 0;
}

.carte-banane {
--largeur-image: 75%;
--zoom-image: 1.2;
}

.carte-collier {
--largeur-image: 60%;
--zoom-image: 1.2;
--decalage-x: -26%;
}

.carte-bottes {
--zoom-image: 1.25;
}

.carte-chapeau {
--zoom-image: 1.3;
--decalage-x: 7%;
--decalage-y: 5%;
}

.carte-grande {
--rotation-image: -25deg;
--decalage-x: 4%;
--decalage-y: -4%;
}

.carte-grande .image-survol {
--decalage-x: -1%;
--decalage-y: 2%;
--zoom-image: 1.53;
}

.carte-titre {
position: relative;
z-index: 2;
font-size: 14.5cqw;
line-height: 0.95;
transition: color 0.4s;
}

.carte-grande .carte-titre,
.carte-large .carte-titre {
font-size: 10.5cqw;
}

.carte-barre {
position: relative;
z-index: 2;
width: 0;
height: 3px;
margin: 0.8rem 0 0.5rem;
background-color: #000;
transition: width 0.5s;
}

.texte-bas .carte-barre {
margin: 0.5rem 0 0.8rem;
}

.carte-info {
position: relative;
z-index: 2;
font-weight: 700;
font-size: clamp(0.7rem, 1.4vw, 0.95rem);
line-height: 1.25;
color: #000;
opacity: 0;
transform: translateY(8px);
transition: opacity 0.4s 0.15s, transform 0.4s 0.15s;
}

.texte-bas .carte-info {
transform: translateY(-8px);
}

@media (min-width: 768px) {
.titre-page {
padding-top: 160px;
padding-bottom: clamp(9rem, 16vw, 26rem);
}

.carte {
padding: 1.5rem;
}

.carte-large {
flex: 1 1 0;
aspect-ratio: auto;
}
}

@media (min-width: 768px) and (hover: hover) {
.carte:hover,
.carte:focus-visible {
background-color: var(--couleur);
}

.carte:hover .carte-titre,
.carte:focus-visible .carte-titre {
color: #000;
}

.carte:hover .image-normale,
.carte:focus-visible .image-normale {
opacity: 0;
}

.carte:hover .image-survol,
.carte:focus-visible .image-survol {
opacity: 1;
}

.carte:hover .carte-barre,
.carte:focus-visible .carte-barre {
width: 70%;
}

.carte:hover .carte-info,
.carte:focus-visible .carte-info {
opacity: 1;
transform: none;
}
}

/* tactile infos toujours visibles */
@media (max-width: 767.98px), (hover: none) {
.carte-barre {
width: 70%;
box-shadow: 0 0 4px 1px #fff;
}

.carte-info {
opacity: 1;
transform: none;
text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 6px #fff;
}
}


/* page projet */

.projet-hero {
position: relative;
isolation: isolate;
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
padding: 100px var(--marge-page) 40px;
overflow: hidden;
}

.projet-hero h1 {
position: relative;
z-index: 2;
width: 100%;
margin: 0;
}

.projet-hero > img {
position: absolute;
z-index: 0;
top: 52%;
left: 50%;
width: 80%;
max-height: 70vh;
object-fit: contain;
transform: translate(-50%, -50%);
}

.projet-gauche,
.projet-droite {
padding-top: 1.5rem;
padding-bottom: 1.5rem;
}

.projet-gauche {
display: flex;
flex-direction: column;
gap: 1rem;
--taille-texte: 1rem;
}

.projet-gauche p {
margin: 0;
font-weight: 700;
font-size: var(--taille-texte);
line-height: 1.25;
color: #fff;
}

.projet-gauche .texte-normal p {
font-weight: 400;
font-size: calc(var(--taille-texte) * 0.85);
line-height: 1.3;
}

.barre-page {
width: 41%;
height: clamp(3px, 0.3vw, 6px);
margin-bottom: 1.2rem;
background-color: #fff;
}

.projet-image img {
display: block;
width: 100%;
}

.projet-couleurs,
.projet-slider {
position: relative;
z-index: 3;
padding-top: var(--espace-section);
padding-bottom: var(--espace-section);
background-color: #000;
}

.projet-slider img {
max-height: 80vh;
object-fit: contain;
}

/* meme hauteur que le slider */
.video-tel {
width: min(100%, 45vh);
margin: 0 auto;
}

.pastilles {
display: grid;
grid-auto-rows: 1fr;
}

.polices {
display: flex;
flex-direction: column;
container-type: inline-size;
}

.pastilles,
.polices {
gap: 0.5rem;
}

.pastille {
aspect-ratio: 6;
}

.specimen {
flex: 1;
margin: 0;
font-size: 5cqw;
line-height: 1.25;
color: #fff;
overflow-wrap: anywhere;
}

.projet-video {
padding-top: var(--espace-section);
}

.slider-cote {
padding: clamp(0.5rem, 1.2vw, 1.25rem);
background-color: #fff;
}

.slider-cote .carousel-item img {
aspect-ratio: 1565 / 2212;
object-fit: contain;
}

.carousel-vertical .carousel-item-next:not(.carousel-item-start),
.carousel-vertical .active.carousel-item-end {
transform: translateY(100%);
}

.carousel-vertical .carousel-item-prev:not(.carousel-item-end),
.carousel-vertical .active.carousel-item-start {
transform: translateY(-100%);
}

@media (min-width: 768px) {
.projet-hero > img {
width: auto;
max-width: 60%;
}

/* colonne gauche collee */
.projet-gauche {
align-self: flex-start;
position: sticky;
top: 0;
z-index: 1;
height: 100vh;
height: 100svh;
padding-top: 110px;
--taille-texte: clamp(0.8rem, 1.15vw, 1.5rem);
}

.projet-droite {
padding-top: 110px;
padding-bottom: 8vw;
padding-left: 3rem;
}

.pastilles,
.polices {
gap: 1.5rem;
}

.projet-droite-court {
min-height: 150vh;
min-height: 150svh;
}

.projet-image {
position: relative;
flex: 1 1 0;
min-height: 0;
}

.projet-image img {
position: absolute;
inset: 0;
height: 100%;
object-fit: contain;
object-position: center bottom;
}

.pastille {
aspect-ratio: auto;
}

.js .etape {
opacity: 0;
transform: translateY(24px);
transition: opacity 0.7s, transform 0.7s;
}

.js .etape.visible {
opacity: 1;
transform: none;
}
}


/* lab */

.labo-hero {
display: flex;
flex-direction: column;
justify-content: center;
max-width: 1100px;
min-height: 100vh;
min-height: 100svh;
margin: 0 auto;
padding: 100px 1rem 3rem;
}

.labo-projet {
padding-bottom: var(--espace-section);
--largeur-m: 55%;
}

.labo-titre {
container-type: inline-size;
}

.labo-titre h2 {
margin: 0;
font-size: 16cqw;
line-height: 0.85;
color: #fff;
}

.labo-titre span {
display: block;
}

.labo-medias {
display: flex;
flex-direction: column;
align-items: center;
gap: clamp(1.5rem, 5vw, 6rem);
}

.labo-media {
display: block;
width: 80%;
height: auto;
}

.labo-slider .carousel-item img {
aspect-ratio: 4 / 5;
object-fit: cover;
}

@media (max-width: 767.98px) {
.labo-projet .projet-image img {
max-width: 75%;
max-height: 45vh;
margin: 0 auto;
object-fit: contain;
}
}

@media (min-width: 768px) {
.labo-titre h2 {
font-size: 13cqw;
}

.labo-medias-droite {
align-items: flex-end;
}

.labo-media {
width: var(--largeur-m);
}

/* medias qui passent pendant que le texte apparait */
.labo-projet .projet-droite {
display: flex;
flex-direction: column;
justify-content: center;
min-height: 160vh;
min-height: 160svh;
}

.labo-projet .projet-image img {
transform: translateY(var(--decalage-bas, 0%)) scale(var(--zoom-bas, 1));
transform-origin: center bottom;
}
}

/* tablette */
@media (min-width: 768px) and (max-width: 1199.98px) {
.labo-projet .projet-image img {
bottom: auto;
height: min(100%, var(--hauteur-bas, 32vh));
object-position: center top;
transform: none;
}
}


/* about */

.about-scroll {
position: relative;
height: 450vh;
height: 450svh;
}

.about-scene {
position: sticky;
top: 0;
height: 100vh;
height: 100svh;
padding-bottom: clamp(1rem, 3vw, 2.5rem);
overflow: hidden;
}

.about-espace-nav {
flex: 0 0 auto;
height: 100px;
}

.about-texte p {
margin: 0 0 0.8rem;
font-weight: 700;
font-size: 1rem;
line-height: 1.25;
color: #fff;
}

.about-photo {
display: block;
width: min(100%, 26svh);
margin: 0 auto;
aspect-ratio: 1;
object-fit: contain;
-webkit-mask-image: linear-gradient(#000 60%, transparent);
mask-image: linear-gradient(#000 60%, transparent);
}

.about-mots .mot {
line-height: 0.7;
white-space: nowrap;
}

.about-mots .titre-m {
font-size: 10.5cqw;
}

.about-mots .titre-l {
margin-top: 0.04em;
}

.about-mots .about-ligne {
display: flex;
align-items: baseline;
justify-content: center;
}

.js .reveal {
opacity: 0;
transition: opacity 0.7s, transform 0.7s;
}

.js .depuis-bas {
transform: translateY(40px);
}

.js .depuis-droite {
transform: translateX(80px);
}

/* arrive depuis le bas de la scene */
.js .depuis-fond,
.js .loisirs-boite,
.js .loisirs-flottant {
opacity: 1;
transform: translateY(110vh);
transform: translateY(110svh);
transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js .reveal.visible,
.js .loisirs-boite.visible,
.js .loisirs-flottant.visible {
opacity: 1;
transform: none;
}

/* loisirs */
.loisirs-scroll {
position: relative;
height: 500vh;
height: 500svh;
}

.loisirs-scene {
position: sticky;
top: 0;
display: flex;
flex-direction: column;
gap: 1rem;
height: 100vh;
height: 100svh;
padding-top: 100px;
padding-bottom: 1.5rem;
overflow: hidden;
--ecart: 0.75rem;
--hauteur-boite: calc((100vw - 2 * var(--marge-page) - var(--ecart)) / 3);
}

.loisirs-texte p {
margin-bottom: 0.6rem;
}

.loisirs-images {
display: flex;
justify-content: center;
gap: var(--ecart);
min-width: 0;
}

.loisirs-col {
display: flex;
flex-direction: column;
gap: var(--ecart);
}

.loisirs-decalee {
margin-top: calc((var(--hauteur-boite) + var(--ecart)) / 2);
}

.loisirs-boite {
width: calc(var(--hauteur-boite) * 1.5);
height: var(--hauteur-boite);
}

.loisirs-boite img {
display: block;
width: 100%;
height: 100%;
object-fit: contain;
}

.loisirs-col:first-child .loisirs-boite:first-child img {
transform: scale(1.3);
}

.loisirs-flottants {
display: flex;
align-items: center;
justify-content: space-evenly;
gap: 1.5rem;
margin-top: 2.5rem;
}

.loisirs-flottant {
flex: 0 1 auto;
min-width: 0;
width: clamp(110px, 14vw, 240px);
}

/* translate garde la repulsion en plus de l animation */
.loisirs-flottant img {
display: block;
width: 100%;
animation: flotte-a 5s ease-in-out infinite;
translate: var(--repulse-x, 0px) var(--repulse-y, 0px);
transition: translate 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.loisirs-flottant:nth-child(2) img {
animation: flotte-b 6.5s ease-in-out -2s infinite;
}

.loisirs-flottant:nth-child(3) img {
animation: flotte-c 5.7s ease-in-out -4s infinite;
}

@keyframes flotte-a {
25% { transform: translate(6px, -8px) rotate(2deg); }
50% { transform: translate(-4px, -3px) rotate(-1deg); }
75% { transform: translate(-7px, 6px) rotate(1.5deg); }
}

@keyframes flotte-b {
30% { transform: translate(-8px, 5px) rotate(-2deg); }
60% { transform: translate(5px, 8px) rotate(1deg); }
80% { transform: translate(7px, -4px) rotate(-1.5deg); }
}

@keyframes flotte-c {
20% { transform: translate(5px, 7px) rotate(1.5deg); }
55% { transform: translate(-6px, -6px) rotate(-2deg); }
80% { transform: translate(4px, -8px) rotate(1deg); }
}

/* mobile scroll normal */
@media (max-width: 767.98px) {
.loisirs-scroll {
height: auto;
}

.loisirs-scene {
position: static;
height: auto;
padding-top: 90px;
padding-bottom: 0;
overflow: visible;
--ecart: 0.6rem;
}

.loisirs-flottants {
gap: 0.75rem;
margin-top: 1rem;
}

.loisirs-flottant {
width: clamp(64px, 22vw, 110px);
}

.js .loisirs-boite,
.js .loisirs-flottant {
transform: none;
transition: none;
}
}

@media (min-width: 768px) {
.about-espace-nav {
height: 110px;
}

.about-texte {
padding-top: 3rem;
}

.about-texte p {
font-size: clamp(0.8rem, 1.15vw, 1.5rem);
}

.about-photo {
width: min(100%, 38svh);
margin: 0;
}

.loisirs-scene {
flex-direction: row;
align-items: center;
gap: 3vw;
padding-bottom: 2rem;
--ecart: 1rem;
--hauteur-boite: min(calc((100svh - 100px - 2rem - 2.5 * var(--ecart)) / 3.5), calc(((100vw - 2 * var(--marge-page)) * 0.58 - var(--ecart)) / 3));
}

.loisirs-texte {
flex: 0 0 50%;
align-self: flex-start;
}

.loisirs-images {
flex: 1 1 auto;
align-items: flex-start;
justify-content: flex-end;
}
}

@media (min-width: 768px) and (max-width: 1199.98px) {
.loisirs-scene {
gap: 2vw;
--hauteur-boite: min(calc((100svh - 100px - 2rem - 2.5 * var(--ecart)) / 3.5), calc(((100vw - 2 * var(--marge-page)) * 0.57 - 2vw - var(--ecart)) / 3));
}

.loisirs-texte {
flex: 0 0 40%;
}

.loisirs-flottants {
gap: 1rem;
margin-top: 2rem;
}

.loisirs-flottant {
width: 30%;
}
}


/* animations reduites */

@media (prefers-reduced-motion: reduce) {
body,
.intro-texte,
.fleche,
.fleche svg,
.loisirs-flottant img {
animation: none;
}

.intro-texte:nth-of-type(4),
.fleche {
opacity: 1;
}

.js .reveal,
.js .depuis-fond,
.js .loisirs-boite,
.js .loisirs-flottant {
opacity: 1;
transform: none;
transition: none;
}
}
