/*
  LCCO website
  Default styles for the home pages

  Author :        Melissa Maillot
  Created :       30/09/2021
  Last updated :  8/10/2021
*/

@font-face {
  font-family: "Open Sans";
  src: url('../fonts/OpenSans-VariableFont_wdth,wght.ttf');
  font-variation-settings: 'wdth' 93.5, 'wght' 300;
  font-weight: 300;
}

@font-face {
  font-family: "Rubik";
  src: url('../fonts/Rubik-VariableFont_wght.ttf');
  font-weight: 400;
}

@font-face {
  font-family: 'Bubblegum Sans';
  src: url('../fonts/BubblegumSans-Regular.ttf');
  font-weight: 400;
}

* {koutline: 1px solid green}

/* Display HTML5 structural elements as blocks */

article, aside, figure, figcaption, footer, hgroup, header,
section, nav, div {
   display: block;
}


/* Set the default page element styles */

 body {
  font-family: "Open Sans", sans-serif;
  font-variation-settings: 'wdth' 93.5, 'wght' 300;
  font-size: 100%;
  lline-height: 1.2em;
  list-style: none;
  margin: 0px;
  padding: 0px;
  border: 0;
  texgt-decoration: none;
  verutical-align: baseline;
}

.page-wrapper {
  overflow-x: hidden;
}

ul, li {
  margin: 0px;
  padding: 0px;
  border: 0;
}

a {
  text-decoration: none;
}

h1,h2,h3,h4,h5,h6 {
  font-family: "Bubblegum Sans";
  color: #9C0211;
  padding: 0;
  margin: 0;
}

h2,h3,h4,h5,h6 {
  padding: 1%;
}

/* Header styles */

header {
  popsition: absolute;
  width: 100%;
  backuground-color: rgba(255, 136, 0, 1);
  float: left;
}

.headerbar {
  floeat: left;
}

.logo {
  float: left;
}

header img {
  display: block;
  pposition: absolute;
  background-color: white;
}

header .headerbar_inner {
  float: left;
  font-family: "Rubik";
  color: #9C0211;
  font-variation-settings: 'wght' 400;
}

a.home-link {
  color: #9C0211;
}

a.home-link:hover, a.home-link:active {
  color: #808080;
}

header nav ul.fa-ul {
  margin: 0;
  padding: 0;
}

nav li i.fa-li {
  display: inline-block;
  position: static;
  width: auto;
}

header nav li {
  display: block;
  float: left;
}

nav li .menu-item{
  font-family: "Bubblegum Sans";
  color: #9C0211;
}

.menu-item:hover,
a.dropmenu-item:hover,
.menu-item:active,
a.dropmenu-item:active {
  color: #808080;
}

.dropmenu-item {
  font-variation-settings: 'wdth' 100, 'wght' 450;
  color: #9C0211;
}

.button:hover .dropdown, .button:active .dropdown {
  displgay: block;
  visibility: visible;
  opacity: 1;
}

 header .icons img {
  display: inline-block;
  background: transparent;
}

@media (min-width: 860px) {

  header{
    height: 150px;
  }

  header img {
    width: 150px;
  }

  header .headerbar_inner {
    height: 150px;
    width: calc(100% - 150px);
    background: linear-gradient(to right,rgba(255, 136, 0, 1), 84%, transparent), url('../images/backgrounds/carte_header.jpg');
    background-size: cover;
    background-position: center;
    font-size: 350%;
    line-height: 1em;
  }

  a.home-link.desktop {
    display: block;
    margin-top: 0;
  }

  a.home-link.mobile {
      display: none;
  }

  header .navicon {
    display: none;
  }

  header nav ul.fa-ul {
    position: absolute;
    left: 150px;
    bottom: calc(100% - 147px);
    margin: 0;
  }

  header nav li i.fa-li {
    padding-left: 2px;
  }

  header nav li {
    padding-right: 20px !important;
  }

  .last{
    padding-right: 0 !important;
  }

  header nav li .menu-item{
    font-size: 138%;
  }

  .dropdown {
    position: absolute;
    visibility: hidden;
    opacity: 0;
    z-index: 1;
    transition: visibility .5s, opacity .5s;
    background-color: rgba(255, 136, 0, 0.75) !important;
    border-bottom: 4px solid #808080;
  }

  .dropdown li {
    padding-top: 10px;
    padding-bottom: 5px;
    padding-left: 10px;
    padding-right: 20px;
    clear: left;
    width: max-content;
  }

  .dropmenu-item {
    font-size: 120%;
  }

  .icons {
    position: absolute;
    right: 0;
  }

  header .icons img {
    width: 33px;
    margin-right: 7px;
    margin-top: 2px;
    float: right;
  }
}

