/* ========================================
   PORTFOLIO - STYLE.CSS
   ======================================== */

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

/* ===== STYLES DU BODY  ===== */
body {
    font-family: "Open Sans", sans-serif;
    background: #b0c7ff;
    color: #ffffff;
    line-height: 1.6;
    cursor: url('images/cursor.png') 16 16, auto; /* Curseur patte de fouine */
}
a, button, .card {
    cursor: url('images/cursor.png') 16 16, pointer;
}

/* ===== TYPOGRAPHIE ===== */
/* Tous les grands titres (H1 et H2) */
h1, h2 {
    font-family: "Roboto Condensed", serif;
    font-weight: 700;
    font-size: 60px;
    text-align: left;
    margin-bottom: 20px;
}

/* Sous-titres (H3) */
h3 {
    font-family: "Open Sans", serif;
    font-weight: 600;
    font-size: 24px;
    margin: 20px 0 15px;
}

/* Paragraphes */
p {
    margin: 10px 0;
    font-size: 16px;
}

/* ===== HEADER ===== */
header {
    text-align: center;
    padding: 20px 0 5px; 
    background: #1F3A58;
    color: white;
}

.banner {
    width: 100%;
    overflow: hidden;
    text-align: center;
}

.banner img {
    width: 100%;
    height: auto;
    image-rendering: pixelated; /* Garde l'aspect pixel art sinon c'est flou*/
}

/* ===== FLÈCHE "SCROLL DOWN" ===== */
.scroll-indicator {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    cursor: url('images/cursor.png') 16 16, pointer;
}

body.scrolled .scroll-indicator {
    opacity: 0;
    pointer-events: none;
}

.scroll-arrow {
    font-size: 30px;
    color: white;
    animation: bounce 2s infinite;
}

.scroll-indicator p {
    margin-top: 0px;
    font-size: 14px;
    color: white;
    font-weight: 600;
}

/* Animation de rebond pour la flèche */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ===== BARRE DE NAVIGATION ===== */
nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #325986;
    padding: 7px 10px;
    border-bottom: 5px solid #1F3A58;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
body.scrolled nav {
    border-top: 5px solid #1F3A58;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
/* Container des liens de navigation */
.nav-links {
    display: flex;
    gap: 15px;
    flex: 1;
    justify-content: center;
}

/* Tous les liens dans la nav */
nav a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 16px;
    padding: 5px 10px;
    transition: transform 0.2s, color 0.2s;
}

nav a:hover {
    color: #FFA33F;
    transform: scale(1.1);
}

/* Icônes réseaux sociaux dans la nav */
.social-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    padding: 0;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Au survol des icônes sociales */
.social-links a:hover {
    transform: scale(1.2) rotate(5deg);
}

.social-links img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===== SECTIONS (PARTIES DE LA PAGE) ===== */
section {
    padding: 30px 10%;
    min-height: 400px;
    scroll-margin-top: 70px; /* Compensation pour la nav */
}

/* Couleurs différentes pour chaque section */
#intro {
    background: #36506f;
}

#mes-jeux {
    background: #577399;
}

#informatique {
    background: #BDD5EA;
}
#informatique > h2,
#informatique > h3 {
    color: #1F3A58;
}
#informatique .card-text h3 {
    color: white;
}

#graphisme {
    background: white;
}
#graphisme > h2,
#graphisme > h3 {
    color: #1F3A58;
}
#graphisme .card-text h3 {
    color: white;
}

/* ===== SECTION COMPÉTENCES ===== */
#competences {
    background: #36506f;
}

.skills-category {
    margin-bottom: 0px;
}
.skills-category h3 {
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 5px;
    text-align: left;
}
.skills-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* colonnes */
    gap: 10px 20px;
    max-width: 900px;
    margin: 0;
}
.skill {
    margin-bottom: 0px;
}
.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.skill-name {
    font-weight: bold;
    font-size: 16px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}
.skill-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.skill-bar {
    background: rgba(255, 255, 255, 0.2);
    height: 10px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    background: #BDD5EA;
    height: 100%;
    width: 0;
    border-radius: 10px;
    transition: width 1.5s ease;
    position: relative;
}
.skill-progress.animated {
    width: var(--progress);
}
/* Description sous la barre de compétence */
.skill-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

/* ===== CARDS (CARTES DE PROJET) ===== */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.card {
    background: #1F3A58;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s;
}

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

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card-text {
    padding: 15px;
    color: white;
}

.card-text h3 {
    margin: 5px 0 10px;
    font-size: 20px;
}

.card-text p {
    margin: 0;
    font-size: 14px;
    color: #d1d1d1;
    line-height: 1.5;
}

/* ===== MODALE (POPUP) ===== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
    overflow: auto;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 45px;
    color: white;
    cursor: url('images/cursor.png') 16 16, pointer;
    transition: color 0.2s;
}
.close:hover {
    color: #FFA33F;
}

.modal-content {
    display: flex;
    flex-direction: row;
    gap: 30px;
    max-width: 1200px;
    width: 90%;
    max-height: 80vh;
    background: rgba(20, 30, 48, 0.90);
    border-radius: 15px;
    padding: 30px;
    color: white;
}

/* ===== MODALE ===== */

.modal-gallery {
    flex: 0 0 350px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
}

#gallery-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#gallery-container img,
#gallery-container video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: url('images/cursor.png') 16 16, pointer;
    transition: transform 0.2s;
}


#gallery-container img:hover,
#gallery-container video:hover {
    transform: scale(1.05);
}


.modal-text-full {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

#modal-text {
    color: white;
    font-size: 16px;
    line-height: 1.8;
    text-align: left;
}

#modal-text p {
    margin-bottom: 20px;
}

.modal-gallery::-webkit-scrollbar-track,
.modal-text-full::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.modal-gallery::-webkit-scrollbar-thumb,
.modal-text-full::-webkit-scrollbar-thumb {
    background: #FFA33F;
    border-radius: 10px;
}


.modal-tools {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}
.modal-tools h4 {
    font-size: 18px;
    color: #FFA33F;
    margin-bottom: 15px;
    font-weight: 600;
}
.tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.tool-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    color: white;
}
.tool-item img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* ===== AUTRES ===== */

.image-zoom-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 200;
    cursor: url('images/cursor.png') 16 16, zoom-out;
    overflow-y: auto;
    padding: 40px 20px;
}

.image-zoom-overlay img {
    max-width: 70%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    margin: auto;
}

.image-zoom-overlay .close-zoom {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 50px;
    color: white;
    cursor: url('images/cursor.png') 16 16, pointer;
    transition: color 0.2s;
    z-index: 201;
}

.image-zoom-overlay .close-zoom:hover {
    color: #FFA33F;
}

.hidden {
    display: none !important; /* !important force le style */
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 20px 10px;
    background: #1F3A58;
    color: white;
    font-size: 14px;
}

footer p {
    margin: 0;
}

/* ===== TELEPHONE ===== */
@media (max-width: 768px) {
    h1, h2 {
        font-size: 40px;
    }
    section {
        padding: 40px 5%;
    }
    .cards {
        grid-template-columns: 1fr;
    }
    .skills-container {
        grid-template-columns: 1fr;
    }

    .modal-content {
        flex-direction: column;
        max-height: 90vh;
    }

    .modal-gallery {
        flex: 0 0 auto;
        max-height: 40vh;
    }

    .modal-text-full {
        flex: 1;
    }

    nav {
        display: none;
    }
}

