/* --- CONFIGURATION GÉNÉRALE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f7ff;
    color: #333;
    overflow-x: hidden; 
    width: 100%;
}

/* --- cache le texte --- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* --- HEADER --- */
.header {
    position: relative;
    width: 100%;
    height: 270px; 
    background-color: #000; 
    overflow: hidden;
    display: flex;
    flex-direction: column; 
    justify-content: flex-end; 
    align-items: flex-end;
}

.nav { 
    position: relative; 
    z-index: 10;
    width: auto; 
}

.logo-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 40%; 
    height:100%;
    object-fit: cover; 
    z-index: 1;
}


.sous_titre, .nav {
    position: relative;
    z-index: 10; 
}

#sousTitre {
    color: white;
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.85;
    margin-right: 1070px; 
    margin-bottom: 10px; 
}

/* --- NAVIGATION --- */
.nav { 
    position: relative; 
    z-index: 10; 
}

.nav ul { 
    margin: 20px 50px; 
    display: flex; 
    list-style: none; 
    gap: 25px; 
}

.liste a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    transition: 0.3s;
}

.liste a:hover {
    background: linear-gradient(135deg, #53f5f2, #ff44e9fc); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}

/* --- BURGER --- */
.menu_burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 10000;
}

.menu_burger .bar {
    width: 30px;
    height: 4px;
    background-color: #00FBFF; 
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* --- SECTION MAIN --- */
main {
    padding: 2rem;
    background-color: #0b0e14; 
    min-height: 80vh;
    color: #fff;
}

.presentation h1 {
    font-size: 2rem; 
    margin-bottom: 1rem; 
    text-align: center;
}

.presentation p {
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 1rem;
}

#page-contact p {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

section {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    color: #CCFF00;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

/* --- SECTION PRÉSENTATION --- */
#page-presentation {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 2rem;
}

#presentation {
    max-width: 800px;
    width: 100%;
    background: #161b22;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.1);
    text-align: left;
    border: 1px solid rgba(0, 229, 255, 0.2);
}

#presentation h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #00E5FF;
    font-family: 'Courier New', monospace;
}

.presentation-text li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    list-style: none;
}

.presentation-text li::before {
    content: "✔";
    color: #CCFF00;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.presentation-img img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid #00E5FF;
    object-fit: cover;
    margin-top: 20px;
}

.presentation-img {
    text-align: center;
    margin-top: 20px;
}

/* --- SECTION COMPÉTENCES --- */
.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem 0;
}

.skill-card {
    background: #161b22;
    border: 1px solid rgba(0, 229, 255, 0.2);
    padding: 0.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: #00E5FF;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    width: auto;
    height: auto;
}

.icon-container i {
    font-size: 2rem;
    background: linear-gradient(135deg, #00A3FF, #00FF94);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.skill-card h3 {
    color: #CCFF00;
    margin: 1rem 0;
    font-size: 1.1rem;
    width: 100%;
}

.skill-card ul {
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100%;
}

.skill-card li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    padding: 0;
    position: relative;
}

/* --- SECTION PROJETS --- */
.project-card {
    background: #161b22;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
    transition: 0.3s;
    border: 2px solid rgba(0, 229, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.1);
}

.project-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 1rem;
}

.project-card img {
    width: 150px;
    border-radius: 8px;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: #00E5FF;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.project-link h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.project-link p {
    font-size: 0.8rem;
    line-height: 1.4;
}

/* --- SECTION CONTACT --- */
.form_contact {
    max-width: 600px;
    margin: 0 auto;
    background: #161b22;
    padding: 3rem;
    border-radius: 10px;
    border: 2px solid rgba(0, 229, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.1);
}

.form_contact input,
.form_contact textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white; 
    color: black;
    margin-top: 5px;
}

.form_contact #message {
    min-height: 120px;
    resize: vertical;
}

.form_contact input:focus,
.form_contact textarea:focus {
    outline: none;
    border-color: #00E5FF;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
    background-color: white;
}

.border-success {
    border-color: #27ae60 !important;
    background-color: rgba(39, 174, 96, 0.05);
}

.border-error {
    border-color: #e74c3c !important;
    background-color: rgba(231, 76, 60, 0.05);
}

#compteur {
    font-size: 0.8rem;
    text-align: right;
    display: block;
    margin-top: -1.2rem;
    margin-bottom: 1.2rem;
}

.btn_submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #0a9df0e6, #f629e1db);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn_submit:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 229, 255, 0.4), 0 5px 30px rgba(204, 255, 0, 0.3);
}

.btn_submit:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

/* --- FOOTER --- */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: #000;
    color: white;
}


.footer .social ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
}

.footer .social a {
    color: white;
    font-size: 1.5rem;
    transition: all 0.4s ease;
    display: inline-block;
}

