:root {
  --s-coloc: #fff;
  --t-coloc: #4e4e4e;
  --background: #000000;
  --border-raduis: 15px;
  --police-class: font-family: 'sanshiroblack';
}

html {
  background-color: var(--background);
}

body {
  background-color: var(--background);
}

@media (min-width:0px) {
  .bloc-fiche .text-fiche .titreS {
    font-size: 70px;
    padding: 1rem;
    /* margin-left: 7%; */
    font-size: 38px;
  }
}

@media (min-width: 200px) {
  .image {
    position: relative;
    width: 50%;
    /* L'image prend 50% de la largeur */
    height: 100%;
    /* Force 100% de la hauteur */
  }

  .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* L'image remplit le bloc sans déformation (coupe les bords si nécessaire) */
    display: block;
  }

  /* 4. LE DEGRADE EN FORME DE "L" (GAUCHE ET BAS) */
  .image::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;

    /* COMBINAISON DE DEUX DEGRADES POUR FAIRE LE "L" */
    background:
      /* Barre verticale à gauche (transition douce) */
      linear-gradient(to right, rgba(0, 0, 0, 1) 1%, rgba(0, 0, 0, 0) 25%),
      /* Barre horizontale en bas (transition douce) */
      linear-gradient(to top, rgba(0, 0, 0, 1) 1%, rgba(0, 0, 0, 0) 25%),

      /* radial-gradient(circle at bottom right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.856) 80%), */
      radial-gradient(circle at top right, rgba(0, 0, 0, 0) 1%, rgba(0, 0, 0, 1) 90%);
    /* radial-gradient(circle at top left, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 80%); */

  }

  .bloc-fiche {
    height: auto;
    display: inline-block;
    background-color: var(--background);
  }

  .bloc-fiche .image {
    height: 500px;
    width: 100%;
    display: inline-block;
    position: relative;
  }

  .bloc-fiche .text-fiche {
    height: auto;
    width: 100%;
    margin-top: -6px;
    display: inline-block;
    position: relative;
    z-index: 900;
  }

  .bloc-fiche .text-fiche .titreS {
    font-size: 70px;
    padding: 1rem;
    margin-left: 7%;
  }

  .bloc-fiche.text-fiche.textparpages {
    font-size: 10px;
    margin-left: 10%;
    height: auto;
    max-width: 80%;
  }

  .bloc-fiche .text-fiche .textparpages p {
    color: #fff;
    max-width: 100%;
    margin-left: 0%;
    width: auto;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .text-fiche .text ul {
    list-style: none;
    padding: 0;
    margin-top: 25px;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
  }

  .text-fiche .text li {
    position: relative;
    padding: 15px 20px;
    padding-left: 35px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
  }

  .text-fiche .text li::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 40%;
    /* background: linear-gradient(to bottom, var(--s-coloc), var(--t-coloc)); */
    border-radius: 10px;
    transition: height 0.3s ease;
    background: white;
  }

  .text-fiche .text li:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    color: #fff;
  }

  .text-fiche .text li:hover::before {
    height: 70%;
  }

  .text-fiche .text li strong {
    color: #fff;
    font-weight: 700;
    margin-right: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 11px;
    opacity: 0.9;
  }

  .text-fiche .text li.li-soon {
    background: rgba(255, 0, 0, 0.05);
    border: 1px solid rgba(255, 0, 0, 0.2);
  }

  .text-fiche .text li.li-soon strong {
    color: #ff4d4d;
  }

  .text-fiche .text li.li-soon::before {
    background: linear-gradient(to bottom, #ff4d4d, #990000);
  }

  .bloc-fiche-debut-site {
    height: auto;
    width: 100%;
    display: inline-block;
    position: absolute;
  }

  .bloc-fiche-debut-site .contour {
    height: 100%;
    width: 100%;
    position: absolute;
    border: none;
  }

  .bloc-fiche-debut-site .fond-site {
    height: auto;
    width: 100%;
    object-fit: cover;
    z-index: 1;
    border: none;
    margin-top: -10px;
  }

  .bloc-fiche-debut-site .prolongement {
    height: 300px;
    width: 100%;
    background-color: #0A0A0A;
  }

  .Details-projet {
    padding-top: 5%;
    width: 100%;
    height: auto;
    justify-content: center;
    position: relative;
    display: inline-block;
    overflow: hidden;
  }

  .Details-projet .creations-insta {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 10px;
  }

  .Details-projet .creations-insta .photo {
    background-color: #000;
    margin: 0;
    width: 140px;
    height: 140px;
    border-radius: var(--border-raduis);
    position: relative;
    display: block;
  }

  .Details-projet .creations-insta .photo .img {
    width: 100%;
    height: 100%;
    box-shadow: rgba(255, 255, 255, 0.151) 0px 0px 0px 2px inset, rgba(255, 255, 255, 0.9) 0px 0px 0px 1px;
    object-fit: cover;
    border-radius: var(--border-raduis);
    transition: transform .25s;
  }

  .Details-projet .creations-insta .photo:hover {

    -ms-transform: scale(1.2);
    /* IE 9 */
    -webkit-transform: scale(1.2);
    /* Safari 3-8 */
    transform: scale(1.2);
    transition: all .25s;
    z-index: 1;
  }

  .Details-projet .creations-insta .video {
    margin: 8px;
    flex: 1;
    width: 140px;
    height: 140px;
    border-radius: var(--border-raduis);
    position: relative;
    justify-content: space-between;
    display: inline-block;
  }

  .Details-projet .creations-insta .video .movie {
    width: 100%;
    height: 100%;
    box-shadow: rgba(255, 255, 255, 0.151) 0px 0px 0px 2px inset, rgba(255, 255, 255, 0.9) 0px 0px 0px 1px;
    object-fit: cover;
    border-radius: var(--border-raduis);
    transition: transform .25s;
  }

  .Details-projet .creations-insta .video:hover {

    -ms-transform: scale(1.2);
    /* IE 9 */
    -webkit-transform: scale(1.2);
    /* Safari 3-8 */
    transform: scale(1.2);
    transition: all .25s;
  }











  .Details-projet .pdf-detail {
    width: 100%;
    height: auto;
    padding: 10px;
    position: relative;
    justify-content: space-between;
    display: inline-block;
  }

  .Details-projet .pdf-detail {
    width: 100%;
    height: auto;
    padding: 10px;
    position: relative;
    justify-content: space-between;
    display: inline-block;
  }

  .Details-projet .pdf-detail .photo .img {
    width: 100%;
    height: 100%;
    box-shadow: rgba(255, 255, 255, 0.2) 0px 0px 0px 2px inset, rgba(0, 0, 0, 0.9) 0px 0px 0px 1px;
    object-fit: cover;
    border-radius: var(--border-raduis);
    transition: transform .25s;
  }


  /*test*/




  /* From Uiverse.io by Na3ar-17 */
  .container {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
  }

  .label {
    background-color: transparent;
    border: 2px solid var(--s-coloc);
    display: flex;
    align-items: center;
    border-radius: 50px;
    width: 160px;
    cursor: pointer;
    transition: all 0.4s ease;
    padding: 5px;
    position: relative;
  }

  .label::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    width: 8px;
    height: 8px;
    transition: all 0.4s ease;
    border-radius: 100%;
    margin: auto;
    opacity: 0;
    visibility: hidden;
  }

  .label .input {
    display: none;
  }

  .label .title {
    font-size: 17px;
    color: #fff;
    transition: all 0.4s ease;
    position: absolute;
    right: 18px;
    bottom: 14px;
    text-align: center;
  }

  .label .title:last-child {
    opacity: 0;
    visibility: hidden;
  }

  .label .circle {
    height: 45px;
    width: 45px;
    border-radius: 50%;
    background-color: var(--s-coloc);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease;
    position: relative;
    box-shadow: 0 0 0 0 rgb(255, 255, 255);
    overflow: hidden;
  }

  .label .circle .icon {
    color: var(--background);
    width: 30px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
  }

  .label .circle .square {
    aspect-ratio: 1;
    width: 15px;
    border-radius: 2px;
    background-color: var(--background);
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
  }

  .label .circle::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--t-coloc);
    width: 100%;
    height: 0;
    transition: all 0.4s ease;
  }

  .label:has(.input:checked) {
    width: 57px;
    animation: installed 0.4s ease 3.5s forwards;
  }

  .label:has(.input:checked)::before {
    animation: rotate 3s ease-in-out 0.4s forwards;
  }

  .label .input:checked+.circle {
    animation:
      pulse 1s forwards,
      circleDelete 0.2s ease 3.5s forwards;
    rotate: 180deg;
  }

  .label .input:checked+.circle::before {
    animation: installing 3s ease-in-out forwards;
  }

  .label .input:checked+.circle .icon {
    opacity: 0;
    visibility: hidden;
  }

  .label .input:checked~.circle .square {
    opacity: 1;
    visibility: visible;
  }

  .label .input:checked~.title {
    opacity: 0;
    visibility: hidden;
  }

  .label .input:checked~.title:last-child {
    animation: showInstalledMessage 0.4s ease 3.5s forwards;
  }

  @keyframes pulse {
    0% {
      scale: 0.95;
      box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
      scale: 1;
      box-shadow: 0 0 0 16px rgba(255, 255, 255, 0);
    }

    100% {
      scale: 0.95;
      box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
  }

  @keyframes installing {
    from {
      height: 0;
    }

    to {
      height: 100%;
    }
  }

  @keyframes rotate {
    0% {
      transform: rotate(-90deg) translate(27px) rotate(0);
      opacity: 1;
      visibility: visible;
    }

    99% {
      transform: rotate(270deg) translate(27px) rotate(270deg);
      opacity: 1;
      visibility: visible;
    }

    100% {
      opacity: 0;
      visibility: hidden;
    }
  }

  @keyframes installed {
    100% {
      width: 150px;
      border-color: var(--t-coloc);
    }
  }

  @keyframes circleDelete {
    100% {
      opacity: 0;
      visibility: hidden;
    }
  }

  @keyframes showInstalledMessage {
    100% {
      opacity: 1;
      visibility: visible;
      right: 56px;
    }
  }
}

