@media (max-width: 860px) {
  header{
    height: 70px; /* desktop is 100*/
  }

  header img {
    width: 70px;  /* desktop is 100*/
  }

  header .headerbar_inner {
    height: 70px; /* desktop is 100 */
    width: calc(100% - 70px); /* desktop 100% - 100px */
    background: linear-gradient(to right,rgba(255, 136, 0, 1), 50%, transparent), url('../images/backgrounds/carte_header.jpg'); /* desktop 84% */
    background-size: cover;
    background-position: center;
    font-size: 130%;  /*200*/
    line-height: 1.2em;
  }

  a.home-link.mobile {
    display: block;
    margin-top: 10px;
  }

  a.home-link.desktop {
    display: none;
  }

  header .navicon.open {
    display:block;
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 70px;
  }

  header i.fa-navicon {
    display: block;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    font-size: 35px;
    color: #606060;
    padding-left: 15px;
  }

  header .navicon.close {
    font-size: 35px;
    color: #808080;
    padding: 2%;
    margin: 2%;
  }

  header nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,rgba(255, 136, 0, 1), 85%, transparent), url('../images/backgrounds/carte_header.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    transform: translateX(100%);
    transition: transform 0.9s ease;
    z-index: 2;
  }

  header nav.open{
    transform: translateX(0);
  }

  header nav li {
    padding-right: 0;
    width: 100%;
  }

  header nav>ul>li {
    margin-top: 3%;
    margin-bottom: 3%;
  }

  header nav li .menu-item{
    display: block;
    font-size: 170%;
  }

  .dropdown {
    display: none;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
  }

  .dropdown li {
    display: block;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2%;
    margin-bottom: 2%;
    text-align: center;
  }

  .dropdown li:last-of-type {
    border-bottom: 2px solid #808080;
  }

  .dropmenu-item {
    font-size: 140%;
  }

  .button.listed .dropdown {
    display: block;
  }

  header .icons img {
    margin-top: 10px;
  }

  header .icons .lang-icons img {
    width: 40px;
    margin-right: 10px;
    margin-left:10px;
  }
}

/* Title styles */

.title {
  float: left;
  clear: left;
  width: 100%;
  height: 500px;
  background:  url('../images/backgrounds/other-home-back.jpg');
  background-size: cover;
  background-position: 50% 80%;
}

.title .above {
  float: left;
  clear: left;
  width: 100%;
  height: 400px;
}

.title .inner-title {
  float: left;
  clear: left;
  width: 100%;
  height: 100px;
  background: linear-gradient(to top, white, 85%, transparent);
}

.title .inner-title .title-name {
  position: relative;
  text-align: center;
}

@media (min-width: 860px) {

  .title .inner-title .title-name {
    font-size: 350% ;
    bottom: -0.5em;
  }
}

@media (max-width: 860px) {

  .title .inner-title .title-name {
    font-size: 225% ;
    bottom: -1em;
  }
}

@media (max-width: 650px) {

  .title {
    height: 400px;
    background:  url('../images/backgrounds/other-home-back.jpg');
    background-size: cover;
    background-position: bottom;
  }

  .title .above {
    height: 300px;
  }

  .title .inner-title {
    height: 100px;
    background: linear-gradient(to top, white, 85%, transparent);
  }

  .title .inner-title .title-name {
    font-size: 175% ;
    bottom: -1.2em;
  }
}

/* Main styles */

