@import url('https://fonts.googleapis.com/css2?family=Geist:wght@100..900&display=swap');
@import url('https://unpkg.com/normalize.css') layer(normalize);

@layer normalize, base, demo, stick, effect, srollbar, debug;

@layer debug {
  [data-debug='true'] li {
    outline: 0.05em dashed currentColor;
  }
  [data-debug='true'] :is(h2, li:last-of-type) {
    outline: 0.05em dashed canvasText;
  }
}

@layer scrollbar {
  @property --hue {
    initial-value: 0;
    syntax: '<number>';
    inherits: false;
  }
  @property --chroma {
    initial-value: 0;
    syntax: '<number>';
    inherits: true;
  }

  [data-sync-scrollbar='true'] {
    scrollbar-color: oklch(var(--lightness) var(--chroma) var(--hue)) #0000;
  }
  @supports (animation-timeline: scroll()) and (animation-range: 0% 100%) {
    [data-sync-scrollbar='true'][data-animate='true'] {
      timeline-scope: --list;
      scrollbar-color: oklch(var(--lightness) var(--chroma, 0) var(--hue)) #0000;
      animation-name: change, chroma-on, chroma-off;
      animation-fill-mode: both;
      animation-timing-function: linear;
      /* animation-timeline: scroll(root); */
      animation-range: entry 50% exit 50%, entry 40% entry 50%,
        exit 30% exit 40%;
      animation-timeline: --list;
      ul {
        view-timeline: --list;
      }
    }
  }

  @keyframes change {
    to {
      --hue: var(--end);
    }
  }
  @keyframes chroma-on {
    to {
      --chroma: 0.3;
    }
  }
  @keyframes chroma-off {
    to {
      --chroma: 0;
    }
  }
}

@layer effect {
  :root {
    --start: 0;
    --end: 360;
    --lightness: 65%;
    --base-chroma: 0.3;
  }
  [data-theme='dark'] {
    --lightness: 75%;
  }
  [data-theme='light'] {
    --lightness: 65%;
  }
  @media (prefers-color-scheme: dark) {
    --lightness: 75%;
  }
  ul {
    --step: calc((var(--end) - var(--start)) / (var(--count) - 1));
  }
  li:not(:last-of-type) {
    color: oklch(
      var(--lightness) var(--base-chroma)
        calc(var(--start) + (var(--step) * var(--i)))
    );
  }

  @supports (animation-timeline: scroll()) and (animation-range: 0% 100%) {
    [data-animate='true'] {
      li {
        opacity: 0.2;
        animation-name: brighten;

        &:first-of-type {
          --start-opacity: 1;
        }
        &:last-of-type {
          --brightness: 1;
          --end-opacity: 1;
        }
        animation-fill-mode: both;
        animation-timing-function: linear;
        animation-range: cover calc(50% - 1lh) calc(50% + 1lh);
        animation-timeline: view();
      }
    }

    @keyframes brighten {
      0% {
        opacity: var(--start-opacity, 0.2);
      }
      50% {
        opacity: 1;
        filter: brightness(var(--brightness, 1.2));
      }
      100% {
        opacity: var(--end-opacity, 0.2);
      }
    }
  }
}

@layer stick {
  .content {
    --font-level: 6;
    display: flex;
    margin-top: 8%;
    line-height: 1.25;
    width: 100%;
    padding-left: 5rem;
  }

  .can {
    position: sticky;
    top: calc(50% - 0.5lh);
    font-size: inherit;
    margin: 0;
    display: inline-block;
    height: fit-content;
    font-weight: 600;
  }
  ul {
    font-weight: 600;
    padding-inline: 0;
    margin: 0;
    list-style-type: none;
  }

  [data-snap='true'] {
    scroll-snap-type: y proximity;

    li {
      scroll-snap-align: center;
    }
  }

  h2,
  li:last-of-type {
    background: linear-gradient(
      canvasText 50%,
      color-mix(in oklch, canvas, canvasText 25%)
    );
    background-clip: text;
    color: #0000;
  }
}

@layer demo {
  header {
    width: 100%;
    padding-inline: 5rem;
  }

  footer {
    padding-block: 2rem;
    opacity: 0.8;
  }

  h1 {
    --font-size-min: 24;
    --font-level: 8;
    text-wrap: pretty;
    line-height: 0.8;
    margin: 0;
    background: linear-gradient(
      canvasText 60%,
      color-mix(in oklch, canvas, canvasText)
    );
    background-clip: text;
    color: #0000;
  }
}

