/* style global du site (police, couleurs) */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* en-tête commun sur toutes les pages */
header {
    text-align: center;
    background-color: #333;
    color: white;
    padding: 25px 0;
}

/* titre principal mis en valeur */
header h1 {
    font-size: 2.5em;
    margin: 0;
}

/* barre de navigation */
.navbar {
    background-color: #333;
    padding: 5px;
}

.navbar ul {
    /* suppression des puces et centrage du menu de navigation */
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.navbar ul li {
    
    display: inline; /* affichage des liens sur une seule ligne */
    margin: 0 15px;
}

.navbar ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    padding: 10px;
}

/* effet visuel au survol change couleur */
.navbar ul li a:hover {
    background-color: #555;
    border-radius: 5px;
}

/* style générique pour toutes les sections */
section {
    background-color: white;
    margin: 20px;
    padding: 20px;
    border-radius: 8px;
}

/* titres de sections homogènes */
section h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

/* centrage de la video youtube dans intro iut*/
.ytb {
    display: flex;
    justify-content: center;
}

/* centrage de l'audio */
.audio {
    display: flex;
    justify-content: center;
}

/* Carte centrée */
.maps {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.maps img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
    cursor: pointer;
}

.clic {
    text-align: center;
}
/* organisation flexible des elements centres d’intérêt */
.interest-item {
    display: flex;
    flex-wrap: wrap;              /* adaptation aux petits écrans */
    justify-content: center;
    margin-bottom: 30px;
}

/* titre et texte sur toute la largeur */
.interest-item h3, p {
    width: 100%;
    text-align: center;
}

/* égaliser la taille des images */
.interest-item img {
    width: 600px;
    height: 510px;
    object-fit: cover;            /* Évite la déformation des images */
    margin: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

/* video bien cadrée sur la page */
.interest-item video {
    width: 100%;
    max-width: 800px;   /* taille max propre sur PC */
    height: auto;       /* garde les bonnes proportions */
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    margin: 20px auto;
    display: block;
}


/* titre au milieu de la page books*/
.books-films section, h2 {
    text-align: center;
    
}

/* contenu centré */
.item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* image centrées */
.item img {
    width: 100%;
    max-width: 450px;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.item p {
    margin-top: 15px;
}

/* Pied de page fixé visuellement en bas */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    width: 100%;
}
