@import url("https://fonts.googleapis.com/css?family=Poppins:100,200,300,400,500,600,700,800,900");



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: "Poppins", sans-serif;
}
video, .header img {
    border-radius: 10rem;
    width: 60px;
    height: 60px;
    opacity: .8;
    object-fit: cover;
}

:root{
    --bg-color:#081b29;
    --second-bg-color:#112e42;
    --text-color:#ededed;
    --main-color:#00abf0;
}

html{
    font-size:62.5%;
    overflow-x: hidden; 
}

body{
    background: var(--bg-color);
    color: var(--text-color);
}

.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;    
    transition: .3s;
}

.header.sticky{
    background: var(--bg-color);
}

/* Styles pour le conteneur du logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-text {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 0.1rem;
    text-shadow: 0 0 10px rgba(0, 171, 240, 0.3);
    transition: all 0.3s ease;
}

.logo-text:hover {
    color: var(--main-color);
    text-shadow: 0 0 20px rgba(0, 171, 240, 0.6);
}

/* .logo{
    position: relative;
    padding-bottom: 40px;
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 600;
    animation: logoAnimation 2s infinite;
} */



.navbar{
    position: relative;
}

.navbar a {
    font-size:1.7rem;
    color: var(--text-color);
    font-weight: 500;
    margin-left: 3.5rem;
    transition: .3s;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

#menu-icon {
    position: relative;
    font-size: 3.6rem;
    color: var(--text-color);
    cursor: pointer;
    display: none;
}

section{
    min-height:100vh;
    padding: 10rem 9% 2rem;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--second-bg-color) 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.paint-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 171, 240, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(78, 205, 196, 0.1) 0%, transparent 50%),
        linear-gradient(45deg, transparent 30%, rgba(255, 107, 107, 0.05) 50%, transparent 70%);
    animation: paintFlow 8s ease-in-out infinite;
}

@keyframes paintFlow {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateX(20px) translateY(-10px) rotate(1deg);
        opacity: 0.5;
    }
    50% {
        transform: translateX(-10px) translateY(15px) rotate(-1deg);
        opacity: 0.4;
    }
    75% {
        transform: translateX(15px) translateY(5px) rotate(0.5deg);
        opacity: 0.6;
    }
}



.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-logo-title {
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.hero-title-logo {
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 
        0 0 0 10px rgba(0, 171, 240, 0.1),
        0 0 0 20px rgba(0, 171, 240, 0.05),
        0 0 0 30px rgba(0, 171, 240, 0.02),
        0 20px 40px rgba(0, 0, 0, 0.3);
    filter: 
        drop-shadow(0 0 20px rgba(0, 171, 240, 0.3))
        drop-shadow(0 0 40px rgba(0, 171, 240, 0.2));
    transition: all 0.3s ease;
    position: relative;
}

.hero-title-logo::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, 
        rgba(0, 171, 240, 0.2) 0%, 
        rgba(255, 107, 107, 0.2) 25%, 
        rgba(78, 205, 196, 0.2) 50%, 
        rgba(0, 171, 240, 0.2) 75%, 
        rgba(255, 107, 107, 0.2) 100%);
    border-radius: 30px;
    z-index: -1;
    animation: gradientRotate 8s linear infinite;
}

.hero-title-logo::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle, 
        rgba(0, 171, 240, 0.1) 0%, 
        rgba(0, 171, 240, 0.05) 50%, 
        transparent 70%);
    border-radius: 40px;
    z-index: -2;
    animation: pulseGlow 4s ease-in-out infinite;
}

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

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.hero-title-logo:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 0 15px rgba(0, 171, 240, 0.15),
        0 0 0 25px rgba(0, 171, 240, 0.08),
        0 0 0 35px rgba(0, 171, 240, 0.03),
        0 30px 60px rgba(0, 0, 0, 0.4);
}

