.grid-container {
  display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    padding: 30px 30px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.location-listing {
   flex: 1 1 400px;      /* prend la place disponible, largeur de base 400px     */
    min-width: 230px;     /* largeur minimale pour éviter que ça devienne trop petit */
    max-width: 410px;     /* largeur maximale pour garder de beaux rectangles */
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    background: #fff;
}

.location-listing:hover {
    transform: scale(1.08);
    z-index: 2;
}

.location-image img {
     width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.4s cubic-bezier(.4,2,.6,1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.location-listing:hover img {
    transform: scale(1.15);
}

.location-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.7);
    color: rgb(0, 0, 0);
    text-align: center;
    font-size: 1.7em;
    font-weight: bolder;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.location-listing:hover .location-title {
    opacity: 1;
}

/* Responsive : adapte la hauteur de l'image selon la largeur */
@media (max-width: 900px) {
    .location-listing {
        flex: 1 1 45%;
        min-width: 180px;
        max-width: 100%;
    }
    .location-image img {
        height: 160px;
    }
}

@media (max-width: 600px) {
    .grid-container {
        padding: 10px 5px;
        gap: 10px;
    }
    .location-listing {
        flex: 1 1 100%;
        min-width: 120px;
        max-width: 100%;
    }
    .location-image img {
        height: 120px;
    }
}




.bod {
	 margin: auto;
    padding: auto;
    box-sizing: content-box;
}

.sommes {
	margin: 50px;
    margin-top: 30px;
    margin-bottom: 30px;
    padding-top: 5%;
    padding-bottom: 15%;
    border: 2px solid gray;
    
}

.som {
	text-align: center;
    padding-bottom: 10%;
}

/*p {
	text-align: center;
	color: black;
	text-decoration: underline;
	font-size: 40px;
	
}*/

.rubriq {
	position: inherit;
    display: flex;
    width: contain;
    background-clip: border-box;
    border-radius: 2rem;
    border: black 2px solid;
    padding: 1rem;
    margin-bottom: 10px;
    background: #f14b05;
    text-align: center;
    
    
}
.rubriq a {
	font-size: 30px;
    color: white;

	padding : contain;
    border-bottom: none;
    /*background-color: #f14b05;*/
   


}
.rectangle :hover {

     border-bottom: none;
    background-color: black;
}




.rectangle {

	padding-bottom: 5px;
    padding-left: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    grid-gap: 2px;
    justify-items: center;
    align-items: center;

	
}

.italienne :hover {
  background-color: #fff;
  border-color: #f14b05;
  color: #f14b05;
  padding: 14px 24px;
  color: #202A30;
  margin: 7px 0;
}


@media (max-width: 800px) {
    .rectangle {
        display: flex;
        flex-direction: column;
          }
        }

@media (max-width: 600px) {
    .rectangle {
        display: flex;
        flex-direction: column;
          }
        }   
@media (max-width: 400px) {
    .rectangle {
        display: flex;
        flex-direction: column;
          }
        }   
@media (max-width: 300px) {
    .rectangle {
        display: flex;
        flex-direction: column;
          }
        }
@media (max-width: 400px) {
    .rectangle {
        display: flex;
        flex-direction: column;
          }
        }
@media (max-width: 300px) {
    .rectangle {
        display: flex;
        flex-direction: column;
    }
}
/* Page de témoignage vidéos */

.video-page-title {
    text-align: center;
    font-size: 2em;
    font-weight: bold;
    margin: 30px 0 20px 0;
    color: #2a2a2a;
    letter-spacing: 1px;
}
.video-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
    min-height: 60vh;
    padding: 20px 0;
}
.video-thumb {
    position: relative;
    width: 340px;
    height: 200px;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    background: #008f77;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.video-thumb:hover {
    transform: scale(1.04);
}
.video-thumb video {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}
.video-caption {
    text-align: center;
    font-size: 1em;
    color: #ffffff;
    margin-top: 8px;
    margin-bottom: 5px;
    font-style: italic;
    font-weight: 600;
    background: none;
    width: 100%;
}

.video-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}
.video-modal.active {
    display: flex;
}
.video-modal video {
    width: 80vw;
    max-width: 900px;
    max-height: 80vh;
    border-radius: 16px;
    background: #000;
}
.video-modal .close-btn {
    position: absolute;
    top: 40px;
    right: 60px;
    font-size: 2.5em;
    color: #fff;
    cursor: pointer;
    z-index: 1100;
    background: none;
    border: none;
}


@media (max-width: 700px) {
    .video-thumb { width: 95vw; height: 30vw; min-height: 160px; }
    .video-modal video { width: 98vw; }
}

/* Pages Espaces d'eveil*/ 

.espace-main-title {
    text-align: center;
    font-size: 4em;
    font-weight: bold;
    color: #000766;
    margin: 40px 0 30px 0;
    letter-spacing: 5px;
    text-decoration: overline underline;
}
.espace-container {
    max-width: 900px;
    margin: 40px auto 0 auto;
    padding: 30px 20px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    position: relative;
}
.espace-logo {
    position: absolute;
    top: -30px;
    left: 30px;
    width: 150px;
    height: 150px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(2,0,0,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.espace-logo img {
    width: 105px;
    height: 105px;
    object-fit: contain;
}
.espace-title {
    text-align: center;
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 10px;
    margin-top: 30px;
    letter-spacing: 2px;
    color: #2a2a2a;
    animation: titreAnim 1.2s ease-in-out;
}
@keyframes titreAnim {
    0% { opacity: 0; transform: translateY(-40px) scale(0.8);}
    70% { opacity: 1; transform: translateY(10px) scale(1.05);}
    100% { opacity: 1; transform: translateY(0) scale(1);}
}
.espace-subtitle {
    text-align: center;
    font-size: 1.3em;
    color: #555;
    margin-bottom: 28px;
    font-weight: 500;
    letter-spacing: 1px;
}
.espace-paragraph {
    font-size: 1.1em;
    color: #333;
    text-align: justify;
    margin-bottom: 22px;
    margin-top: 10px;
}
.espace-img-center {
    display: flex;
    justify-content: center;
    margin: 25px 0;
}
.espace-img-center img {
    max-width: 450px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}
@media (max-width: 600px) {
    .espace-container { padding: 10px 2vw; }
    .espace-logo { left: 50%; transform: translateX(-50%); top: -40px;}
}