/* ==========================================================================
   Footer : Instagram à gauche ; nav + présentation alignées à droite (655 px) ;
   « Retour en haut » et badge Swiss sur la dernière ligne.
   ========================================================================== */

.footer {
	padding-top: var(--footer-haut);
	padding-bottom: var(--footer-bas);
}

.footer__inner {
	display: grid;
	/* Colonne de droite : au moins sa largeur de maquette, plus si une phrase en a besoin. */
	grid-template-columns: 1fr minmax(var(--footer-col-w), max-content);
	grid-template-areas:
		"reseaux infos"
		"haut swiss";
	row-gap: var(--footer-rangee);
}

.footer__reseaux {
	grid-area: reseaux;
	display: flex;
	gap: var(--space-m);
	align-self: start;
	margin-top: var(--footer-icone-haut);
}

.footer__reseau-lien {
	display: block;
	transition: opacity var(--t-hover);

	&:hover {
		opacity: 0.6;
	}
}

.footer__reseau-icone {
	width: var(--footer-icone-w);
	height: auto;
}

.footer__infos {
	grid-area: infos;
}

.footer__menu {
	display: flex;
	justify-content: space-between;
}

.footer__lien {
	display: block;
	font-weight: var(--fw-medium);
	font-size: var(--fs-nav);
	line-height: var(--lh-nav);
	text-transform: uppercase;
	transition: color var(--t-hover);

	&:hover,
	&[aria-current] {
		color: var(--c-blue);
	}
}

.footer__texte {
	margin-top: var(--footer-texte-haut);
	font-size: var(--fs-footer);
	line-height: var(--lh-footer);
	color: var(--c-grey-light);
	text-align: right;

	& p + p {
		margin-top: 1lh; /* une ligne vide entre les paragraphes, comme sur la maquette */
	}
}

/* Desktop : chaque phrase sur une seule ligne, comme sur la maquette.
   (En tablette, la place manque : le texte reprend son retour à la ligne.) */
@media (min-width: 1024px) {
	.footer__texte {
		white-space: nowrap;
	}
}

.footer__haut {
	grid-area: haut;
	align-self: start;
	justify-self: start;
}

.footer__swiss {
	grid-area: swiss;
	justify-self: end;
	width: var(--footer-swiss-w);
}

.footer__swiss-img {
	width: 100%;
	height: auto;
}

/* Mobile : empilé, texte aligné à gauche. */
@media (max-width: 767.98px) {
	.footer__inner {
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"reseaux reseaux"
			"infos infos"
			"haut swiss";
		row-gap: var(--space-l);
	}

	.footer__reseaux {
		margin-top: 0;
	}

	.footer__menu {
		flex-direction: column;
	}

	.footer__texte {
		text-align: left;
	}

	.footer__haut {
		align-self: center;
	}
}
