/* === Fond et corps de page === */
html, body {
    height: 100%;          /* hauteur minimale = 100% du viewport */
    margin: 0;
    padding: 0;
}

html {
    background-image: url("prof_tyran.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;  /* image fixe au scroll */
}

body {
    min-height: 100vh;     /* assure que le body prend tout l’espace */
    margin-left: auto;
    margin-right: auto;
}

/* === Menu === */
.menu {
    font-family: 'Inconsolata', monospace;
    font-size: 20px;
    color: black;
    text-align: left;
    margin-left: 1%;
    margin-top: 1%;     /* marge au-dessus restaurée */
    margin-bottom: 1%;
}

.menu ol {
    list-style-type: none;
    margin-top: 0;
    margin-bottom: 10px;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.menu li {
    display: inline-block;
}

.menu li a {
    display: inline-block;
    background-color: #3AB0FF;
    border-radius: 10px;
    padding: 12px 15px;
    color: black;
    text-decoration: none;
}

.menu li a:hover {
    background-color: #1310FF;
    color: white;
}

.menu li a:active {
    background-color: #5814A8;
    color: white;
}

/* === Bloc texte === */
.bloc {
    background-color: rgba(245, 245, 245, 0.8);
    border-radius: 10px;
    font-size: 20px;
    font-family: 'Inconsolata', monospace;
    color: black;
    text-align: justify;
    padding: 12px 15px;
    margin: 1%;
}

/* === Présentation === */
.presentation {
    display: flex;
    justify-content: space-around;
    font-family: 'Inconsolata', monospace;
    background-color: rgba(234, 235, 255, 0.8);
    border-radius: 10px;
    font-size: 20px;
    color: #143313;
    padding: 12px 15px;
    width: 60%;
    margin: 0 auto;
}

.nom {
    text-align: center;
    width: 80%;
    padding-top: 3%;
}

.pierre {
    font-size: 50px;
}

.photo {
    width: 20%;
}

.photo img {
    float: right;
    max-width: 150px;   /* limite la taille sur PC */
    width: auto;
    height: auto;
    border-radius: 8px;
}

/* === Footer === */
footer {
    font-family: 'Inconsolata', monospace;
    background-color: rgba(234, 235, 255, 0.8);
    float: right;
    bottom: 0;
    border-radius: 10px;
    font-size: 20px;
    color: #143313;
    padding: 12px 15px;
    width: 30%;
    margin: 5% 1% 1% 1%;
}

/* === Responsive mobile === */
@media (max-width: 600px) {

    /* Menu vertical */
    .menu ol {
        flex-direction: column;
        align-items: center;
    }

    /* Présentation en colonne */
    .presentation {
        flex-direction: column;
        width: 90%;
        padding: 10px;
    }

    .nom {
        width: 100%;
        padding-top: 10px;
    }

    .photo {
        width: 100%;
        float: none;
        text-align: center;
        margin-bottom: 15px;
    }

    .photo img {
        float: none;
        display: block;
        margin: auto;
        max-width: 120px;  /* taille adaptée mobile */
        height: auto;
    }

    /* Bloc texte */
    .bloc {
        width: 90%;
        margin: 10px auto;
        padding: 10px;
    }

    /* Footer responsive */
    footer {
        width: 90%;
        float: none;
        margin: 10px auto;
        text-align: center;
    }
}
