@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ROBOTO — ITALIC */
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-Italic-variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ==========================================================
   RESET
   ========================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100svh; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
img, picture, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
button:not(:disabled) { cursor: pointer; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }


/* ==========================================================
   VARIABLES
   ========================================================== */

:root {
    color-scheme: light dark;

    /* COULEURS SOURCES */
    --light: #f6f6f6;
    --dark: #151515;
    --accent : orangered;

    /* COULEURS CONTEXTUELLES */
    --text: light-dark(var(--dark), var(--light));
    --surface: light-dark(var(--light), var(--dark));

    --text-muted: rgb(from var(--text) r g b / 75%);
    --text-super-muted: rgb(from var(--text) r g b / 40%);
    --surface-muted: rgb(from var(--text) r g b / 5%);
    --border: rgb(from var(--text) r g b / 50%);
    --border-muted: rgb(from var(--text) r g b / 15%);

 /* SIZE*/
   --small : 16px;

    /* ESPACEMENTS*/
    --gap-small: 0.5rem;
    --gap: clamp(1.5rem, 4vw, 2rem);
    --gap-big: clamp(3rem, 8vw, 4rem);
    --gap-xbig: clamp(4rem, 8vw, 6rem);

    /* ARRONDIS */
    --radius: .75rem;
    --radius-big: 1.5rem;

    /* COMPOSANTS */
    --content: min(90%, 1200px);
    --card-min: 18rem;
    --height : 400px; 
}


/* ==========================================================
   BASE
   ========================================================== */

body { background: var(--surface); color: var(--text); font-family: "Roboto", sans-serif; font-size: clamp(15px, 2vw, 18px); font-weight: 300; line-height: 1.5; }

.logo {background-image: url(../image/Paolo_rigutto_logo.svg); height: 50px; aspect-ratio: 3/1; display: block; background-size: contain; background-repeat: no-repeat; }


/* ==========================================================
   LAYOUT
   ========================================================== */

header, main, footer { display: flex; flex-direction: column; gap: var(--gap); width: var(--content); padding-block: var(--gap-big) ; margin-inline: auto; background-color: var(--surface);}

footer, footer div { display: flex; justify-content: space-between; flex-direction: row; gap: var(--gap);}
footer ul {list-style: none; padding: 0;}
footer li a {font-size: var(--small); color: var(--text-super-muted); transition: color ease-in-out 0.3s; text-decoration: none;}
footer li a:hover {color: var(--text-muted);}

#home main {gap: var(--gap-small); }

section {display: flex; flex-direction: column; gap: var(--gap); }
.stack { display: flex; flex-direction: column; gap: var(--gap); }
.stack-small { gap: var(--gap-small); }
.stack-big { gap: var(--gap-big); }

hr {width: 100%; background-color: transparent; border: none; color: transparent; border-top: 1px solid var(--border-muted);}


.grid-13 {display: grid;  grid-template-columns: 1fr 2fr;    gap: var(--gap-big);    align-items: start; }
.grid-12 {display: grid;  grid-template-columns: 1fr 1fr;    gap: var(--gap-big);    align-items: start; }
.grid-23 {display: grid;  grid-template-columns: 2fr 1fr;    gap: var(--gap-big);    align-items: start; }


.moz { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: calc(var(--height) / 2); gap: var(--gap-small); margin: 0; padding: 0; list-style: none; }

.moz > .col-2 { grid-column: 1 / -1;  }
.moz > .col-1 { grid-column: span 1; }
.moz > .row-4 { grid-row: span 4; }
.moz > .row-3 { grid-row: span 3; }
.moz > .row-2  { grid-row: span 2; }
.moz > .row-1 { grid-row: span 1; }

.moz > article { min-width: 0;   min-height: 0;   overflow: hidden;   border-radius: var(--radius);   position: relative; }
.moz article a {   display: block;   width: 100%;   height: 100%;   position: relative; }
.moz article p {   position: absolute;   bottom: var(--gap);   left: 50%;
  transform: translateX(-50%);  z-index: 1; text-align: center; text-wrap: balance; background-color: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); padding: 10px 20px; border-radius: 10px; border-top: 0.5px solid rgba(255, 255, 255, 0.3); border-bottom: 0.5px solid rgba(0, 0, 0, 0.5); transition: background-color ease-in-out 0.3s;}
