/* Style général */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom right, #00132c, #003F92);
    color: #e0e0e0;
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

/* Conteneur principal */
.container {
    max-width: 725px;
    padding: 20px;
}

/* Logo */
.logo {
    width: 152px;
    height: 152px;
    margin-bottom: auto;
}

/* Titre */
.titre {
    font-size: 40px;
    font-weight: bold;
    color: #4fc3f7;
    margin-bottom: 10px;
}

/* Texte animé */
.typewriter {
    overflow: hidden;
    white-space: nowrap;
    border-right: .15em solid #4fc3f7;
    animation: typing 3s steps(40, end), blink-caret .75s step-end infinite;
    font-size: 24px;
    margin-bottom: 30px;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #4fc3f7; }
}

/* Loader circulaire */
.loader {
    margin: 20px auto;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(79, 195, 247, 0.3);
    border-top: 4px solid #4fc3f7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Description */
.description {
    font-size: 20px;
    color: #aaa;
    margin-top: 10px;
}

/* Liens index.html*/
.liens {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 76px;
    font-size: 20px;
    flex-wrap: wrap;
}

.liens a {
    color: #4fc3f7;
    text-decoration: none;
}

.liens a:hover {
    text-decoration: underline;
}

/* Bouton de retour */
.back-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
    text-decoration: none;
}

.back-button:hover {
    background-color: #0056b3;
}

/* Card reseaux */
.card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-card {
    background-color: #245286;
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    margin: 10px;
    width: 200px;
    transition: transform 0.3s;
    text-decoration: none;
}

.social-card img {
    width: 110px;
    height: 110px;
    margin-bottom: 2px;
}

.social-card:hover {
    transform: translateY(-5px);
    color: #007BFF;
}

.social-card span {
    display: block;
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
}

/* ********Page de recrutement******** */


/* Responsive : tablettes et mobiles */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .logo {
        width: 100px;
        height: 100px;
    }

    .titre {
        font-size: 32px;
    }

    .typewriter {
        font-size: 18px;
    }

    .description {
        font-size: 16px;
    }

    .liens {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        font-size: 18px;
    }

    .social-card {
        width: 90%;
        max-width: 300px;
    }

    .social-card img {
        width: 80px;
        height: 80px;
    }

    .back-button {
        font-size: 14px;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .titre {
        font-size: 26px;
    }

    .typewriter {
        font-size: 16px;
    }

    .description {
        font-size: 14px;
    }

    .liens {
        font-size: 16px;
    }
}
