/* .............................................................................
CONFIGS
................................................................................

EXPLICATION DES FICHIERS :
- Dev : assets/css/
- Prod : task "grunt buildcss" pour builder le CSS build/css/main.css


COULEURS :
- Voir les vars plus bas.


TRANSITION :
- cubic-bezier(0.4, 0, 0.2, 1)


NAMING CONVENTIONS :
- Blocks = section d'une page, ex : .bMain, .bBoxesList.
- Items = partie importante reutilisable, ex : .iBox, .iAccordion.
- Text = style precis pour texte, ex : .tBig, .tUpper


REFERENCES :
Desktop-first :
@media (max-width:1999px) {}    124.99rem
@media (max-width:1499px) {}    93rem
@media (max-width:1199px) {}    75rem
@media (max-width:991px) {}     62rem
@media (max-width:767px) {}     47rem

Mobile-first :
@media (min-width:768px) {}     47.01rem
@media (min-width:992px) {}     62.01rem
@media (min-width:1200px) {}    75.01rem
@media (min-width:1500px) {}    93.01rem
@media (min-width:2000px) {}    125rem
*/


/*
COLORS */
:root {
	/* Main colors */
	--color-base: #231f20;
	--color-base-on-dark: #fff;
	--color-red: #c51230;
	--color-grey: #999;

	/* BG */
	--color-bg-base: #fff;
	--color-bg-grey: #f3f3f3;
	--color-bg-dark: #231f20;
}



/*
BASE WIDTHS
L'application des valeurs est dans base.css. */
:root {
	--width-wide-left: 2.5vw;
	--width-wide-right: 2.5vw;

	--width-std-left: 10vw;
	--width-std-right: 10vw;

	--width-narrow-left: 20vw;
	--width-narrow-right: 20vw;

	/* Spacing at left/right of some boxes on mobile */
	--spacing-box-mobile-left: 5vw;
	--spacing-box-mobile-right: 5vw;

	/* 4k overflow sides */
	--overflow-std-left: var(--width-std-left);
	--overflow-std-right: var(--width-std-right);
}

	/* Ultra large, on restreint la largeur maximale */
	@media (min-width:125rem) {
		:root {
			--width-std-left: calc(45vw - 43.7em);
			--width-std-right: calc(45vw - 43.7em);

			--width-narrow-left: calc(50vw - 37.5em);
			--width-narrow-right: calc(50vw - 37.5em);

			--overflow-std-left: 10vw;
			--overflow-std-right: 10vw;
		}
	}

	/* Mid desktop */
	@media (max-width:75rem) {
		:root {
			--width-narrow-left: var(--width-std-left);
			--width-narrow-right: var(--width-std-right);
		}
	}

	/* Mobile */
	@media (max-width:47rem) {
		:root {
			--width-std-left: 5vw;
			--width-std-right: 5vw;
		}
	}



/*
BASE SPACINGS
L'application des valeurs est dans site-blocks.css. */
:root {
	--base-spacing-top: 7em;
	--base-spacing-bottom: 7em;
}

	@media (max-width:62rem) {
		:root {
			--base-spacing-top: 4em;
			--base-spacing-bottom: 4em;
		}
	}

	@media (max-width:47rem) {
		:root {
			--base-spacing-top: 3em;
			--base-spacing-bottom: 3em;
		}
	}



/*
ROUND BORDERS
Nous voulons exactement la meme dimension de roundness. */
:root {
	--round-borders: 0.6rem;
}



/*
TOPBAR HEIGHT
La hauteur du topBar affecte plusieurs elements dans la page.
On specifie donc une valeur globale pour pouvoir y acceder facilement. */
:root {
	--topbar-height: 9em;
	--topbar-height-scrolled: 6em;
}

	/* Tablet */
	@media (max-width:62rem) {
		:root {
			--topbar-height: 6em;
			--topbar-height-scrolled: 4.5em;
		}
	}

	/* Mobile */
	@media (max-width:47rem) {
		:root {
			--topbar-height: 5em;
			--topbar-height-scrolled: 4em;
		}
	}