main {
  display: block;
  clear: left;
  max-width: 1200px;
  padding-top: 20px;
  margin-left: 2%;
  margin-right: 2%;
  font-size: 120%;
}

@media (min-width:1250px) {
  main {
    padding-top: 50px;
    margin-left: auto;
    margin-right: auto;
  }
}

.quicklinks {
  display: flex;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.quicklinks .link {
  flex: 1 1 0px;
  background-color: rgba(255, 136, 0, 1);
  margin: 2%;
  padding: 1%;
  border: 1px solid #808080;
  border-radius: 10px;
  text-align: center;
  font-family: "Bubblegum Sans";
  font-size: 130%;
}

.quicklinks .link:hover, .quicklinks .link:active {
  background-color: rgba(255, 136, 0, 0.7);
}

.quicklinks .link a {
  display: block;
  width: 100%;
  height: 100%;
  padding: 1%;
  color: #9C0211;
}

section {
  margin-bottom: 40px;;
}

.news {
  display: block;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  border-bottom: 2px solid #808080;
}

.news h3 {
  padding-bottom: 0px;
}

@media (max-width:780px) {

  main {
    font-size: 120% !important;
  }

  .quicklinks {
    flex-direction: column !important;
  }
}

/* Back to top */

.back-top {
  clear: left;
  float: right;
  width:100px;
  margin: 50px;
  text-align: right;
}

/* Footer styles */

footer {
  display: block;
  clear: left;
  float: left;
  width: 100%;
  height: auto;
  padding-bottom: 30px;
  background-image: url("../images/backgrounds/footer-map.png");
  background-size: cover;
  background-position: center right;
  background-attachment: fixed;
}

footer nav {
  display: block;
  clear: left;
  width: 85%;
  height: inherit;
  margin-left: auto;
  margin-right: auto;
}

footer nav>ul {
  display: inherit;
  width: 100%;
  height: inherit;
}



footer nav>ul>li {
  display: block;
  float: left;
}

footer nav>ul>li>span, footer nav>ul>li>a {
  display: block;
  font-family: "Bubblegum Sans";
  color: #9C0211;
}

footer nav>ul li {
  list-style: none;
}

footer>nav>ul>li>div>ul>li>a {
  font-variation-settings: 'wdth' 93.5, 'wght' 400;
  color: black;
}

footer>nav>ul>li>div>ul>li>a:hover {
  color: #9C0211;
}



@media (min-width: 700px) {

  footer {
    padding-top: 50px;
  }

  footer nav>ul>li {
    width: 20%;
    height: 100%;
    box-sizing: border-box;
    padding-left: 10px;
  }

  footer nav>ul>li>span, footer nav>ul>li>a {
    font-size: 120%;
    margin-bottom: 2px;
  }

  footer>nav>ul>li>div>ul>li {
    margin-top: 4px;
  }

  .footer-icons {
    width: 20%;
    float: right;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-icons a {
    clear: left;
    float: left;
    display: block;
    width: auto;
    height: auto;
    margin-left: 10px;
  }

  .footer-icons #FB-footer {
    display: block;
    width: 35px;
    margin-top: 10px;
  }
  .footer-icons #FFCO-footer {
    display: block;
    width: 110px;
    margin-top: 20px;
  }
}

@media (max-width: 700px) {

  footer {
    padding-top: 30px;
  }

  footer nav>ul>li {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 5%;
    padding-bottom: 3%;
    border-bottom: #808080 solid 2px;
    text-align: center;
  }

  footer nav>ul>li>span, footer nav>ul>li>a {
    font-size: 170%;
  }

  .submenu {
    display: none;
  }

  .submenu li {
    padding-top: 3%;
  }

  .submenu li>a {
    font-size: 140%;
  }

  .button.listed .submenu {
    display: block;
  }


  .footer-icons {
    clear: left;
    display: block;
    width: 100%;
  }

  .footer-icons a {
    display: block;
    width: 100%;
  }

  .footer-icons #FB-footer {
    display: block;
    width: 80px;
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-icons #FFCO-footer {
    display: block;
    width: 150px;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
  }
}
