/* Style général */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('conception-plexus-moderne-3d-communications-reseau-techno-moderne.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    overflow-x: hidden;
}

/* Titre */
.neon-title {
    font-size: 3rem;
    text-align: center;
    color: #00aaff;
    text-shadow: 
        0 0 3px #00aaff, 
        0 0 5px #00aaff, 
        0 0 10px #0055ff;
    animation: neon-blink 2s infinite alternate;
    padding: 20px;
}

@keyframes neon-blink {
    from { text-shadow: 0 0 3px #00aaff, 0 0 5px #00aaff, 0 0 10px #0055ff; }
    to { text-shadow: 0 0 1px #00aaff, 0 0 3px #00aaff, 0 0 5px #0055ff; }
}

/* Menu */
.menu {
    display: flex;
    justify-content: center;
    gap: 10px;
    background-color: #333;
    padding: 10px;
    color: #fff;
    text-align: center;
}

.menu a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    background-color: #555;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.menu a:hover {
    background-color: #007bff;
}

/* Section principale */
.main-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    gap: 20px;
}

/* Section du jeu */
.game-section {
    flex: 1;
    min-width: 600px;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#game-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00aaff;
    border-radius: 10px;
    overflow-x: auto;
    overflow-y: hidden;
}

/* Personnage */
.character {
    position: absolute;
    bottom: 10px;
    left: 50px;
    width: 40px;
    height: 60px;
    background: #ff4500;
    border-radius: 5px;
    transition: all 0.5s ease;
    z-index: 10;
}

/* Tours */
.tower {
    position: absolute;
    bottom: 10px;
    width: 30px;
    height: 100px;
    background: #4682b4;
    border-radius: 5px;
    z-index: 5;
}

#tower1 { left: 150px; }
#tower2 { left: 250px; }
#tower3 { left: 350px; }
#tower4 { left: 450px; }
#tower5 { left: 550px; }
#tower6 { left: 650px; }
#tower7 { left: 750px; }

/* Bouton Sauter */
.jump-button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #00aaff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.jump-button:hover {
    background-color: #0077b5;
}

/* Blocs interactifs */
.interactive-blocks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 300px;
}

.block {
    width: 150px;
    height: 300px;
    perspective: 1000px;
    cursor: pointer;
}

.block-front, .block-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    backface-visibility: hidden;
    transition: transform 0.6s;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
}

.block-front {
    transform: rotateY(0deg);
}

.block-back {
    transform: rotateY(180deg);
}

.block.flipped .block-front {
    transform: rotateY(-180deg);
}

.block.flipped .block-back {
    transform: rotateY(0deg);
}

.block img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

.block p {
    margin: 5px 0;
    font-size: 14px;
    color: #000;
}

.block ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 5px 0;
    font-size: 12px;
    color: #000;
    text-align: left;
}

.block .conclusion {
    font-weight: bold;
    font-size: 12px;
    color: #007bff;
}

.hidden {
    display: none;
}

/* Section des compétences */
.skills-section {
    margin: 40px 0;
    padding: 20px;
    text-align: center;
    color: #fff;
}

.skills-intro {
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 16px;
    line-height: 1.5;
}

.skills-intro p {
    margin: 10px 0;
}

.skills-blocks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-block {
    width: 300px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    text-align: left;
}

.skill-block h3 {
    color: #ff8080;
    font-size: 18px;
    margin-bottom: 10px;
}

.skill-block p {
    font-size: 14px;
    color: #fff;
    line-height: 1.4;
}

/* Section Résumé */
.summary-section {
    margin: 40px 0;
    text-align: center;
}

.neon-title-red {
    font-size: 2.5rem;
    color: #ff8080;
    text-shadow: 
        0 0 5px #ff8080, 
        0 0 10px #ff8080, 
        0 0 20px #ff8080, 
        0 0 40px #ff6666;
    animation: neon-2-blink 1.5s infinite alternate;
    position: relative;
}

@keyframes neon-2-blink {
    from { text-shadow: 0 0 5px #ff8080, 0 0 10px #ff8080, 0 0 20px #ff8080, 0 0 40px #ff6666; }
    to { text-shadow: 0 0 2px #ff8080, 0 0 5px #ff8080, 0 0 10px #ff8080; }
}

.summary-blocks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.summary-block {
    width: 150px;
    padding: 10px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.summary-block img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

.summary-block p {
    margin: 5px 0;
    font-size: 14px;
    color: #000;
}

/* Bouton Recommencer */
.restart-button {
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #ff4500;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
}

.restart-button:hover {
    background-color: #cc3700;
}

/* Footer */
.footer {
    background-color: #2d7dda;
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.icon-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px;
}

.icon-container a {
    background-color: #0077b5;
    border-radius: 50%;
    padding: 10px;
    transition: transform 0.3s ease;
}

.icon-container a img {
    width: 30px;
    height: 30px;
}

.icon-container a:hover {
    transform: scale(1.1);
}