/* section 1 : variables surchargeables (couleur du soulignement, bordure, fond zone image vide, espacement) posées sur les conteneurs du plugin uniquement */
.syn-ci-grid,
.syn-ci-address {
	--syn-ci-accent: #e2561d;
	--syn-ci-border: #e3e3e3;
	--syn-ci-empty: #f4f4f4;
	--syn-ci-gap: 20px;
}

/* section 2 : téléphones (global et agences). Icône smartphone SVG en masque CSS sur toute classe syn-ci-tel : elle prend la couleur (currentColor) du lien qui la contient. Retour à la ligne autorisé si la place manque */
.syn-ci-tel {
	color: inherit;
	text-decoration: none;
	white-space: normal;
	overflow-wrap: anywhere;
}

.syn-ci-tel:hover,
.syn-ci-tel:focus {
	text-decoration: underline;
}

.syn-ci-tel::before {
	content: "";
	display: inline-block;
	width: 1em;
	height: 1em;
	margin-right: 0.3em;
	vertical-align: -0.14em;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='2.5'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='2.5'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* section 3 : grille des cartouches sur 100 % de la largeur, colonnes égales. --syn-ci-cols = colonnes desktop (défaut 1), --syn-ci-cols-l = max 3 (< 980px), --syn-ci-cols-m = max 2 (< 782px), 1 colonne < 500px */
.syn-ci-grid {
	display: grid;
	width: 100%;
	grid-template-columns: repeat(var(--syn-ci-cols, 1), minmax(0, 1fr));
	gap: var(--syn-ci-gap);
	margin: 0 0 1.5em;
}

@media (max-width: 979px) {
	.syn-ci-grid {
		grid-template-columns: repeat(var(--syn-ci-cols-l, 1), minmax(0, 1fr));
	}
}

@media (max-width: 781px) {
	.syn-ci-grid {
		grid-template-columns: repeat(var(--syn-ci-cols-m, 1), minmax(0, 1fr));
	}
}

@media (max-width: 499px) {
	.syn-ci-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* section 4 : cartouche. Carré sans arrondi, hauteur mini 120px. Colonne image fixe de 120px à gauche, hauteur remplie, image étirée en cover (rendu "background cover" en gardant la balise img pour le SEO), zone conservée vide si pas d'image. Texte à droite, variante syn-ci-card--main pour la société mère */
.syn-ci-card {
	position: relative;
	display: flex;
	align-items: stretch;
	min-height: 120px;
	background: #fff;
	border: 1px solid var(--syn-ci-border);
	border-radius: 0;
	overflow: hidden;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.syn-ci-card:hover,
.syn-ci-card:focus-within {
	border-color: #cfcfcf;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.syn-ci-card--main {
	/*border-color: var(--syn-ci-accent);*/
}

.syn-ci-card-media {
	position: relative;
	flex: 0 0 120px;
	width: 120px;
	min-height: 120px;
	overflow: hidden;
}

.syn-ci-card--noimg .syn-ci-card-media {
	background: var(--syn-ci-empty);
}

.syn-ci-card-media .syn-ci-card-img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	object-position: center;
}

.syn-ci-card-body {
	flex: 1 1 auto;
	min-width: 0;
	padding: 16px 20px;
	font-size: 15px;
	line-height: 1.5;
}

/* section 5 : textes de la cartouche. Titre (1er Hn) avec soulignement CSS pur en ::after, lignes d'adresse / horaires sans marge. Horaires : groupes insécables (retour à la ligne uniquement entre groupes), abréviations des jours sans soulignement de thème */
.syn-ci-card-body .syn-ci-name {
	position: relative;
	margin: 0 0 12px;
	padding: 0 0 10px;
	font-size: 1.1em;
	font-weight: 700;
	line-height: 1.25;
	text-transform: uppercase;
}

.syn-ci-card-body .syn-ci-name::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 50px;
	height: 4px;
	background: var(--syn-ci-accent);
}

.syn-ci-card-body .syn-ci-subtitle {
	margin: 6px 0 2px;
	font-size: 1em;
}

.syn-ci-card-body .syn-ci-line {
	margin: 0;
	padding: 0;
}

.syn-ci-hours-group {
	display: inline-block;
	white-space: nowrap;
}

.syn-ci-hours-sep {
	margin-right: 0.15em;
}

.syn-ci-hours abbr[title] {
	text-decoration: none;
	border: 0;
	cursor: inherit;
}

/* section 6 : lien "étiré" couvrant toute la cartouche ; les liens internes (téléphone, nom...) passent au-dessus et gardent leur cible. Texte accessible masqué visuellement */
.syn-ci-card-link {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.syn-ci-card-link:focus-visible {
	outline: 2px solid var(--syn-ci-accent);
	outline-offset: -2px;
}

.syn-ci-card-body a:not(.syn-ci-card-link) {
	position: relative;
	z-index: 2;
}

.syn-ci-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* section 7 : affichage détaillé [company-address id=x] : bloc <address> non italique, une ligne par paragraphe */
.syn-ci-address {
	font-style: normal;
}

.syn-ci-address p {
	margin: 0 0 0.2em;
}

@media (prefers-reduced-motion: reduce) {
	.syn-ci-card {
		transition: none;
	}
}