body {
    background-color:white; 
    /* background:linear-gradient(white,rgb(231, 192, 216),rgb(181, 2, 137),rgb(32, 3, 94)  ); */
    margin:0px;
}
.marge_laterale {
    margin: 0 20%;   
}

#bandeau{
    background:linear-gradient(rgb(32, 3, 94),rgb(181, 2, 137), rgb(231, 192, 216));
    height: 30px;
    text-align: center;
    z-index: -2; /*Pour l'effet de surlignage en hover des noms entete */
    padding:20px;
} 

#bandeau_bas{
    height: 60px;
    /* background:linear-gradient(rgb(32, 3, 94),rgb(181, 2, 137), rgb(231, 192, 216)); */
    background: linear-gradient(rgb(231, 192, 216),rgb(181, 2, 137),rgb(32, 3, 94));
    text-align: center;
    padding:20px;
} 

.titre{
    font-size: larger;
    font-family: "Shrikhand", serif;
    text-decoration: none; 
    color: white;
    position: relative;
    padding: 0 15px; 
}

.entete{
    font-size: small;
    font-family: "Helvetica",serif;
    text-decoration: none; /*eviter le sous-aligné */
    color: white;
    position: relative;
    padding: 0 15px; 
}

.entete::before{
    content:'';
    position: absolute;
    left: 0;
    height: 200%;
    width:0;
    background: #20035e; /*rgb(32, 3, 94,); le background en RGB ne marche, uniquement en hexa*/
    z-index: -1;
    transition: .2s all;
}

.entete:hover::before{
    width: 100%;
}

.texte{
    font-size: large;
    font-weight: normal;
    font-family: "Helvetica",serif;
    color: rgb(3, 25, 94); 
    text-align: justify;
    text-indent:1em;
}

.texte_ref{
    font-size: large;
    font-weight: normal;
    font-family: "Helvetica",serif;
    color: rgb(3, 25, 94); 
    text-align: justify;
    font-style: italic;
    text-decoration:none;
}

.container {
    display:inline-block;
    padding: 1em; /*espacement entre les mots*/
}

.container_2_columns{
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "image info";
  gap: 20px; 
  padding: 0px;
  /* background-color: red; */
}
.container_2_columns div.info {
    /* margin: 1em; */
    /* background-color: pink; */
    align-self: center;

}
.container_2_columns div.image {
    align-self: center;
    /* background-color: yellow; */
}
.image > img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.container_carac{
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: "carac";
    /* gap: 20px;  */
    padding: 10px;
    background-color: rgba(220, 219, 219, 0.5);
    border: 2px, solid, lightgrey;
} 

.carac_box{
    border:2px, solid,lightgrey;
    height: 250px;
    width: 80%;
    background: rgba(220, 219, 219, 0.5);
    text-align: center;
    padding: 10px;
} 

figure {
    display: flex;
    flex-flow: column;
    /* width: 100%; */
    width: auto;
    text-align: center;
    /* font-style: italic; */
    text-decoration: none;
    font-size: large;
    text-indent: 0;
    border: thin silver solid;
    margin: 0.5em;
    padding: 0.5em;
}

figurecaption {
    display: table-caption;
    caption-side: bottom;
    font-family: "Helvetica",serif;
    color: rgb(3, 25, 94); 
    padding: 0.5em;

}



/* Stuffs for image gallery */
/* Gallery Layout */
.gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 20px;
}

.image-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
    gap: 12px;
    max-width: 1000px;
    margin: auto;
}

.gallery-img {
    width: 100%;
    height: auto;
    /* border-radius: 10px;  */ /*Mettre des coins arrondis aux photos de la gallerie*/
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.01);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

/*
Pourcentage maximale de couverture de l'écran lorsque l'image est affichée agrandie.
NB: les dimensions de l'image sont conservées
*/
.modal img { 
    max-width: 90%;
    max-height: 90%;
}
.modal img:hover { 
    transform: none;
}


/* Close Button */
.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

/* Navigation Buttons */
#prevBtn, #nextBtn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0);
    color: rgb(255, 255, 255);
    border: none;
    padding: 10px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 100%;
}

#prevBtn { left: 20px; }
#nextBtn { right: 20px; }

/* #prevBtn:hover, #nextBtn:hover {
    background: white;
} */