.footer .social a:hover {
    background: linear-gradient(135deg, #0a9df0e6, #f629e1db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.5));
    transform: translateY(-5px) scale(1.1);
}

.footer .social h4 {
    font-family: Arial, sans-serif;
    font-size: 1rem;
    margin-bottom: 0.6rem;
    color: white;
}

.footer .logo-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100px;
    width: 200px;
}

@media screen and (max-width : 1024px) {
    .logo-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 40%; 
        height:100%;
        object-fit: cover; 
        z-index: 1;
    }


    .sous_titre, .nav {
        position: relative;
        z-index: 10; 
    }

    #sousTitre {
        color: white;
        font-size: 0.7rem;
        text-transform: uppercase;
        opacity: 0.85;
        margin-right: 680px; 
        margin-bottom: 20px; 
    }
}

@media screen and (min-width: 768px) and (max-width: 912px) {
    .header {
        position: relative;
        height: 250px; 
        display: flex;
        flex-direction: column;
        justify-content: flex-end; 
        align-items: center;      
        background-color: #000;
        overflow: hidden;
    }

    .logo-bg {
        position: absolute; 
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 1;
    }

    #sousTitre {
        position: relative;
        z-index: 10;
        color: white;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); 
        font-size: 0.8rem;
        text-transform: uppercase;
        opacity: 0.85;
        white-space: nowrap; 
        width: auto;
        text-align: center;
        margin-bottom: 2s0px !important; 
    }

    .menu_burger {
        position: absolute;
        bottom: 15px;
        right: 15px;
        z-index: 10001;
    }
}

    /* --- RESPONSIVE : BURGER & MENU MOBILE --- */
@media screen and (max-width: 950px) {

    .header {
        position: relative;
        width: 100%;
        height: 220px; 
        background-color: #000; 
        overflow: hidden;
        display: flex;
        flex-direction: column; 
        justify-content: flex-end; 
        align-items: center;      
        padding-bottom: 20px;     
    }

    .logo-bg {
        position: relative;
        align-items: center;
        top: 0;
        left: 0;
        width: 60%; 
        height: 100%;
        object-fit: cover; 
        z-index: 1;
    }

    #sousTitre {
    position: absolute;
    bottom: 30px; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    white-space: nowrap;     
    width: auto;             
    color: white;
    font-size: 0.7rem;      
    text-transform: uppercase;
    opacity: 0.85;
    text-align: center;
}

    .menu_burger {
        display: flex !important;
        position: absolute; 
        bottom: 15px;      
        right: 15px;      
        width: 45px;
        height: 45px;
        background: rgba(0, 0, 0, 0.7); 
        border: 1.5px solid #00FBFF;
        border-radius: 50%; 
        z-index: 10001; 
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        cursor: pointer;
    }
    .nav ul {
        display: none; 
        position: fixed;
        inset: 0; 
        background-color: rgba(11, 14, 20, 0.98); 
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 10000;
    }

    .nav ul.active {
        display: flex !important;
    }
}

    
   /* --- RESPONSIVE : 1024px et en dessous --- */
@media screen and (min-width: 1024px) and (max-width: 1024px) {
    .nav ul {
        display: none; 
        position: fixed;
        inset: 0;
        background-color: rgba(11, 14, 20, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 10000;
        margin: 0; 
    }

    .nav ul.active {
        display: flex !important;
    }

    .menu_burger {
        display: flex !important;
        position: absolute; 
        bottom: 15px;      
        right: 15px;      
        width: 45px;
        height: 45px;
        background: rgba(0, 0, 0, 0.7); 
        border: 1.5px solid #00FBFF;
        border-radius: 50%; 
        z-index: 10001; 
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        cursor: pointer;
    }

    .menu_burger .bar {
        width: 25px;
        height: 3px;
        background-color: #00FBFF;
        border-radius: 5px;
        transition: all 0.3s ease;
    }

    #sousTitre {
        color: white;
        font-size: 0.6rem;
        text-transform: uppercase;
        opacity: 0.85;
        text-align: left;
        margin: 0px 700px 90px 10px !important; 
        width: 100%;
    }
}

@media screen and  (max-width: 1280px) {
    #sousTitre {
        margin-right: 850px; 
    }
}


 


/* --- FOOTER RESPONSIVE --- */
@media screen and (max-width: 768px) {
    .footer {
        flex-direction: column;
        gap: 30px;            
        text-align: center;    
        padding: 3rem 1rem; 
    }    

    .footer .logo-footer {
        justify-content: center; 
        width: 100%;            
        height: 60px;
    }

    .footer .social {
        display: flex;
        flex-direction: column;
        align-items: center;   
    }

    .footer .social ul {
        justify-content: center; 
    }
}


    /* Animation des barres en X */
    .menu_burger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu_burger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu_burger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