@media (min-width: 500px) {
  .bloc-fiche .text-fiche {
    height: 100%;
    width: 50%;
    padding: 40px;
    transform: translate(0%, 15%);
    display: inline-block;
    position: relative;
  }
}



























@media (min-width: 600px) {
  .bloc-fiche {
    width: 100%;
    min-height: 80vh;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    /* Center content vertically */
    justify-content: center;
    background-color: #000;
  }

  .bloc-fiche .image {
    flex: 1;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
  }

  .bloc-fiche .text-fiche {
    flex: 1;
    width: 50%;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
  }

  .bloc-text {
    margin-top: 0%;
    height: auto;
    width: 100%;
    display: inline-block;
    position: absolute;

  }

  .bloc-text .titreS {
    margin-top: 15%;
    font-size: 70px;
    margin-left: 5%;
  }

  .bloc-text .textparpages {
    color: #fff;
    font-size: 10px;
    height: auto;
    max-width: 45%;
    margin-left: 6.8%;
  }

  .bloc-text .textparpages p {
    color: #fff;
    max-width: 100%;
    width: auto;
    word-wrap: break-word;
    font-size: 20px;
  }

  .bloc-debut-site {
    display: inline-block;
    position: absolute;
    height: 99%;
    width: auto;
    left: 57%;
  }

  .bloc-debut-site .contour {
    height: 910px;
    width: 100%;
    position: absolute;
    border: none;
    margin-top: -20px;
  }

  .bloc-debut-site .fond-site {
    height: auto;
    width: 100%;
    object-fit: cover;
    z-index: 1;
    border: none;
    margin-top: 0px;
    margin-left: 1px;
  }

  .bloc-debut-site .prolongement {
    height: 300px;
    width: 100%;
    background-color: #0A0A0A;
  }



  .Details-projet {
    padding-top: 5%;
    width: 100%;
    height: auto;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    overflow: hidden;
    background-color: var(--background);
  }

  .Details-projet .creations-insta {
    width: 100%;
    max-width: 100%;
    padding: 40px 0;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    background: transparent;
  }

  /* =========================================================
     INFINITE CAROUSEL ANIMATION (ULTRA-PREMIUM)
     ========================================================= */

  .carrousel {
    overflow: hidden;
    width: 100%;
    position: relative;
  }

  .carrousel-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scroll-loop 30s linear infinite;
    padding: 20px;
  }

  /* Pause on hover */
  .carrousel-track:hover {
    animation-play-state: paused;
  }

  .carrousel-track .photo-16-9 {
    flex-shrink: 0;
    width: 525px;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease, border-color 0.4s ease;
  }

  .carrousel-track .photo-16-9:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.3);
    z-index: 10;
  }

  .carrousel-track .photo-16-9 .img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  @keyframes scroll-loop {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(calc(-70% - 15px));
      /* -15px is half the gap */
    }
  }

  /* Responsive tweaks */
  @media (max-width: 768px) {
    .carrousel-track .photo {
      width: 300px;
      height: 200px;
    }

    .carrousel-track {
      animation-duration: 60s;
    }
  }

  .Details-projet .creations-insta .photo {
    margin: 0;
    width: 280px;
    height: 280px;
    border-radius: var(--border-raduis);
    position: relative;
    display: block;
  }

  .Details-projet .creations-insta .photo .img {
    width: 100%;
    height: 100%;
    box-shadow: rgba(255, 255, 255, 0.151) 0px 0px 0px 2px inset, rgba(255, 255, 255, 0.9) 0px 0px 0px 1px;
    object-fit: cover;
    border-radius: var(--border-raduis);
    transition: transform .25s;
  }

  .Details-projet .creations-insta .photo:hover {

    -ms-transform: scale(1.2);
    /* IE 9 */
    -webkit-transform: scale(1.2);
    /* Safari 3-8 */
    transform: scale(1.2);
    transition: all .25s;
  }


  .Details-projet .pdf-detail {
    width: 30%;
    height: auto;
    padding: 20px;
    position: relative;
    display: inline-block;
  }

  .Details-projet .pdf-detail .photo {
    margin: 10%;
    flex: 1;
    width: 80%;
    height: auto;
    border-radius: var(--border-raduis);
    position: relative;
    justify-content: space-between;
    display: inline-block;
  }

  .Details-projet .pdf-detail .photo .img {
    width: 100%;
    height: 100%;
    box-shadow: rgba(255, 255, 255, 0.2) 0px 0px 0px 2px inset, rgba(0, 0, 0, 0.9) 0px 0px 0px 1px;
    object-fit: cover;
    border-radius: var(--border-raduis);
    transition: transform .25s;
  }


  /*BUTTON TELECHARGEMENT*/


  /* From Uiverse.io by Na3ar-17 */
  .container {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .label {
    background-color: transparent;
    border: 2px solid var(--s-coloc);
    display: flex;
    align-items: center;
    border-radius: 50px;
    width: 160px;
    cursor: pointer;
    transition: all 0.4s ease;
    padding: 5px;
    position: relative;
  }

  .label::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    width: 8px;
    height: 8px;
    transition: all 0.4s ease;
    border-radius: 100%;
    margin: auto;
    opacity: 0;
    visibility: hidden;
  }

  .label .input {
    display: none;
  }

  .label .title {
    font-size: 17px;
    color: #fff;
    transition: all 0.4s ease;
    position: absolute;
    right: 18px;
    bottom: 14px;
    text-align: center;
  }

  .label .title:last-child {
    opacity: 0;
    visibility: hidden;
  }

  .label .circle {
    height: 45px;
    width: 45px;
    border-radius: 50%;
    background-color: var(--s-coloc);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease;
    position: relative;
    box-shadow: 0 0 0 0 rgb(255, 255, 255);
    overflow: hidden;
  }

  .label .circle .icon {
    color: var(--background);
    width: 30px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
  }

  .label .circle .square {
    aspect-ratio: 1;
    width: 15px;
    border-radius: 2px;
    background-color: var(--background);
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
  }

  .label .circle::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--t-coloc);
    width: 100%;
    height: 0;
    transition: all 0.4s ease;
  }

  .label:has(.input:checked) {
    width: 57px;
    animation: installed 0.4s ease 3.5s forwards;
  }

  .label:has(.input:checked)::before {
    animation: rotate 3s ease-in-out 0.4s forwards;
  }

  .label .input:checked+.circle {
    animation:
      pulse 1s forwards,
      circleDelete 0.2s ease 3.5s forwards;
    rotate: 180deg;
  }

  .label .input:checked+.circle::before {
    animation: installing 3s ease-in-out forwards;
  }

  .label .input:checked+.circle .icon {
    opacity: 0;
    visibility: hidden;
  }

  .label .input:checked~.circle .square {
    opacity: 1;
    visibility: visible;
  }

  .label .input:checked~.title {
    opacity: 0;
    visibility: hidden;
  }

  .label .input:checked~.title:last-child {
    animation: showInstalledMessage 0.4s ease 3.5s forwards;
  }

  @keyframes pulse {
    0% {
      scale: 0.95;
      box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
      scale: 1;
      box-shadow: 0 0 0 16px rgba(255, 255, 255, 0);
    }

    100% {
      scale: 0.95;
      box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
  }

  @keyframes installing {
    from {
      height: 0;
    }

    to {
      height: 100%;
    }
  }

  @keyframes rotate {
    0% {
      transform: rotate(-90deg) translate(27px) rotate(0);
      opacity: 1;
      visibility: visible;
    }

    99% {
      transform: rotate(270deg) translate(27px) rotate(270deg);
      opacity: 1;
      visibility: visible;
    }

    100% {
      opacity: 0;
      visibility: hidden;
    }
  }

  @keyframes installed {
    100% {
      width: 150px;
      border-color: var(--t-coloc);
    }
  }

  @keyframes circleDelete {
    100% {
      opacity: 0;
      visibility: hidden;
    }
  }

  @keyframes showInstalledMessage {
    100% {
      opacity: 1;
      visibility: visible;
      right: 56px;
    }
  }

}

@media (max-width: 900px) {

  body {
    overflow: auto;
    /* Réactive le scroll sur mobile */
  }

  .text-fiche {
    height: auto;
    padding: 30px;
  }
}