.moz article:hover p {background-color: rgba(255, 255, 255, 0.2);}
.moz article img {   display: block;   width: 100%;   height: 100%;   object-fit: cover;   opacity: .8;   transition: opacity .35s ease; }
.moz > article:hover img {   opacity: 1; }



.home-cover {  height: 85vh; width: 100%; position: relative;}
.home-cover .home-edito {position: absolute; left : var(--gap); bottom: var(--gap); max-width: 40%; gap: 20px;}
.home-cover img {display: block; width: 100%; height: 100%; object-fit: cover;  border-radius: var(--radius);  overflow: hidden;}

.bottom{align-items: end; }

.image-full {border-radius: var(--radius); overflow: hidden;}
.youtube-full {border-radius: var(--radius); overflow: hidden; width: 100%; aspect-ratio: 16 / 9; border: 0;}

.align-start {align-self: start;}
.align-end {align-self: end;}
.justify-start {justify-self: start;}
.justify-end {justify-self:  end;}


.side-pix {width: 100%; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); position: relative; }
.side-pix img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .35s ease; }
.side-pix:hover  img { opacity: 1; }

.side-pix2 {aspect-ratio: 16 / 9; }
 
/* ==========================================================
   TYPOGRAPHIE
   ========================================================== */

h1 { font-size: clamp(2.4rem, 1.6rem + 4.3vw, 4.5rem); line-height: 1.1; font-weight: 600; text-wrap: balance;  letter-spacing: -1px; }
h2 { font-size: clamp(2rem, 3vw, 2.5rem); line-height: 1.15; font-weight: 600; text-wrap: balance; letter-spacing: -0.8px; }
h3 { font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.1; font-weight: 600; text-wrap: pretty; letter-spacing: -0.8px;}
h4 { font-size: clamp(1.2rem, 1.15rem + .7vw, 1.5rem); line-height: 1.2; font-weight: 600; text-wrap: pretty; }


.lead{ font-size: clamp(1.3rem, 2vw, 1.8rem); line-height: 1.35; font-weight: 300; text-wrap: pretty; letter-spacing: -0.3px; color: var(--text-muted); }
.lead em {font-family: serif; letter-spacing: -1px; font-size: 1.2em;}
.eyebrow { font-size: clamp(.8rem, .78rem + .1vw, .875rem); line-height: 1.5; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; color: var(--text-muted);  margin-bottom: calc(var(--gap) * (-0.5));}
.legende {color: var(--text-muted); font-size: var(--small); }
caption, figcaption, .caption { font-size: clamp(.8rem, .78rem + .1vw, .875rem); line-height: 1.45; font-weight: 400; color: var(--text-muted); text-wrap: pretty; }
strong { font-weight: 600; }
.subtitle { font-size: clamp(1.2rem, 3vw, 1.3rem); text-wrap: balance;}
em { font-style: italic; }
.muted {color: var(--text-muted);}

