body.no-scroll {
    overflow: hidden;
}


.titre h1 {
	text-align:center;
}
main {
	width: 100%;
	display: flex;
	justify-content: center;
}
		
.detail-tableau {
    display: flex;
    flex-direction: column;
    padding: 20px;
    margin: 20px;
    width: 80%;
    margin: 0 auto; /* Centre le bloc dans la fenêtre */
    border: 2px solid #ccc; /* Ajout d'un cadre autour du conteneur */
    border-radius: 10px; /* Coins arrondis pour le cadre */
    background-color: #f9f9f9; /* Fond léger pour mieux voir le cadre */
}

.info-tableau {
    padding: 20px;
}

.info-tableau h2 {
		display: block;
		padding:0px;
		margin: 0 auto 10px auto;
		width:100%;
        font-size: 1.5em; /* Réduction de la taille du titre */
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
		text-align:center;
    }

.info-tableau h2 {
    /*background-color: rgba(255, 0, 0, 0.2); /* rouge clair */
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    border-radius: 10px;
}
.info-tableau p {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.image-container {
    float: left; /* L'image sera à gauche du texte */
    margin-right: 20px; /* Espace entre l'image et le texte */
    max-width: 360px; /* Largeur maximale de l'image */
    max-height: 360px; /* Hauteur maximale */
    overflow: hidden; /* Cache les parties de l'image qui dépassent */
    position: relative; /* Nécessaire pour l'effet de zoom */
}

.image-container img {
   max-height: 340px;
    max-width: 340px;
    object-fit: contain;
    border-radius: 10px;
    display: block;
    transition: transform 0.3s ease-in-out; /* Transition douce pour l'effet de zoom */
}

.zoomed-image {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  max-width: 80%;
  max-height: 80%;
  z-index: 9999;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
   border-radius: 10px;
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.zoomed-image.show {
  transform: translate(-50%, -50%) scale(1.1);
  opacity: 1;
}

.zoomed-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.zoomed-overlay.show {
  opacity: 1;
}

body.no-scroll {
  overflow: hidden;
}




.contact-link {
    text-align: center;
    margin-top: 20px; /* Espace au-dessus du bouton */
}

.contact-link button {
    padding: 12px 25px;
    background-color: #FF6F61;
    color: white;
    font-size: 18px;
    font-weight: 600;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-link button:hover {
    background-color: #FF5A47;
}

.contact-link button:active {
    background-color: #FF3D2F;
}

.info-tableau p:after {
    content: "";
    display: block;
    clear: both;
}

/* Sur petits écrans, on réduit la taille du titre et on autorise le retour à la ligne */
@media (max-width: 600px) {
    .detail-tableau {
        display: flex;
        flex-direction: column;
        padding: 5px;
        margin: 0px;
        width: 100%;
        margin: 0 auto; /* Centre le bloc dans la fenêtre */
        border: 2px solid #ccc; /* Ajout d'un cadre autour du conteneur */
        border-radius: 10px; /* Coins arrondis pour le cadre */
        background-color: #f9f9f9; /* Fond léger pour mieux voir le cadre */
    }

    .info-tableau {
        width: 100%; /* Assurer que ce conteneur prend 100% de la largeur disponible */
    }

    .info-tableau h2 {
        display: block;
        padding: 0;
        margin: 0 auto 10px auto;
        width: 100%; /* Le titre prend toute la largeur */
        font-size: 1.1em; /* Taille du titre */
        white-space: normal;
        overflow-wrap: break-word;
        text-align: center; /* Centrer le texte */
    }

    .contact-link button {
        display: block;
        padding: 10px 5px;
        width: 100%;
        background-color: #FF6F61;
        color: white;
        font-size: 1.1em;
        font-weight: 600;
        border-radius: 30px;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .image-container {
        max-width: 100%; /* L'image peut s'élargir jusqu'à la largeur du conteneur */
        margin: auto;
        margin-bottom: 10px; /* Moins d'espace entre l'image et le texte */
    }
	
.zoomed-image.show {
    transform: translate(-50%, -50%) scale(1); /* au lieu de 1.5 */
}

    /* Style pour l'image zoomée */
    .zoomed-image {
        max-width: 90vw; /* Limite la largeur à 90% de la fenêtre */
        max-height: 90vh; /* Limite la hauteur à 90% de la fenêtre */
        width: auto; /* L'image peut avoir une largeur automatique pour garder les proportions */
        height: auto; /* L'image peut avoir une hauteur automatique pour garder les proportions */
        object-fit: contain; /* L'image garde son ratio tout en s'ajustant */
        transition: transform 0.3s ease-in-out;
    }

    /* Optionnel : overlay qui couvre toute la fenêtre */
    .zoomed-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw; /* Recouvre toute la largeur de la fenêtre */
        height: 100vh; /* Recouvre toute la hauteur de la fenêtre */
        background: rgba(0, 0, 0, 0.8); /* Fond sombre semi-transparent */
        z-index: 9999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .zoomed-overlay.show {
        opacity: 1;
    }

    /* Permet de réduire la largeur de l'image dans certains cas */
    .zoomed-image.show {
        max-width: 90vw; /* Assure que l'image ne dépasse pas 90% de la largeur */
        max-height: 90vh; /* Assure que l'image ne dépasse pas 90% de la hauteur */
    }
}
