body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;

    /* Dégradé harmonieux de bleus */
    background: linear-gradient(135deg, #0a1f44, #13315c, #1e4e8c, #3066be);
    background-size: 400% 400%;
    animation: gradientMove 20s ease infinite;

    /* Superposition d’un motif circuits imprimés */
    background-image:
        url("images/gplay.png"),
        linear-gradient(135deg, 
        #0a1f44, #13315c, #1e4e8c, #3066be);
    background-blend-mode: overlay;
    background-attachment: fixed;
    color: white;
}

/* LOGO */
.logo-floating {
    position: fixed;
    top: 15px;
    right: 10px;
    width: 200px;
    height: 110px;
    background-image: url("images/logo_geii.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 200;
    pointer-events: none;
}

/* CONTAINER */
.projects-container {
    padding: 120px 80px;
    max-width: 1400px;
    margin: auto;
}

.page-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.8rem;
}

/* CARTE PROJET */

/* HEADER */
.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-header h2 {
    color: #ffb703;
    margin: 0;
}

/* BOUTON PLUS VISIBLE */
.toggle-btn {
    background: #ffb703;
    color: #000;
    border: none;
    padding: 10px 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease;
}

.toggle-btn:hover {
    background: #ffd166;
    transform: scale(1.05);
}
.project-card {
    background: #162447; /* Bleu foncé mat distinct du fond */
    border: 2px solid rgba(255, 183, 3, 0.4);
    border-radius: 18px;
    padding: 30px;
    margin-bottom: 60px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7);
    transition: 0.4s ease;
}

.project-card:hover {
    box-shadow: 0 25px 70px rgba(0,0,0,0.9);
    transform: translateY(-4px);
}
/* CONTENU DÉPLIABLE */
.project-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease;
}

.project-card.active .project-body {
    max-height: 2000px;
    margin-top: 30px;
}

/* STRUCTURE HAUT */
.top-section {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* IMAGE */
.image-block {
    flex: 1;
    background: #1f4068;
    padding: 20px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}


.image-block img {
    width: 100%;
    border-radius: 12px;
}

/* LOGOS À DROITE DE L’IMAGE */
.project-logos {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.project-logos img {
    width: 50px;
    height: 50px;
    background: white;
    padding: 6px;
    border-radius: 8px;
}

.resume-block,
.cdc-block,
.skills-block {
    background: #1f4068; /* Bleu différent du bloc parent */
    padding: 25px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* Espacement propre */
.cdc-block {
    margin-top: 35px;
}

.skills-block {
    margin-top: 35px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .top-section {
        flex-direction: column;
    }
}


.skill-btn {
    background: linear-gradient(135deg, #ffb703, #ffd166);
    border: none;
    padding: 10px 18px;
    margin: 6px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    color: #1b1b1b;
    transition: all 0.3s ease;
}

.skill-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255,209,102,0.8);
}
/* MODAL */
.skill-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    z-index: 500;
}

.modal-content {
    background: #2a2a2a;
    padding: 30px;
    border-radius: 10px;
    width: 400px;
    text-align: center;
}

.close-btn {
    float: right;
    cursor: pointer;
    font-size: 24px;
}

.search-container {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-container input {
    padding: 8px 14px;
    border-radius: 20px;
    border: none;
    outline: none;
    width: 180px;
    transition: 0.3s ease;
}

.search-container input:focus {
    width: 240px;
    box-shadow: 0 0 10px rgba(30,192,255,0.8);
}

.search-container button {
    background: #ffb703;
    border: none;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
}


/* RESPONSIVE */
@media (max-width: 900px) {
    .project-content {
        flex-direction: column;
    }
}
