* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
  }


html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .video.active { animation: none; }
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid #ffc60a;
  outline-offset: 3px;
}

.portfolio-message {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  font-family: "Montserrat", sans-serif;
}

Body {
  font-family: "Cutive Mono", monospace;
  background-color: #f5f5f3;
  color: #28282a;
}

H1,H2,H3 {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
} 

H2 {
    font-size: clamp(3rem, 3.3vw, 4rem);
    width: fit-content;
    padding: 0 1rem;
}

.h2b {
    background: linear-gradient(
        to bottom,
        transparent 60%,
        #ffc60a 60%
    );
}

.h2n {
    background-color: #ffc60a;
    color: #28282a;
}

iframe {
    aspect-ratio: 16 / 9;
    width: 100%;
    border: none;
}



/********** Menu **********/

.site-header {
    padding: 3rem clamp(1.5rem, 2.5vw,3rem);
    border-bottom: 1px solid #28282a;
    font-size: 1.2rem;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    letter-spacing: 0.2rem;
    background: linear-gradient(
        to bottom,
        transparent 60%,
        #ffc60a 60%
    );
    user-select: none;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav li {
    position: relative;
}

.pres {padding: 0 clamp(1.3rem, 2vw,2.5rem) 0 0;}

.port {padding: 0 clamp(1.3rem, 2vw,2.5rem) 0 2rem;}

.cont {padding: 0 0 0 clamp(2rem, 2vw,2.5rem);}

.nav a {
    text-decoration: none;
    color: #28282a;
    letter-spacing: 0.1rem;
    background: transparent;
    background-image: linear-gradient(
        to bottom,
        transparent 60%,
        #ffc60a 60%
    );
    background-size: 100% 0%;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size 0.35s ease;
}

.nav a:hover {
    background-size: 100% 100%;
}

.nav li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(40px, 2.6vw,50px);
    height: 1px;
    background-color: #28282a;
}

/********** Hamburger **********/

/* --- Bouton hamburger (caché en desktop) --- */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 1001; /* au-dessus du fond */
}

.menu-toggle .bar {
  display: block;
  width: 28px;
  height: 2px;
  margin: 6px auto;
  background: #28282a;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

/* --- Animation croix (ton code, légèrement ajusté) --- */
.menu-toggle.open .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- Mobile à partir de 768px --- */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: absolute;
  }

  /* Le nav devient un fond plein écran */
  .nav {
    position: fixed;
    inset: 0;                 /* top/right/bottom/left:0 */
    background: #28282a;      /* fond sombre */
    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1000;
  }

  /* OUVERT */
  .nav.open {
    opacity: 1;
    pointer-events: auto;
  }

  /* Liens en colonne, centrés */
  .nav ul {
    flex-direction: column;
    gap: 4.6rem;
    padding: 0;
    margin: 0;
    text-align: center;
  }

  .nav li {
    padding: 0; /* on enlève ton padding horizontal en mobile */
  }

  .nav a {
    color: #f5f5f3;
    font-size: 1.6rem;
    letter-spacing: 0.12rem;

    /* si tu veux garder ton highlight jaune, ça marche aussi sur fond sombre */
  }

  .nav li:not(:last-child)::after {
    display: none;
}

 .header-container {
    position: relative;
  }

  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
  }

  .menu-toggle.open .bar {
  background-color: #f5f5f3;
}

.nav a:hover {
    background-size: 0% 0%;
}
}


/********** Intro **********/

.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.5vw 3vw;
  gap: 3rem;
}

.intro h1 {
  font-size: clamp(1rem, 7.5vw, 11rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.2rem;
}

.intro-image img {
  width: 100%;
  height: auto;
  display: block;
}

/********** Presentation **********/

.presentation {
  background-color: #28282a;
  color: #f5f5f3;
  display: flex;
  gap: clamp(3rem, 6vw, 7rem);
  padding: clamp(4rem, 5vw, 6rem) clamp(3rem, 7.5vw, 9rem);
  letter-spacing: -0.1rem;
}

.presentation img {
  width: 35%;
  margin: auto 0;
}

#pres2 {display: none;}

.presentation_texte {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 4vw, 6rem);
}

.presentation p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
}

/********** Portfolio **********/

