body {
    font-family: 'EB Garamond', serif;
    background:#f6f4ef;
    margin: 0;
    padding: 0;
    color: #333;
}

.affiche {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f4e9d8;
    border: 1px solid #ddd;
}

.header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.logo {
    width: 100px;
    height: auto;
    margin-right: 20px;
	border-radius: 5%; /* Transforme l'image en cercle */
}

.imagcenter {
    display: block; /* Permet de centrer l'image avec les marges auto */
    width: 300px;
    height: auto;
    margin-left: auto; /* Centre l'image horizontalement */
    margin-right: auto; /* Centre l'image horizontalement */
}

.texte-intro {
    font-style: italic;
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 5px;
}

h1 {
    color: #8B4513;
    font-size: 2.5em;
    text-align: center;
    margin: 20px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

h2 {
    color: #555;
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 20px;
}

.acte {
    background-color: #8B4513;
    color: white;
    padding: 10px;
    text-align: center;
    margin: 20px 0;
    border-radius: 5px;
}
.acte a {
    color: white; /* Texte en blanc */
    text-decoration: none; /* Pas de soulignement */
}

.acte a:hover {
    color: white; /* Reste blanc au survol */
    text-decoration: none; /* Pas de soulignement au survol */
}


/* Conteneur des missions */
.missions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

/* Conteneur de chaque mission */
.mission {
    perspective: 1000px;
    width: 100%;
    height: 300px; /* Ajuste cette hauteur selon tes besoins */
	-webkit-perspective: 1000px; /* Préfixe pour Safari */
}

/* Carte de mission */
.mission-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
	-webkit-transform-style: preserve-3d; /* Préfixe pour Safari */
    transition: transform 0.8s;
	-webkit-transition: -webkit-transform 0.8s; /* Préfixe pour Safari */
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Effet de retournement au survol */
.mission:hover .mission-card {
    transform: rotateY(180deg);
	-webkit-transform: rotateY(180deg); /* Préfixe pour Safari */
}

/* Faces de la carte */
.mission-front, .mission-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 5px;
}

/* Face avant (recto) */
.mission-front {
    /* background-color: rgba(255, 255, 255, 0.7); */
	background-color: #8B4513;
    border: 5px solid #8B4513;
	color: white;
}

/* Style pour les smartphones : 1 colonne */
@media (max-width: 600px) {
    .missions {
        grid-template-columns: 1fr; /* 1 colonne */
    }
}
.mission-front img {
    width: 50px;
    height: 50px;
}

/* Face arrière (verso) */
.mission-back {
    /* background-color: #8B4513; */
	background-color: rgba(255, 255, 255, 0.7);
    color: #8B4513;
    transform: rotateY(180deg);
}

.mission-back h4 {
    margin-top: 0;
    color: #8B4513;
}

.mission-back p {
    text-align: center;
    font-size: 14px;
}

.mission-back a {
    color: #8B4513;   /* marron */
    font-weight: bold;
}

.mission-back a:hover {
    color: #8B4513;   /* reste marron au survol */
}

.mission-back a:visited {
    color: #8B4513;   /* reste marron même après clic */
}

.mission-front i.fa-address-card {
    font-size: 40px; /* Ajuste cette valeur pour changer la taille de l'icône */
    /* color: #8B4513; /* Couleur de l'icône */ */
    margin: auto; /* Centre l'icône */
}

.mission-front i.fa-up-right-and-down-left-from-center{
    font-size: 40px; /* Ajuste cette valeur pour changer la taille de l'icône */
    /* color: #8B4513; /* Couleur de l'icône */ */
    margin: auto; /* Centre l'icône */
}

.mission-front i.fa-church{
    font-size: 40px; /* Ajuste cette valeur pour changer la taille de l'icône */
    /* color: #8B4513; /* Couleur de l'icône */ */
    margin: auto; /* Centre l'icône */
}

.mission-front i.fa-gears{
    font-size: 40px; /* Ajuste cette valeur pour changer la taille de l'icône */
    /* color: #8B4513; /* Couleur de l'icône */ */
    margin: auto; /* Centre l'icône */
}
	
.mission-front i.fa-clock{
    font-size: 40px; /* Ajuste cette valeur pour changer la taille de l'icône */
    /* color: #8B4513; /* Couleur de l'icône */ */
    margin: auto; /* Centre l'icône */
}
		
.mission-front i.fa-handshake{
    font-size: 40px; /* Ajuste cette valeur pour changer la taille de l'icône */
    /* color: #8B4513; /* Couleur de l'icône */ */
    margin: auto; /* Centre l'icône */
}
				
.mission img {
    width: 30px;
    height: 30px;
    margin-bottom: 10px;
}

.contact {
    text-align: center;
    margin: 20px 0;
}

.qr-code img {
    width: 100px;
    height: 100px;
}

.lien-direct a {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin: 10px 0;
}

.emails {
    margin-top: 10px;
    font-size: 18px;
}

.emails a {
    color: #8B4513; /* Texte en blanc */
}

.carte {
    text-align: center; /* Centre le contenu horizontalement */
}

.carte img {
    width: 60%;
    height: auto;
    margin-top: 20px;
	border-radius: 5%; /* Transforme l'image en cercle */
}

/* Style de la modale */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #fefefe;
    margin: 2% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 700px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
	max-height: 70vh; /* Limite la hauteur maximale de la modale à 70% de la hauteur de l'écran */
    overflow-y: auto; /* Active la barre de défilement verticale si nécessaire */
}

.close-modal {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
/* Désactive le retournement pour les cartes longues */
.mission-longue .mission-card,
.mission-longue-2 .mission-card {
    transform: none !important;
    -webkit-transform: none !important;
}

.date {
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
}

.separator {
    border: none;
    border-top: 1px dashed #ccc;
    margin: 20px 0;
}

.info-text a {
    color: #8B4513 !important;
    font-weight: bold !important;
    text-decoration: none !important;
}

.thumbnail {
    width: 250px;
    height: auto;
    cursor: pointer;
    display: block;
    margin: 10px auto;
}

/* Modale pour l'image */
.modalimage {
	display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


.downloadimage-button {
    color: white;
    text-decoration: none;
    background-color: #4CAF50;
    padding: 8px 16px;
    border-radius: 5px;
}

.close-modalimage {
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.modalimage-content {
    max-width: 90%;
    max-height: 80vh;
    display: block;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    transform: scale(0.9);
    transition: transform 0.2s ease;
}

.modalimage.show .modalimage-content {
    transform: scale(1);
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 560px;   /* taille max */
    margin: 20px auto;  /* centrage horizontal */
    aspect-ratio: 16 / 9; /* 🔥 remplace le padding-bottom */
}

.video-container iframe {
    position: absolute;
    top: 00;
    left: 00;
    width: 100%;
    height: 100%;
}