/**
 * Ducs Hockeynet — bandeau « Prochain match ».
 *
 * Feuille de style dédiée au shortcode [ducs_prochain_match], chargée
 * uniquement lorsque celui-ci est réellement rendu.
 *
 * Toutes les classes sont préfixées « ducs-next-match__ » : aucune collision
 * possible avec les autres blocs du plugin, ni avec le thème.
 *
 * Les variables portent un préfixe distinct (--ducs-nm-*) et sont définies
 * localement, afin que ce bloc reste indépendant du reste du plugin.
 */

.ducs-next-match {
	--ducs-nm-rouge: #ff0004;
	--ducs-nm-blanc: #ffffff;
	--ducs-nm-rayon: 14px;
	--ducs-nm-espace: 24px;

	/* Police condensée de la charte. Fournie par le thème ; voir README §7.0. */
	--ducs-nm-police-titre: "Studio Pro", "Oswald", "Barlow Condensed", "Arial Narrow", Impact, sans-serif;

	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--ducs-nm-espace);
	padding: 0;
	background: var(--ducs-nm-rouge);
	color: var(--ducs-nm-blanc);
	border-radius: var(--ducs-nm-rayon);
}

.ducs-next-match *,
.ducs-next-match *::before,
.ducs-next-match *::after {
	box-sizing: inherit;
}

.ducs-next-match__contenu {
    min-width: 0;
    width: 55%;
    padding: 25px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ducs-next-match__contenu:before {
    content: '';
    width: 0%;
    height: 100%;
    background: #fff;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 10px 0 0 10px;
	transition: all .5s;
}
.ducs-next-match:hover .ducs-next-match__contenu:before{
	width: 100%;
}
.ducs-next-match:hover .ducs-next-match__contenu p, .ducs-next-match:hover .ducs-next-match__contenu span, .ducs-next-match:hover .ducs-next-match__contenu time {
	color: #000 ;
	z-index: 1;
}
/* ---- Ligne 1 : « Prochain match » + patinoire ---- */

.ducs-next-match__surtitre {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 0.74rem;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 4%;
    color: var(--ducs-nm-blanc);
    font-family: "Tusker Grotesk", Sans-serif;
}
.ducs-next-match {
    max-width: 614px;
    margin: 1em auto 0;
	overflow: hidden;
}
.ducs-next-match__lieu {
    display: inline-flex;
    align-items: flex-end;
    gap: 5px;
}

.ducs-next-match__icone {
	flex-shrink: 0;
	display: block;
}

/* ---- Ligne 2 : l'affiche, sur deux lignes ---- */

.ducs-next-match__affiche {
	display: flex;
    flex-direction: column;
    text-transform: uppercase;
    line-height: 1em;
    color: var(--ducs-nm-blanc);
}

.ducs-next-match__equipe {
	font-size: 2em;
    font-family: "Tusker Grotesk", Sans-serif;
    font-weight: 600;
    line-height: 1.1em;
}

/* ---- Ligne 3 : date, heure et compte à rebours ---- */

.ducs-next-match__infos {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    font-size: 0.74rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 4%;
    color: var(--ducs-nm-blanc);
    font-family: "Tusker Grotesk", Sans-serif;
}

.ducs-next-match__compteur {
	background: #ff0004;
    border-radius: 5px;
    padding: 7px 10px 5px;
    line-height: 1;
}

/* ---- Bouton ---- */

.ducs-next-match__cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    padding: 20px 40px 20px;
    color: var(--ducs-nm-blanc);
    font-family: var(--ducs-nm-police-titre);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2%;
    text-decoration: none;
    transition: opacity 0.15s ease;
    font-family: "Tusker Grotesk", Sans-serif;
}

.ducs-next-match__cta:hover,
.ducs-next-match__cta:focus-visible {
	
	color: var(--ducs-nm-blanc);
}

.ducs-next-match__cta-fleche {
	font-size: 1em;
	line-height: 1;
	transition: transform 0.15s ease;
}

.ducs-next-match__cta:hover .ducs-next-match__cta-fleche {
	transform: translateX(4px);
}
.ducs-next-match:hover span.ducs-next-match__lieu svg path{
	stroke: #000 !important;
}

.ducs-next-match:hover span.ducs-next-match__lieu {
	color: #ff0004;
}
.ducs-next-match:hover span.ducs-next-match__compteur {
    color: #ffff !important;
}



/* ---- Responsive ---- */

@media (max-width: 782px) {
	.ducs-next-match {
		/* Le bouton passe sous le bloc texte, en pleine largeur. */
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 0;
	}
	.ducs-next-match__contenu:before {
		border-radius: 0;

	}
	.ducs-next-match__cta {
	    justify-content: center;
        padding: 14px 18px;
        border-radius: 0;
        font-size: 0.92rem;
        background: #fff;
        color: #ff0004;
	}
	.ducs-next-match__contenu {
		width: 100%;
		padding: 25px;
		align-items: center;
		text-align: center;
	}

	.ducs-next-match .ducs-next-match__cta svg path{
		stroke: #ff0004;
	}
}

/* Respect des préférences d'accessibilité. */
@media (prefers-reduced-motion: reduce) {
	.ducs-next-match__cta,
	.ducs-next-match__cta-fleche {
		transition: none;
	}

	.ducs-next-match__cta:hover .ducs-next-match__cta-fleche {
		transform: none;
	}
}
