/* Styles globaux */
header h1 {
    text-align: center;
    margin-bottom: 50px;
}

a {
    display: inline-block;
}

/* Justification du texte pour les pages de biographie */
body.page-biographie .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

body.page-biographie .image-section,
body.page-biographie .credits-section,
body.page-biographie .bio-section {
    margin-bottom: 20px;
    text-align: center;
}

body.page-biographie img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

body.page-biographie .credits {
    font-size: 0.9em;
    color: #555;
    text-align: center;
    margin-top: 10px;
}

body.page-biographie .bio-section {
    font-size: 1em;
    color: #333;
    line-height: 1.6;
    text-align: justify;
}

/* Styles pour les galeries d'images carrées */
.portraits {
    text-align: center;
    white-space: nowrap;
    overflow-x: auto;
}

.portrait {
    display: inline-block;
    margin: 20px;
    position: relative;
}

.portrait .overlay {
    position: relative;
    width: 200px;
    height: 200px;
    overflow: hidden;
}

.portrait img {
    width: 200px;
    height: auto;
    display: block;
    transition: filter 0.3s ease;
}

.portrait:hover img {
    filter: blur(5px);
}

.text {
    position: absolute;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7); /* Fond semi-transparent plus clair */
    color: #000 !important; /* Couleur du texte noire pour contraster avec le fond clair */
    width: 100%;
    height: 100%;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    transform: translateY(100%);
    pointer-events: none;
}

.portrait:hover .text {
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.text-inner {
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Styles pour les galeries d'images rectangulaires */
.portraits-rect {
    text-align: center;
    white-space: nowrap;
    overflow-x: auto;
}

.portrait-rect {
    display: inline-block;
    margin: 20px;
    position: relative;
}

.portrait-rect .overlay {
    position: relative;
    width: 500px;
    height: 350px;
    overflow: hidden;
}

.portrait-rect img {
    width: 500px;
    height: auto;
    display: block;
    transition: filter 0.3s ease;
}

.portrait-rect:hover img {
    filter: blur(5px);
}

.text-rect {
    position: absolute;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7); /* Fond semi-transparent plus clair */
    color: #000; /* Couleur du texte noire pour contraster avec le fond clair */
    width: 100%;
    height: 100%;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    transform: translateY(100%);
    pointer-events: none;
}

.portrait-rect:hover .text-rect {
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.text-inner-rect {
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}


.custom-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.custom-block {
    position: relative;
    width: 22%;
    margin: 1%;
    border: 2px solid #ccc;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.custom-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.custom-block img {
    width: 100%;
    height: auto;
    transition: transform 0.3s;
}

.custom-block:hover img {
    transform: scale(1.1);
}

.custom-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    transition: background 0.3s;
    border-radius: 5px;
}

.custom-block:hover .custom-title {
    background: rgba(0, 0, 0, 0.7);
}



