
@import url('https://fonts.googleapis.com/css2?family=ABeeZee:ital@0;1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

  body{
    background-color: #1F2024;
    color: whitesmoke;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    
   
  }

  #textContainer {
    position: absolute;
    top: 70%;
    left: 70%;
    width: 700px;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: white;
    opacity: 0; /* Texte invisible au départ */
    transition: opacity 15s ease; 
    font-family: 'ABeeZee', sans-serif;
    line-height: 1.5;
    hyphens: auto;
    word-break:keep-all;

  }


  canvas {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    border: none;
    background-color: #1F2024;
  }

#text-container{
    font-size: 100px;
    position: relative;
    top: 250px;
    left: 50px;
}


hr{
  width: 10px;
  background-color: #1F2024;
  border: none;
}


h2{
  font-size: 20px;
    font-family: 'ABeeZee', sans-serif;
    position: relative;
    left: 50px;
}

h3{
  font-size: 15px;
    font-family: 'ABeeZee', sans-serif;
    position: relative;
}

h5{
  font-size: 60px;
  font-family: 'ABeeZee', sans-serif;
  position: relative;
}


#adresse{
  margin-top: -80px;
  font-size: 20px;

}


#cat-intro {
  width: 100%;
  height: 100vh;
  background: none;
}

#cat-projets {
  margin-left: 50px;
  width: calc(100% - 100px);
}

#contact{
  margin-top: 380px;
  width: 100%;
  height: 20vh;
}

a{
color: white;
position: relative;
text-decoration: none;
font-style: bold;
font-size: 15px;
font-family: 'Montserrat';
  }

  .accueil{
    float: left;
    left: 50px;
  }

  nav{
    position: fixed;
    top: 50px;
    left: 50px;
    width: calc(100% - 100px);
    text-align: left;
    word-spacing: 30px;

  }

  #presentation{
    position: relative;
    font-family: 'Montserrat';
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    width: 500px;
  }

  #text {
    margin: 0;
    /*margin-top: 150px;*/
    width: calc(100% - 100px);
  }

  /* grille img */
  
  .image-grid {
    width: 80%;
    height: auto;
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 40px;
    left: 170px;
}

.grid-item {
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    
}


/*survol*/
.overlay-text {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 24px;
  text-align: center;
}

/* Style pour assombrir l'image au survol */
.grid-item:hover img {
  opacity: 0.7;
}

#img1 {
    grid-column: 1;
    grid-row: 2;
    align-items: flex-start;
}

#video1 {
    grid-column: 2;
    grid-row: 2;
    width: 120%;
    height: auto;
    align-items: flex-start;
}

#img2 {
    grid-column: 3;
    grid-row: 1;

}


#img3 {
  position: relative;
    grid-column: 1;
    grid-row: 2;
    top: 210px;
}


#img5 {
  grid-column: 3;
    grid-row: 2;
    justify-self: end;
    width: 80%;
    height: auto;
}

#video2 {
    grid-column:1;
    grid-row: 3;
    position: relative;
    top: 120px;
}

#img6 {
    grid-column: 2;
    grid-row: 3;
    align-items: start;
    justify-content: start;
    width: 110%;
}

#img7 {
    grid-column: 3;
    grid-row: 3;
    width: 90%;
    justify-self: end;
}

#video3 {
    grid-column: 2;
    grid-row: 4;
    width: 70%;
    position: relative;
    top: -15px;


}

#img8{
  grid-column: 3;
  grid-row: 4;
  width: 70%;
  justify-self: left;
}



.grid-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.grid-item video {
  width: 100%;
  height: auto;
  object-fit: contain; 
  border-radius: 8px;
  align-items: flex-start;

}


/* slider*/
#slide{
  position: relative;
  width: 50%;
  height: auto;
}


#slider {
  position: relative;
  width: 2300px;
  margin: auto;
  display: flex;
  align-items: center;
}

#precedent,
#suivant {
  cursor: pointer;
  transition: opacity 0.3s ease;
  opacity: 0;
  position: absolute;
  font-size: 10px;
  color: rgba(220, 220, 220, 0.8);
  background-color: rgba(0, 0, 0, 0.8);
}

#precedent {
  left: 0;
}

