/*
Colours and titles of the home page sections (À propos, Savoir-faire, Espace Créatif,
Où nous trouver) and the history page (/histoire, body.his).

Mobile first: base rules, then one block per breakpoint, widest last.
*/

@layer sections {
	/* Où nous trouver (contact) */
	section.where {
		h3 {
			font-weight: normal;
		}

		.social {
			text-align: center;
		}

		.social a {
			display: inline-block;
			padding: 8px;
			font-size: 4.8rem;
			color: #9a9a9a;

			&:hover {
				text-decoration: none;
				color: #fff;
			}
		}

		.mission {
			text-align: center;

			img {
				max-width: 600px;
			}
		}
	}

	/* Section colours */
	section.who {
		background-color: var(--color-who);
		color: #ffffff;
	}

	section.what {
		background-color: var(--color-what);
		color: #ffffff;
	}

	section.where {
		background-color: var(--color-footer);
	}

	/* White text on the coloured sections */
	div.sec .inner,
	div.sec .aside {
		color: #fff;
		text-shadow: 0 1px #000;

		a {
			color: #fff;
		}
	}

	/* Section titles are pictures; the text stays for screen readers */
	section.who h1 {
		color: transparent;
		background-image: url(/img/title_a_propos_de_nous_white.svg);

		a {
			opacity: 0;
		}
	}

	section.what h1 {
		color: transparent;
		background-image: url(/img/title_notre_savoir_faire_white.svg);

		a {
			opacity: 0;
		}
	}

	section.where {
		color: #fff;
		background-size: cover;
		min-height: inherit;

		a {
			color: #fff;
		}
	}

	/* Espace Créatif: dark text on white */
	section.espacecreatif {
		background-color: #fff;

		h1 {
			color: #011799;
			font-weight: 300;
			height: auto;
			min-height: 64px;
			text-transform: uppercase;
		}

		h1 .byline {
			display: block;
			font-size: 2rem;
		}

		.inner {
			color: #000;
			text-shadow: none;
		}

		.inner a {
			color: #011799;
		}
	}

	/* History page (his_index.php) */
	.his h1, .his h2, .his h3, .his h4, .his h5, .his h6 {
		font-family: Bevan, "Helvetica Neue", Helvetica, sans-serif;
		font-weight: 400;
	}

	body.his header[role="banner"] {
		height: 175px;
		padding-top: 0;
		background-image: url(/img/histoire/hist_banner.jpg);
		background-position: 50% 100%;
		background-repeat: no-repeat;
		background-size: contain;
	}

	body.his div.sec .inner,
	body.his div.sec .inner a,
	body.his div.sec .aside {
		color: #000;
		text-shadow: none;
	}

	.his p {
		font-family: "Pontano Sans", "Helvetica Neue", Helvetica, sans-serif;
		font-weight: 400;
		color: #7a7a7a;
	}

	/* Account and newsletter forms (reg_index.php, for_index.php) */
	body.reg header[role="banner"] {
		padding-top: 0;
	}

	/* 480px */
	@media (width >= 30em) {
		body.his header[role="banner"] {
			height: 185px;
		}

		section.where .social a {
			padding: 10px;
		}
	}

	/* 768px */
	@media (width >= 48em) {
		div.secwho #timeline {
			text-shadow: none;
		}

		div.secwhere {
			background-color: transparent;
			text-shadow: none;

			a {
				color: #fff;
			}
		}

		body.his header[role="banner"] {
			height: 300px;
			background-position: 50% 100%;
			background-size: cover;
		}

		section.his h1 {
			margin-bottom: 0.25em;
		}

		section.his figure,
		.event figure {
			margin-left: 0;
			margin-right: 0;
		}
	}

	/* 992px */
	@media (width >= 62em) {
		.event .inner {
			float: left;
		}

		section.his figure,
		.event figure {
			float: right;
			width: 45%;
			margin-left: 5%;
			margin-bottom: 1.5em;
		}
	}

	/* 1382px */
	@media (width >= 86.375em) {
		body.his header[role="banner"] {
			height: 400px;
		}

		section.his .inner {
			float: none;
			width: auto;
		}

		section.his h2 {
			font-size: 4rem;
		}

		div.sechis {
			column-count: 2;
			column-gap: 5%;
		}

		body.his div.sec .inner {
			break-inside: avoid;
		}

		section.his figure,
		.event figure {
			float: none;
			width: auto;
			margin-left: 0;
		}
	}

	/* 1700px */
	@media (width >= 106em) {
		body.his header[role="banner"] {
			height: 500px;
		}

		div.sechis {
			column-count: 3;
			column-gap: 5%;
		}
	}
}
