/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
    line-height: 1.15; /* 1 */
    -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
    margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */

main {
    display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
    font-size: 2em;
    margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
    box-sizing: content-box; /* 1 */
    height: 0; /* 1 */
    overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
    font-family: monospace, monospace; /* 1 */
    font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
    background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
    border-bottom: none; /* 1 */
    text-decoration: underline; /* 2 */
    text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
    font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
    font-family: monospace, monospace; /* 1 */
    font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
    font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
    border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
    font-family: inherit; /* 1 */
    font-size: 100%; /* 1 */
    line-height: 1.15; /* 1 */
    margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
    overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
    text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
    padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
    box-sizing: border-box; /* 1 */
    color: inherit; /* 2 */
    display: table; /* 1 */
    max-width: 100%; /* 1 */
    padding: 0; /* 3 */
    white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
    vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
    overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
    box-sizing: border-box; /* 1 */
    padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
    -webkit-appearance: textfield; /* 1 */
    outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
    -webkit-appearance: button; /* 1 */
    font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
    display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
    display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
    display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
    display: none;
}


/* Ajout des Fonts */
@font-face {
    font-family: 'Cambria';
    src: url('fonts/Cambria.woff2') format('woff2'),
    url('fonts/Cambria.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cambria';
    src: url('fonts/Cambria-Bold.woff2') format('woff2'),
    url('fonts/Cambria-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cambria';
    src: url('fonts/Cambria-Italic.woff2') format('woff2'),
    url('fonts/Cambria-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

* {
    font-family: 'Cambria', 'Times New Roman';
}

html {
    font-size: 16px;
}

#orientation {
    display: none;
}

#main {
    margin: auto;
    width: 100%;
    /*max-width:1024px;*/
    /*max-width:850px;*/
}

#mainContent {
    margin: auto;
    width: 100%;
    /* max-width: 850px;*/
}
/*
#mainContent #search {
    max-width: 850px;
}
#mainContent .compare, #mainContent #logo{
    max-width:850px;
}
*/


#home, #search, .compare, h1 {
    margin: 0px auto;
    witdh: 100%;
    max-width: 850px;
}

h1 {
    text-align: center;
    font-size: 6vh;
    line-height: 1;
    font-weight: normal;
    padding-bottom: 1.125em;
    padding-top: 1.125em;
    color: #000000;
    /*  background-color: #000000; */
    text-transform: uppercase;
    cursor: pointer;
}

#logo {
    display: block;
    max-width: 100%;
    height: auto;
    /*margin: 5.25rem auto 4rem;*/
}

#footer {
    background-color: #000000;
    color: #ffffff;
    text-align: center;
    padding: 2vh;
}

#home {

}


/* LS reprendre ici */
#search, .compare{
    display:none;
}

#home img,
#search img.search-product,
#search .imgProduit img{
    display: block;
    margin: auto;
    height: auto;
    max-width: 100%;
}

#home button {
    display: block;
    margin: auto;
    background-color: #000000;
    color: #ffffff;
    text-transform: uppercase;
    border: 0px;
    padding: 0.25em 0.8em;
}

#searchMessage, div.compare, #logoHome {
    display: none;
}

#search h2 {
    font-weight: normal;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 0px;
}

#search h3 {
    font-style: italic;
    font-weight: normal;
    color: #808285;
    text-align: center;
    margin-top: 0.25em;
}

.divSearch {
    display: flex;
    justify-content: center;
}

#search input {
    border-radius: 0px;
    border: 0px !important;
    background-color: #f2f2f2;
    height: 63px;
    padding-left: 1em;
    padding-right: 1em;
    text-align: center;
    width: 250px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

#search input:focus {
    border: 0px !important;
    outline: none;
}

#search input::placeholder {
    color: #d4d4d4;
}

.searchIcon {
    width: 66px;
    height: auto;
}

#searchMessage {
    text-align: center;
    color: red;
    padding-top: 2em;
}

.compareContent {
    display: flex;
    justify-content: space-around;
}

.compare h2 {
    font-weight: normal;
    text-transform: uppercase;
}

.compare h2 {
    line-height: 1.05;
}


h1 {
    max-width: 100%;
    font-size: 3.5vh;
}

h1 {
    text-align: center;
}

h1 span {
    text-align: center;
}

h1 span.overlay {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-basis: 100%;
    /*background-color: rgba(0,0,0,0.25);*/
}

h1 img {
    padding-top: 1vh;
    width: auto;
    max-width: 53px;
    height: 2.5vh;
    min-height: 23px;
    margin-bottom: -1.5vh;
}

#footer {
    font-size: 1.9vh;
}

#home button {
    font-size: 3.25vh;
}

#search h2 {
    font-size: 4.5vh;
}

#search h3 {
    font-size: 2.2vh;
}

.divSearch {
    padding-top: 1.25vh;
}

#searchMessage {
    font-size: 2.15vh;
}

#search input, .searchIcon {
    height: 6vh !important;
    max-height: 63px;
    padding: 0px !important;
}