.hero-specialties {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.specialty-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: rgba(0, 171, 240, 0.1);
    border-radius: 15px;
    border: 2px solid var(--main-color);
    transition: all 0.3s ease;
    min-width: 120px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.specialty-item:hover {
    transform: translateY(-5px);
    background: rgba(0, 171, 240, 0.2);
    box-shadow: 0 10px 25px rgba(0, 171, 240, 0.3);
}

.specialty-item i {
    font-size: 2.5rem;
    color: var(--main-color);
}

.specialty-item span {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

.hero-description {
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    margin: 2rem 0 3rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--main-color);
    color: var(--bg-color);
    border: 2px solid var(--main-color);
}

.btn-primary:hover {
    background: transparent;
    color: var(--main-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 171, 240, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
}

.btn-secondary:hover {
    background: var(--main-color);
    color: var(--bg-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 171, 240, 0.4);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--main-color);
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--main-color);
    border-bottom: 2px solid var(--main-color);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .hero-title-logo {
        max-width: 300px;
    }
    
    .hero-specialties {
        gap: 1.5rem;
    }
    
    .specialty-item {
        min-width: 100px;
        padding: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title-logo {
        max-width: 250px;
    }
    
    .hero-specialties {
        gap: 1rem;
    }
    
    .specialty-item {
        padding: 0.8rem 1.2rem;
        font-size: 1.4rem;
    }
    
    .specialty-item i {
        font-size: 1.8rem;
    }
}

.home-content {
    max-width: 60rem;
    z-index: 99;
}

.home-content h1{
    position: relative;
    display: inline-block;
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content h1 span {
    color: var(--text-color);
}

.home-content .text-animate {
    position: relative;
    width: 47rem;
}

.home-content .text-animate h3 {
    font-size: 3.2rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: .7px var(--main-color);
    background-image: linear-gradient(var(--main-color), var(--main-color));
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    background-position: -47rem 0;
    animation: homeBgText 6s linear infinite;
    animation-delay: 2s;
}

.home-content .text-animate h3::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    border-right: 2px solid var(--main-color);
    z-index: -1;
    animation: homeCursorText 6s linear infinite;
    animation-delay: 2s;
}

.home-content p {
    position: relative;
    font-size: 1.6rem;
    margin: 3rem 0 4rem;
}

.btn-box{
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 34.5rem;
    height: 5rem;
}

.btn-box .btn{
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 15rem;
    height: 100%;
    background: var(--main-color);
    border: .2rem solid var(--main-color);
    border-radius: .8rem;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: .1rem;
    color: var(--bg-color);
    z-index: 1;
    overflow: hidden;
    transition: .5s;
}

.btn-box .btn:hover {
    color: var(--main-color);
}

.btn-box .btn:nth-child(2){
    background: transparent;
    color: var(--main-color);
}

.btn-box .btn:nth-child(2):hover {
    color: var(--bg-color);
}

.btn-box .btn:nth-child(2)::before {
    background: var(--main-color);
}


.btn-box .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--bg-color);
    z-index: -1;
}

.btn-box .btn:hover::before {
    width: 100%;
}
.home-sci{
    position: absolute;
    bottom: 4rem;
    width: 170px;
    display: flex;
    justify-content: space-between;
}

.home-sci a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 20px;
    color: var(--main-color);
    z-index: 1;
    overflow: hidden;
    transition: .5s;
}

.home-sci a:hover {
    color: var(--bg-color);
}

.home-sci a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--main-color);
    z-index: -1;
    transition: .5s;
}

.home-sci a:hover::before {
    width: 100%;
}

.home-imgHover {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background: transparent;
    transition: 3s;
}

.home-imgHover:hover {
    background: var(--bg-color);
    opacity: .8;
}

.about {
    background: var(--second-bg-color);
    padding-bottom: 6rem;
}

.heading {
    position: relative;
    font-size: 5rem;
    margin-bottom: 3rem;
    text-align: center;
}