@layer base {
  :root {
    --font-size-min: 14;
    --font-size-max: 20;
    --font-ratio-min: 1.1;
    --font-ratio-max: 1.33;
    --font-width-min: 375;
    --font-width-max: 1500;
  }

  html {
    color-scheme: light dark;
  }

  [data-theme='light'] {
    color-scheme: light only;
  }

  [data-theme='dark'] {
    color-scheme: dark only;
  }

  :where(.fluid) {
    --fluid-min: calc(
      var(--font-size-min) * pow(var(--font-ratio-min), var(--font-level, 0))
    );
    --fluid-max: calc(
      var(--font-size-max) * pow(var(--font-ratio-max), var(--font-level, 0))
    );
    --fluid-preferred: calc(
      (var(--fluid-max) - var(--fluid-min)) /
        (var(--font-width-max) - var(--font-width-min))
    );
    --fluid-type: clamp(
      (var(--fluid-min) / 16) * 1rem,
      ((var(--fluid-min) / 16) * 1rem) -
        (((var(--fluid-preferred) * var(--font-width-min)) / 16) * 1rem) +
        (var(--fluid-preferred) * var(--variable-unit, 100vi)),
      (var(--fluid-max) / 16) * 1rem
    );
    font-size: var(--fluid-type);
  }

  *,
  *:after,
  *:before {
    box-sizing: border-box;
  }

  body {
    display: grid;
    place-items: center;
    background: light-dark(white, black);
    min-height: 100vh;
    font-family: 'Geist', 'SF Pro Text', 'SF Pro Icons', 'AOS Icons',
      'Helvetica Neue', Helvetica, Arial, sans-serif, system-ui;
  }

  body::before {
    --size: 45px;
    --line: color-mix(in hsl, canvasText, transparent 70%);
    content: '';
    height: 100vh;
    width: 100vw;
    position: fixed;
    background: linear-gradient(
          90deg,
          var(--line) 1px,
          transparent 1px var(--size)
        )
        50% 50% / var(--size) var(--size),
      linear-gradient(var(--line) 1px, transparent 1px var(--size)) 50% 50% /
        var(--size) var(--size);
    mask: linear-gradient(-20deg, transparent 50%, white);
    top: 0;
    transform-style: flat;
    pointer-events: none;
    z-index: -1;
  }
  

nav{
    display: flex;
    justify-content: flex-end;
    margin: 60px 0 80px 0;
}

.navbar-collapse ul {
    display: flex;
    justify-content: center; /* Centre les éléments de la nav */
}

.nav-item {
    margin: 0 10px;
    
}
.nav-item:after{
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 100%;
	height: 2px;
	content: '';
	background-color: #ff0088;
	opacity: 0;
    transition: all 200ms linear;
}
.nav-item:hover:after{
	bottom: 0;
	opacity: 1;
}
.nav-item.active:hover:after{
	opacity: 0;
}
.nav-item{
	position: relative;
    transition: all 200ms linear;
}


.nav-link {
    text-decoration: none;
    color: inherit; /* Assurez-vous que la couleur du lien est définie correctement */
    font-size: 1.5rem;
}
.nav-item .dropdown-menu {
    transform: translate3d(0, 10px, 0);
    visibility: hidden;
    opacity: 0;
	max-height: 0;
    display: block;
	padding: 0;
	margin: 0;
    transition: all 200ms linear;
}
.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
	max-height: 999px;
    transform: translate3d(0, 0px, 0);
}
.dropdown-menu {
	padding: 10px 0;
	margin: 0;
	font-size: 12px;
	letter-spacing: 1px;
	border: none;
	border-radius: 3px;
	box-shadow: 0 5px 10px 0 rgba(138, 155, 165, 0.15);
    transition: all 500ms linear;
}
.dropdown-toggle::after {
	display: none;
}

.dropdown-item {
    display: flex;
	padding: 3px 5px;
	color: #fcfaff;
	border-radius: 2px;
    margin: 5px 0;
    transition: all 200ms linear;
    text-decoration: none;
}
.dropdown-item:hover, 
.dropdown-item:focus {
	color: #fff;
	background-color: #ff0088;
}

#title {
    transition: transform 0.9s ease-in-out;
}

