/* ------------------------------
CSS
------------------------------ */

/* ------------------------------
colors
------------------------------ */
:root {
	--orange: #ff6600;			/*rgb 255 102 0*/
	--grayverylight: #eaeaea;	/*rgb 234 234 234*/
	--graylight: #cccccc;		/*rgb 204 204 204 gray80 pneus logo*/
	--graydark: #b3b3b3;		/*rgb 179 179 179 gray70 fond logo*/
	--grayverydark: #808080;	/*rgb 128 128 128 triangle logo*/
	--black: #000000;			/*rgb 0 0 0*/
	--white: #ffffff;			/*rgb 255 255 255*/
	--graylatex: #f5f5f5;		/*rgb 245 245 245*/
	--gradient: linear-gradient(to right, var(--orange), var(--black));
	--gradientv: linear-gradient(to bottom, var(--orange), var(--black)); /* vertical line footer */
	--gradientinverse: linear-gradient(to right, var(--black), var(--orange));
}

/* ------------------------------
body
------------------------------ */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

@font-face {
	font-family: myFirstFont;
	src:
		url(../_font/american-typewriter.ttf);
		url(../_font/american-typewriter.woff);
		url(../_font/american-typewriter.woff2);
}

html {
    width: 100%;
    height: 100%;
    scroll-behavior: smooth;

    /* prevent unwanted horizontal scrolling */
    overflow-x: hidden;

    /* scrollbar (Firefox) */
    scrollbar-color: var(--orange) var(--graylight);
    scrollbar-width: thin;

    /* prevent unwanted mobile zooming */
    text-size-adjust: none;
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;

    /* optimize text rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-smooth: always;
    text-rendering: optimizeLegibility;
}

/* webkit scrollbar for Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-thumb {
    background-color: var(--orange);
    border-radius: 4px;
}
::-webkit-scrollbar-track {
    background-color: var(--graylight);
}

body {
    font-family: myFirstFont, Arial, sans-serif;
    font-weight: normal;
    font-size: 20px;
    background-color: var(--grayverylight);
    min-height: 100%;

    /* border using logical properties */
    border-block-start: 3px solid transparent;
    border-image-source: var(--gradient);
    border-image-slice: 1;
    
    /* fade-in loading*/
    opacity: 0;
    transition: opacity .5s ease;
}

body.fade-in {
	opacity: 1;
}

body:not(.menu-open) a {
	font-size: 20px;
}

/* ------------------------------
watermark
------------------------------ */
body::after {
	content: '';
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: url('/_img/logocompletetransparent.png') no-repeat center center;
	background-size: contain; /* or cover */
	opacity: 0.05;
	pointer-events: none;
	z-index: -9999;
}

/* ------------------------------
titles
------------------------------ */
.titlegradient, .titlegradientinverse {
    font-family: 'Montserrat', sans-serif;
    -webkit-background-clip: text;
    background-clip: text;
    /* fix for Firefox */
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* fallback for older browsers */
    background-color: var(--black);
    
    vertical-align: bottom;
    width: fit-content;
	text-transform: uppercase;
}

.titlegradient {
    font-weight: bold;
    background-image: var(--gradient);
    mask-image: var(--gradient);
    -webkit-mask-image: var(--gradient);
}

.titlegradientinverse {
    font-size: .9em;
    background-image: var(--gradientinverse);
    mask-image: var(--gradientinverse);
    -webkit-mask-image: var(--gradientinverse);
}

/* ------------------------------
paragraphs
------------------------------ */
p {	
	text-align: justify;
	padding-bottom: 10px;
	hyphens: auto;
	margin: 0 auto;
	width: 80%;
}

p.gradient, p.gradientinverse {
	text-align: left !important;
	hyphens: none;
}

p.reduced-space {
	margin-bottom: 0;
}

p.reduced-space + p.reduced-space {
	margin-top: -10px;
}

p.pola {
	display: flex;
	justify-content: right;
	align-items: right;
	position: relative;
}

div.intro{
	padding-bottom: 15px;
	padding-top: 15px;
	color: var(--grayverydark);
	background-image: linear-gradient(var(--graydark),var(--grayverylight));"
}

/* ------------------------------
images
------------------------------ */
.imgpolathree {
	width: 55%;
	padding: 5px;
}

.imgformulas, .imgmaps {
	border: 1px solid var(--orange);
	border-radius: 10px;
	box-shadow: 10px 10px 16px 4px var(--grayverydark);
	height: auto;
	width: 100%;
}

.imglogoha {
	max-width: 200px;
	height: auto;
}

.imglogohaline {
	width: 200px;
	height: auto;
	margin: 0 3px;
}

.imglogocomplete {
	width: 100%;
	height: auto;
}

.imgbrand {
	float:left;
	margin-right:10px;
	margin-bottom:10px;
	margin-top:10px;
}