span {
    color: var(--main-color);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-content {
    text-align: left;
}

.about-content h3 {
    position: relative;
    display: inline-block;
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.about-content p {
    font-size: 1.6rem;
    margin: 1.5rem 0;
    line-height: 1.8;
    color: var(--text-color);
    opacity: 0.9;
}

.about-commitments {
    margin: 2rem 0;
    padding-left: 2rem;
}

.about-commitments li {
    font-size: 1.6rem;
    margin: 1rem 0;
    line-height: 1.8;
    color: var(--text-color);
    opacity: 0.9;
    position: relative;
}

.about-commitments li::before {
    content: "✓";
    color: var(--main-color);
    font-weight: bold;
    position: absolute;
    left: -2rem;
    font-size: 1.8rem;
}

.about-cta {
    margin: 2rem 0;
    text-align: left;
}

.about-cta .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, #00abf0, #007bff);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 171, 240, 0.3);
}

.about-cta .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 171, 240, 0.4);
}

.about-cta .btn-primary i {
    font-size: 1.6rem;
}

/* Section Info About */
.about-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 171, 240, 0.05), rgba(0, 123, 255, 0.05));
    border-radius: 15px;
    border: 1px solid rgba(0, 171, 240, 0.1);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 171, 240, 0.2);
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 171, 240, 0.2);
    background: var(--bg-color);
    border-color: rgba(0, 171, 240, 0.4);
}

.info-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00abf0, #007bff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.info-item:hover .info-icon {
    transform: scale(1.1);
    box-shadow: 0 3px 15px rgba(0, 171, 240, 0.3);
}

.info-content h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.info-content p {
    font-size: 1.2rem;
    color: var(--text-color);
    line-height: 1.4;
    opacity: 0.8;
}

.about-badges {
    margin: 1.5rem 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    background: var(--bg-color);
    border-radius: 25px;
    border: 2px solid var(--main-color);
    transition: all 0.3s ease;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
}

.badge-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 171, 240, 0.3);
    background: var(--main-color) !important;
    color: var(--bg-color) !important;
}

.badge-item i {
    font-size: 1.6rem;
    color: var(--main-color);
    transition: color 0.3s ease;
}

.badge-item:hover i {
    color: var(--bg-color) !important;
}

.badge-item span {
    font-size: 1.4rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.badge-item:hover span {
    color: var(--bg-color) !important;
}

.btn-box.btns {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.btn-box.btns a {
    padding: 1.2rem 2.5rem;
    font-size: 1.6rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-box.btns a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 171, 240, 0.3);
}

.about-img {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.image-wrapper:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.image-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}


.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem 0.8rem;
    background: var(--bg-color);
    border-radius: 12px;
    border: 2px solid var(--main-color);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 171, 240, 0.2);
}

.stat-item h3 {
    font-size: 2.2rem;
    color: var(--main-color);
    margin-bottom: 0.3rem;
    font-weight: 800;
}

