*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Josefin Sans', sans-serif;
}
.hero {
    height: 100vh;
    width: 100%;
    background-image: url('../images/Cat\ 3.jpeg');
    background-size: cover;
    background-position: center;
}
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: transparent; 
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    z-index: 1000;
    transition: opacity 0.4s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    height: 80px;
}

/* Barre horizontale en haut */
#top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: #f9004d;
    transition: background 0.3s, width 0.5s;
    z-index: 1000;
}

/* Barre de progression du scroll (effet inverse) */
.scroll-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 6px;
    background: #f9004d;
    width: 0%;
    z-index: 9999;
    transition: width 0.2s ease-out;
}


/* Apparence lors du scroll */
#top-bar.scrolled {
    background: #f9004d;
    width: 0%;
}

nav {
    display: flex;
    align-items: center;
    justify-self: space-between;
    padding-top: 45px;
    padding-left: 8%;
    padding-right: 8%;
}
.logo {
    font-size: 35px;
    letter-spacing: 1px;
    color: #fff;
    cursor: pointer;
}
span {
    color: #f9004d;
}
nav ul li {
    list-style-type: none;
    display: inline-block;
    padding: 10px 25px;
    position: relative;
}
nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    text-transform: capitalize;
}
nav ul li a:hover {
    color: #f9004d;
    transition: .4s ;
}

/* Ombre pour les éléments du menu de navigation */
#navbar ul li a {
    text-shadow: 1px 2px 8px #000, 0 1px 0 #f9004d33;
}
#navbar h2{
    text-shadow: 1px 2px 8px #000, 0 1px 0 #f9004d33;
}


.btn {
    padding: 10px 25px;
    background-color: #f9004d;
    color: #fff;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: transform .4s;
    border: 2px solid transparent;
    border-radius: 30px;
}
.btn:hover {
    transform: scale(1.1);
}
.content{
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
}
h1{
    color: #fff;
    margin: 20px 0px 20px;
    font-size: 75px;
}
h3{
    color: #fff;
    font-size: 25px;
    margin-bottom: 50px;
}
h4{
    color: rgba(237, 79, 79, 0.8);
    font-size: 20px;
    letter-spacing: 2px;
    text-shadow: #000;
}
.newslatter form{
    width: 380px;
    max-width: 100%;
    position: relative;
}
.newslatter form input:first-child{
    display: inline-block;
    width: 100%;
    padding: 14px 130px 14px 15px;
    border: 2px solid #f9004d;
    border-radius: 30px;
    outline: none;
}
.newslatter form input:last-child{
    display: inline-block;
    position: absolute;
    outline: none;
    border: none;
    padding: 10px 30px;
    border-radius: 30px;
    background-color: #f9004d;
    color: #fff;
    top: 6px;
    right: 6px;
    cursor: pointer;
}
.newslatter form input:last-child:hover{
    background-color: transparent;
    border: 1px solid #f9004d;
    transition: .4s;
    border-style:groove;
    color: #f9004d;
    cursor: pointer; ;
}


.about{
    width: 100%;
    padding: 100px 0;
    background-color: #191919;
}
.about img{
    height: auto;
    width: 430px;
}
.about-text{
    width: 550px;
}
.main{
    width: 1130px;
    max-width: 95%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-around;
}
.about-text h2{
    color: #fff;
    font-size: 75px;
    margin-bottom: 20px;
    text-transform: capitalize;
}
.about-text h5{
    color: #fff;
    font-size: 22px;
    letter-spacing: 2px;
    margin-bottom: 25px;
    text-transform: capitalize;
}
.about-text p{
    color: #fcfc;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 1px;
    margin-bottom: 45px;
}
button{
    padding: 13px 30px;
    background-color: #f9004d;
    color: #fff;
    border: 2px solid transparent;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: .4s;
}
button:hover{
    background-color: transparent;
    border: 2px solid #f9004d;
    cursor: pointer;
}

.skills{
    width: 100%;
    padding: 100px 0;
    background-color: #101010;
}
.title h2{
    color: #fff;
    font-size: 75px;
    width: 1130px;
    text-align: center;
    margin: 30px auto;
}
.box{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}
.card{
    width: 360px;
    background-color: #191919;
    margin: 15px 20px;
    padding: 20px 35px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    text-align: center;
    max-height: 450px;
    height: auto;
    transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s;
    box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}
.card.expanded {
    max-height: 2000px; /* assez grand pour tout afficher */
    overflow: visible;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.card i{
    font-size: 50px;
    display: block;
    text-align: center;
    margin: 25px 0px;
    color: #f9004d;
}
h5{
    color: #fff;
    font-size: 23px;
    margin-bottom: 15px;
}
.pra p{
    color: #fcfc;
    font-size: 16px;
    line-height: 27px;
    margin-bottom: 25px;
}
.card .button{
    padding: 9px 22px;
    background-color: #f9004d;
    color: #fff;
    border: 2px solid transparent;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s, border 0.3s, color 0.3s;
    margin: 5px 3px;
    display: inline-block;
    margin-top: 16px;
}
.card .button:hover{
    background-color: transparent;
    border: 2px solid #f9004d;
    color: #f9004d;
    cursor: pointer;
}
.card .button.read-more,
.card .button.read-less {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    /* Ajuste le bottom selon ton padding */
    z-index: 2;
    margin-top: 16px; /* Ajoute un espace au-dessus du bouton */
}



.contact-me{
    width: 100%;
    height: 290px;
    display: flex;
    background-color: #191919;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}
.contact-me p{
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 25px;
}
.contact-me .button-two{
    padding: 13px 30px;
    background-color: #f9004d;
    color: #fff;
    border: 2px solid transparent;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: .4s;
}
.contact-me .button-two:hover{
    background-color: transparent;
    border: 2px solid #f9004d;
    cursor: pointer;
}
footer{
    position: relative;
    width: 100%;
    height: 400px;
    background-color: #101010;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
footer p:nth-child(1){
    color: #fff;
    font-weight: bold;
    font-size: 30px;
    margin-bottom: 20px;
}
footer p:nth-child(2){
    color: #fff;
    width: 500px;
    text-align: center;
    line-height: 25px;
    font-size: 18px;
}
.social{
    display: flex;
}
.social a{
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9004d;
    border-radius: 50%;
    margin: 22px 10px;
    color: #fff;
    text-decoration: none;
    font-size: 20px;
}
.social a:hover{
    transition: .3s;
    transform: scale(1.3);
}
.end{
    color: #f9004d;
    position: absolute;
    bottom: 35px;
    font-size: 14px;
}

/* Style pour les listes dans les paragraphes */
.pra ul, .pra ol {
    margin: 16px 0 16px 24px;
    padding-left: 20px;
}

.pra ul li, .pra ol li {
    color: #fff;
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 6px;
    list-style-position: inside;
}

.pra ul {
    list-style-type: disc;
}

.pra ol {
    list-style-type: decimal;
}

.pra ol li::marker,
.pra ul li::marker {
    color: #f9004d;
    font-weight: bold;
}
.read-more-container {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.read-more-container .button {
    padding: 10px 25px;
    background-color: #f9004d;
    color: #fff;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: transform .4s;
    border: 2px solid transparent;
    border-radius: 30px;
}

.read-more-container .button:hover {
    transform: scale(1.1);
}

.read-more-container .read-less {
    display: none;
}

.read-more-container.expanded .read-more {
    display: none;
}

.read-more-container.expanded .read-less {
    display: inline-block;
}
.pra {
    padding-bottom: 48px; /* Espace pour les boutons en bas de la card */
}
