/*----------About------------*/
#about{
    padding: 80px 0;
    color: #ffffff;
}

.row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
    position: relative;
}

.about-col-1{
    flex-basis: 35%;
}
.about-col-1 img{
    width: 100%;
    border-radius: 15px;
    transition: all 0.5s ease;
    opacity: 1;
    box-shadow: 0 5px 15px rgba(255, 0, 79, 0.2);
}
.about-col-1 img:hover {
    transform: scale(1.02);
}
.about-col-2{
    flex-basis: 60%;
}
.sub-title{
    font-size: 60px;
    font-weight: 600;
    color: #fff;
}
.tab-titles{
    display: flex;
    margin: 20px 0 40px;
}
.tab-links{
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}
.tab-links::after{
    content: '';
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}
.tab-links.active-link::after{
    width: 75%;
}
.tab-contents ul li{
    list-style: none;
    margin: 10px;
}
.tab-contents ul li span{
    color: #b54769;
    font-size: 14px;
}
.personal-info p {
    color: #b54769;
    font-size: 14px;
}
.personal-info p span{
    color: #ababab;
    font-size: 14px;
}

.tab-contents{
    display: none;
}

.tab-contents.active-tab{
    display: block;
}
/*-------------------Portfolio-------------------*/
#portfolio{
    padding: 50px 0;
}
.work-list{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 40px;
    margin-top: 50px;
}
.work{
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}
.work img{
    width: 100%;
    border-radius: 10px;
    display: block;
    transition: all 0.5s ease;
}
.work:hover img{
    filter: brightness(30%);
}

.layer{
    color: #fff;
    width: 100%;
    height: 0;
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    transition: height 0.5s;
    background: transparent;
}
.layer h3{
    font-weight: 500;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.layer p {
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.layer a{
    margin-top: 20px;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    background: #ff004f;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    transition: all 0.3s ease;
}
.layer a:hover {
    background: #fff;
    color: #ff004f;
    transform: scale(1.1);
}
.work:hover .layer{
    height: 100%;
}
.btn{
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid #ff004f;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: background 0.5s;
}
.btn:hover{
    background: #ff004f;
}

.spacer{
    height: 200px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.button {
    margin: 10px;
    cursor: pointer;
    position: relative;
    padding: 10px 24px;
    font-size: 18px;
    color: #fff;
    border: 2px solid #ff004f;
    border-radius: 34px;
    background-color: transparent;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    overflow: hidden;
  }
  
  .button::before {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 50px;
    height: 50px;
    border-radius: inherit;
    scale: 0;
    z-index: -1;
    background-color: #ff004f;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
  }
  
  .button:hover::before {
    scale: 3;
  }
  
  .button:hover {
    color: #212121;
    scale: 1.1;
    box-shadow: 0 0px 20px rgba(193, 163, 98,0.4);
  }
  
  .button:active {
    scale: 1;
  }
  
  .button.active-button{
    color: #fff;
    scale: 1.1;
    box-shadow: 0 0px 20px rgba(193, 163, 98,0.4);
    background-color: #ff004f;
  }
  
  .trie{
    display: flex;
    justify-content: center;
  }

.scroll-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgb(20, 20, 20);
    border: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 0px 0px 4px rgba(255, 0, 79, 0.253);
    cursor: pointer;
    transition-duration: 0.3s;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.scroll-button.hidden {
    opacity: 0;
    pointer-events: none;
}

.svgIcon {
    width: 12px;
    transition-duration: 0.3s;
}

.svgIcon path {
    fill: white;
}

.scroll-button:hover {
    width: 140px;
    border-radius: 50px;
    transition-duration: 0.3s;
    background-color: #ff004f;
    align-items: center;
}

.scroll-button:hover .svgIcon {
    transition-duration: 0.3s;
    transform: translateY(200%);
}

.scroll-button::before {
    position: absolute;
    bottom: -20px;
    content: "Voir plus";
    color: white;
    font-size: 0px;
}

.scroll-button:hover::before {
    font-size: 13px;
    opacity: 1;
    bottom: unset;
    transition-duration: 0.3s;
}

/* Styles responsifs pour la page de réalisations */
@media screen and (max-width: 768px) {
    #realisation {
        padding: 60px 0;
    }

    .section-title {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .realisation-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .realisation-card {
        padding: 25px;
    }

    .realisation-card h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .realisation-card p {
        font-size: 16px;
        line-height: 1.6;
    }

    .realisation-image {
        height: 200px;
    }

    .work-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .work {
        display: none;
    }

    .work.active {
        display: block;
    }

    .pagination-dots {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 20px;
    }

    .pagination-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: #ababab;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .pagination-dot.active {
        background-color: var(--primary-color);
    }

    .mobile-nav {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 20px;
    }

    .mobile-nav button {
        background: none;
        border: none;
        color: var(--text-color);
        font-size: 24px;
        cursor: pointer;
        padding: 10px;
    }

    .mobile-nav button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
}

@media screen and (max-width: 480px) {
    #realisation {
        padding: 40px 0;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .realisation-card {
        padding: 20px;
    }

    .realisation-card h2 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .realisation-card p {
        font-size: 14px;
        line-height: 1.5;
    }

    .realisation-image {
        height: 150px;
    }

    .work-list {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 320px) {
    #realisation {
        padding: 30px 0;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .realisation-card {
        padding: 15px;
    }

    .realisation-card h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .realisation-card p {
        font-size: 12px;
        line-height: 1.4;
    }

    .realisation-image {
        height: 120px;
    }

    .work-list {
        margin-top: 20px;
    }
}