.searchIcon {
    width: auto !important;
}

#search input, #search input::placeholder {
    font-size: 2.5vh;
}


.compare h2 {
    font-size: 1.75vh;
    padding-left:2px;
    padding-right:2px;
    font-weight: normal;
    width:100%;
    display:block;
    text-align: center;
    margin-top: 1.5vh;
    margin-bottom: 4vh;
}

.blocRefProduit {
    font-size: 2.25vh;
    padding-top: 0.6vh;
    padding-bottom: 0.6vh;
    font-weight: bold;
}

.compare .compareContent h2 {
    margin-bottom: 1.5vh;
}
.compare .compareContent h2 b {
    padding-top:0.4vh;
    display:inline-block;
}



#main {
    display: flex;
    flex-wrap: wrap;
    min-height: -webkit-fill-available;
    max-height: -webkit-fill-available;
}

#mainContent {
    min-height: 96vh;
}

#mainContent > * {
    flex-basis: 100%;
}
#mainContent > #mainSubContent{
    display: flex;
    flex-wrap: wrap;
    width: 90%;
    margin: auto;
    max-width: 850px;
}
#mainContent > #mainSubContent > *{
    flex-basis: 100%;
}


#main h1 {
    display: flex;
    flex-basis: 100%;
    justify-content: center;
    align-items: center;
    align-content: center;
    margin: 0px;
    height: 15vh;
    padding: 0px;
    flex-wrap: wrap;
    background: url("../img/haut_page2.png");
    background-size: cover;
    background-repeat: no-repeat;
}

#home, #search {
    padding-top: 1.5vh;
    height: 67vh;
    padding-bottom: 1.5vh;
}

#chooseHome{
    display: flex;
    height:10vh;
    justify-content: center;
    align-items: center;
}
#chooseHome span{
    display: block;
    font-size:2.5vh;
    line-height: 1.25em;
    text-align: center;
    text-transform: uppercase;
}

#homeSelect{
    height: 50vh;
    display:flex;
    flex-wrap: nowrap;
    justify-content: center;
}
#homeSelectType{
    height:9vh;
    display:flex;
    flex-wrap: nowrap;
    justify-content: center;
}
#homeSelect > div{
    display:flex;
    flex-basis: 50%;
    /* flex-wrap: wrap; */
    height: 50vh;
    justify-content: center;
}
#homeSelect > div > div{
    display:flex;
}


#homeSelect > div  img{
    width: auto;
    max-height: 50vh;
    cursor: pointer;
}
#homeSelectType > div{
    flex-basis: 50%;
    text-align: center;
    justify-content: center;
    cursor: pointer;
}
#homeSelectType > div span{
    font-size: 2.5vh;
    line-height: 9vh;
}

.compare {
    padding-top: 3.5vh;
    height: 65vh;
    padding-bottom: 1.5vh;
}

.compareContent {
    height: 67vh;
    display: flex;
    flex-direction: column;

    /*flex-wrap: wrap;*/
}
.ligne1, .ligne2{
    height:31vh;
    display: flex;
}
.titreLigne{
    flex-basis:4%;
    position: relative;
}
.titreLigne span{
    position: absolute;
    bottom: 0;
    left: 0;
    margin-left: 0px;
    font-size:2vh;
    text-align: center;
    width:30vh;
    font-weight: bold;
    transform : rotate(270deg);
    transform-origin :0 0;
}
.blocProduits{
    flex-basis: 92%;
    border: 1px solid #f4e6dc;
    display:flex;
}
.blocProduit{
    flex-basis: 50%;
    display: flex;
}
.compare .imgProduit{
    flex-basis: 27.8%;
    margin-left:12.9%;
    margin-right:4.3%;
}
.compare .imgProduit img{
    width: auto;
    max-height: 29vh;
    cursor: pointer;
}
.compare .imgConcealer img{
    max-height:24vh;
    padding-top:4.75vh;
}
.compare .imgFleche{
    margin:2vh auto 1vh;
    display:block;
}

.compare .imgMatching{
    margin:auto;
    height:1.7vh !important;
    width:auto;
    margin:auto;
    display:block;
}
.compare .imgHeart{
    height:2.3vh !important;
}

.infoProduit{
    flex-basis: 55%;
    display:flex;
    flex-direction: column;
}
.infoProduit h2{
    margin-top:6vh;
}
.titreProduit{
    flex-basis: 50%;
    display: flex;
    align-content: flex-end;
}

.refProduit{
    display: flex;
    justify-content: center;
}
.blocRefProduit{
    flex-basis:69%;
    background-color: #f4e6dc;
    text-align: center;
}

#logo {
    flex-basis: auto;
    padding-top: 2.5vh;
    padding-bottom: 2.5vh;
    height: 6vh !important;
    width: auto !important;
    display: block;
    margin: auto !important;
}

#footer {
    display: flex;
    flex-basis: 100%;
    justify-content: center;
    align-items: center;
    margin: 0px;
    height: 4vh;
    padding: 0px;
    background: url('../img/pied_page2.png');
    background-size: cover;
    background-repeat: no-repeat;
}