span.o5 { background: linear-gradient(144deg, var(--Gradients-A-A---1, #fa6161) 5.84%, var(--Gradients-A-A---2, #FCCC6F) 49.63%, var(--Gradients-A-A---3, #27dcfb) 88.26%);     -webkit-background-clip: text; background-clip: text; color: transparent; position: relative; margin-inline: 5px;}

/* ==========================================================
   LIENS
   ========================================================== */

a { text-underline-offset: 5px;  text-decoration-color: var(--border); text-decoration-thickness: 1px; line-height: 1.3;  transition: text-decoration-color 0.2s ease;}
a:hover {text-decoration-color: var(--accent); }
p a { font-weight: 500; text-decoration-line: underline; }
p a:hover { text-decoration-thickness: .12em; }
q {font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 140%; color: var(--text-muted);}

.half {max-width: 50%;}
.thirds {max-width: 67%;}
.col {column-count: 2; column-gap: var(--gap-big); color: var(--text-muted);}

.maillage  {list-style: none; padding: 0; display: flex; gap: 10px; flex-wrap: wrap;}
.maillage li {position: relative; padding-left: 25px;}
.maillage li::before {content: "\2192"; position: absolute; top: 0px; left: 0; color: var(--text;) }
.maillage li:hover{color: var(--accent);}

/* ==========================================================
   CONTEXTE NÉGATIF
   ========================================================== */

.negative { --text: light-dark(var(--light), var(--dark)); --surface: light-dark(var(--dark), var(--light)); --text-muted: rgb(from var(--text) r g b / 70%); --surface-muted: rgb(from var(--text) r g b / 5%); --border: rgb(from var(--text) r g b / 50%); --border-muted: rgb(from var(--text) r g b / 15%); background: var(--surface); color: var(--text); }

.mutted {background-color: var(--surface-muted); color: var(--text-muted);}


/* ==========================================================
CARROUSSEL VERBATIM
========================================================== */


.verbatims { position: relative; width: 100%; min-height: 260px; display: grid; place-items: center; overflow: hidden;  }
.verbatim { grid-area: 1 / 1; width: 100%; text-align: center; opacity: 0; animation: defilement 15s infinite; }

.verbatim:nth-child(1) { animation-delay: 0s; }
.verbatim:nth-child(2) { animation-delay: 5s; }
.verbatim:nth-child(3) { animation-delay: 10s; }

.verbatim p { font-size: 2rem; line-height: 1.4; margin-bottom: 20px; font-weight: 300; letter-spacing: -1px; text-wrap: balance;
    max-width: 60%; margin-inline: auto;  }
 .verbatim span { font-size: 0.9rem; opacity: 0.6; }

@keyframes defilement {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }

    5% {
        opacity: 1;
        transform: translateY(0);
    }

    28% {
        opacity: 1;
        transform: translateY(0);
    }

    33.33%, 100% {
        opacity: 0;
        transform: translateY(-15px);
    }
}






/* ========================================
   LIGHTBOX — MINIATURES
======================================== */

.lightbox-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--gap-small);
  width: 100%;
}

.lightbox-gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: zoom-in;
  opacity: .8;
  transition: opacity .35s ease;
}

.lightbox-gallery img:hover,
.lightbox-gallery img:focus-visible {
  opacity: 1;
}


/* ========================================
   LIGHTBOX — FOND ET CONTENEUR
======================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .95);
}

.lightbox.is-open {
  display: flex;
}


/* ========================================
   LIGHTBOX — IMAGE AGRANDIE
======================================== */

.lightbox .lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 85vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  opacity: 1;

}


/* ========================================
   LIGHTBOX — BOUTONS
======================================== */

.lightbox button {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: white;
  font-family: inherit;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  transition: opacity .2s ease;
}

.lightbox button:hover {
  opacity: .6;
}


/* Flèche précédente */

.lightbox .lightbox-prev {
  left: var(--gap);
  top: 50%;
  transform: translateY(-50%);
}

/* Flèche suivante */

.lightbox .lightbox-next {
  right: var(--gap);
  top: 50%;
  transform: translateY(-50%);
}

/* Bouton fermer */

.lightbox .lightbox-close {
  top: var(--gap);
  right: var(--gap);
  font-size: 36px;
}




.rs li a {background-image: url(../image/picto_insta.svg); background-size: 15px; padding-left:25px; background-repeat: no-repeat; line-height: 150%; background-position: left center; opacity: 0.5; color: white; transition: all ease-in-out 0.2s; width: 120px;  display: block;}
.rs li a:hover {opacity: 1; padding-left: 27px;}
.stream {display: flex; justify-content: space-between; list-style: none; padding: 0;}
.stream li a {background-image: url(../image/picto_insta.svg); background-size: 25px; padding-top:30px; background-repeat: no-repeat; line-height: 150%; background-position: top center; opacity: 0.75; color: white; transition: all ease-in-out 0.2s; display: block; text-decoration: none; }
.stream li a:hover {opacity: 1;}


/* ==========================================================
    BOUTONS / CTA
   ========================================================== */

.btn { display: inline-flex; 
   
   align-items: center; justify-content: center; gap: .5em; padding: .85em 1.3em; appearance: none; background: var(--text); color: var(--surface); border: 1px solid var(--text); border-radius: var(--radius); font-size: clamp(.95rem, .93rem + .1vw, 1rem); line-height: 1.15; font-weight: 600; text-decoration: none; cursor: pointer; transition: background 0.2s ease-in-out;}
.btn:hover { background: transparent; color: var(--text); }

.btn-muted { background: transparent; color: var(--text); border-color: var(--border); }
.btn-muted:hover { background: var(--text); color: var(--surface); border-color: var(--text); }


/* ==========================================================
   CARDS
   ========================================================== */