.portfolio {
    padding: 3rem clamp(1rem, 2vw, 9rem);
    text-align: center;
}

  /* Affiche le dropdown */
  .portfolio-dropdown {
    display: block;
    position: relative;
    margin-bottom: 2rem;
  }

  .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.3rem;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    cursor: pointer;
    background: #e3e3e3;
    color: #28282a;
    border: none;
    border-radius: 0.8rem;
    padding: 0.7rem 1.2rem;
  }

  .dropdown-icon {
    transition: transform 0.25s ease;
  }

  .portfolio-dropdown.open .dropdown-icon {
    transform: rotate(180deg);
  }

  .dropdown-menu {
    position: absolute;
    left: 50%;
    width: 15%;
    transform: translateX(-50%);
    top: calc(100% + 0.8rem);
    background: #28282a;
    border-radius: 0.8rem;
    padding: 0.6rem;
    min-width: 120px;
    z-index: 10;
    text-decoration: none;
    list-style: none;
    display: none;
  }

  .portfolio-dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown-item {
    width: 100%;
    text-align: center;

    font-size: 1.1rem;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;

    cursor: pointer;
    background: transparent;
    color: #f5f5f3;
    border: none;
    border-radius: 0.6rem;
    padding: 0.8rem 1rem;
  }

  .dropdown-item:hover,
  .dropdown-item.active {
    background: #ffc60a;
    color: #28282a;
  }


.portfolio h2 {
    margin-bottom: clamp(1.5rem, 2.5vw,3rem);
    display: inline-block;
}

.portfolio-title {
    cursor: pointer;
}


.portfolio-videos {
    display: grid;
    grid-template-columns: repeat(2, clamp(27rem, 29vw, 35rem));
    gap: 2rem;
    justify-content: center;
}

.video {
    display: none;
}

.video.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/********** Showreel **********/

#showreel {

    padding: clamp(2rem, 3.3vw,3rem);
    background-color: #28282a;
    color: #f5f5f3;
    text-align: center;
}

#showreel h2 {
    margin: 0 auto;
}

#showreel h3 {
    font-size: clamp(1.2rem, 1.5vw,1.8rem);
    padding: 2rem 0;
}

#showreel_container2 {
    max-width: 1100px;
    margin-right:auto;
    margin-left:auto;
}

#showreel_container3 {
    position: relative;
    padding-top: 56.3%;
}

#showreel_container3 iframe{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/********** Contact **********/

.contact {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 2vw, 10rem);
    text-align: center;
    font-family: "Montserrat", sans-serif;
    padding: 7rem clamp(2rem, calc(-205.4px + 23.214vw), 15rem);
    font-size: 1.3em;
}

.contact a {
    display: flex;
    color: #28282a;
    gap: 0.7rem;
}

.contact img {
    width: 32%;
    height: auto;
    align-self: center;
}

.contact h2 {
    margin: 0 auto;
}

.contact_container1 {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: 0 clamp(1rem, calc(-57.14px + 7.1428vw), 5rem);
}

.contact_container2 {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    font-weight: 600;
}

.contact_container3 {
    display: flex;
    justify-content: center;
    gap: 3.2rem;
}

.contact i {
    font-size: 1.8rem;
    line-height: 1.6rem;
    color: #ffbe0a;
}

/********** Footer **********/

#rs {
    background-color: #2B2B2B;
    padding: 1rem;
    display: flex;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
}

.rs_container {
    padding: 0.7rem;
    text-decoration: none;
}

#rs i {
    color: white;
    transition: 0.3s;
}

#rs :hover i {
    transform: translateY(-6px);
    color: #ffc60a;
}

#insta {
    font-size: 1.9rem;
    line-height: 1.7rem;
}

#rs a {
    padding: 0.6rem;
    display: inline-flex;
}

.rs_container:hover i::after{transition: 0.3s;}

#info {
    background-color: #3B3B3B;
    text-decoration: none;
    line-height: 1.5rem;
    padding: 1.2rem;
    text-align: center;
    color: #808080;
    font-size: 1rem;
    font-family: "Montserrat", sans-serif;
}

@media screen and (max-width: 1044px) and (min-width: 769px) {
   .site-header {
    padding: 2rem 1.5rem;
}
   
    .header-container {
    flex-direction: column;
    gap: 2rem;
   }
}

@media screen and (max-width:960px) {
   
    .portfolio-videos {
    display: flex;
    flex-direction: column;
    }

    .portfolio {
    padding: 2rem clamp(2rem, 6vw, 6rem);
    text-align: center;
    }
}


@media screen and (max-width:768px) {

    H2 {
    font-size: clamp(2rem, 6vw, 3rem);
}
   
    .intro-image img {display: none;}

.intro {
  align-items: center;
  padding: 3vw 3vw;
}

.intro h1 {
  font-size: 13vw;
  line-height: 1.1;
  font-weight: 800;
}

.presentation {
  flex-direction: column;
  text-align: center;
  padding: 2rem;
}

.presentation img {
  width: 60%;
  margin: auto;
}

#pres1 {display: none;}
#pres2 {display: block;}

.presentation h2 {margin: 0 auto;}

.contact img {
    display: none;
}

#showreel {
    padding: 2rem 1rem;
}

.contact {
    padding: 2rem 1rem
}

.contact_container3 {
    flex-direction: column;
}
}

@media screen and (max-width:560px) {

    .presentation img {
  width: 90%;
}
}