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

body{
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    flex-direction: column;
    max-width: 100vw;background-image: linear-gradient(12deg, rgba(193, 193, 193,0.05) 0%, rgba(193, 193, 193,0.05) 2%,rgba(129, 129, 129,0.05) 2%, rgba(129, 129, 129,0.05) 27%,rgba(185, 185, 185,0.05) 27%, rgba(185, 185, 185,0.05) 66%,rgba(83, 83, 83,0.05) 66%, rgba(83, 83, 83,0.05) 100%),linear-gradient(321deg, rgba(240, 240, 240,0.05) 0%, rgba(240, 240, 240,0.05) 13%,rgba(231, 231, 231,0.05) 13%, rgba(231, 231, 231,0.05) 34%,rgba(139, 139, 139,0.05) 34%, rgba(139, 139, 139,0.05) 71%,rgba(112, 112, 112,0.05) 71%, rgba(112, 112, 112,0.05) 100%),linear-gradient(236deg, rgba(189, 189, 189,0.05) 0%, rgba(189, 189, 189,0.05) 47%,rgba(138, 138, 138,0.05) 47%, rgba(138, 138, 138,0.05) 58%,rgba(108, 108, 108,0.05) 58%, rgba(108, 108, 108,0.05) 85%,rgba(143, 143, 143,0.05) 85%, rgba(143, 143, 143,0.05) 100%),linear-gradient(96deg, rgba(53, 53, 53,0.05) 0%, rgba(53, 53, 53,0.05) 53%,rgba(44, 44, 44,0.05) 53%, rgba(44, 44, 44,0.05) 82%,rgba(77, 77, 77,0.05) 82%, rgba(77, 77, 77,0.05) 98%,rgba(8, 8, 8,0.05) 98%, rgba(8, 8, 8,0.05) 100%),linear-gradient(334deg, hsl(247,0%,2%),hsl(247,0%,2%));
    color: #F2FDFF;
   
}
header{

    padding: 4rem;
    
}
.header-box{
    display: flex;
    max-width:900px;
    margin: auto;
    /* border: 3px solid white; */
    
}
.sasuke{
    
    max-width: 25%;
    

}
.content-header{
    width: 75%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.text-header{
    
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 3rem;
    background-color: #170312;
}
.header-icone{
    position: relative;
    background-color: #170312;
    
}
.forh1{
    width: 100%;
    
}
h1{
    text-align: start;
}

.younamar{
    position: absolute;
    right: 20px;
    bottom: 10px;
}
.btn{
    visibility: hidden;
}

/* --------------------------apres le header------------------ */

.container{

    flex-direction: row;
    flex-wrap: wrap;
    display: flex;
    width: 1000px;
    justify-content: space-between;
    margin: auto;
    gap: 20px;

}
.image{

    width: 100%;
    overflow: hidden;
    max-height: 45%;
}
.image img{
    object-fit:cover;
}
.icone-title{
    
    padding: 10px;
width: 100%;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center
}
.icone{
    width: fit-content;
}
.description{
    display: flex;
    padding: 15px;
    width: 100%;
    font-size: 16px;
}
.card{
    overflow: hidden;
    border-radius: 5%;
    width: 300px;
    max-height: 400px;
    display: flex;
    flex-direction: column;
    color: #170312;
    background-color: #F2FDFF;
    box-shadow: 0px 3px 10px 3px rgba(142, 131, 131, 0.97);
}


/* ---------------------- footer---------------------- */

footer {
      margin-top: 50px;
      border-top: 10px solid #49A078;
      background: linear-gradient(0deg, #235789, #8B4513);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 10px;
      width: 100%;
      padding: 10px;
      font-size: 20px;
      color: white;
      
    }
    .dictature{
        display: flex;
        flex-direction: row;
        margin: auto;
        width: 60%;
        padding: 20px;
        gap:20px
    }
    .info-footer {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
    }

    .info-footer p{
        font-size: 18px;

    }
    .image-footer{
        width: 30%;
        

    }
    .image-footer img {
        object-fit: cover;
        box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.75);
    }
    .fa-github {
     
        font-size: 34px;
        transition: transform 0.3s ease-in-out;
        color: #170312;
    
      }
      
      .fa-github:hover {
        transform: rotate(360deg) scale(1.2);
        color: #170312;
      }
    
    footer .fa-github {
     
      font-size: 34px;
      transition: transform 0.3s ease-in-out;
      color: #F2FDFF;
  
    }
    
    footer .fa-github:hover {
      transform: rotate(360deg) scale(1.2);
      color: #F2FDFF;
    }
    a{
        text-decoration: none;
    }

    /* Yoinked from CodePen, but improved the animation
so that it is smooth among other more minor things */

.codepen-button {
    display: none;
    cursor: pointer;
    color: white;
    margin: 50px auto;
    position: relative;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    overflow: hidden;
    padding: 3px;
    isolation: isolate;
  }
  
  .codepen-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 400%;
    height: 100%;
    background: linear-gradient(115deg,#4fcf70,#fad648,#a767e5,#12bcfe,#44ce7b);
    background-size: 25% 100%;
    animation: an-at-keyframe-css-at-rule-that-translates-via-the-transform-property-the-background-by-negative-25-percent-of-its-width-so-that-it-gives-a-nice-border-animation_-We-use-the-translate-property-to-have-a-nice-transition-so-it_s-not-a-jerk-of-a-start-or-stop .75s linear infinite;
    animation-play-state: paused;
    translate: -5% 0%;
    transition: translate 0.25s ease-out;
  }
  
  .codepen-button:hover::before {
    animation-play-state: running;
    transition-duration: 0.75s;
    translate: 0% 0%;
  }
  
  @keyframes an-at-keyframe-css-at-rule-that-translates-via-the-transform-property-the-background-by-negative-25-percent-of-its-width-so-that-it-gives-a-nice-border-animation_-We-use-the-translate-property-to-have-a-nice-transition-so-it_s-not-a-jerk-of-a-start-or-stop {
    to {
      transform: translateX(-25%);
    }
  }
  
  .codepen-button span {
    position: relative;
    display: block;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    background: #000;
    border-radius: 3px;
    height: 100%;
  }

@media  screen and (max-width:1010px){
    .container{
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: auto;
        gap: 30px;
        justify-items: center;
        
    }
    .header-box{
        flex-direction: column;
        margin: auto;
        align-items: center;
        position: relative;
    }
    .sasuke{
        position: relative;
        bottom: -30px;
        max-width: 30%;
    }
    .content-header{
        width: 100%;
    }
    .dictature{
        width: 100%;
    }
    

}
@media screen and (max-width:700px) {
    .dictature{
        flex-direction: column;
        align-items: center;
    }
    .container{
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap:30px;
        color: #235789;
        max-height: 2700px;
        overflow-y: hidden;
        transition: max-height 1.5s ease-out;
    }
    
    .codepen-button{
        display: block;
        
    }
    

    .button {
        background-color: transparent;
        display: flex;
        justify-content: center;
        align-content:center ;
        color: white;
        width: fit-content;
        border: none;
        padding: 15px 30px;
        text-align: center;
        text-decoration: none;
        display: inline-block;
        font-size: 16px;
        
        cursor: pointer;    
        transition: color 0.3s, transform 0.3s;
    }

    .button:hover {
        color: #3e8e41;
        transform: scale(1.05);
    }

    .content-header {
            max-height: 200px;
            overflow-y: hidden;
            position: relative;
            border-radius: 5% 5% 0 0;
            justify-content: flex-start;
            
            transition: max-height 1.5s ease-out;
        }

        
        
        .expanded {
            max-height: 1000px; /* Ajustez cette valeur en fonction de la hauteur totale du contenu */
    }
         
        .expandeddude{
            max-height: 5100px; /* Ajustez cette valeur en fonction de la ha8*/
        }
        .expanded p::after {
            display: none;
        }

        .expanded::after {
            display: none;
        }
        .btn{
            display: flex;
            justify-content: center;
            align-content:center ;
            background-color: #170312;
            width: 100%;
            visibility:visible;
            
            
        }
    
}