/* Le Css */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

body{
    padding: 0 2%;
    margin: 0;
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    scroll-behavior: smooth;
}

nav{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    position: sticky;
    top: 0;
    margin-right: -2.1%;
    margin-left: -2.1%;
    padding-right: 2.1%;
    padding-left: 2.1%;
    z-index: 10;
    box-shadow: 25px 25px 25px #00000030;
}
nav .LeProfile{
    display: flex;
    align-items: center;
    img{
        width: 40px;
        height: 40px;
        border-radius: 40%;
        cursor: url(../images/Luffy\ Person.cur),auto;
        cursor: url(images/Luffy\ Person.cur),auto;
    }
    h1{
        margin-left: 10px;
        font-size: 30px;
    }
}

.section1_de_la_page .colonne2Div{
    .LesColone{
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        .item{
            max-width: 195px;
            margin-right: 20px;
            h4{
                margin: 0;
            }
            a{
                text-decoration: none;
                color: black;
                /* cursor: zoom-in; */
                cursor: nwse-resize;
                cursor: url(images/SnK\ Blade.cur),auto;
                background-color: blanchedalmond;
                border-radius: 10px;
                padding: 5px;
                border: dotted blue 1px;
            }
        }
    }
}


@media screen and (max-width: 700px) {
    nav{
        justify-content: center;
        ul{
            display: none;
        }
        z-index: 10;
        .LeProfile{
            img{
                width: min(10dvw,10dvh);
                height: min(10dvw,10dvh);
            }
            h1{
                margin-left: min(2dvw,2dvh);
                font-size: min(6dvw,6dvh);
            }
        }
    }       
    .section1_de_la_page{
        margin: 5%;
        header{
            margin-top: 10%;
            max-width: 100%;
        }
    }
    footer{
        justify-content: flex-start;
        text-wrap: wrap;
        flex-wrap: wrap;
    }
    footer .Colonne{
        width: 80%;
    }
}

nav ul{
    display: flex;
    list-style-type: none;
    a{
        text-decoration: none;
        color: black;
    }
}
nav ul li{
    margin-left: 20 px;
    cursor: pointer;
    border-bottom: 1px solid white;
    margin: 10px;
}
nav ul li:hover{
    border-bottom-color: black;
}

.section1_de_la_page{
    margin: 4%;
    header{
        margin-top: 5%;
        max-width: 80%;
        h1{
            margin: 0;
            /* text-transform:none; */
            font-size: 3dvw;
        }
        p{
            line-height: 30px;
            color: #80808080;
        }
    }
    .imageNumeroUn{
        margin-top: 5%;
        img{
            transition: filter 0.5s;
            filter: brightness(50%);
            filter: blur(5px);
        }
        img:hover{
            filter: brightness(100%);
            filter: blur(0px);
        }
    }
}
footer{
    margin-top: 5%;
    margin-right: -2.1%;
    margin-left: -2.1%;
    display: flex;
    text-wrap: wrap;
    flex-wrap: wrap;
    justify-content: space-around;
    background-color: black;
    color: azure;
    padding: 5px;
    padding-bottom: 10%;
    .Colonne{
        a{
            text-decoration: none;
            color: azure;
        }
        p{
            font-size: 12px;
            cursor: pointer;
        }
        p:hover{
            color: blue;
        }
    }
}
.kaliSVG{
    margin-top: 0%;
}
.footer-logo-kaliSVG{
    max-width:30%;
}


/* --- SECTION PROJETS --- */

.section-projets {
    margin: 4% 4%;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.section-projets header h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

.projects-grid {
    display: grid;
    /* Crée une grille responsive automatique */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.project-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: black;
}

.project-card h3 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.2em;
}

.project-card .date {
    font-size: 0.85em;
    color: #888;
    display: block;
    margin-bottom: 10px;
    font-style: italic;
}

