/* Style global */
html, body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f8ff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Cache tout débordement horizontal */
}
/* Header */
header {
    width: 100%;
    height: 150px;
    background-color: #004080;
    position: relative;
}

.logo-cap {
    position: absolute;
    right: 10px;
    top: 10px;
}

.logo {
    height: 80px;
    width: auto;
}

/* Conteneur principal */
.content-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo et description */
.logo-alumni-center {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-alumni {
    height: 150px;
    width: auto;
}

.alumni-description {
    margin-top: 10px;
    font-size: 1em;
    line-height: 1.4;
    color: #333;
    max-width: 100%;
    word-wrap: break-word;
}

/* Section de bienvenue */
.welcome-section {
    flex: 1;
    margin-left: 50px;
    text-align: left;
}

h1 {
    font-size: 1.5em;
    color: #004080;
}

form {
    margin: 20px 0;
}

select, button {
    padding: 10px;
    font-size: 1em;
    margin: 10px;
    border: none;
    border-radius: 5px;
    color: #ffffff;
    background-color: #0073e6;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #005bb5;
}

select {
    background-color: #f0f8ff;
    color: #004080;
    border: 1px solid #0073e6;
}

/* Footer */
footer {
    width: 100vw;
    background-color: #004080;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

.social-icons {
    margin-top: 10px;
}

.social-icons a {
    margin: 0 10px;
    display: inline-block;
}

.social-icons img {
    width: 40px;
    height: 40px;
    filter: invert(100%);
}

footer p {
    margin: 0;
    font-size: 1.2em;
}

/* Curseur clignotant */
#dynamic-text::after {
    content: '|';
    animation: blink 0.7s steps(1) infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Adaptations pour tablettes */
@media (max-width: 1024px) {
    .content-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .logo-cap .logo {
        height: 60px;
        width: auto;
    }

    .logo-alumni {
        height: 120px;
        width: auto;
    }

    .alumni-description {
        max-width: 90%;
        font-size: 0.95em;
        text-align: center;
    }

    .welcome-section {
        margin-left: 0;
        margin-top: 20px;
    }

    select, button {
        width: 90%;
        font-size: 1em;
        padding: 10px;
    }
}

/* Adaptations pour smartphones (écrans très petits) */
@media (max-width: 600px) {
    .content-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 10px;
    }

    header {
        height: 120px;
    }

    .logo-cap .logo {
        height: 50px;
        width: auto;
    }

    .logo-alumni {
        height: 100px;
        width: auto;
    }

    .alumni-description {
        max-width: 90%;
        font-size: 0.9em;
        padding: 0 5px;
        text-align: center;
    }

    .welcome-section {
        margin-left: 0;
        margin-top: 15px;
    }

    select, button {
        width: 100%;
        font-size: 0.9em;
        padding: 8px;
    }

    .social-icons img {
        width: 30px;
        height: 30px;
    }
}

/* Adaptations pour très petits écrans (comme iPhone SE) */
@media (max-width: 375px) {
    .content-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 10px;
    }

    .logo-alumni {
        height: 80px;
        width: auto;
    }

    .alumni-description {
        max-width: 90%;
        font-size: 0.85em;
        margin: 0 auto;
        padding: 0 10px;
        text-align: center;
    }

    .welcome-section {
        margin-left: 0;
        margin-top: 15px;
    }

    select, button {
        width: 100%;
        font-size: 0.85em;
        padding: 8px;
    }

    .social-icons img {
        width: 25px;
        height: 25px;
    }
}
