/* CSS général */

@font-face{
  font-family: "cinzel";
  src: url(./fonts/Cinzel-Bold.otf);
}


@font-face{
  font-family: "cinzel-deco";
  src: url(./fonts/CinzelDecorative-Bold.otf);
}

html{
  font-size: 20px;
  overflow-x: hidden;
  color: #F3F3F3;
}

h1, h2, h3, h4{
  font-family: "cinzel-deco";
}

h1{
  font-size: 3rem;
}

h2{
  font-size: 3rem;
}

a{
  text-decoration: none;
  color: inherit;
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  min-height: 100vh;
  z-index: 0;
  /* overflow: hidden; <-- Supprime ou commente cette ligne */
  background: #16191B;
}

#introVideo {
  width: 100%;
  height: 75vh;
  object-fit: contain;
}

@keyframes slideRightToLeft {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}
/*
#about, #work {
  padding: 40px;
  margin: 20px 0;
  text-align: center;
}
*/
footer {
  color: #fff;
  text-align: center;
  padding: 10px 0;
}

@keyframes subtleRotate {
  0% {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg);
  }
  50% {
    transform: perspective(1000px) rotateX(-2deg) rotateY(2deg);
  }
  100% {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg);
  }
}
/*
.qui-suis-je {
  position: relative;
  background-color: rgba(17, 17, 17, 0.8);
  color: #fff;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  border: 1px solid #444;
  font-family: 'Courier New', monospace;
  overflow: hidden;
  transform-style: preserve-3d;
  animation: subtleMove 8s ease-in-out infinite;
}

.qui-suis-je::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: inherit;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: invert(1) brightness(0.7);
  opacity: 0.1;
  z-index: 0;
}

.qui-suis-je > * {
  position: relative;
  z-index: 1;
}

@keyframes subtleMove {
  0%, 100% {
    transform: perspective(1000px) rotateX(2deg) rotateY(0deg) translateX(0) translateY(0);
  }
  25% {
    transform: perspective(1000px) rotateX(3deg) rotateY(2deg) translateX(3px) translateY(-3px);
  }
  50% {
    transform: perspective(1000px) rotateX(2deg) rotateY(0deg) translateX(0) translateY(0);
  }
  75% {
    transform: perspective(1000px) rotateX(1deg) rotateY(-2deg) translateX(-3px) translateY(3px);
  }
}

.qui-suis-je h2 {
  font-weight: 900;
  font-size: 2.5rem;
  letter-spacing: 0.1em;
  color: #0ff;
  position: relative;
  animation: glitch 2s infinite;
  text-transform: uppercase;
}

@keyframes glitch {
  0% {
    text-shadow:
      2px 0 #ff00c8,
      -2px 0 #00fff7;
  }
  50% {
    text-shadow:
      -2px 0 #ff00c8,
      2px 0 #00fff7;
  }
  100% {
    text-shadow:
      2px 0 #ff00c8,
      -2px 0 #00fff7;
  }
}

.qui-suis-je p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ccc;
  max-width: 700px;
  margin-top: 1rem;
  letter-spacing: 0.02em;
  text-shadow: 0 0 3px #00fff7;
}
 */
.madsoo-bg {
  position: absolute;
  top: 50%;
  white-space: nowrap;
  transform: translateY(-50%);
  left: 100%;
  font-size: 30rem;
  font-weight: bold;
  color: rgba(163, 193, 209, 0.05);
  font-family: 'Courier New', monospace;
  animation: madsooScrollLeft 30s linear infinite;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

@keyframes madsooScrollLeft {
  0% {
    left: 100%;
  }
  100% {
    left: -100%;
  }
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}


.cube-container {
  position: relative;
  overflow: visible;
}
  
.cube {
  margin: 200px 0;
  width: 300px;
  height: 300px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(0deg) rotateY(0deg);
  animation: rotate 10s infinite linear, randomRotation 10s infinite linear;
}

.cube .side {
  position: absolute;
  width: 300px;
  height: 300px;
  background-color: #fff;
  background-size: cover;
  background-position: center;
  border: 5px solid #000;
}

.cube .front { transform: translateZ(150px); }
.cube .back { transform: rotateY(180deg) translateZ(150px); }
.cube .left { transform: rotateY(-90deg) translateZ(150px); }
.cube .right { transform: rotateY(90deg) translateZ(150px); }
.cube .top { transform: rotateX(90deg) translateZ(150px); }
.cube .bottom { transform: rotateX(-90deg) translateZ(150px); }

@keyframes rotate {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }  
}

