/* Footer — composant unique (design system 04/11), organisation de la maquette validée :
   mail · mentions · newsletter · Instagram, puis © et mention TVA. Bande blanche, filet en haut, style Small.
   Bureau : mail (col. 1-3) · mentions (col. 4-6) · newsletter (col. 7-10) · Instagram (fin col. 12) ;
            © (col. 1-6) · TVA (col. 7-12).
   Tablette : mail + mentions sur la 1re ligne, newsletter + Instagram sur la 2e. Téléphone : tout empilé. */

.foot {
	row-gap: var(--space-6);
	align-items: start;
	padding: var(--space-6) var(--hdr-top) var(--space-5); /* mêmes marges latérales que la navbar */
	border-top: var(--rule);
	background: var(--c-white);
	color: var(--c-ink);
}

.foot__mail {
	grid-column: 1 / span 3;
	justify-self: start;
	display: grid;
	justify-items: start;
	gap: var(--space-1);
}

.foot__legal {
	grid-column: 4 / span 3;
	display: grid;
	justify-items: start;
	gap: var(--space-1);
}

.foot__ig {
	grid-column: -2 / -1;
	justify-self: end;
}

.foot__copy,
.foot__vat {
	color: var(--c-grey);
}

.foot__copy {
	grid-column: 1 / span 6;
}

.foot__vat {
	grid-column: 7 / -1;
	justify-self: end;
	text-align: right;
}

/* Newsletter : étiquette, champ + bouton sur une ligne, consentement, message */
.foot__nl {
	grid-column: 7 / span 4;
	display: grid;
	gap: var(--space-3);
}

.foot__nl-row {
	display: flex;
	align-items: end;
	gap: var(--space-2);
}

.foot__nl-input {
	flex: 1;
	min-width: 0;
	min-height: var(--btn-h);
	padding: var(--space-3) 0;
	border: 0;
	border-bottom: var(--rule);
	border-radius: 0;
	background: transparent;
	font-size: var(--fs-input);
	line-height: var(--lh-body);
	-webkit-appearance: none;
	appearance: none;
}

.foot__nl-input::placeholder {
	color: var(--c-grey);
	opacity: 1;
}

.foot__nl-ok {
	display: flex;
	align-items: start;
	gap: var(--space-2);
	color: var(--c-grey);
}

.foot__nl-ok input {
	flex: none;
	width: var(--space-4);
	height: var(--space-4);
	margin: 0;
	accent-color: var(--c-ink);
}

.foot__nl-msg:empty {
	display: none;
}

/* Tablette (8 colonnes) */
@media (max-width: 1023px) {
	.foot__mail {
		grid-column: 1 / span 3;
	}

	.foot__legal {
		grid-column: 4 / span 3;
	}

	.foot__nl {
		grid-column: 1 / span 5;
	}

	.foot__ig {
		grid-column: 8;
	}

	.foot__copy {
		grid-column: 1 / span 4;
	}

	.foot__vat {
		grid-column: 5 / -1;
	}
}

/* Téléphone (4 colonnes) : une information par ligne */
@media (max-width: 639px) {
	.foot__mail,
	.foot__legal,
	.foot__nl,
	.foot__ig,
	.foot__copy,
	.foot__vat {
		grid-column: 1 / -1;
		justify-self: stretch;
		text-align: left;
	}

	.foot__ig {
		justify-self: start;
	}
}

/* Pages noires (05/11, Lorène) : sur By colors et Videography, le footer passe en noir (texte blanc, gris clair pour
   les mentions). Le Portfolio et les pages série n'ont pas de footer. */
body.theme-dark .foot,
body.is-videography .foot {
	border-top-color: var(--c-grey);
	background: var(--c-black);
	color: var(--c-white);
}

body.theme-dark .foot__copy,
body.theme-dark .foot__vat,
body.theme-dark .foot__nl-ok,
body.theme-dark .foot__nl-input::placeholder,
body.is-videography .foot__copy,
body.is-videography .foot__vat,
body.is-videography .foot__nl-ok,
body.is-videography .foot__nl-input::placeholder {
	color: var(--c-grey-dark);
}

body.theme-dark .foot__nl-input,
body.is-videography .foot__nl-input {
	color: var(--c-white);
}

body.theme-dark .foot__nl-ok input,
body.is-videography .foot__nl-ok input {
	accent-color: var(--c-white);
}

/* Bouton « S'inscrire » : au survol la case devient blanche (et non noire, invisible sur fond noir) */
@media (hover: hover) {
	body.theme-dark .foot .btn:hover,
	body.is-videography .foot .btn:hover {
		border-color: var(--c-white);
		background: var(--c-white);
		color: var(--c-ink);
	}
}
