/*Redimensionnement du texte du RSLibro!main menu, code donné par rsjoomla*/
.rstpl-main-menu-position .navbar .nav > li > a, .navbar .nav > li > a.btn {
  font-size: 1.25em;
}

/*BLOQUES ANIMES AVEC PHOTOS POUR LES FORMATIONS*/
/* Structure de la grille */
.grid-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px; /* Espace entre les rectangles */
    margin: 20px;
	align-items: center;
}

/* Propriétés communes à tous les rectangles */
.rectangle {
    width: calc(25% - 20px); /* Chaque rectangle occupe 25% de la largeur disponible */
    height: 212px;
    overflow: hidden;
    position: relative;
    border-radius: 15px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.rectangle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(50%);
    transition: all 0.3s ease;
}

.rectangle:hover img {
    filter: grayscale(0%);
    transform: scale(1.05); /* Légère mise à l'échelle au survol */
}

/* Couleurs spécifiques pour chaque rectangle */
.rectangle1 {
    border: 8px solid #F9A534;
}

.rectangle2 {
    border: 8px solid #507E91;
}

.rectangle3 {
    border: 8px solid #E64431;
}

.rectangle4 {
    border: 8px solid #AD2C5C;
}

/* Propriétés communes à tous les textes */
.texte-rectangle {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-family: 'helvetica', sans-serif;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    word-wrap: break-word;
    width: 90%;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Couleurs des fonds spécifiques pour chaque texte */
.texte-rectangle1 {
    background-color: #F9A534;
}

.texte-rectangle2 {
    background-color: #507E91;
}

.texte-rectangle3 {
    background-color: #E64431;
}

.texte-rectangle4 {
    background-color: #AD2C5C;
}

/* Texte central commun */
.texte-centre {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #333399;
    font-weight: 900;/* Plus gras que bold */
    font-family: 'helvetica', sans-serif;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    word-wrap: break-word;
    width: 90%;
	
}

/* Adaptation pour petits écrans */
@media (max-width: 1024px) {
    .rectangle {
        width: calc(50% - 20px); /* 2 rectangles par ligne */
    }
    .texte-rectangle, .texte-centre {
        font-size: 1.5vw;
    }
}

@media (max-width: 768px) {
    .rectangle {
        width: 100%; /* 1 rectangle par ligne */
    }
    .texte-rectangle, .texte-centre {
        font-size: 2vw;
    }
}

@media (max-width: 480px) {
    .rectangle {
        width: 100%; /* 1 rectangle par ligne */
    }
    .texte-rectangle, .texte-centre {
        font-size: 3vw;
    }
}


