/* Styles généraux */
body {
    color: #333;

}

.main {
    margin: 0 auto;
    padding: 20px;
    max-width: 1500px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 36px;
}

h2 {
    font-size: 24px;
    color: black;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Container des sections */
.section-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
    margin-bottom: 40px;
}

/* Carte des compétences et outils */
.skill, .tool {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 120px;
    padding: 15px;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.skill:hover, .tool:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.skill:hover {
    background-color: #d6249f;
}

/* Icônes */
.skill-icon img, .tool-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.skill-name, .tool-name {
    font-size: 16px;
    color: #555;
    margin-top: 10px;
}

/* Liens */
.skills-container a, .tools-container a {
    text-decoration: none;
    color: inherit;
}

.skills-container, .tools-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

/* Langages */
.langages-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.langage-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.langage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.langage-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

/* Image de compétence */
.competence-img {
    display: block;
    margin: 40px auto;
    width: 25%;
    height: auto;
}


.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 60%;
    text-align: center;
    position: relative;
}

.close {
    color: red;
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
}

.skill {
    color: black;
    text-decoration: none;
    font-size: 1.2em;
    padding: 10px;
    text-shadow: 6px 6px 25px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.3s, background-color 0.3s;
    border-radius: 10px;
    font-family: "Source Code Pro", monospace;
    font-optical-sizing: auto;
    font-style: normal;
}

.skill:hover {
    border-radius: 10px;
    box-shadow: 6px 6px 25px rgba(0, 0, 0, 0.5);
    background: linear-gradient(to right, #d6249f, #f06292);
}

.button-container {
    text-align: center;
    margin: 40px 0 30px 0;
}
#showPdfBtn {
    background-color: #007BFF;
    color: #fff;
    border: none;
    padding: 14px 32px;
    font-size: 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.10);
}
#showPdfBtn:hover {
    background-color: #0056b3;
}
#pdfContainer {
    display: none;
    width: 70vw;
    max-width: 900px;
    height: 80vh;
    margin: 0 auto;
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}
@media (max-width: 950px) {
    #pdfContainer {
        width: 95vw;
        height: 70vh;
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .skill, .tool {
        width: 100px;
        padding: 10px;
    }

    .skill-icon, .tool-icon {
        width: 40px;
        height: 40px;
    }

    .skill-name, .tool-name {
        font-size: 12px;
    }

    .langage-card {
        padding: 10px;
    }
}