.card {padding: var(--gap); border-radius: var(--radius);}
ul.cards { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap:var(--gap-small); padding: 0; }
ul.cards > li { min-width: 200px; display: flex; flex: 1 1 30ch; flex-direction: column; gap: var(--gap-small); padding: var(--gap); background: var(--surface-muted); border: 1px solid var(--border-muted); border-radius: var(--radius); text-align: center; justify-content: center; transition: border 0.2s linear; overflow: hidden; }
ul.cards > li:hover {border: 1px solid var(--border);}
ul.cards > li a {text-decoration: none; padding: var(--gap); display: flex;  flex: 1;   align-items: center; justify-content: center; text-wrap: balance;  font-size: 1.25rem; font-weight: 500;}
ul.cards > li:has(a), ul.cards > li:has(img) a {padding: 0;}

ul.cards li:has(img) { min-height: 160px;  }
ul.cards img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0.95; transition: all 0.2s ease; }
ul.cards li:hover img {width: 105%; height: 105%; opacity: 1;}

/* ==========================================================
PROJECT
========================================================== */

.project {background-color: var(--main-color);}
.project header { position: sticky;  z-index: 0;  top: 0;   aspect-ratio: 16 / 7; padding-block: 0;  border-radius: var(--radius) var(--radius) 0 0; overflow: hidden;
}
.project header img, .project header video { width: calc(100% - 2px);  margin-inline: auto; height: 100%;     object-fit: cover;     object-position: center; }
.project main { position: relative; z-index: 1; position: relative; background: linear-gradient(to bottom, rgb(from var(--main-color) r g b / 50%) 0, var(--main-color) 300px); backdrop-filter: blur(20px);  -webkit-backdrop-filter: blur(20px);  padding-inline: var(--gap); border-top: 1px solid rgba(255, 255, 255, 0.15); gap: var(--gap-small); padding-block: var(--gap-big); }
.project main .intro { display: grid; grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr); gap: 4rem; align-items: start; padding-bottom: var(--gap-big);position: relative; border-bottom: 1px solid var(--border-muted); margin-bottom: var(--gap-big);}
.project audio {width: 95%; margin-block: 10px 0; border: 1px solid var(--border-muted); border-radius: 100px; margin-left: -3px;}

.intro aside { position: sticky; 	top: 30px;  align-self: start;  background-color: var(--surface-muted); padding: 30px 20px; border-radius: var(--radius);}
.project aside .legende {margin-top: -25px;}
.project aside ul {list-style: none; padding: 0; display: flex; font-size: var(--small); gap: var(--gap-small); flex-direction: column;}

.project .mission {display:flex; gap: 5px; list-style: none; padding: 0; margin: 0;}
.project .mission li {display: inline-flex; padding: 3px 10px; font-size: 14px; border: 1px solid var(--border-muted); border-radius: 4px; color: var(--text-muted);}

.optimum-five  p { font-size: var(--small); color: var(--text-muted);}
.optimum-five ul { 	display: flex; 	gap: 10px; 	padding: 0; 	list-style: none; 	flex-wrap: wrap; 	justify-content: space-between; 	background-color: var(--surface-muted); 	padding: 1rem 1.5rem; 	border-radius: var(--radius); }
.optimum-five li { 	display: flex; 	align-items: center; 	gap: 5px; font-size: var(--small); }
.optimum-five input:checked + span { font-weight: 500; }
.optimum-five input:not(:checked) + span { 	color: var(--text-muted) ; }


.chapter { display: grid; grid-template-columns: minmax(300px, 33%) minmax(0, 66%);
   gap: var(--gap-big);    align-items: start; }
   
.chapter article { position: sticky; top: 4rem; margin-bottom: var(--gap-big); }
.chapter article p {color: var(--text-muted); }

.galerie { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: calc(var(--height) / 2); gap: var(--gap-small); margin: 0; padding: 0; list-style: none; }

.galerie > .col-2 { grid-column: 1 / -1;  }
.galerie > .col-1 { grid-column: span 1; }
.galerie > .row-4 { grid-row: span 4; }
.galerie > .row-3 { grid-row: span 3; }
.galerie > .row-2  { grid-row: span 2; }
.galerie > .row-1 { grid-row: span 1; }

.galerie > li { min-width: 0; min-height: 0; overflow: hidden; border-radius: var(--radius); }
.galerie img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .35s ease; }
.galerie > li:hover img { opacity: 1; }