@keyframes randomRotation {
  0% {
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  }
  25% {
    transform: rotateX(180deg) rotateY(0deg) rotateZ(180deg);
  }
  50% {
    transform: rotateX(0deg) rotateY(180deg) rotateZ(180deg);
  }
  75% {
    transform: rotateX(180deg) rotateY(180deg) rotateZ(0deg);
  }
  100% {
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  }
}


/* AJOUT CSS */


.realisations .cards{
  display: flex;
  flex-wrap: wrap;
  width: 1440px;
  margin: 0 auto;
}

.realisations .card{
  width: calc(100% / 12 * 3);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  transition: filter .5s ease-in-out, transform .5s ease-in-out;
  transform: scale(1);
  filter:grayscale(1);
  padding: 20px;
  cursor: pointer;
}

.realisations .card:hover{
  transform: scale(1.2);
  filter: grayscale(0);
}

.realisations .card img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.realisations .card-carre img{
  object-fit: cover;
  border-radius: 20px;
}


/* MODAL */

.modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  transition: opacity 0.3s ease;
}

.modal.hidden {
  display: none;
}

.modal img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 20px #000;
  pointer-events: none;
}

.modal .close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
}

.modal .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  padding: 0 15px;
  user-select: none;
}

.modal .prev {
  left: 10px;
}

.modal .next {
  right: 10px;
}


.contact{
  background: #1b1e21;
  padding: 100px 0;
}

.contact h2{
  text-align: center;
  margin-bottom: 50px;
  font-size: 3em;
}
.contact form{
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: end;
  gap: 25px;
  width: 700px;
  margin: auto;
}

.contact form input, .contact form textarea, .contact form button{
  padding: 20px;
  width: 100%;
}

.contact form button{
  width: fit-content;
  padding: 15px 30px;
}

.contact form textarea{
  resize: none;
}

.nav-toggle{
  z-index: 9999;
  position: absolute;
  top: 0;
  right: 0;
  cursor: pointer;
}

/* .nav-toggle.nav-cat .bar{
background: #16191b;
} */ 

