// font size viewport width
// si fluide en largeur jusqua une taille max genre 1280
// indique font size en px au dessus de 1280 et en vw en dessous
// possibilité d'avoir un font size en px en dessous d'une certaine largeur
// afin d'avoir une taille de typo correct sur les tablets et smartphones
// 
// pr dev : du coup il faut 2 fonctions, 
// 1 qui ne change jamais et qui accepte X parametres
// 		qui ne sont pas frocemment tous utilisés
// 1 qui est differente pr chaque site et qui indique : 
// 		la taille max pr utiliser vw
// 		le ratio taille d'origine sur les maquettes / tailles finale par rapport a la largeur
// 			( si la maquette est en 1920px de large mais qu'au final le client final veut un site
// 			en largeur max de 1280px (soit les 2/3) il faut pvoir reduire toutes les typos d'un coup)
$fzvw_maxw:1600;
$fzvw_design_width:2600;
$fzvw_ratio:0.5;
$fzvw_minw:767; // $screen-xs-max;
$fzvw_min_ratio:0.4;
@mixin fzvw($size){
	@include xxvw($size, font-size);
}
@mixin lsvw($size){
	@include xxvw($size, letter-spacing);
}
@mixin tivw($size){
	@include xxvw($size, text-indent);
}
@mixin xxvw($size, $property){
	#{$property}:   ($size * $fzvw_ratio / $fzvw_maxw * 100) + vw;
	@include mqq($fzvw_maxw) {
		#{$property}:   ($size * $fzvw_ratio * 1) + px;
	}
	@include mqq(-950) {
		#{$property}:   ($size * $fzvw_min_ratio * 0.85) + px;
	}
	@include mqq($fzvw_minw * -1) {
		#{$property}:   ($size * $fzvw_min_ratio * 1) + px;
	}
}

@function vh($size) {
	@return $size / $frame_w * 100%;
}

@function vv($size) {
	@return $size / $frame_h * 100%;
}

$factor:0.2;

@function emw($size) {
	@return $size * $factor * 1em;
}

$frame_w:2441;
$frame_h:1575;

* {
	// prevent dirty grayish box when tap on something on tablet
	// -webkit-tap-highlight-color: rgba(0,0,0,0);
	// prevent selection from android
	// -webkit-user-select: none;
	// box-sizing: border-box;
}

// hide textaera resize
.resizable-textarea .grippie {
	visibility: hidden;
}

textarea {
	resize: none;
}

html, body {
	// width: 100%;
	// height: 100%;
}

body {
	position: relative;
	&.is-main-menu-open {
		overflow: hidden;
	}
	font-weight: 600;
}

strong {
	font-weight: normal;
	@include BOLD();
}

a {
	color: inherit;
	font-size: inherit;
}

// input:-webkit-autofill,
// input:-webkit-autofill:hover,
// input:-webkit-autofill:focus,
// input:-webkit-autofill:active {
//     -webkit-transition-delay: 2s;
// }

.inputline:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 100px black inset;
}

.inputline:-webkit-autofill {
    -webkit-text-fill-color: $red;
}

#iewarning {
	display: none;
}

.txt {
	// line-height: 2;
	// letter-spacing: .3px;
	// text-align: justify;
	@include mq(xs) {
		
	}
}