/* Déplacer le titre lorsque le menu est actif */
.nav-item:hover ~ #title,
.nav-item.show ~ #title {
    transform: translateY(50px); /* Déplacement fluide vers le bas */
}




.work{
  margin-top: 50px;
  margin-bottom: 250px;
  display: grid;
    grid-template-columns: 1fr;
    gap: 10rem;
}
.text {
    display: grid;
    grid-template-columns: 1fr 2fr;
    margin: 0px 30px;
    gap: 2rem;
}


.panel {
    position: relative;
    -webkit-perspective: 600px;
    -moz-perspective: 600px;
    margin-top: 10%;
}
	

.panel .front {
    height: inherit;
    position: absolute;
    top: 0;
    z-index: 900;
    text-align: center;
    transform: rotateX(0deg) rotateY(0deg);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transition: all .4s ease-in-out;
}

.panel .back {
    height: inherit;
    position: absolute;
    top: 0;
    z-index: 1000;
    text-align: center;
    transform: rotateY(-180deg);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transition: all .4s ease-in-out;
}

.panel.flip .front {
    z-index: 900;
    transform: rotateY(180deg);
}

.panel.flip .back {
    z-index: 1000;
    transform: rotateX(0deg) rotateY(0deg);
}

.box1{
    margin: 0 auto;
    display: grid;
    grid-template-rows: auto auto;
    gap: 2rem;
    text-align: center;
}

.box2 {
    margin: 0 auto;
    display: grid;
    grid-template-rows: auto auto;
    gap: 2rem;
    text-align: center;
}
	
.box {
    margin: 0 auto;
    display: grid;
    grid-template-rows: auto auto;
    gap: 2rem;
    text-align: center;
}

.image-improv {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Disposition pour écrans de petite taille */
@media screen and (max-width: 768px) {
  nav{
    justify-content: center;
  }
  .nav-link{
    font-size: 1.2rem;
  }
  .dropdown-menu{
    font-size: 0.5rem;
  }
  .can{
    top: 30% !important;
  }
  .text {
      grid-template-columns: 1fr !important;
  }
  .work{
    gap: 30rem !important;
  }
  .description {
      order: 1;
  }
  .visual {
      order: 2;
  }
  .feedback h3 {
    font-size: 1.5rem;
  }

  .feedback-items {
    font-size: 1.1rem;
  }

  .hover.panel {
    display: flex;
    justify-content: space-between;
  }

  .box1, .box2 {
    flex-direction: row; /* Disposition en ligne sur tablettes */
    justify-content: space-between;
  }

  .fleche {
    width: 100%;
  }
  .click-content{
    font-size: 1rem;
  }
  .contact{
    grid-template-columns: 1fr !important;
    gap: 6rem !important;
  }
  .text-contact{
    font-size: 3rem;
  }
}
.feedback-pre{
  font-size: 1.1rem;
  text-align: justify;
  font-weight: 60;
}
h2{
  font-size: 4rem;
}
.feedback-items{
  font-weight: 60;
}

.bout-content{
  background-color: #ff0088;
  border-radius: 15px;
  padding: 10px;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  color: #fcfaff;
}
.title_type{
  font-size: 1.6rem;
  font-weight: 80;
}
.click{
  display: grid;
  grid-template-columns: 25% 20% 20% 20%;
  grid-template-rows: 20%;
}
.fleche{
  grid-column : 5;
  justify-self: end;
}
.click-content{
  grid-column : 4;
  justify-self: end;
  font-weight: 80;
}
.copyright{
  text-align: center;
  margin-top: 100px;
  padding: 30px 30px 0px 30px;
  font-size: 1rem;
  font-weight: 50;
}
.contact{
  margin-top: 100px;
  display: grid;
  grid-template-columns: auto auto auto;
  justify-content: center;
  gap: 10rem; 
}
.lien-contact{
  text-decoration: none;
}
.contact-content {
  background-color: #ff0088;
  padding: 0px 50px;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.8s linear, box-shadow 0.3s ease, background-size 200%; /* Ajout pour l'animation fluide */
  background-image: linear-gradient(90deg, #ff0088, #ff56b1, #ff0088); /* Gradient de base */
  background-size: 200% 200%;
}

.contact-content:hover {
  transform: scale(1.1); /* Zoom léger */
  box-shadow: 0 10px 20px rgba(255, 0, 136, 0.6); /* Ombre stylée */
  background-position: 100% 0; /* Animation du gradient */
}
.contact-title{
  color: #fcfaff;
}