.project-card p {
    font-size: 0.95em;
    color: #444;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Chips / Tags pour les compétences */
.project-card .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-card .tags span {
    background-color: #f0f0f0;
    color: #333;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
}

.card-links {
    margin-top: auto; /* Pousse les boutons vers le bas */
    padding-top: 15px;
    border-top: 1px dashed #eee;
    display: flex;
    gap: 10px;
}

.btn-link {
    text-decoration: none;
    color: black;
    border: 1px solid black;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9em;
    transition: background-color 0.2s, color 0.2s;
}

.btn-link:hover {
    background-color: black;
    color: white;
}

.btn-link.secondary {
    border: 1px solid #ccc;
    color: #666;
}

.btn-link.secondary:hover {
    background-color: #ccc;
    color: black;
}

.no-link {
    font-size: 0.9em;
    color: #888;
    cursor: default;
}

/* Adaptation Mobile */
@media screen and (max-width: 700px) {
    .projects-grid {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
    }
}
/* --- SECTION PROJETS : DESIGN AVANCÉ --- */

.section-projets {
    margin: 4% 4%;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.section-projets header h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 10px rgba(118, 75, 162, 0.1);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 35px;
    margin-top: 40px;
}

/* --- CARTE PROJET --- */
.project-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    border-top: 5px solid #ccc; /* Couleur fallback */
    position: relative;
}

/* Couleurs par catégorie */
.project-card.cat-ia { border-top-color: #9b59b6; }   /* IA : Violet */
.project-card.cat-dev { border-top-color: #3498db; }  /* Dev : Bleu */
.project-card.cat-hard { border-top-color: #e67e22; } /* Hard : Orange */

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15);
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Titres et Dates */
.card-content h3 {
    margin: 0 0 5px 0;
    font-size: 1.4em;
    color: #2c3e50;
    font-weight: 700;
}

.card-content .date {
    font-size: 0.85em;
    color: #95a5a6;
    margin-bottom: 15px;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Tags / Chips */
.tags {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 0.75em;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cat-ia .tag { background: #f3e5f5; color: #8e44ad; }
.cat-dev .tag { background: #e3f2fd; color: #2980b9; }
.cat-hard .tag { background: #fff3e0; color: #d35400; }

/* Description Courte */
.short-desc {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* --- BOUTONS GITHUB STYLE "BENTO/CARD" --- */
.github-repo-card {
    background: #f6f8fa;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 10px 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.github-repo-card:hover {
    background: #ffffff;
    border-color: #0969da;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.github-link-text {
    font-weight: 600;
    color: #0969da;
    text-decoration: none;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.github-link-text::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16' fill='%2324292f'%3E%3Cpath d='M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
}

.github-stats {
    display: flex;
    gap: 10px;
}

/* --- ANIMATION ACCORDÉON FLUIDE (GRID METHOD) --- */
details {
    margin-top: auto; /* Pousse en bas de carte */
}

summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    color: #555;
    font-weight: 600;
    font-size: 0.95em;
    border-top: 1px solid #f0f0f0;
    transition: color 0.2s;
}

summary:hover {
    color: #000;
}

summary::after {
    content: '+';
    font-size: 1.2em;
    font-weight: 300;
    transition: transform 0.3s ease;
}

details[open] summary::after {
    transform: rotate(45deg);
}

/* Le wrapper qui permet l'animation */
.details-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease-out;
}

details[open] .details-wrapper {
    grid-template-rows: 1fr;
}

.details-content {
    overflow: hidden;
    font-size: 0.95em;
    color: #666;
    line-height: 1.7;
}

.details-content h4 {
    margin: 15px 0 10px 0;
    color: #333;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #eee;
    display: inline-block;
}

/* Images dans les détails */
.project-media img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid #eee;
}

/* Mobile */
@media screen and (max-width: 700px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Container vidéo responsive (Ratio 16:9) */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #eee;
    background: #000;
    margin-bottom: 10px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}