.stat-item p {
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 0;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: left;
        padding: 0 1rem;
    }
    
    .about-content {
        text-align: left;
    }
    
    .about-badges {
        justify-content: center;
        margin: 1rem 0 0 0;
    }
    
    .about-info {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1.5rem 0;
        padding: 1rem;
    }
    
    .info-item {
        padding: 0.8rem;
    }
    
    .info-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .info-content h4 {
        font-size: 1.2rem;
    }
    
    .info-content p {
        font-size: 1.1rem;
    }
    
    .badge-item {
        padding: 0.6rem 1.2rem;
        font-size: 1.2rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }
    
    .stat-item {
        padding: 1rem 0.5rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .stat-item p {
        font-size: 1rem;
    }
    
    .image-wrapper img {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .about-container {
        gap: 2rem;
    }
    
    .about-content h3 {
        font-size: 2.5rem;
}

.about-content p {
        font-size: 1.4rem;
    }
    
    .about-commitments li {
        font-size: 1.4rem;
    }
    
    .badge-item {
        padding: 0.5rem 1rem;
        font-size: 1.1rem;
    }
    
    .about-stats {
        gap: 0.5rem;
    }
    
    .stat-item {
        padding: 0.8rem 0.3rem;
    }
    
    .stat-item h3 {
        font-size: 1.8rem;
    }
    
    .stat-item p {
        font-size: 0.9rem;
    }
    
    .image-wrapper img {
        height: 250px;
    }
}

.education {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: auto;
    padding-bottom: 5rem;
}

.education .education-row{
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
}

.education-row .education-column{
    flex: 1 1 40rem;
}

.education-column .title {
    font-size: 2.5rem;
    margin: 0 0 1.5rem 2rem;
}
.education-column .education-box{
    border-left: .2rem solid var(--main-color);
}

.education-box .education-content {
    position: relative;
    padding-left: 2rem;
}

.education-box .education-content::before{
    content:'' ;
    position: absolute;
    top: 0;
    left:-1.1rem;
    width: 2rem;
    height: 2rem;
    background: var(--main-color);
    border-radius: 50%;
}

.education-content .content{
    position: relative;
    padding: 1.5rem;
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    margin-bottom: 2rem;
    overflow: hidden;
}

.education-content .content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--second-bg-color);
    z-index: -1;
    transition: .5s;
}

.education-content .content:hover::before {
    width: 100%;
}

.education-content .content .year {
    font-size: 1.5rem;
    color: var(--main-color);
    padding-bottom: .5rem;
}

.education-content .content .year i{
    padding-right: .5rem;
}

.education-content .content .year h3{
    font-size: 2rem;
}

.education-content .content p{
    font-size: 1.6rem;
    padding-top: .5rem;
}

.services {
    min-height: auto;
    padding-bottom: 7rem;
    background: var(--bg-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.service-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-item:hover .service-image img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 171, 240, 0.8), rgba(0, 171, 240, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-item:hover .service-overlay {
    opacity: 1;
}

.service-overlay h3 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    padding: 1rem;
}

.services-cta {
    text-align: center;
    margin-top: 3rem;
}

.cta-button {
    background: #ff4444;
    color: white;
    border: none;
    padding: 1.5rem 3rem;
    font-size: 1.8rem;
    font-weight: 700;
    border-radius: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
}

.cta-button:hover {
    background: #ff3333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.4);
}

.cta-button i {
    font-size: 2rem;
}

@media (max-width: 991px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }
    
    .service-image {
        height: 220px;
    }
    
    .service-overlay h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .service-image {
        height: 200px;
    }
    
    .service-overlay h3 {
        font-size: 1.3rem;
    }
    
    .cta-button {
        padding: 1.2rem 2rem;
        font-size: 1.6rem;
    }
}

@media (max-width: 525px) {
    .services-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 0.8rem;
        max-width: 100%;
    }
    
    .service-item {
        height: 120px;
    }
    
    .service-image {
        height: 100%;
    }
    
    .service-overlay h3 {
        font-size: 1rem;
        padding: 0.5rem;
    }
}

@media (max-width: 400px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .service-item {
        height: 100px;
    }
    
    .service-overlay h3 {
        font-size: 0.9rem;
        padding: 0.3rem;
    }
}

.skills {
    min-height: auto;
    padding-bottom: 7rem;
    background: var(--second-bg-color);
}



.contact{
    min-height: auto;
    padding-bottom: 7rem;
    background: var(--second-bg-color);
}

.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    padding: 0 2rem;
}

.map-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.map-section h3 {
    font-size: 2.4rem;
    color: var(--main-color);
    margin-bottom: 2rem;
}

.map-section iframe {
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.contact-form-section {
    background: var(--bg-color);
    padding: 3rem;
    border-radius: 15px;
    border: 2px solid var(--main-color);
    height: fit-content;
}

.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-items-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-social {
    margin-top: 2rem;
    padding: 1rem 0;
}

.social-links {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--second-bg-color);
    border-radius: 50%;
    border: 2px solid var(--main-color);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 171, 240, 0.3);
}

