@font-face {
    font-family: 'Belgiano';
    src: url('/static/fonts/Belgiano.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}



body {
    font-family: 'Belgiano', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    border-style: solid 2px;
    border-color: #000000;
    padding-top: 60px; /* Compense la hauteur de la navbar pour éviter le chevauchement */
}

h1 {
    color: #333;
    font-size: 2.5rem;
    text-align: center;
    margin-top: 20px;
}

/* Suppression des puces des listes */
ul, li {
    list-style-type: none;
    padding: 0;
    margin: 0;
}



button {
    padding: 10px 15px;
    background-color: #3498db;
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

button {
    padding: 10px 20px;
    background-color: #3498db;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

/* Style de la galerie d'albums */
.albums-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    
}

.album-item {
    display: flex;
    flex-direction: column;
    align-items: center;
   
}
.album-item a{
    text-decoration: none;
}
.album-item:hover {
    transform: scale(1.05);
}

.album-item img {
    width: 300px;
    height: auto;

    display: block;  /* S'assure que l'image est affichée correctement */
}


.album-item p {
    margin-top: 10px;
    font-size: 2rem;
    color: #ffffff;
}
/* Container de chaque album */
.album-item {
    position: relative;
    width: 300px;
    margin: 20px;
}

/* Album link (pour la taille de l'image et la position) */
.album-link {
    display: block;
    position: relative;
    width: 100%;
    text-align: center;
}

.album-cover {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Pour faire un carré avec un ratio de 1:1 */
    overflow: hidden;  /* Cacher les parties de l'image qui débordent du carré */
}

/* Image de couverture de l'album */
.album-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recadre l'image pour qu'elle remplisse le carré sans être déformée */
    display: block;
}

/* Conteneur du titre centré */
.album-title {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.4); /* Fond transparent sombre sur la couverture */
    color: white;
    font-size: 16px;
    font-family: 'Belgiano', sans-serif;
    opacity: 0; /* Masquer par défaut */
    transition: opacity 0.3s ease-in-out; /* Animation d'apparition */
    border-radius: 10px;
}

/* Afficher le titre lorsque l'utilisateur survole l'album */
.album-item:hover .album-title {
    opacity: 1;
}


/* Section Admin */
.login-container, .admin-section {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.admin-section {
    text-align: center;
}

.admin-section a {
    text-decoration: none;
    color: white;
    background-color: #e74c3c;
    padding: 10px 20px;
    border-radius: 5px;
}

.admin-section a:hover {
    background-color: #c0392b;
}

/* Style de la section de présentation */
.presentation-section {
    text-align: center;
    padding: 40px 20px;
    background-color: #f0f0f0;
}

.portrait img {
    border: solid 1px;
    max-width: 350px;
    height: auto;
}

.description {
    max-width: 600px;
    margin: 0 auto;  /* Centre le texte */
}

.description h1 {
    font-family: 'Belgiano', sans-serif;
    font-size: 36px;
    margin-bottom: 20px;
}

.description p {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

/* Section Contact */
.contact-section {
    padding: 50px 20px;
    background-color: #f7f7f7;
    text-align: center;
    margin-bottom: 20px;
}

.contact-section h2 {
    font-size: 32px;
    font-family: 'Belgiano', sans-serif;
    color: #333;
    margin-bottom: 20px;
}

.contact-content p {
    font-size: 18px;
    color: #333;
    margin: 10px 0;
}

.contact-content a {
    color: #000000; /* Un vert discret pour les liens */
    text-decoration: none;
}

.contact-content a:hover {
    text-decoration: underline;
}

/* Style du footer */
footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
    box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Pour que le contenu se réorganise en lignes sur petit écran */
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px; /* Espacement entre les éléments */
}

footer a {
    color: #ffffff; /* Un vert discret pour les liens */
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.footer-content p {
    margin: 0;
    font-size: 14px;
}

footer p {
    font-size: 14px;
}
