/* Habillage du site, partie 7/7 : modèles du site et surcharges de plugins (Varicelle, Couteau Suisse). */

/* images côte à côte : raccourcis <ligneN> à la suite (modeles/ligne.html) ;
   chaque image prend une largeur proportionnelle à son format, toutes ont donc la même hauteur */
p:has(> .spip_ligne) { display: flex; align-items: flex-start; gap: 0.5rem; clear: both; }
.spip_ligne { display: inline-block; flex-basis: 0; min-width: 0; text-align: center; vertical-align: top; }
.spip_ligne img { display: block; width: 100%; height: auto; padding: 0; }
.spip_ligne > span { display: block; margin-top: 0.2rem; }
.spip_ligne_vignette img { width: auto; max-width: 100%; margin: 0 auto; } /* vignette d'un PDF : pas d'agrandissement */

/* colonne d'images à droite du texte : raccourcis <colonneN> à la suite (modeles/colonne.html) */
p:has(> .spip_colonne) { float: right; clear: right; width: 250px; max-width: 45%; margin: 0 0 0.5rem 1em; }
.spip_colonne { display: block; margin-bottom: 0.5rem; text-align: center; }
.spip_colonne:last-child { margin-bottom: 0; }
.spip_colonne img { display: block; width: 100%; height: auto; padding: 0; }
.spip_colonne > span { display: block; margin-top: 0.2rem; }
/* raccourcis écrits un par ligne : SPIP insère un <br> entre eux, inutile ici */
p:has(> .spip_colonne) > br, p:has(> .spip_ligne) > br { display: none; }

@media screen and (max-width: 600px) {
	/* colonne d'images <colonneN> : sur téléphone, vignettes 3 par ligne à la place de la colonne */
	p:has(> .spip_colonne) { float: none; width: auto; max-width: none; margin: 0 0 1em; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; align-items: start; }
	.spip_colonne { margin-bottom: 0; }
}

/* Boutons <btn> du plugin Varicelle, dans le texte des articles */
.texte a.btn {
	height: auto;
	padding: 0.6em 1.2em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
}
.texte a.btn.center {
	display: table; /* centré, et à côté des images flottantes */
	margin: 1em auto;
}
/* Le bouton de recherche garde son apparence : Varicelle s'applique aussi à la classe .btn */
.formulaire_recherche .btn {
	background: none;
	border: 0;
	box-shadow: none;
}
.formulaire_recherche .btn:hover {
	background-color: var(--violet);
	color: #FFF;
}

/* Raccourcis du Couteau Suisse (Décoration) : <signature>, <eo> et <bloc-alerte> */
.signature {
	text-align: right;
	font-size: 0.9em;
}
span.texteEO {
	color: var(--eo);
}
.bloc-alerte {
	display: flow-root; /* le cadre s'arrête à côté des images flottantes */
	border: 1px solid var(--rouge-alerte);
	padding: 1em;
	color: var(--rouge-alerte);
	margin-bottom: 1em;
	border-radius: 3px;
}
.bloc-alerte a {
	color: var(--rouge-alerte);
}
.bloc-alerte hr {
	color: var(--rouge-alerte);
	margin-top: 1em;
	margin-bottom: 1em;
}

/* repris de la lame Exposants du Couteau Suisse, remplacée par Ortho-typographie */
sup, sup.typo_exposants {
	font-size: 78%;
	font-variant: inherit;
	line-height: inherit;
	vertical-align: 23%;
}
sup.typo_exposants {
	vertical-align: text-top;
}