.social-link.phone:hover {
    background: #25D366;
    color: white;
    border-color: #25D366;
}

.social-link.tiktok:hover {
    background: #000000;
    color: white;
    border-color: #000000;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    border-color: #bc1888;
}

.social-link i {
    font-size: 1.8rem;
}

.contact-details h3,
.contact-form-section h3,
.map-container h3 {
    font-size: 2.4rem;
    color: var(--main-color);
    margin-bottom: 2rem;
    text-align: center;
}

.contact-details {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--main-color);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
    background: var(--second-bg-color);
    border-radius: 1rem;
    border: 2px solid var(--main-color);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
}

.contact-item i {
    font-size: 2.4rem;
    color: var(--main-color);
    margin-top: 0.5rem;
}

.contact-item h4 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.contact-item p {
    font-size: 1.4rem;
    color: var(--text-color);
    line-height: 1.6;
}

.map-container {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 1rem;
    border: 2px solid var(--main-color);
}

.map-container iframe {
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-form-container {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 1rem;
    border: 2px solid var(--main-color);
    height: fit-content;
}

.contact form {
    max-width: 100%;
    margin: 0;
    text-align: left;
}

.contact form .input-box {
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.contact form .input-box .input-field{
    position: relative;
    width: 48%;
    margin: .8rem 0;
}

.contact form .input-box .input-field input,
.contact form .textarea-field textarea {
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: transparent;
    border-radius: .6rem;
    border: .2rem solid var(--main-color);
}

.contact form .input-box .input-field input::placeholder,
.contact form .textarea-field textarea::placeholder{
    color: var(--text-color);
}

.contact form .focus{
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--second-bg-color);
    border-radius: .6rem;
    z-index: -1;
    transition: .5s;
}

.contact form .input-box .input-field input:focus~.focus,
.contact form .input-box .input-field input:valid~.focus,
.contact form .textarea-field textarea:focus~.focus,
.contact form .textarea-field textarea:valid~.focus{
width: 100%;
}

.contact form .textarea-field {
    position: relative;
    margin: .8rem 0 1rem;
    display: flex;
}

.contact form .textarea-field textarea {
    resize: none;
}

.contact form .btn-box.btns {
    text-align: center;
    margin-top: 1rem;
}

.contact form .btn-box.btns .btn {
    cursor: pointer;
    padding: 1.5rem 3rem;
    font-size: 1.8rem;
    width: 100%;
    max-width: 300px;
}

/* Messages de statut du formulaire */
.form-messages {
    margin-bottom: 2rem;
}

.message {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.message.success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message i {
    font-size: 1.2rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .contact-form-section {
        padding: 2rem;
    }
    
    .contact-items-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        justify-items: center;
    }
    
    .contact-item {
        width: 100%;
        max-width: 300px;
        text-align: center;
        flex-direction: column;
        align-items: center;
    }
    
    .contact-item i {
        align-self: center;
        margin-bottom: 0.5rem;
    }
    
    .contact form .input-box .input-field {
        width: 100%;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-item i {
        align-self: center;
    }
    
    .social-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
    
    .map-section {
        padding: 0 1rem;
    }
    
    .map-section iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .contact-details {
        background: transparent;
        border: none;
        padding: 1rem 0;
    }
    
    .contact-item {
        background: transparent;
        border: none;
        padding: 0.5rem 0;
        text-align: center;
        flex-direction: column;
        align-items: center;
    }
    
    .contact-item i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
        display: block;
        align-self: center;
    }
    
    .contact-item h4 {
        font-size: 1.6rem;
        margin-bottom: 0.3rem;
    }
    
    .contact-item p {
        font-size: 1.4rem;
    }
    
    .contact-social {
        background: transparent;
        border: none;
        padding: 1rem 0;
    }
    
    .social-links {
        gap: 1rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .social-link i {
        font-size: 1.5rem;
    }
    
    .map-section iframe {
        height: 250px;
    }
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--second-bg-color);
}

.footer-text p {
    font-size: 1.6rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.footer-links a:hover {
    color: var(--main-color);
    background: rgba(0, 171, 240, 0.1);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-links a {
        font-size: 1.2rem;
    }
}

.footer-iconTop a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--main-color);
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    z-index: 1;
    overflow: hidden;
}

