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

body{
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #0a0a0a;
    color: #e8e8e8;
    line-height: 1.8;
    overflow-x: hidden;
}

.container{
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 30px;
    padding-top: 130px;
}

.header{
    margin-bottom: 60px;
    opacity: 0;
    animation: fadeInDown 1s ease forwards;
}


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

h1{
    font-size: 4em;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #87c442, #5fa82f, #3d9440);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift{
    0%, 100%{ background-position: 0% 50%; }
    50%{ background-position: 100% 50%; }
}

.social-links{
    margin: 30px 0;
}

.social-links a{
    display: inline-block;
    margin-right: 20px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.social-links a:hover{
    opacity: 1;
    transform: translateY(-3px);
}

.social-links img{
    width: 32px;
    height: 32px;
    display: inline-block;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.social-links a:hover img{
    opacity: 1;
    transform: translateY(-3px);
}

.section{
    margin: 50px 0;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.section.visible{
    opacity: 1;
    transform: translateY(0);
}

h2{
    font-size: 2em;
    margin-bottom: 20px;
    color: #ffffff;
    position: relative;
    display: inline-block;
}

h2::after{
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #87c442, #5fa82f);
    transition: width 0.3s ease;
}

h2:hover::after{
    width: 100%;
}

p{
    font-size: 1.1em;
    color: #b8b8b8;
    margin-bottom: 20px;
}

.about-text{
    font-size: 1.2em;
    line-height: 1.8;
    color: #d5d5d5;
}

.skills-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.skill-card{
    background: rgba(135, 196, 66, 0.05);
    border: 1px solid rgba(135, 196, 66, 0.2);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 250px;
}

.skill-card img{
    width: 120px;
    height: 120px;
    object-fit: contain;
    display: block;
    margin: 0 auto 20px;
}

.skill-card h3{
    color: #87c442;
    font-size: 1.3em;
    margin-bottom: 20px;
}

.skill-card:hover{
    transform: translateY(-5px);
    border-color: #87c442;
    box-shadow: 0 10px 30px rgba(135, 196, 66, 0.3);
    background: rgba(135, 196, 66, 0.1);
}

.skill-card p{
    font-size: 0.95em;
    color: #a8a8a8;
}

.tools-list{
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.tool-tag{
    background: rgba(135, 196, 66, 0.15);
    border: 1px solid rgba(135, 196, 66, 0.4);
    padding: 8px 16px;
    border-radius: 20px;
    color: #b8e68a;
    font-size: 0.95em;
    transition: all 0.3s ease;
}

.tool-tag:hover{
    background: rgba(135, 196, 66, 0.3);
    transform: scale(1.05);
}

.card{
    background: rgba(135, 196, 66, 0.03);
    border-left: 4px solid #87c442;
    padding: 25px;
    margin: 20px 0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.card img{
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    margin: 15px auto 0 auto;
}

.certif-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 30px;
}


.card:hover{
    background: rgba(135, 196, 66, 0.08);
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(135, 196, 66, 0.25);
}

.card h3{
    color: #ffffff;
    font-size: 1.4em;
    margin-bottom: 10px;
}

.card h3.certif{
    text-align: center;
}

.card p{
    color: #b8b8b8;
}

.badge{
    background: linear-gradient(135deg, #87c442, #5fa82f);
    color: white;
    padding: 6px 14px;
    border-radius: 15px;
    display: inline-block;
    font-size: 0.9em;
    font-weight: 600;
    margin: 10px 0;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse{
    0%, 100%{
        box-shadow: 0 0 0 0 rgba(135, 196, 66, 0.7);
    }
    50%{
        box-shadow: 0 0 0 10px rgba(135, 196, 66, 0);
    }
}

.text-section{
    background: rgba(135, 196, 66, 0.05);
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
}

a{
    color: #87c442;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a::after{
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #87c442;
    transition: width 0.3s ease;
}

a:hover::after{
    width: 100%;
}

a:hover{
    color: #5fa82f;
}

.star{
    position: fixed;
    width: 2px;
    height: 2px;
    background: #87c442;
    border-radius: 50%;
    animation: twinkle 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes twinkle{
    0%, 100%{ opacity: 0.3; }
    50%{ opacity: 1; }
}

.carousel{
    position: relative;
    width: 65%;
    margin: 15px auto 0 auto;
}

.carousel img{
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: none;
}

.carousel img.active{
    display: block;
}

.dots{
    text-align: center;
    margin-top: 10px;
}

.dot{
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #555;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s;
    cursor: pointer;
}

.dot.active{
    background-color: #87c442;
}

img.photo{
    height: auto;
    max-width: 13.86%;
    float: right;
    margin-top: 15%;
    margin-right: 10%;
    border: 5px solid;
    border-image: linear-gradient(135deg, #87c442, #5fa82f, #3d9440) 1;
}

img.avatar{
    height: auto;
    max-width: 15%;
    float: left;
    margin-top: 15%;
    margin-left: 10%;
    border: 5px solid;
    border-image: linear-gradient(135deg, #87c442, #5fa82f, #3d9440) 1;
}

nav{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(135, 196, 66, 0.2);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

nav ul{
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

nav li{
    display: inline-block;
    margin: 0 15px;
    font-size: 1em;
    text-transform: uppercase;
}

a{
    font-size: 1.1em;
}

.accordion {
    margin-bottom: 20px;
    border: 1px solid rgba(135, 196, 66, 0.3);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(135, 196, 66, 0.05);
}

.accordion-title {
    padding: 15px;
    font-size: 1.4em;
    background: rgba(135, 196, 66, 0.15);
    cursor: pointer;
    transition: 0.3s;
}

.accordion-title:hover {
    background: rgba(135, 196, 66, 0.22);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding: 0 20px;
}

.accordion.active .accordion-content {
    max-height: 1200px; /* assez grand pour que tout puisse s'afficher */
    padding-top: 20px;
    padding-bottom: 20px;
}