/* Animation d'apparition des images */

@keyframes reveal-image {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@supports (animation-timeline: view()) {
    .galerie > li { animation: reveal-image linear both; animation-timeline: view(); animation-range: entry 15% entry 70%; }
}



/* ========================================
   CASES
======================================== */

.cases { display: flex; gap: var(--gap-small); margin: 0; padding: 0; list-style: none; height: calc(var(--height) * 1.5); }

.case { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: var(--radius); transition: flex-grow .5s cubic-bezier(.22, 1, .36, 1); }

.case > a { position: relative; display: block; width: 100%; height: 100%; color: white; text-decoration: none; }

.case img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.cases:hover .case { flex-grow: 0.75; }
.cases .case:hover, .cases .case:focus-within { flex-grow: 1.6; }

.case-content { position: absolute; right: var(--gap); bottom: var(--gap); left: var(--gap); z-index: 2; opacity: 0; transform: translateX(12px); transition: opacity .2s ease, transform .2s cubic-bezier(.22, 1, .36, 1);  pointer-events: none; display: flex; flex-direction: column; gap: var(--gap);}

.case:hover .case-content, .case:focus-within .case-content { opacity: 1; transform: translateX(0);  transition-duration: 1s;}

.case::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / 50%), rgb(0 0 0 / 20%) 100%); opacity: 0; pointer-events: none; transition: opacity .5s ease; }

.case:hover::after, .case:focus-within::after { opacity: 1; }
.case-content h3 { color: inherit; }
.case-content p { color: inherit; font-size: 16px; line-height: 1.5;}





/* ========================================
   MOBILE
======================================== */

@media (max-width: 1000px) {

:root {--height : 300px; }

.col {column-count: 1;}
.half, .thirds {max-width: 100%;}
.grid-12, .grid-23,  .project main .intro {grid-template-columns: 1fr; gap: var(--gap); margin-bottom: 0; border-bottom: none;}
.align-end {align-self: start;}
.justify-end {justify-self: start;}


.moz { grid-template-columns: 1fr; }
.verbatims {min-height: 200px; padding: var(--gap);}
.verbatim p {  max-width: 100%;  font-size: 1.3rem; letter-spacing: -0.5px; line-height: 130%;}

.side-pix, .spide-pix2 {aspect-ratio: 1 / 1;}

footer, footer div {flex-direction: column;  }




.cases { height: var(--height) ; }
.cases { display: flex; gap: var(--gap-small); height: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cases::-webkit-scrollbar { display: none; }
.case { flex: 0 0 85%; aspect-ratio: 4 / 5; scroll-snap-align: start; }
.case-content { opacity: 1; transform: none; }
.case::after { background: linear-gradient(to top, rgb(0 0 0 / 50%), rgb(0 0 0 / 0%) 30%); }
.case-content p {display: none;}


 .project header { aspect-ratio: 4 / 3;}
 .project main {backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--main-color); padding-inline: 0; border: none;}

 .project audio { width: 78%; transform: scale(1.2); transform-origin: left center; margin-top: var(--gap);}
 .project aside .legende {margin-top: -15px;}
 .chapter { grid-template-columns: 1fr;  gap: 0; }
 .chapter article {position : relative; top: 0; margin-bottom: 0; padding-block: var(--gap-big); }
 .project aside > div, .project aside > div:not(:first-child) {padding-block: var(--gap) 14px; border-top: 1px solid var(--border-muted);  }

 .galerie img { opacity: 1;  }   
 .galerie {display: flex; gap: var(--gap-small); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;}
 .galerie::-webkit-scrollbar { display: none; }
 .galerie > li { flex: 0 0 85%; aspect-ratio: 4 / 5; scroll-snap-align: start; }
 .galerie img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }


.home-cover { height: auto; }
 .home-cover .home-edito { position: static; max-width: 100%; padding: 0; padding-top: var(--gap);}
 .home-cover img { width: 100%; height: auto; }
 
 
 .lightbox-gallery {
     grid-template-columns: repeat(3, minmax(0, 1fr));
   }
 
   .lightbox .lightbox-image {
     max-width: 90vw;
     max-height: 75dvh;
   }
 
   .lightbox button {
     font-size: 32px;
   }
 
   .lightbox .lightbox-close {
     font-size: 32px;
   }




    
 }