#suivant {
  right: 0;
}

#slider:hover #precedent,
#slider:hover #suivant {
  opacity: 1;
}



.fin{
position: relative;
background-color: #1F2024;
font-family: 'ABeeZee', sans-serif;
width: inherit;
}

.suzie{
  position: relative;
  left: 50px;
  top: 40px;
  font-size: 40px;
}

.mail{
  position: relative;
  left: 50px;
  top:40px;
}

.contact{
  position: relative;
  top: 1750px;
  left: 1250px;
}



/***** GRILLE *****/

.gridywrap div[class*=gridy] {
  float: left;
  position: relative;
}
.gridywrap .gridy-1,
.gridywrap .gridy-2,
.gridywrap .gridy-3 {
  width: 320px;
  overflow: hidden;
  
}

.gridywrap .gridy-1 {width: 100%;}
.gridywrap .gridy-2 {width: 100%;}
.gridywrap .gridy-3 {width: 100%;}

.gridywrap .gridyhe-1 {height: 320px;}
.gridywrap .gridyhe-2 {height: 320px;}


@media screen and (min-width: 640px) {
  .gridywrap .gridyhe-2 {height: 320px;}
  .gridywrap {
    width: 100%;
  }
  .gridywrap .gridy-1 {width: 50%;}
  .gridywrap .gridy-2 {width: 50%;}
  .gridywrap .gridy-3 {width: 100%;}
}
@media screen and (min-width: 1024px) {
  .gridywrap .gridy-1 {width: 33.3%;}
  .gridywrap .gridy-2 {width: 66.6%;}
  .gridywrap .gridy-3 {width: 100%;}
  .gridywrap .gridyhe-2 {height: 640px;}
}

/*styling*/
.gridywrap .gridimg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  background-position: center center;
  background-size: cover;
  
  
}

.gridywrap .gridimg img {
  width: 100%;
}







.gridywrap .gridinfo {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(0,0,0,0.4);
  text-align: center;
  transition: all 0.8s;
}

.gridywrap .gridinfo h3 {
  font-size: 24px;
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
  margin: 130px 0 20px;
  position: relative;
  
}

.gridywrap .gridinfo h3:after {
  content: '';
  width: 25px;
  border-top: 4px solid #fff;
  display: block;
  margin: 0 auto;
  margin-top: 25px;
}

.gridywrap .gridinfo .gridmeta {
  transition-delay: 0.25s;
}

.gridywrap .gridinfo .gridmeta p {
  display: inline-block;
  font-size: 13px;
  color: #fff;
  margin-bottom: 15px;
}

.gridywrap .gridinfo .gridmeta p i {
  margin-right: 5px;
}

.gridywrap .gridinfo .gridmeta p.gridwho {
  margin-left: 25px;
}

.gridywrap .gridinfo p.gridexerpt {
  width: 60%;
  margin: 0 auto;
  line-height: 22px;
  margin-bottom: 25px;
  color: #fff;
  transition-delay: 0.5s;
}

.gridywrap .gridinfo * {
  opacity: 0;
  transition: all 0.8s;
}
.gridywrap .gridinfo h3 {
  opacity: 1;
}
.gridywrap .gridinfo .grid-btn {
  color: #fff;
  text-decoration: none;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  line-height: 35px;
  border-radius: 25px;
  border: 1px solid #fff; 
  display: block;
  overflow: hidden;
}


.gridywrap .gridinfo .grid-btn span {
  opacity: 0;
  display: none;
  transition: opacity 0.8s;
}

.gridywrap .gridinfo .grid-btn:hover span {
  opacity: 1;
  display: inline;
}

.gridywrap .gridinfo .grid-btn:hover i {
  opacity: 0;
  display: none;
}

.gridywrap .gridinfo:hover * {
  opacity: 0;
}

.gridywrap .gridinfo:hover p {
  opacity: 1;
}

.gridywrap .gridinfo:hover {
  background: rgba(0,0,0,.8);
}

.gridywrap .gridinfo:hover h3 {
  margin-top: 70px;
  opacity: 1;
}

.grid-more {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
 background-color: #1F2024;

}

p{
  font-family: 'ABeeZee', sans-serif;
}



