/* .............................................................................
RESETS
Pris certains styles de reboot.css et ajouter certains.
............................................................................. */
*,::after,::before{box-sizing:border-box;}
html { font-family: sans-serif; line-height: 1.15; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; -ms-overflow-style: scrollbar; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
@-ms-viewport { width: device-width; }
article, aside, figcaption, figure, footer, header, hgroup, main, nav, section, picture { display: block; }
[tabindex="-1"]:focus { outline: 0 !important; }
h1, h2, h3, h4, h5, h6, p, fieldset, ul, ol, li, figure, picture, blockquote, cite {margin: 0; padding: 0; border: 0;}
cite {font-style: normal; }
hr {display: block;height: 1px;border: 0;border-top: 1px solid var(--color-blue);margin: 1em 0;padding: 0;}
audio, canvas, iframe, img, svg, video {vertical-align: middle;}
textarea {resize: vertical;}
table {display: table;width: auto;height: auto;margin: 0;padding: 0;border: none;border-collapse: inherit;border-spacing: 0;border-color: inherit;text-align: left;font-weight: inherit;}

/* Pour debug */
/* * { outline: 1px solid red; outline-offset: -1px; } */

/* Pour debug #2 */
/* * { background-color: rgba(255,0,0,.2); }
* * { background-color: rgba(0,255,0,.2); }
* * * { background-color: rgba(0,0,255,.2); }
* * * * { background-color: rgba(255,0,255,.2); }
* * * * * { background-color: rgba(0,255,255,.2); }
* * * * * * { background-color: rgba(255,255,0,.2); } */



/* .............................................................................
BASE TAGS
Enlever le base font-size pour s'adapter au user-set font-size.
Voir Chrome / Preferences / Taille de police.
Donc, change les media queries pour des rem.
............................................................................. */
html {margin: 0; padding: 0;}
body {color: var(--color-base);background: var(--color-bg-base);line-height: 1;margin: 0;padding: 0;}
body.locked {margin: 0;height: 100%;overflow: hidden;}
.onDark {color: var(--color-base-on-dark);}

/*
Font size global du site.
On le met sur tous les enfants direct et pas directement sur le body car
on veut conserver le user-set font-size. */
body > * {font-size: 1em;}

	/* Medium desktop- */
	@media (max-width:93rem) {
		body > * {font-size: calc(0.45em + 0.59vw);}
	}

	/* Mobile */
	@media (max-width:62rem) {
		body > * {font-size: 1em;}
	}


/* Liens de base */
a {text-decoration: none;cursor: pointer;color: inherit; }
a:hover {text-decoration:none;}

/* 
Focus de base : laisser celui du browser par defaut.
Only suppress the focus ring once what-input has successfully started.
Suppress focus ring on form controls for mouse users. */
[data-whatintent='touch'] *:focus,
[data-whatintent='mouse'] *:focus { outline: none; }

/* Sup and sub. */
sup {vertical-align: super;font-size: 40%;}

/* All images responsive */
img, svg {height:auto;width: 100%;display:block;}
img.forceBigger {width: 100%;}

/* Removes animation when the page renders. */
.preload *,
.removeTransition {transition:none !important;}

/* prefers-reduced-motion detects if the user has the reduced motion 
preference activated to minimize the amount of movements and animations. */
@media screen and (prefers-reduced-motion: reduce) {  
	* {
		/* Very short durations means JavaScript that relies on events still works */
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}



/* .............................................................................
PAGE BASE
............................................................................. */

/* 
OWL SELECTOR
L'espacement entre les elements se fera souvent avec le margin-top.
Avec cette facon de fonctionner, le 1er item n'aura jamais de margin-top.
L'espacement entre les titres est dans titles.css. */
* + p,
* + ul,
* + ol {margin-top: 1.5002em;}



/*
WIDTHS
Les largeurs sont assez standard pour avoir des classes uniquement pour ca.
Les exceptions sont gerer dans les styles custom de sections.
Les valeurs sont dans configs.css.

Options de largeur :
1. FULL width : Pas de classe, car par defaut c'est 100% de large
2. STD width : .wStd
3. IN width : .wIn
4. NARROW width : .wNarrow
*/
.wStd, .wStdLeft {padding-left: var(--width-std-left);}
.wStd, .wStdRight {padding-right: var(--width-std-right);}

.wIn, .wInLeft {padding-left: var(--width-in-left);}
.wIn, .wInRight {padding-right: var(--width-in-right);}

.wNarrow, .wNarrowLeft {padding-left: var(--width-narrow-left);}
.wNarrow, .wNarrowRight {padding-right: var(--width-narrow-right);}

/* Si le narrow est dans un in, on doit reduire la largeur du 
narrow sinon ca fait une double largeur). */
.wInLeft .wNarrow,
.wInLeft .wNarrowLeft,
.wIn .wNarrow,
.wIn .wNarrowLeft {padding-left: calc(var(--width-narrow-left) - var(--width-in-left)); }

.wInRight .wNarrow,
.wInRight .wNarrowRight,
.wIn .wNarrow,
.wIn .wNarrowRight {padding-right: calc(var(--width-narrow-right) - var(--width-in-right)); }



/*
MAIN
Comme la navigation du haut est sticky, on doit ajouter un margin top au
main pour le descendre un peu, sinon le debut du main est hidden par
la topbar. De plus, le main est une grid avec la sidebar. On fait ceci
pour position positionner correctement les items sur mobile :
- Page head
- Sidebar
- Contenu de page. */
main {padding-top: var(--topbar-height);}

.mainGrid { }
.mainGrid__in {display: grid;grid-template-columns: 1fr var(--width-std-gap) var(--width-sidebar);grid-template-rows: auto;}
.mainGrid__gSidebar {grid-row:1 / 3; grid-column:3 / 4; }
.mainGrid__gPH {grid-row:1 / 2; grid-column:1 / 2; }
.mainGrid__gCtn {grid-row:2 / 3; grid-column:1 / 2; }
.gFooter {grid-row:3 / 4; grid-column:1 / 2; }

	/* 
	ALT:
	Sidebar at the bottom on mobile. */
	.mainGrid--sidebarBottom { }

	/* Mobile order */
	@media (max-width:62rem) {
		.mainGrid__in {display: flex; flex-wrap: wrap; }
		.mainGrid__in > * {width: 100%; flex:1 1 auto; }
		.mainGrid__gSidebar {order:-2; }
		.mainGrid__gPH {order:-3; }
		.mainGrid__gCtn {order:-1; }

		.mainGrid--sidebarBottom .mainGrid__gSidebar {order:0; }
	}



/*
AUTO STYLED CONTENT:
Useful for CMS pages because the end-user doesn't have to write
specific classes to get the right formatting.
Les paragraphes posent toujours un probleme dans un site web, car
si on les stylise comme il faut, il faut ensuite les redefinir a pleins
d'endroits (car c'est un tag qu'on utilise un peu pour n'importe quel
contenu). Donc, au lieu de styliser les p { }, on utilise la classe
.typo sur un container. Cette classe stylisera les <p> child de
ce container .typo.

C'est un peu le meme probleme pour les liens (<a>), car on les
utilise un peu partout, mais doivent aussi avoir un style pour les
inline links. On utilise la classe .typoLinks pour ceux-ci.
*/
.typo {line-height: 1.5;}

	/* Default ul */
	.typo ul:not([class]), ul.list {--padding-left:1.5em; list-style: none;}
	.typo ul:not([class]) li, ul.list li {list-style:none;margin-bottom: 0;padding-left: var(--padding-left);position: relative;}
	.typo ul:not([class]) li::before, ul.list li::before {position: absolute;display: block;content: '';background-color: var(--color-orange);width: 0.3em;height: 0.3em;top: 0.55em;left: 0;border-radius: 50%;}

	/* Default ol */
	.typo ol:not([class]) {--padding-left:1.5em; list-style: none;counter-reset:li;}
	.typo ol:not([class]) li {list-style: none;counter-increment: li;padding-left: var(--padding-left);position: relative;}
	.typo ol:not([class]) li::before {content: counter(li);color: var(--color-orange);display: inline-block; font-weight:bold; width: var(--padding-left);margin-left: calc(-1 * var(--padding-left));}

	/* Default CTA margin top. */
	* + .typo__cta {margin-top: 4.5002em;}

	/* On dark */
	.typo .onDark ul:not([class]) li::before,
	.typo .onDark ol:not([class]) li::before {background-color: #fff;}

	/* 
	ALT: 
	Less flow.
	Smaller spacing between paragraphs. */
	.typo--lessFlow { }
	.typo--lessFlow p:not([class]) {font-size: 0.75em; }

	.typo--lessFlow * + p:not([class]),
	.typo--lessFlow * + ul,
	.typo--lessFlow * + ol {margin-top: 0.75em;}


/* Links */
.typoLink,
.typoLinks { }

	.typoLink,
	.typoLinks a {color:var(--color-orange); text-decoration:underline; transition: color 0.2s; }

	/* Hover */
	.typoLink:hover,
	.typoLinks a:hover {color:#000; text-decoration: underline;}

	/* On dark */
	.onDark .typoLink,
	.onDark .typoLinks a {color:#fff; }

		/* Hover */
		.onDark .typoLink:hover,
		.onDark .typoLinks a:hover {color:var(--color-pink); }


/*
LISTS
Listes ul li utiles dans le site. */

/* Liste sans style */
.listNS {list-style: none;}

/* Liste inline horizontale. */
.listInline {--spacing:1em; list-style: none; display: inline-flex; flex-wrap: wrap; margin-left:calc(-1 * var(--spacing)); margin-right:calc(-1 * var(--spacing)); }
.listInline li {flex: 0 1 auto; display: block; position: relative; padding: 0 var(--spacing); }

/* Liste inline horizontale pour les reseaux sociaux. */
.listInlineRS {--spacing:1em;list-style: none;text-transform: uppercase;font-weight: bold;display: inline-flex;flex-wrap: wrap;margin-left:calc(-1 * var(--spacing));margin-right:calc(-1 * var(--spacing));}
.listInlineRS li {flex: 0 1 auto;display: block;padding: 0 var(--spacing);}
.listInlineRS li a {font-size: 1em;color: var(--color-blue);text-decoration: underline;transition: color 0.2s;}

	/* Hover */
	.listInlineRS a:hover {color: var(--color-pink);}

/* Liste inline horizontale plus grosse. */
.listInlineBig {list-style: none;padding-left: 0;line-height: 1.2;}
.listInlineBig li {position: relative;display: inline-block;font-size: 1.2em;margin-bottom: 0;padding-left: 0;}
.listInlineBig li:not(:last-child) {margin-right: 1em;}
.listInlineBig li:not(:last-child)::before {content: "|";display: block;position: absolute;right: -0.8em; opacity: 0.3;}



/* .............................................................................
SVGs
Styles des SVGs du site. Les SVGs sont majoritairement utile pour les
icones, mais pas uniquement pour ca.
............................................................................. */

/*
SVG ICON
Chaque icone / SVG est wrapped dans un .svgIcon.
On utilise <span>, mais si pertinent on prend autre chose (ex : <figure>) */
.svgIcon {display:block;font-size: 1em;line-height: 1;width: 1em;height: 1em;}
.svgIcon > svg {max-width: none; display: block; fill: currentColor; width: 1em; height: 1em;}

	/*
	SVG SPECIFIC SIZES
	Certains SVG n'ont pas la meme largeur que hauteur. On les ajuste ici.
	Fixed size parce qu'IE (et vieux Safari) est incompetent */
	.svgIcon--logogranbyindustries, .svgIcon--logogranbyindustries svg {width: 4.47em;height: 1em;}
	.svgIcon--logoAuDevant, .svgIcon--logoAuDevant svg {width: 3.35em;height: 1em;}

	.svgIcon--logoBCorp{
		font-size: 4.2em;
		color: #000;
	}
	.onDark .svgIcon--logoBCorp{
		color: var(--color-base-on-dark);
	}
	
	.svgIcon--logoBCorp,
	.svgIcon--logoBCorp svg{
		height: auto;
    	width: 0.6em;
	}

	