#footer .overlay{
    display: flex;
    flex-basis: 100%;
    height: 100%;
    /*background-color: rgba(0,0,0,0.25);*/
}

#home > img {
    margin-top: 5vh;
    margin-bottom: 5vh;
    height: 48vh;
    width: auto;
}

#search {

}


.OldTIUW .ligne1 .blocProduits > .blocProduit:nth-child(1) .infoProduit{
    display:block;
}

.OldTIUW .ligne1 .blocProduits > .blocProduit:nth-child(1) .titreProduit{
    display:block;
}

.OldTIUW .ligne1 .blocProduits > .blocProduit:nth-child(1) h2{
    padding-top:2.5vh;
    padding-bottom:0.5vh;
    margin:0;
}

.OldTIUW .oldShade,
.OldTIUW .oldRef,
.OldTIUW .newShade,
.OldTIUW .matchingTitle{
    padding-left: 2px;
    padding-right: 2px;
    font-weight: normal;
    width: 100%;
    display: block;
    text-align: center;
}
.OldTIUW .oldShade{
    font-size: 1.5vh;
    font-style:italic;
    margin-bottom:0.25vh;
}

.OldTIUW .oldRef{
    font-size: 1.5vh;
}

.OldTIUW .newShade{
    font-size: 1.5vh;
    font-weight:bold;
    margin-bottom:0.25vh;
}
.OldTIUW .matchingTitle{
    margin-top:0.75vh;
    margin-bottom:0.5vh;
    font-size: 1vh;
    font-weight:bold;
    color:#dbae8a;
}

.compare .imgFleche{
    margin-top:0.5vh;
    height:6vh !important;
    width:auto;
}

#search img.search-product {
    margin-top: 2vh;
    margin-bottom: 4vh;
    height: 46vh;
    width: auto;
}

#searchMessage {
    padding-top: 7px;
}

#search #searchTIUW img.search-product{
    height:36vh;
    margin-bottom:2vh
}

.divSearch{
    display:flex;
    justify-content: center;
    padding-top:1.25vh;
}

#search #searchTIUW h3{
    margin-bottom:0.5vh;
    margin-top:1.5vh;
}

.OldTIUW .ligne1 .blocProduits > .blocProduit:nth-child(2) .refProduit{
    padding-top:4.4vh;
}
.OldTIUW .ligne1 .blocProduits > .blocProduit:nth-child(2) .infoProduit .titreProduit {
    flex-basis:50%;
}



@media (max-height: 1024px) {
    html {
        font-size: 14px;
    }

    #footer {
        font-size: 1.5vh;
    }

}

@media (max-width: 1024px) {
    .compare h2 {
        font-size: 1.5vh;
    }
    .titreLigne span {
        margin-left: -8px;
    }
    .OldTIUW .ligne1 .blocProduits > .blocProduit:nth-child(2) .refProduit{
        padding-top:3.75vh;
    }
}

@media (max-height: 900px) {
    .OldTIUW .ligne1 .blocProduits > .blocProduit:nth-child(2) .refProduit{
        padding-top:3.7vh;
    }
}
@media (max-height: 800px) {
    .OldTIUW .ligne1 .blocProduits > .blocProduit:nth-child(2) .refProduit{
        padding-top:3.6vh;
    }
}

@media (max-height: 768px) {

    html {
        font-size: 14px;
    }
    .compare h2 {
        font-size: 1.5vh;
    }
    .OldTIUW .ligne1 .blocProduits > .blocProduit:nth-child(2) .refProduit{
        padding-top:3.7vh;
    }

}

@media (max-height: 600px) {
    .OldTIUW .ligne1 .blocProduits > .blocProduit:nth-child(2) .refProduit{
        padding-top:3.6vh;
    }
}

@media (max-height: 579px) {
    html {
        font-size: 12px;
    }
    .OldTIUW .ligne1 .blocProduits > .blocProduit:nth-child(2) .refProduit{
        padding-top:3.6vh;
    }
}

@media (max-height: 520px) {

    html {
        font-size: 11px;
    }
    .OldTIUW .ligne1 .blocProduits > .blocProduit:nth-child(2) .refProduit{
        padding-top:3.2vh;
    }
}

@media (max-height: 480px) {

    html {
        font-size: 8px;
    }
    .OldTIUW .ligne1 .blocProduits > .blocProduit:nth-child(2) .refProduit{
        padding-top:3vh;
    }

}


@media (max-width: 479px) {

    #search h3 {
        font-size: 1.9vh;
    }

    .compare h2 {
        font-size: 1.4vh;
    }
    .blocRefProduit{
        font-size: 2vh;
    }

    .compare h2 {
        margin-top: 6vh;
        margin-bottom: 3.5vh;
    }

    .compareContent {
        height: 65vh;
    }
}

@media (max-width: 399px) {

    .compare h2 {
        font-size: 1.4vh;
        padding-left:2px;
        padding-right:2px;
    }
    .titreProduit{
        flex-basis:58%;
    }
}
