/****** Define theme colors ******/
:root
{
    --jumbotron-padding-y: 3rem;

    --h1-color: rgb(74, 74, 73);
    --h2-color: rgb(74, 74, 73);

    --navbar-background-color: white;
    --jumbotron-background-color: #f9f9f9;

    --company-color1: #009037;
    --company-color1-hover: #006426;
    --company-color2: #004ea2;
    --company-color2-hover: #002e61;
    --company-color3: white;
    --company-color3-hover: grey;

    --table-background-color1: white;
    --table-text-color1: black;
    --table-background-color2: #efefef;
    --table-text-color2: #9fa6ae;
    --table-border-color: grey;
    --table-head-background: black;
    --table-top-text-color: white;
    --table-row-height: 2em;
}

/****** center content and stick footer ******/
html, body 
{
    height: 100%;
}

body
{
    display: flex;
    flex-direction: column;    
}

#content 
{
    flex: 1 0 auto;
}

footer
{
    padding-top: 3rem;
    padding-bottom: 3rem;
    flex-shrink: 0;
    width: 100%;
}

footer p
{
    margin-bottom: .25rem;
}

.center
{
    max-width: 1200px;
    margin: auto ;
}

/****** streamer ******/
#streamer
{
    background: url(../img/background-controle-technique.jpg) no-repeat center center;
    min-height: 270px;
    padding-top: 40px;
    padding-bottom: 40px;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

#streamer, #streamer *
{
    color : white !important;
}

#welcome1
{
  font-weight: bold;
}

#menu_btn
{
    margin-top: 2em;
}

#btn_call, #btn_book
{
    position: sticky;
    margin: 1em 3% 0 3%;
    font-weight: 700;
}

/****** Menu ******/
#logo
{
    margin: 0;
    width: 100%;
}

#head-container
{
    padding: 1em 0 1em 0;
}

#home
{
    text-align: center;
    display: flex;
    flex-direction: row;
    background-color: var(--company-color1);
    padding: 0;
    border-radius: 5px;
}

#home a, #home div
{
    padding-top: 1em;
    padding-bottom: 1em;
    font-weight: bolder;
    flex: 1;
}

#home a:hover, #home div:hover
{
    background-color: var(--company-color2);
}

#home a:first-child
{
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

#home a:last-child
{
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

#navbarHeader
{
    background-color: var(--navbar-background-color);
}

.navbar
{
    display: block;
    padding: 0;
    background-color: var(--navbar-background-color);
}

#head-container
{
    position: fixed;
    top: 0px;
    z-index: 100;
    width: 100%;
}

a[class*="btn"]
{
    color: white;
    text-decoration: none;
}

#phoneNumber
{
    font-weight: 600;
    font-size: 50px;
}

/****** style ******/
#mainTitle
{
    color: var(--company-color1) !important;
}

h2
{
    color: var(--h2-color) !important;
    font-size: 1.5em ;
    line-height: 1.5em ;
    padding-top: 1em;
}

h2:before
{
    content: url(../img/maintenance.png);  
    float: left;
    margin-top: 5px;
    padding-right: 0.3em;
}

.btn-1
{
    background-color: var(--company-color1);
    border-color: var(--company-color1);
}

.btn-1:hover
{
    background-color: var(--company-color1-hover);
    border-color: var(--company-color1-hover);
}

.btn-2
{
    background-color: var(--company-color2);
    border-color: var(--company-color2);
}

.btn-2:hover
{
    background-color: var(--company-color2-hover);
    border-color: var(--company-color2-hover);
}

.btn-3
{
    background-color: var(--company-color3);
    border-color: var(--company-color3);
}

.btn-3:hover
{
    background-color: var(--company-color3-hover);
    border-color: var(--company-color3-hover);
}

a[class*="btn"]
{
    color: white;
}

.card
{
    height: 100%;
}

.card-body
{    
    display: flex;
    flex-direction: column;
}

.card-text
{
    flex : 1;
}

#card1
{
    background-color: var(--company-color2);
    padding: 10% 30% 10% 30%;
}

#card2
{
    background-color: var(--company-color1);
    padding: 10% 30% 10% 30%;
}

#card3
{
    background-color: var(--company-color2);
    padding: 10% 30% 10% 30%;
}

#rating
{
    vertical-align: middle;
}

.checked
{
    color: orange;
}

#cookieWarn
{
    position: fixed;
    bottom: 0px;
    background-color: rgba(219, 219, 219, 0.8);
    width : 100%;
    z-index : 10;
    padding : 1em;
}

/****** responsive design ******/
@media(max-width : 576px)
{
    #mainTitle
    {
        text-align: center;
        font-weight: bolder;
    }

    h1, #jumbotron-heading 
    {
        font-size: 1.2em;
    }

    #footer-text-right
    {
        margin-top: 50px;
    }

    body
    {
        padding-top: 180px;
    }

    #logo img
    {
        margin: auto;
        max-height: 100px;
        max-width: 391px;
    }
    
    #jumbotron-heading
    {
        font-size: 1.7em;
        font-weight: 255;
    }

    #welcome1
    {
        font-size: 1.2em;
        font-weight: 255;
    }

    #welcome2
    {
        font-size: 1.2em;
        font-weight: 255;
    }

    iframe
    {
        margin-top: -100px;
    }
}

@media(min-width : 576px)
{
    #logo
    {
        padding: 0 1em 0 0;
    }

    #logo img
    {
        margin: auto;
        padding: 0px;
    }

    #mainTitle
    {
        text-align: center;
        font-weight: bolder;
    }

    h1, #jumbotron-heading
    {
        font-size: 1.8em;
    }

    body
    {
        padding-top: 100px;
    }

    iframe
    {
        margin-top: -75px;
    }
}

@media (min-width: 769px)
{
    .jumbotron
    {
      padding-top: calc(var(--jumbotron-padding-y) * 1.2);
      padding-bottom: calc(var(--jumbotron-padding-y) * 1.2);
    }
}

@media(min-width: 1200px)
{
    #map-text
    {
        display: flex;
        flex-direction: row;
    }
    
    iframe
    {
        margin-top: -70px;
    }

    h1, #jumbotron-heading
    {
        font-size: 2.2em;
    }

    #ratingZone
    {
        float: right;
        height: 100%;
        top: 0;
    }
}

@media(max-width: 1200px)
{
    #ratingZone
    {
        display: block;
        width: 100%;
        padding-bottom: 2em;
    }
}

/****** jumbotron ******/
.jumbotron 
{
    padding-top: 2em ;
    padding-bottom: var(--jumbotron-padding-y);
    margin-bottom: 0;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    background-color: var(--jumbotron-background-color);
}

.jumbotron p:last-child
{
  margin-bottom: 0;
}

#jumbotron-heading
{
  font-weight: bolder;
}

/****** table commons ******/
table
{
    border-left: 1px solid var(--table-border-color);
    border-right: 1px solid var(--table-border-color);
}

td
{
    height: var(--table-row-height);
}

td[rowspan="2"]
{
    height: calc(var(--table-row-height * 2));
}

td[rowspan="2"]:first-child
{
    text-align: center;
    font-weight: bold;
}

tr:first-child
{
    background-color: var(--table-head-background);
    color: var(--table-top-text-color);
}

/****** table shedule ******/
#table_schedule tr:nth-of-type(2n+1) td,  tr:nth-of-type(2n) th:first-child,  table
{
    border-bottom: 1px solid var(--table-border-color);
}

#table_schedule tr:nth-of-type(2n) td,  tr:nth-of-type(2n) th:first-child
{
    border-top: 1px solid var(--table-border-color);
}

/* Color */
#table_schedule tr:nth-child(4n+2)
{
    background-color: var(--table-background-color1);
    color: var(--table-text-color1);
}

#table_schedule tr:nth-child(4n+3)
{
    background-color: var(--table-background-color1);
    color: var(--table-text-color1);
}

#table_schedule tr:nth-child(4n+4)
{
    background-color: var(--table-background-color2);
    color: var(--table-text-color2);
}

#table_schedule tr:nth-child(4n+5)
{
    background-color: var(--table-background-color2);
    color: var(--table-text-color2);
}

/****** table price ******/
#table_otherService td, #table_technicalVisit td
{
    text-align: center;
}

#table_otherService td, #table_technicalVisit td, #table_otherService th, #table_technicalVisit th
{    
    height: var(--table-row-height);
}

#table_otherService td::after, #table_technicalVisit td::after
{
    content : " €";
}

#table_otherService tr:first-child, #table_technicalVisit tr:first-child
{
    text-align: center;
}

#table_otherService  tr:nth-child(2n), #table_technicalVisit tr:nth-child(2n)
{
    background-color: var(--table-background-color1);
    color: var(--table-text-color1);
}

#table_otherService  tr:nth-child(2n+3), #table_technicalVisit tr:nth-child(2n+3)
{
    background-color: var(--table-background-color2);
    color: var(--table-text-color2);
}

#table_otherService tr, #table_technicalVisit tr
{
    border-bottom: 1px solid var(--table-border-color);
}

#table_otherService tr:nth-of-type(2n) td, #table_technicalVisit tr:nth-of-type(2n) td, #table_otherService tr:nth-of-type(2n) td:first-child, #table_technicalVisit tr:nth-of-type(2n) td:first-child
{
    border-top: 1px solid var(--table-border-color);
}

#table_technicalVisit
{
    border-top: 1px solid var(--table-border-color);
}

#table_otherService th
{
    width: 50%;
}