.imgbrandcarre {
	height: 80px;
	width: auto;
}

.imgbrandrectangle{
	width: 80px;
	height: auto;
}

/* ------------------------------
links
------------------------------ */
a {
	font-size: inherit;
}

a, a:focus, a:link, a:visited, a:hover, a:active {
	color: var(--orange);
	text-decoration: none;
	border: none;
	outline: none;
	transition: none;
	font-family: myFirstFont;
	font-weight: normal;
}

/* ------------------------------
progress bar
------------------------------ */
.progress-container {
    width: 100%;
	height: 3px;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1000;
}

.progress-bar {
	height: 3px;
	background: var(--orange);
	width: 0%;
	transition: width 0.25s ease;
}

/* ------------------------------
button top
------------------------------ */
#myBtnTop {
	position: fixed;
	bottom: 5px;
	left: 5px;
	z-index: 99;
	background-color: transparent;
	cursor: pointer;
	border: none;
	outline: none;
	width: 48px;
	height: 48px;
	padding: 10px;
}

#myBtnTop img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: inline;
}

/* ------------------------------
line with logo ha
------------------------------ */
.line-wrapper {
	display: flex;
	align-items: center;
	width: 100%;
	padding: 0px 0;
}

.line-wrapper-top {margin-top: -25px; margin-bottom: -15px}
.line-wrapper-bottom {margin-top: 15px; margin-bottom: -25px;}

.line-main-left {
	flex: 9;
	height: 3px;
	background: linear-gradient(to right, var(--orange), var(--black));
}

.line-main-right {
	flex: 1;
	height: 3px;
	background: var(--black);
}

/* ------------------------------
restricted
------------------------------ */
form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 80%;
	margin: 0 auto;
}

.form-row {
	display: flex;
	align-items: center;
	width: 100%;
}

.form-row button {
	margin:0 auto;
	font-family: 'Montserrat', sans-serif;
	font-weight: bold;
	font-size: 20px;
	border: none;
	outline: none;
	color: var(--orange);
	background-color: transparent;
}

input {
	width: 100%;
  	padding: 12px 14px;
  	font-size: 20px;
	color: var(--orange);
	background: var(--graylignt);
	border: 2px solid var(--orange);
  	border-radius: 8px;
	outline: none;                 /* remove default blue outline */
}

.error {
	margin: 0;
	//min-width: 160px; /* reserve a stable block */
	text-align: right;
	visibility: hidden;
	font-family: 'Montserrat', sans-serif;
	font-weight: bold;
	font-size: 20px;
	color: red;
}

.error.show	{
	visibility:	visible;
}

/* ------------------------------
two columns for page
------------------------------ */
.articles {
	columns: 2; /* two independent vertical columns */
	column-gap: 1rem;
}

.itemncu {
	display: inline-block;
	width: 100%; /* ensure items fill column width */
}

/* ------------------------------
three icons top right
------------------------------ */
.fixed-image-row {
	position: fixed;
	top: 5px;
	right: 5px;
	display: flex;              /* aligns them in a row */
	gap: 2px;                   /* optional spacing between images */
	padding: 10px;              /* optional spacing from edge */
	z-index: 1001;
}

.fixed-image-row img {
	width: 30px;
	height: auto;
}

/* ------------------------------
footer
------------------------------ */
.footer {
	color: var(--grayverydark);
	background-image: linear-gradient(var(--grayverylight),var(--graydark));
	overflow: hidden;
	border-bottom: 3px solid transparent; /* set the border to be transparent */
	border-image: var(--gradient) 1;
	padding: 20px 10px 20px 10px;
}

.footer p {
	width: 95%;
}

/* ------------------------------
grid for footer with and w/o logo
------------------------------ */
#grid {
    display: grid;
    width: 95%;
    grid-template-columns: 240px 3px 50px 1fr; /* define the grid structure */
    grid-template-rows: repeat(4, auto); /* four rows with automatic height */
    margin: 0 auto;
}

.un-column {
    grid-row: 1 / span 4; /* merge all rows into one */
    display: flex;
    align-items: center;
    justify-content: center;
	padding-right: 10px;
	padding-left: 10px;
}

.deux-column {
    grid-row: 1 / span 4; /* merge all rows into one */
    background-image: var(--gradientv);
}

.trois-column {
    margin: 0 auto;
}

/* ------------------------------
devices
------------------------------ */
@media screen and (max-width: 700px) {
	body, body:not(.menu-open) a {
  		font-size: 18px;
	}
	div.intro{
		padding-bottom: 25px;
		padding-top: 20px;
	}
	.articles {
    	columns: 1;
    	display: flex;
    	flex-direction: column;
  	}
    #grid {
    	display: grid;
    	width: 95%;
    	grid-template-columns: 0px 3px 50px 1fr;
	}
	.un-column img {
        width: 0px; /* footer logo vanishes */
    }
}

	


