/* ==========================================================================
   Pages de contenu (gérées dans l'administration), articles, Évènements et contact
   ========================================================================== */

/* Colonne de lecture : 70 à 80 caractères par ligne */
.gm-page-etroite { max-width: 880px; }
.gm-page h1 { margin: 0 0 32px; font-size: 38px; text-align: center; }
.gm-page-chapo { margin: -12px auto 40px; max-width: 680px; text-align: center; font-size: 18px; color: var(--gm-texte-doux); }

/* Texte saisi dans l'éditeur */
.gm-page-texte { color: var(--gm-texte); }
.gm-page-texte h2 { margin: 56px 0 20px; font-size: 28px; text-align: center; }
.gm-page-texte h3 { margin: 36px 0 12px; font-size: 22px; }
.gm-page-texte h4 { margin: 28px 0 10px; font-size: 19px; }
.gm-page-texte p { margin: 0 0 16px; }
.gm-page-texte ul, .gm-page-texte ol { margin: 0 0 16px; padding-left: 1.4em; }
.gm-page-texte li { margin-bottom: 6px; }
.gm-page-texte img { border-radius: var(--gm-rayon); }
.gm-page-texte iframe { max-width: 100%; border: 0; }
.gm-page-texte table { max-width: 100%; }
.gm-page-texte > :first-child:not(h1) { margin-top: 0; }

/* Évènements : salons à venir, puis actualités */
.gm-page-sous-titre { margin: 0 0 20px; font-size: 26px; }
.gm-page-salons { margin-top: 64px; }

/* Articles */
.gm-articles { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--gm-filet-liste); }
.gm-articles li { padding: 24px 0; border-top: 1px solid var(--gm-filet-liste); }
.gm-articles h3 { margin: 0 0 4px; font-size: 21px; }
.gm-articles h3 a { text-decoration: none; }
.gm-articles h3 a:hover, .gm-articles h3 a:focus { text-decoration: underline; text-underline-offset: 4px; }
.gm-article-date { margin: 0 0 10px; font-size: 14px; color: var(--gm-texte-doux); }
.gm-articles p { margin: 0 0 10px; color: var(--gm-texte-doux); }
.gm-lien-suite { font-weight: 500; }
.gm-page-texte > .gm-article-date { margin: -20px 0 32px; text-align: center; }
.gm-article-retour { margin-top: 48px; text-align: center; }

/* Galeries de photos (contenus de l'ancien éditeur, animées par assets/js/galerie.js) */
.gm-page-galerie { max-width: 1100px; }
.gm-page-texte .ad-image-wrapper, .gm-page-texte .ad-controls, .gm-page-texte .ad-back, .gm-page-texte .ad-forward { display: none; }
.gm-page-texte .ad-thumb-list {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px;
	list-style: none; margin: 24px 0; padding: 0;
}
.gm-page-texte .ad-thumb-list li { margin: 0; }
.gm-page-texte .ad-thumb-list a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--gm-rayon); background: var(--gm-fond-doux); }
/* #contenu : plus fort que la règle de theme.css qui remet en hauteur automatique les images à hauteur saisie */
#contenu .gm-page-texte .ad-thumb-list img, .gm-page-texte .ad-thumb-list img { width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 0; transition: transform 300ms ease; }
.gm-page-texte .ad-thumb-list a:hover img, .gm-page-texte .ad-thumb-list a:focus img { transform: scale(1.04); }
.gm-visionneuse { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20, 16, 20, 0.94); }
.gm-visionneuse::backdrop { background: rgba(20, 16, 20, 0.94); }
.gm-visionneuse[open] { display: flex; align-items: center; justify-content: center; }
.gm-visionneuse img { max-width: calc(100vw - 140px); max-height: calc(100vh - 100px); object-fit: contain; border-radius: var(--gm-rayon); }
.gm-visionneuse button {
	position: absolute; width: 48px; height: 48px; border: 0; border-radius: 24px;
	background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}
.gm-visionneuse button:hover, .gm-visionneuse button:focus-visible { background: rgba(255, 255, 255, 0.25); }
.gm-visionneuse .gm-v-fermer { top: 16px; right: 16px; }
.gm-visionneuse .gm-v-prec { left: 16px; top: 50%; transform: translateY(-50%); }
.gm-visionneuse .gm-v-suiv { right: 16px; top: 50%; transform: translateY(-50%); }
.gm-visionneuse .gm-v-compteur { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, 0.8); font-size: 14px; }
@media (max-width: 767.98px) {
	.gm-page-texte .ad-thumb-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.gm-visionneuse img { max-width: 100vw; max-height: calc(100vh - 140px); border-radius: 0; }
	.gm-visionneuse .gm-v-prec, .gm-visionneuse .gm-v-suiv { top: auto; bottom: 8px; transform: none; }
}

/* Pages d'erreur (404, 403, 500) */
.gm-erreur { text-align: center; padding-top: 24px; }
.gm-erreur .gm-form-actions { justify-content: center; margin-top: 8px; }
.gm-erreur-aide { margin-top: 28px; font-size: 15px; color: var(--gm-texte-doux); }

/* Contact */
.gm-contact-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.gm-contact-infos h2, .gm-contact-form h2 { margin: 0 0 16px; font-size: 24px; }
.gm-adresse { font-style: normal; margin: 0 0 20px; line-height: 1.7; }
.gm-adresse strong { display: block; font-size: 18px; font-weight: 500; color: var(--gm-texte); }
.gm-contact-ligne { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
.gm-contact-ligne svg { flex: 0 0 20px; width: 20px; height: 20px; color: var(--gm-bordeaux); }
.gm-contact-ligne a { font-size: 18px; font-weight: 500; text-decoration: none; }
.gm-contact-ligne a:hover, .gm-contact-ligne a:focus { text-decoration: underline; }
.gm-carte { margin-top: 28px; border-radius: var(--gm-rayon); overflow: hidden; background: var(--gm-fond-doux); }
.gm-carte iframe { display: block; width: 100% !important; height: 320px !important; border: 0; }
.gm-civilite { margin: 0 0 20px; padding: 0; border: 0; }
.gm-civilite > div { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.gm-civilite .form-check { margin: 0; }

@media (max-width: 959.98px) {
	.gm-contact-grille { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 767.98px) {
	.gm-page h1 { font-size: 30px; margin-bottom: 24px; }
	.gm-page-chapo { font-size: 16px; text-align: left; margin-bottom: 28px; }
	.gm-page-texte h2 { font-size: 24px; margin-top: 40px; }
	.gm-page-sous-titre { font-size: 22px; }
	.gm-page-salons { margin-top: 48px; }
	.gm-articles h3 { font-size: 19px; }
	.gm-carte iframe { height: 260px !important; }
}