.footer-iconTop a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--second-bg-color);
    z-index: -1;
    transition: .5s ;
}

.footer-iconTop a:hover::before {
    width: 100%;
}
.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--bg-color);
}

.footer-iconTop a:hover i{
    color: var(--main-color);
}

.animate {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--main-color);
    z-index: 98;
}

.animate.home-img{
    width: 50%;
}

.logo .animate,
.navbar .animate,
#menu-icon .animate,
.home.show-animate .animate{
    animation: showRight 1s ease forwards;
    animation-delay: calc(.3s * var(--i));
}

.animate.scroll {
    transition: 1s ease;
    transition-delay: calc(.3s / var(--i));
    animation: none;
}

.about.show-animate .animate.scroll {
    transition-delay: calc(.3s * var(--i));
    width: 0;
}

@media (max-width: 1200px) {
    html{
        font-size: 55%;
    }
    
}

@media (max-width: 991px){
    .header{
        padding: 2rem 4%;
    }

    section {
        padding: 10rem 4% 2rem;
    }

    .home {
        padding: 0 4%;
    }

    .footer {
        padding: 2rem 4%;
    }
} 

@media (max-width: 768px) {
    .header{
        background: var(--bg-color);
    }

    .logo-text {
        font-size: 1.8rem;
    }

    #menu-icon {
        display: block;
    }

    .navbar{
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        padding: 1rem 4%;
        background: var(--main-color);
        z-index: 1;
        box-shadow: 0 .5rem 1rem black;
        transition: .25s ease;
        transition-delay: .25s;
    }

     .navbar.active{
        left: 0;
        transition-delay: 0s;
    }
    
    .navbar .active-nav {
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: var(--bg-color);
        border-top: .1rem solid black;
        z-index: -1;
        transition: .25s ease;
        transition-delay: 0s;
    }
    
    .navbar.active .active-nav {
        left: 0;
        transition-delay: .25s;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        transform: translateX(-20rem);
        transition: .25s ease;
        transition-delay: 0s;
    }


    .navbar.active a {
        transform: translateX(0);
        transition-delay: .25s;
    } 

    .home-imgHover {
        pointer-events: none;
        background: var(--bg-color);
        opacity: 1;
    }
}

@media (max-width: 520px){
    html{
        font-size: 50%;
    }

    .home-content h1{
        display: flex;
        flex-direction: column;
    }

    .home-sci{
        width: 160px ;
    
    }

    .home-sci a{
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 462px){
    .home-content h1{
        font-size: 5.2rem;
    }

    .education{
        padding: 10rem 4% 5rem 5%;
    }

    .contact form .input-box .input-field {
        width: 100%;
    }

    .footer{
        flex-direction: column-reverse;
    }

    .footer p {
        margin-top: 2rem;
        text-align: center;
    }
}

@media (max-width: 371px){
    .home {
        justify-content: center;
    }

    .home-content {
        display: flex;
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .home-content h1 {
        font-size: 5rem;
    }

}

@keyframes homeBgText {
    0%,10%,100% {
        background-position: -47rem 0;
    }
    65%,85% {
        background-position: 0 0;
    }

}

@keyframes homeCursorText {
    0%,10%,100% {
        width: 0;
    }
    65%,78%, 85% {
        width: 100%;
        opacity: 1;
    }
    75%,81% {
        opacity: 0;

    }

}

@keyframes aboutSpinner {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes showRight {
    100%{
        width: 0;
    }
}