.bars{
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bar{
  width: 50px;
  height: 5px;
  background: #F3F3F3;
}

.bars-open > .bar:nth-child(1){
  transform: rotate(45deg);
  margin-top: 20px;
}

.bars-open > .bar:nth-child(2){
  opacity: 0;
}

.bars-open > .bar:nth-child(3){
  margin-top: -30px;
  transform: rotate(-45deg);
}


nav{
  z-index: 9998;
  position: absolute;
  right: 0;
  top: 0;
  height: 100vh;
  width: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px;
  gap: 50px;
  background: rgba(0, 0, 0, .8);
  transition: transform .5s ease-in-out;
  transform: translateX(500px);
}

.nav-open{
  transform: translateX(0px);
}

nav ul{
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

nav ul a{ /* liens */
  font-size: 2rem;
}

nav .image-box{
  width: 100px;
  margin: 0 auto;
}

nav img, footer img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

footer{
  margin-top: 100px;  
  background: black;
}

.footer-top{
  padding: 50px 0;
}

.footer-top ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-middle{
  display: flex;
  justify-content: center;
}

.footer-bottom{
  width: calc(100% / 12 * 8);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
}

.footer-logo{
  width: 75px;
}

section.design, section.webdesign, section.plus, section.digital-marketing{
  display: flex;
  justify-content: center;
  align-items: center;
  width: calc(100% / 12 * 8);
  margin: 0 auto;
  gap: 250px;
}

section.webdesign, section.plus{
  flex-direction: row-reverse;
}

section.about {
  padding: 100px 0;
  width: calc(100% / 12 * 8);
  margin: 0 auto;
}

section.about p{
  margin-bottom: 25px;
  line-height: 25px;
}

section.about h2{
  font-size: 2em;
  margin-bottom: 25px;
}

section.about .text{
  margin-bottom: 50px;
}

section.about img{
  width: calc(100% / 12 * 8);
}

section .text{
  display: flex;
  flex-direction: column;
  gap: 25px;
}

section h2{
color: #cee4e6;
}

.marketingcrea {
  display: flex;
  gap: 25px;
}

.marketingcrea .card{
  width: 250px;
  display: flex;
  flex-direction: column;
  transition: filter .3s ease-in-out, transform .3s ease-in-out;
  filter: grayscale(1);
}

.marketingcrea .card:hover{
  transform:translateY(-20px);
  filter: grayscale(0);
}

.marketingcrea .card:first-child{
  background: #eff1ed;
}

.marketingcrea .card:last-child{
  background: #243354; 
}

.marketingcrea .card:first-child span{
  background: #531d12;
}

.marketingcrea .card:last-child span{
  background: #BD7226;
}


.marketingcrea img{
  width: 100%;
  height: 250px;
  object-fit: contain;
  padding: 10px;
}

.marketingcrea span{
  display: block;
  padding: 20px;
  background: #000;
  text-align: center;
  text-transform: uppercase;
}


.gallerie {
  display: flex; flex-direction: column-reverse;
}

.gallerie h2{
  margin-top: -100px;
  font-size: 2em;
}

.h-category{
  background: #cee4e6; 
  height: 350px; 
  margin-bottom: 100px; 
  display: flex; 
  justify-content: center; 
  align-items: center; 
}

.h-category h1{
  text-transform: uppercase; 
  color: #16191B; 
}

.notice {
  width: calc(100% / 12 * 8);
  margin: 0 auto; /* centre horizontalement */
}

.notice p{
  font-size: 12px;
  
}
.notice h3 {
  font-size: smaller;
  margin-top: 2rem; /* espace au-dessus */
  margin-bottom: 1rem; /* espace en-dessous */
}

.btn{
  background-color: #CEE4E6;
  width: fit-content;
  padding: 15px 25px;
  color: #16191B;
}

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

  html {
    font-size: 16px;
  }

  h1{
    font-size: 2rem;
  }
  
  h2{
    font-size: 2rem;
  }
  .nav-toggle{
    position: fixed;
    top: 0;
    right: 0;
    background-color: #000;
  }

  nav{
    position: fixed;
    width: 250px;
    transform: translateX(250px);
  }

  section.design, section.webdesign, section.plus, section.digital-marketing{
    margin-bottom: 50px;
    width: calc(100% / 12 * 10);
  }

  .cube .side, .cube {
    width: 225px;
    height: 225px;
  }

  .realisations .cards, section.about, .contact form{
    width: calc(100% / 12 * 10);
  }

  .realisations .card{
    width: calc(100% / 12 * 4);
  }

  section.design, section.webdesign, section.plus, section.digital-marketing{
    flex-direction: column;
    gap: 0;
  }

  section.webdesign{
    justify-content: column-reverse;
  }

  section.digital-marketing{
    gap: 50px;
  }

  .marketingcrea .card {
    width: 50%;
  }

  .footer-bottom{
    width: calc(100% / 12 * 10);
    padding-top: 20px;
    flex-direction: column;
  }

  footer {
    font-size: 0,3rem;
  }
  .footer-top ul {
    flex-direction: column;
  }
}