html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.875rem;
}

* {
  box-sizing: border-box;
}

.main-container {
  width: 100%;
  max-width: 75rem;
  margin: 0 auto;
}

:root {
  --grain: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.15"/%3E%3C/svg%3E');
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.modal-studio:focus-visible,
.carousel__slide:focus-visible {
  outline: 3px solid #FF8314;
  outline-offset: 4px;
  border-radius: 4px;
}

.projetcarte:focus-within {
    outline: 3px solid #FF8314;
    outline-offset: 4px;
    border-radius: 0.625rem;
}
.projetcarte a:focus-visible {
    outline: none;
}

.projets,
.comp,
.leStudiodiv,
.lestudioprojets,
.mesinspi,
.mecontacter {
  width: 90%;
  max-width: 75rem;
  margin: 0 auto;
  box-sizing: border-box;
}

@keyframes apparitionPage {
  from {
    opacity: 0.2;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================================
   HEADER & NAVIGATION
   ========================================= */

header {
  display: flex;
  justify-content: space-between;
  background-color: #1e1e1e;
  text-align: center;
  color: #0f4c81;
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 5px grey;
  align-items: center;
}

header a,
footer a {
  text-decoration: none;
}

:is(header a, footer a):hover {
  text-decoration: underline;
}

.nav {
  display: flex;
  align-items: center;
  height: 1.25rem;
  justify-content: center;
}

.navpage {
  display: flex;
  justify-content: center;
}

.navpage li {
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0 1.25rem;
}

.logo-container {
  position: relative;
}

.logo-base {
  opacity: 1;
  transition: opacity 0.4s ease-in-out;
}

.logo-hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.logo-container:hover .logo-base {
  opacity: 0;
}

.logo-container:hover .logo-hover {
  opacity: 1;
}

/* =========================================
   TYPOGRAPHIE & BASE
   ========================================= */

body {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
  background-color: #363537;
  color: #ffffff;
  margin: 0;
  overflow-x: hidden;
  
}
main {
  animation: apparitionPage 0.5s ease-out forwards;
}

h2 {
  margin: 0.625rem;
  font-size: 3rem;
  text-align: center;
}

h3 {
  font-size: 2rem;
}

p {
  margin: 0 0 0.625rem 0;
  padding: 0;
  font-size: 1.2rem;
  font-family: "Cal Sans", sans-serif;
  font-style: normal;
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

a {
  font-style: normal;
  color: white;
}

section {
  margin: 3.125rem 0;
}

/* =========================================
   BOUTONS & TAGS
   ========================================= */

@property --c0 {
  syntax: '<color>';
  inherits: false;
  initial-value: transparent;
}

@property --c1 {
  syntax: '<color>';
  inherits: false;
  initial-value: transparent;
}

.boutons {
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 2.125rem;
  border: 1.5px solid #d9d9d9;
  display: inline-block;
  cursor: pointer;
  color: #d9d9d9;
  font-family: "Cal Sans", sans-serif;
  font-weight: 200;
  font-size: 1rem;
  padding: 0.4375rem 0.625rem;
  text-decoration: none;
  background: linear-gradient(var(--c0), var(--c1));
  transition: 0.3s, box-shadow 0.2s;
  transition-property: --c0, --c1;
  margin-right: 0.1875rem;
}

.boutonsbleu:hover {
  --c0: #4484BA;
  --c1: #004680;
  box-shadow: 0.5px 2px 10px #004680;
}

.boutons:active {
  position: relative;
  top: 1px;
}

.current {
  border: 1.5px solid #004680;
  --c0: #4484BA;
  --c1: #4484BA;
  box-shadow: 0.5px 2px 10px #004680;
}

.tags {
  display: flex;
  flex-wrap: nowrap;
  margin-bottom: 1.25rem;
  margin-left: 6.875rem;
}

.tag {
  background-color: #4484BA;
  color: white;
  font-size: 0.8rem;
  font-family: "Cal Sans", sans-serif;
  font-weight: 500;
  padding: 0.3125rem 0.625rem;
  border-radius: 1.25rem;
  margin-right: 0.625rem;
}

.vl {
  border-left: 2px solid rgb(206, 206, 206);
  margin-right: 0.625rem;
  height: 2.5rem;
}

.bientous,
.scoperso {
  margin-right: 0.625rem;
}

.parcours {
  margin-right: 1.25rem;
}

/* =========================================
   SCÉNARIO D'ANIMATION AU SCROLL (HERO)
   ========================================= */

.animation-container {
  height: 200vh;
  position: relative;
}

.sticky-wrapper {
  position: sticky;
  top: -15.625rem;
  height: 150vh;
  width: 100%;
  overflow: hidden;
}

.hero-title {
  background: linear-gradient(var(--c0) 0%, var(--c1)100%);
  color: white;
  font-size: 10rem;
  text-align: center;
  position: absolute;
  top: 5%;
  width: 100%;
  transition: all 0.8s ease-in-out;
}

.hero-texte {
  background: linear-gradient(var(--c0) 0%, var(--c1)100%);
  color: transparent;
  opacity: 0;
  font-size: 4rem;
  text-align: center;
  position: absolute;
  top: 40%;
  width: 100%;
  transition: all 0.8s ease-in-out;
}

.box-1 {
  width: 25rem;
  position: absolute;
  top: 40%;
  left: calc(30% - 12.5rem);
  z-index: 20;
  opacity: 0;
  transform: translateY(calc(-50% + 3.125rem));
  transition: all 0.8s ease-out;
}

.box-1 img {
  position: absolute;
  border-radius: 5%;
  transition: all 0.6s ease-in-out;
  width: auto;
  height: 30rem;
}

.box-1 img:hover {
  transform: scale(1.01);
  box-shadow: 0.5px 2px 10px #005fac;
}

.nuage-mots {
  position: absolute;
  top: 55%;
  left: 55%;
  z-index: 5;
}

.mot {
  position: absolute;
  opacity: 0;
  color: #d9d9d9;
  font-size: 1.8rem;
  font-family: "Cal Sans", sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.125rem;
  text-shadow: 0 0 10px rgba(68, 132, 186, 0.8);
  pointer-events: auto;
  cursor: pointer;
  transform: translate(calc(var(--x) + 3.125rem), calc(var(--y) + 3.125rem)) scale(0.5);
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.8s ease;
}

@keyframes flottement {

  0%,
  100% {
    margin-top: 0;
    margin-left: 0;
  }

  50% {
    margin-top: -0.9375rem;
    margin-left: 0.125rem;
  }
}

@keyframes flottement2 {

  0%,
  100% {
    margin-top: 0;
    margin-left: 0;
  }

  50% {
    margin-top: -0.625rem;
    margin-left: 1px;
  }
}

.description-profil {
  position: absolute;
  top: 60%;
  left: 55%;
  width: 28.125rem;
  opacity: 0;
  transform: translateY(-50%) translateX(6.25rem);
  z-index: 15;
  pointer-events: none;
  background: rgba(40, 40, 40, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.875rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.6s ease-out;
}

.description-profil h3 {
  margin: 0 0 0.625rem 0;
  color: #4484BA;
  font-size: 2.5rem;
  text-align: left;
}

.description-profil p {
  color: #d9d9d9;
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: left;
}

.animation-container.etape-1 .hero-title {
  top: 10%;
  font-size: 8rem;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  --c0: rgb(68, 132, 186);
  --c1: rgb(0, 95, 172);
  text-shadow: 0.5px 2px 10px rgba(0, 70, 128, 0.5);
}

.animation-container.etape-1 .hero-texte {
  top: 30%;
  font-size: 3rem;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  --c0: rgb(68, 132, 186);
  --c1: rgb(0, 95, 172);
  text-shadow: 0.5px 2px 10px rgba(0, 70, 128, 0.5);
  opacity: 100%;
}

.animation-container.etape-2 .hero-texte {
  opacity: 0;
  transform: translateY(-1.25rem);
  transition: all 0.4s ease;
}

.animation-container.etape-1 .box-1 {
  opacity: 1;
  transform: translateY(-50%);
}

.animation-container.etape-1 .mot {
  opacity: 1;
  transform: translate(var(--x), var(--y)) scale(1);
  animation: flottement 3s ease-in-out infinite;
  animation-delay: var(--d);
}

.animation-container.etape-1:not(.etape-2) .mot:hover {
  transform: translate(var(--x), var(--y)) scale(1.3);
  color: #4484BA;
  text-shadow: 0 0 20px rgba(68, 132, 186, 1);
  animation-play-state: paused;
  z-index: 10;
  transition: transform 0.2s ease, color 0.2s ease, text-shadow 0.2s ease;
}

.animation-container.etape-2 .mot {
  opacity: 0;
  transform: translate(-31.25rem, var(--y)) scale(0) !important;
  animation: none;
  transition: transform 0.6s cubic-bezier(0.5, -0.5, 0.5, 1.5), opacity 0.4s ease;
}

.animation-container.etape-2 .description-profil {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
  transition-delay: 0.5s;
}

/* =========================================
   SECTION PROJETS & STUDIO
   ========================================= */

.leStudiosection {
  margin: 3.125rem 0;
}

.projets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
  padding: 3.125rem 1.25rem;
  grid-auto-rows: 18.75rem;
  border-radius: 1.25rem;
  gap: 0.625rem;
  justify-items: center;
  justify-content: center;
  border: solid rgba(255, 255, 255, 0.5) 1px;
  background-color: rgba(0, 0, 0, 0.4);
  box-shadow: 0 5px 30px #363636, 0 -5px 30px #363636;
}

.projetcarte {
  background-color: #000000;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 0.625rem;
  box-shadow: 0 -100px 100px rgba(0, 0, 0, 1) inset;
  transition: box-shadow 0.5s ease-in-out;
}

.projetcarte::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0.625rem;
  padding: 1px;
  background: linear-gradient(to right, #4484BA, #004680);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.projetcarte:hover {
  box-shadow: 0 -1001px 10px rgba(0, 0, 0, 0.8) inset;
}

.contenu-carte {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 38%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.25rem;
  box-sizing: border-box;
  transition: height 0.4s ease-in-out;
  overflow: hidden;
  margin-bottom: 0.625rem;
}

.projetcarte:hover .contenu-carte {
  height: 100%;
}

.cartecontenu {
  position: relative;
  top: 1.5rem;
  left: 0;
}

.contenu-carte h3 {
  margin: 0;
  line-height: 1;
}

.description-carte {
  opacity: 0;
  transition: opacity 0.2s ease;
  margin-top: 1.5rem;
  color: #ffffff;
  width: 100%;
  height: 100%;
}

.projetcarte:hover .description-carte {
  opacity: 1;
}

.tagsdescription {
  gap: 3px;
  margin-bottom: 0.625rem;
  display: flex;
  flex-wrap: wrap;
}

/* =========================================
   COMPÉTENCES
   ========================================= */

.comp {
  background: rgba(0, 0, 0, 0.4);
  border: solid #4484ba 1px;
  text-align: center;
  overflow: hidden;
  box-shadow: #000 0px 0px 20px;
  display: grid;
  grid-template-columns: 0.8fr 1.6fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 0;
  grid-auto-flow: row;
  grid-template-areas:
    "compdev compdetails"
    "compstrat compdetails"
    "compcrea compdetails";
  border-radius: 0.625rem;
}

.compdetails {
  grid-area: compdetails;
  border-left: #4484ba 5px solid;
  background: var(--grain), linear-gradient(to right, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5));
}

.compdev {
  grid-area: compdev;
  border-bottom: #4484ba 5px solid;
}

.compstrat {
  grid-area: compstrat;
  border-bottom: #4484ba 5px solid;
}

.compcrea {
  grid-area: compcrea;
}

.compcol {
  padding: 0 0.625rem;
  cursor: pointer;
  box-shadow: 0 0 0 #4484ba;
  transition: all 0.2s ease-in-out;
}

.currentcomp {
  background: var(--grain), linear-gradient(to right, rgba(36, 83, 121, 0.5), rgba(68, 132, 186, 0.6));
  box-shadow: 0 3px 20px #4484ba, 0 -3px 20px #4484ba;
}

.compgrand {
  display: none;
  height: 100%;
  grid-auto-columns: 1fr;
  grid-template-rows: 1.3fr 0.7fr;
  gap: 0;
  text-align: center;
  padding: 0 1.25rem;
  margin-top: 0.625rem;
  color: #d9d9d9;
  font-size: 1.2rem;
  font-family: "Cal Sans", sans-serif;
  font-style: normal;
}

.compgranddev {
  display: grid;
}

.compgrand p {
  grid-area: 2 / 1 / 3 / 2;
  margin-top: 0.3125rem;
  font-size: 1.5625rem;
  color: white;
  position: relative;
}

.compimages {
  grid-area: 1 / 1 / 2 / 2;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.compimages img {
  width: 9.375rem;
  height: auto;
  object-fit: contain;
  animation: flottement2 3s ease-in-out infinite;
  animation-delay: var(--d);
  filter: drop-shadow(0px 10px 8px rgba(0, 0, 0, 0.6));
}

.compgrandcrea img {
  width: 6.25rem;
}

.leStudiodiv {
  padding: 3.125rem 0;
  border-radius: 1.25rem;
  gap: 0.625rem;
  justify-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.4);
  border: solid #FF8314 1px;
  text-align: center;
}

.leStudiodiv h3 {
  color: white;
  text-shadow: #FF8314 0px 0px 10px;
  font-size: 2.5rem;
  text-align: center;
  margin: 1.875rem 0 1.25rem 0;
}

.boutonslestudio {
  width: 12rem;
  height: 15.625rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 0.625rem;
  box-shadow: 0 -1px 30px rgba(0, 0, 0, 1) inset;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  background: linear-gradient(rgba(21, 22, 29, 0.7), rgba(19, 13, 15, 0.7)), var(--bg-image, #FF8314);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

.boutonslestudio:hover {
  transform: scale(1.1) rotate(1deg);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0) inset, 0 0 14px rgba(255, 131, 20, 0.8);
}

.lestudioprojets:hover .listeleStudio {
  animation-play-state: paused;
}
.lestudioprojets {
  padding: 0; /* On retire le padding ici */
  border-radius: 20px;
  background: var(--grain), linear-gradient(to right, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2));
  border: solid #FF8314 0.5px;
  text-align: center;
  overflow: hidden;
  box-shadow: #000 0px 0px 20px;
}

/* --- LE NOUVEAU CARROUSEL HYBRIDE --- */
.listeleStudio {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 30px 20px; /* CRUCIAL : 30px en haut et en bas pour le zoom de la carte ! */
  margin: 0;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden; /* Empêche formellement le scroll vertical */
  scrollbar-width: none; /* Cache la barre sur Firefox */
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

/* Cache la barre sur Chrome/Safari/Edge */
.listeleStudio::-webkit-scrollbar {
  display: none;
}

.listeleStudio li {
  flex-shrink: 0;
  transform: translateZ(0); 
}


.textestudio {
  font-weight: 800;
  font-size: 1.375rem;
  text-shadow: #000 0px 0px 10px;
  padding: 0.625rem 0;
  margin: 0;
}

.boutonslestudio p {
  font-weight: 300;
  font-size: 1.0625rem;
  text-shadow: #000 0px 0px 10px;
  padding: 1px 0;
  margin: 0;
}

.presentationLeStudio {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3.125rem;
  font-size: 3.75rem;
  margin: 0 1.875rem;
  text-align: left;
}

.presentationLeStudio img {
  width: 28.125rem;
  height: auto;
  object-fit: contain;
}

.lestudioprojets {
  padding: 1.5625rem 0;
  border-radius: 1.25rem;
  gap: 0.625rem;
  justify-items: center;
  justify-content: center;
  background: var(--grain), linear-gradient(to right, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2));
  border: solid #FF8314 1px;
  text-align: center;
  overflow: hidden;
  box-shadow: #000 0px 0px 20px;
}

.texteLeStudio {
  display: flex;
  flex-direction: column;
}

.studio-timeline {
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.5625rem 0;
}

.studio-timeline li {
  flex: 1;
  position: relative;
  padding-top: 1.875rem;
  text-align: center;
}

.studio-timeline li::before {
  content: '';
  position: absolute;
  top: 0.3125rem;
  left: -50%;
  width: 100%;
  height: 3px;
  background-color: #4484BA;
  z-index: 1;
}

.studio-timeline li:first-child::before {
  display: none;
}

.studio-timeline li::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0.8125rem;
  height: 0.8125rem;
  border-radius: 50%;
  background-color: #004680;
  border: 3px solid #4484BA;
  z-index: 2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.studio-timeline li.timeline-future::after {
  background-color: #FF8314;
  border-color: #FF8314;
  box-shadow: 0 0 10px rgba(255, 131, 20, 0.6);
}

.studio-timeline li:hover::after {
  transform: translateX(-50%) scale(1.6);
  box-shadow: 0 0 15px rgba(68, 132, 186, 0.8);
  cursor: default;
}

.studio-timeline li.timeline-future:hover::after {
  transform: translateX(-50%) scale(1.6);
  box-shadow: 0 0 15px rgba(255, 131, 20, 1);
}

.timeline-date {
  display: block;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  color: #4484BA;
  margin-bottom: 0.3125rem;
  letter-spacing: 1px;
}

.timeline-future .timeline-date {
  color: #FF8314;
}

.timeline-role {
  display: block;
  font-size: 1rem;
  color: #d9d9d9;
}

.liens-container {
  display: flex;
  gap: 0.625rem;
}

.liens {
  width: auto;
  background: linear-gradient(var(--c0), var(--c1));
  transition: 0.3s, box-shadow 0.2s;
  transition-property: --c0, --c1;
  margin-right: 0.1875rem;
  box-shadow: 0.5px 2px 10px transparent;
}

.youtube {
  --c0: #FF0000;
  --c1: #B20000;
}

.twitch {
  --c0: #6441A4;
  --c1: #4B367C;
}

.instagram {
  --c0: #E1306C;
  --c1: #C13584;
}

.normal {
  --c0: #8289ff;
  --c1: #605386;
}

.liens:hover {
  box-shadow: 0.5px 2px 10px var(--c0);
}

/* =========================================
   INSPIRATIONS
   ========================================= */

.mesinspi {
  position: relative;
  padding: 1.25rem 0;
  gap: 0.625rem;
  justify-items: center;
  justify-content: center;
  text-align: center;
}

.mesinspi,
.mecontacter {
  border-radius: 1.25rem;
  border: solid rgba(255, 255, 255, 0.5) 1px;
  background-color: rgba(0, 0, 0, 0.4);
  box-shadow: 0 5px 30px #363636, 0 -5px 30px #363636;
}

.mesinspi p {
  font-weight: 700;
  padding: 0.625rem 1.25rem 2.8125rem;
  margin: 0;
  font-size: 1.375rem;
}

.mesinspi span {
  font-weight: 900;
  font-size: 1.875rem;
  color: #4484ba;
  text-shadow: 0 0 50px #4484ba;
}

.systeme-solaire {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.grosseplaneteimg {
  width: 75%;
  height: auto;
  filter: drop-shadow(0px 10px 8px rgba(68, 132, 186, 1));
  animation: planete 30s linear infinite;
}

@keyframes planete {
  0% {
    transform: translate(0px, 0px);
    rotate: 0deg;
    filter: drop-shadow(0px 10px 8px rgba(68, 132, 186, 1));
  }

  50% {
    transform: translate(1px, -10px);
    rotate: 180deg;
    filter: drop-shadow(0px 10px 8px rgba(72, 0, 255, 0.8));
  }

  100% {
    transform: translate(0px, 0px);
    rotate: 360deg;
    filter: drop-shadow(0px 10px 8px rgba(68, 132, 186, 1));
  }
}

.nuage-images-inspi {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  transform: translate(-50%, -50%);
}

.satelite {
  animation: sateliteanim 30s linear infinite;
  animation-delay: var(--d);
  background: none;
  border: none;
  cursor: pointer;
}

.satelite img {
  height: 10rem;
  width: 15rem;
  clip-path: circle(39% at 50% 50%);
  transition: all 0.1s ease;
}

.satelite img:hover {
  transform: scale(1.05);
}

@keyframes sateliteanim {
  0% {
    transform: rotate(0deg) translateX(20vw) rotate(0deg);
    filter: drop-shadow(0px 10px 8px rgba(68, 132, 186, 1));
  }

  50% {
    transform: rotate(180deg) translateX(20vw) rotate(-180deg);
    filter: drop-shadow(0px 10px 8px rgba(72, 0, 255, 0.8));
  }

  100% {
    transform: rotate(360deg) translateX(20vw) rotate(-360deg);
    filter: drop-shadow(0px 10px 8px #4484ba);
  }
}

.modalpopup[open] {
  display: grid;
  border-radius: 1.25rem;
  border: #004680 solid 5px;
  background: var(--grain), linear-gradient(to right, #4484BA, #004680);
  color: white;
  padding: 0;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto 1fr auto;
  width: 80%;
  grid-template-areas:
    "titre . liens"
    "texte texte texte"
    "gallerie gallerie gallerie"
    "fermer fermer fermer";
}

.modalpopup::backdrop {
  background-color: rgba(0, 0, 0, 0.4);
}

body:has(dialog[open]) {
  overflow: hidden;
}

.titre {
  grid-area: titre;
}

.titre h2 {
  padding: 0.3125rem 1.25rem;
  margin: 0;
  text-align: left;
}

.gallerie {
  grid-area: gallerie;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 0.625rem;
}

.inspirations {
  overflow: hidden;
}

.liens {
  grid-area: liens;
  align-items: center;
  justify-content: right;
}

.textes {
  grid-area: texte;
  text-align: left;
  padding: 0.625rem 1.25rem;
}

.textes h3 {
  text-align: center;
  margin: 0.625rem 0 0 0;
}

.textes a {
  transition: all 0.15s ease-in-out;
  font-weight: 800;
}

.textes a:hover {
  text-shadow: 2px 0 10px #000000;
}

.fermer {
  grid-area: fermer;
  padding: 0.9375rem 0;
}

.fermer button {
  font-family: "Cal Sans", sans-serif;
  font-size: 1.25rem;
  color: white;
  border-radius: 1.25rem;
  border: solid #ffffff 2px;
  padding: 0.3125rem 0.5625rem;
  background-color: #004680;
  cursor: pointer;
  box-shadow: #000 1px 0 20px;
  transition: all 0.1s ease-in-out;
}

.fermer button:hover {
  transform: scale(1.05);
}

.gallerie video,
.gallerie img {
  width: 20rem;
  height: auto;
  border-radius: 0.3125rem;
  border: #004680 solid 2px;
  filter: drop-shadow(0px 10px 15px #004680);
}

.gallerie video:hover,
.gallerie img:hover {
  transform: scale(1.02);
}

/* =========================================
   SECTION CONTACT & FORMULAIRE CORRIGÉ
   ========================================= */

.mecontacter {
  display: flex;
  padding: 2.5rem;
  justify-content: space-between;
  align-items: center;
  gap: 3.125rem;
}

.contactgauche {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 35%;
}

.photo-contact {
  height: 18.75rem;
  width: auto;
  border-radius: 1.25rem;
  border: solid #4484BA 4px;
  box-shadow: 0 10px 20px rgba(0, 70, 128, 0.5);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.photo-contact:hover {
  transform: scale(1.02);
}

.contactgauche p {
  margin-top: 0.9375rem;
  font-size: 1.2rem;
  text-align: center;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(68, 132, 186, 0.8);
}

.contactdroite {
  width: 65%;
}

.contactdroite form fieldset {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contactdroite div {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.contactdroite label {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  color: #4484BA;
  letter-spacing: 1px;
  margin-bottom: 0.3125rem;
}

.contactdroite input[type="text"],
.contactdroite input[type="email"],
.contactdroite textarea {
  width: 100%;
  padding: 0.9375rem;
  border-radius: 0.625rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
  font-family: "Cal Sans", sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contactdroite textarea {
  resize: vertical;
  min-height: 7.5rem;
  max-height: 18.75rem;
}

/* --- LE FAMEUX FIX DU FORMULAIRE : ON MODIFIE L'OMBRE AUSSI --- */
.contactdroite input[type="text"]:focus,
.contactdroite input[type="email"]:focus,
.contactdroite textarea:focus {
  outline: none;
  border-color: #4484BA;
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 15px rgba(68, 132, 186, 0.5);
}

/* Invalide SEULEMENT si l'utilisateur a commencé à taper (pas vide) */
.contactdroite input:not(:placeholder-shown):invalid,
.contactdroite textarea:not(:placeholder-shown):invalid {
  border-color: #FF8314 !important;
  box-shadow: 0 0 15px rgba(255, 131, 20, 0.5) !important;
}

/* Valide SEULEMENT si l'utilisateur a tapé (pas vide) */
.contactdroite input:not(:placeholder-shown):valid,
.contactdroite textarea:not(:placeholder-shown):valid {
  border-color: #28a745 !important;
  box-shadow: 0 0 15px rgba(40, 167, 69, 0.5) !important;
}

/* ------------------------------------------------------------- */

.contactdroite .soumettre {
  align-items: flex-end;
  margin-top: 0.625rem;
}

.contactdroite input[type="submit"] {
  background: linear-gradient(to right, #4484BA, #004680);
  border-radius: 2.125rem;
  border: 1.5px solid #d9d9d9;
  cursor: pointer;
  color: white;
  font-family: "Cal Sans", sans-serif;
  font-weight: bold;
  font-size: 1.2rem;
  padding: 0.625rem 1.875rem;
  transition: all 0.3s ease;
}

.contactdroite input[type="submit"]:hover {
  transform: scale(1.05);
  box-shadow: 0.5px 2px 15px #004680;
}

/* --- FOOTER --- */
.footer-minimal {
  background-color: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  font-size: 0.875rem;
  border-top: 1px solid #e7e7e7;
}

.footer-minimal__container {
  max-width: 71.25rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-minimal__copyright {
  margin: 0;
  text-align: center;
}

.footer-minimal__nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.footer-minimal__nav a {
  color: white;
  transition: color 0.2s ease-in-out;
}

.footer-minimal__nav a:hover {
  color: #008cff;
}

.footer-minimal__nav svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

@media (min-width: 36em) {
  .footer-minimal__container {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* =========================================
   PAGE PROJET INDIVIDUEL (projet.php)
   ========================================= */

.titreprojet {
  font-size: 6.25rem;
  text-align: center;
  color: white;
  flex-grow: 1;
  margin: 0;
  padding: 0;
}

.projetgros {
  flex-wrap: wrap;
  height: 100%;
  margin: 1.875rem 3.75rem;
  position: relative;
  overflow: hidden;
  border: 0.2rem solid #131517;
  border-radius: 0.625rem;
  z-index: 1;
  padding-bottom: 1.25rem;
}

.projetgros::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 0 1.875rem rgba(255, 255, 255, 0.5), 0 0.25rem 0.375rem rgba(0, 0, 0, 0.3);
  z-index: 0;
}

.projetgros * {
  position: relative;
  z-index: 1;
}

.projetgros h1 {
  font-size: 3.75rem;
  margin: 0.625rem;
  margin-bottom: 0;
  text-align: center;
}

.projetgros h2 {
  text-align: center;
  color: white;
  font-size: 2.5rem;
  margin: 2.5rem 0 0 0;
}

.flechegauche,
.flechedroite {
  position: absolute;
  top: 3.125rem;
  z-index: 20;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.flechegauche {
  left: 2.5rem;
  transform: scale(0.5) rotate(180deg);
}

.flechedroite {
  right: 2.5rem;
  transform: scale(0.5);
}

.flechegauche:hover {
  transform: scale(0.6) rotate(180deg);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
  cursor: pointer;
}

.flechedroite:hover {
  transform: scale(0.6);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
  cursor: pointer;
}

.loneadgros {
  background-image: linear-gradient(150deg, rgba(245, 184, 0, 1), transparent), linear-gradient(100deg, rgba(28, 169, 201, 1), transparent), linear-gradient(10deg, rgba(28, 169, 201, 1), transparent);
}

.traildelacroixgros {
  background-image: linear-gradient(150deg, rgb(255, 0, 0), transparent), linear-gradient(100deg, rgb(8, 18, 20), transparent), linear-gradient(10deg, rgb(40, 45, 46), transparent);
}

.auxfrontieresdureelgros {
  background-image: linear-gradient(150deg, rgb(69, 187, 241), transparent), linear-gradient(100deg, rgb(115, 216, 57), transparent), linear-gradient(10deg, rgb(52, 209, 65), transparent);
}

.triplesfrancegros {
  background-image: linear-gradient(150deg, rgb(9, 12, 166), transparent), linear-gradient(100deg, rgb(255, 255, 255), transparent), linear-gradient(10deg, rgb(224, 8, 8), transparent);
}

.geekdaysgros {
  background-image: linear-gradient(150deg, rgb(131, 100, 154), transparent), linear-gradient(100deg, rgb(130, 104, 126), transparent), linear-gradient(10deg, rgb(72, 162, 210), transparent);
}

.dossiersur47dhitmangros {
  background-image: linear-gradient(150deg, #00161A, transparent), linear-gradient(100deg, #E52221, transparent), linear-gradient(10deg, #282d2e, transparent);
}

.exposciencemayenne2026gros {
  background-image: linear-gradient(150deg, #ac540b, transparent), linear-gradient(100deg, #161a17, transparent), linear-gradient(10deg, #073f4a, transparent);
}

.portfoliowebdesigngros {
  background-image: linear-gradient(150deg, #4484BA, transparent), linear-gradient(100deg, #161a17, transparent), linear-gradient(10deg, #004680, transparent);
}

.tagsprojet {
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 0.3125rem 0 0.625rem 0;
  gap: 0.3125rem;
}

.tagprojet {
  font-size: 0.9rem;
  margin-right: 0;
}

.annee {
  text-align: center;
  margin: 0;
  font-size: 1.5625rem;
}

/* =========================================
   EFFETS "EN COURS" (GLOW ET BADGE)
   ========================================= */

@keyframes pulseGlow {
  0% {
    filter: drop-shadow(0 0 2px rgba(255, 131, 20, 0.4));
  }

  100% {
    filter: drop-shadow(0 0 15px rgba(255, 131, 20, 1));
  }
}

@keyframes pulseDot {
  0% {
    opacity: 0.4;
    transform: scale(0.8);
  }

  100% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.carte-en-cours {
  border: 1.5px solid #FF8314;
  animation: pulseGlow 2s infinite alternate;
}

.projetcarte:hover .badge-en-cours {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.badge-en-cours {
  position: absolute;
  top: 0.9375rem;
  right: 0.9375rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  border: 1px solid #FF8314;
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 1.25rem;
  font-size: 0.8rem;
  font-family: "Cal Sans", sans-serif;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 20;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.badge-en-cours::before {
  content: "";
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  background-color: #FF8314;
  border-radius: 50%;
  animation: pulseDot 0.8s infinite alternate;
}

.projetgros-en-cours {
  border-color: #FF8314;
  filter: drop-shadow(0 0 20px rgba(255, 131, 20, 0.4));
}

.badge-gros {
  position: relative;
  top: auto;
  right: auto;
  display: inline-flex;
  margin: 0 auto 0.625rem auto;
  font-size: 1rem;
  padding: 0.5rem 0.9375rem;
  opacity: 1;
}

.presente,
.role,
.conclusion {
  margin: 0.625rem 3.125rem;
}

.outils-projet {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.625rem;
  margin: 0 0 1.25rem 0;
  flex-wrap: wrap;
}

.outil-logo-lien {
  display: inline-block;
  transition: transform 0.2s ease-in-out, filter 0.2s ease-in-out;
}

.outil-logo-lien img {
  height: 2.8125rem;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.4));
}

.outil-logo-lien:hover {
  transform: scale(1.15) translateY(-5px);
  filter: drop-shadow(0 10px 15px rgba(68, 132, 186, 0.6));
}

/* =========================================
   GALLERIE CARROUSEL
   ========================================= */

.image-thumbnail-carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 56.25rem;
  margin: 0 auto 0.625rem;
  gap: 1.5rem;
}

.image-display {
  width: 80%;
  aspect-ratio: 16 / 9;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: #333;
}

.screen {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-display-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.main-display-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.main-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 1.2rem;
  font-family: "Cal Sans", sans-serif;
  transform: translateY(0);
  transition: transform 0.3s ease-out;
  backdrop-filter: blur(5px);
}

.main-display-wrapper:hover .main-overlay {
  transform: translateY(100%);
}

.thumbnail-carousel {
  display: flex;
  align-items: center;
  width: 80%;
  background: rgba(39, 39, 39, 0.4);
  border-radius: 0.9375rem;
  padding: 0.625rem;
  gap: 0.625rem;
}

.carousel__btn {
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0.3125rem;
}

.carousel__btn:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

.arrow-icon {
  width: 1.875rem;
  height: 1.875rem;
  fill: white;
  transition: transform 0.2s;
}

.carousel__btn:hover:not(:disabled) .arrow-icon {
  transform: scale(1.2);
}

.carousel__slider {
  flex: 1;
  display: flex;
  gap: 0.9375rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0.3125rem;
  justify-content: center;
}

.carousel__slider::-webkit-scrollbar {
  display: none;
}

.carousel__slide {
  flex: 0 0 auto;
  cursor: pointer;
  border-radius: 0.625rem;
  border: 3px solid transparent;
  transition: all 0.2s ease;
  padding: 0.125rem;
}

.carousel__slide.active {
  border-color: #5d75f5;
  transform: translateY(-2px);
}

.thumbnail {
  width: 5.625rem;
  height: 3.75rem;
  border-radius: 0.375rem;
  overflow: hidden;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 75em) {
  @keyframes sateliteanim {
    0% {
      transform: rotate(0deg) translateX(14.375rem) rotate(0deg);
      filter: drop-shadow(0px 10px 8px rgba(68, 132, 186, 1));
    }

    50% {
      transform: rotate(180deg) translateX(14.375rem) rotate(-180deg);
      filter: drop-shadow(0px 10px 8px rgba(72, 0, 255, 0.8));
    }

    100% {
      transform: rotate(360deg) translateX(14.375rem) rotate(-360deg);
      filter: drop-shadow(0px 10px 8px #4484ba);
    }
  }
}

/* --- RESPONSIVE DESIGN (MOBILE) EN EM/REM --- */
@media (max-width: 56.25em) {
  .animation-container {
    height: auto !important;
    padding: 1.25rem 0;
  }

  .sticky-wrapper {
    position: relative !important;
    top: 0 !important;
    height: auto !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    overflow: visible;
  }

  .hero-title {
    position: relative !important;
    top: 0 !important;
    font-size: 3.5rem !important;
  }

  .hero-texte {
    position: relative !important;
    top: 0 !important;
    font-size: 1.5rem !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .box-1 {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    width: 90% !important;
    opacity: 1 !important;
  }

  .box-1 img {
    width: 100%;
    position: relative;
  }

  .nuage-mots {
    display: none !important;
  }

  .description-profil {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    width: 95% !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    margin-top: 1.25rem;
  }

  .comp {
    display: flex;
    flex-direction: column;
  }

  .compcol {
    border: none;
    border-bottom: 1px solid #4484ba;
    padding: 0.9375rem;
  }

  .compdetails {
    border: none;
    border-top: 5px solid #4484ba;
    padding-bottom: 1.25rem;
  }

  .compgrand p {
    font-size: 1.2rem;
  }

  .tags {
    margin-left: 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.625rem;
  }

  .vl {
    display: none;
  }

  .projets {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.625rem;
    padding: 0.625rem;
    grid-auto-rows: 15.625rem;
  }

  .cartecontenu h3 {
    font-size: 1.3rem;
  }

  .tagsdescription {
    display: none;
  }

  header {
    flex-direction: column;
    gap: 0.625rem;
  }

  .navpage li {
    font-size: 1.2rem;
    margin: 0 0.5rem;
  }

  .presentationLeStudio {
    flex-direction: column;
    gap: 1.25rem;
  }

  .presentationLeStudio img {
    width: 100%;
    max-width: 18.75rem;
  }

  .liens-container {
    flex-wrap: wrap;
    justify-content: center;
  }

  .satelite img {
    height: 5rem;
    width: 7.5rem;
  }

  .modalpopup[open] {
    grid-template-columns: 1fr;
    grid-template-areas: "titre" "liens" "texte" "gallerie" "fermer";
    width: 95%;
    padding: 0.625rem;
  }

  .gallerie {
    flex-direction: column;
    align-items: center;
  }

  .gallerie video,
  .gallerie img {
    width: 100%;
  }

  .mecontacter {
    flex-direction: column;
    padding: 1.25rem;
  }

  .contactgauche,
  .contactdroite {
    width: 100%;
  }

  .studio-timeline {
    flex-direction: column;
    border-left: 3px solid #4484BA;
    margin-left: 0.9375rem;
    padding-left: 0;
  }

  .studio-timeline li {
    text-align: left;
    padding-top: 0;
    padding-left: 1.5625rem;
    padding-bottom: 1.5625rem;
  }

  .studio-timeline li:last-child {
    padding-bottom: 0;
  }

  .studio-timeline li::before {
    display: none;
  }

  .studio-timeline li::after {
    top: 0;
    left: -1.5px;
    transform: translateX(-50%);
  }

  .studio-timeline li:hover::after,
  .studio-timeline li.timeline-future:hover::after {
    transform: translateX(-50%) scale(1.6);
  }
}

/* =========================================
   CAPSULES DE NOTIFICATION (CONTACT FORM)
   ========================================= */
.messagesucces,
.messageerreur {
  display: block;
  width: max-content;
  max-width: 90%;
  margin: 1.25rem auto;
  padding: 0.625rem 1.5rem;
  border-radius: 3.125rem;
  font-family: "Cal Sans", sans-serif;
  font-size: 1rem;
  text-align: center;
  font-weight: 500;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: apparitionCapsule 0.4s ease-out forwards;
}

.messagesucces {
  background-color: rgba(68, 132, 186, 0.15);
  border: 1.5px solid #4484BA;
  color: #a2cfff;
  box-shadow: 0 4px 15px rgba(68, 132, 186, 0.25);
}

.messageerreur {
  background-color: rgba(255, 131, 20, 0.15);
  border: 1.5px solid #FF8314;
  color: #ffb373;
  box-shadow: 0 4px 15px rgba(255, 131, 20, 0.25);
}

@keyframes apparitionCapsule {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}