:root {
  --bg-grey: #999999;
  --bg-light-grey: #E5E5E5;
  --bg-deg-orange: linear-gradient(180deg, #F59307, #CD7C0A);
  --bg-deg-orange-light: linear-gradient(180deg, #F59307, #FDC473);
  --bg-white-transparent: rgba(255,255,255,0.8);

  --clr-black: #000;
  --clr-white: #fff;
  --clr-yellow: #FFFD01;
  --clr-orange:#F59307;
  --clr-light-orange:#FDC473;
  --clr-dark-grey: #666;
}

html {
  background-color: var(--bg-light-grey);
}

body.container-custom {
  width: 1100px;
  height: auto;

  margin: 0px auto;
  
  font-family: Arial, Helvetica, sans-serif;
  border: 1px solid var(--clr-white);
  border-top: none;

  box-shadow: 5px 3px 3px var(--bg-grey);
}

h1,h2,h3 {
  font-family: Times New Roman, serif;
  font-weight: bold;
}

header {
  background-color: var(--bg-grey);
}

h1 {
  color:var(--clr-yellow);
  text-shadow: 3px 3px #000;
  font-size: 4.6em;
  font-style: italic;
}

h2 {
 color:var(--clr-orange)
}

.wip-title {
  color:var(--clr-orange);
  font-family: Times New Roman, serif;
  font-weight: bold;
  font-size: 2rem;
  line-height: 1;
}

li.nav-item {
  background: var(--clr-orange);
  padding: 0;
  padding: 5px 8px;
  transition: 0.5s ease-in;
}

  li.nav-item.active {
    background: var(--bg-deg-orange-light);
  }

li.nav-item:hover {
  background: var(--clr-light-orange);
  transition: 0.5s ease-in;
}

li.nav-item.active:hover {
  background: var(--bg-deg-orange-light);
  transition: 1s ease-in;
}

.nav-link, .nav-link.active {
  color:var(--clr-white) !important;
  font-weight: bold;
  font-size: 12px !important;
  padding: 0;
}

ul.dropdown-menu {
  background: var(--clr-orange) !important;
  margin: 0;
  padding: 0;

  border-radius: 0;
  border:none;
  font-size: 12px !important;
}



ul.dropdown-menu li a.dropdown-item {
  color:var(--clr-white) !important;
  padding: 0;
  padding-left: 2px;
}
  ul.dropdown-menu li a.dropdown-item:hover {
    background: var(--clr-dark-grey);
  }

/* Add bottom border to all <li> elements except the last one */
ul.dropdown-menu li:not(:last-child) {
  border-bottom: 2px solid var(--clr-white); /* Or any border style you prefer */
}

ul.contact-ul {
  text-align:left;margin-left:1.5em;
}

.navbar-toggler {
  background: var(--bg-deg-orange) !important;
  color:var(--clr-white);
  width: 100%;
  border-radius: 0;
  border: 0;
}

.small-txt {
  color:var(--bg-grey);
  font-size: 0.7em;
}

footer {
  font-weight: bold;
  border-top: 1px solid var(--bg-grey);
}

footer a {
  color: var(--clr-black);
}

.txt-admin {
  font-size: 0.6em;
}

/*remove border around buttons*/
*:focus {
  box-shadow: none !important;
}

/*GOOGLE SEARCH BAR*/
td.gsc-input {
  width: 300px;
  padding-right: 0 !important;
}

td.gsc-clear-button {
  display: none !important;
}

button.gsc-search-button-v2 {
  background: var(--bg-deg-orange);
  border: none;
}

/** CAROUSEL **/
.carousel-item img {
  object-fit: cover;
  height: 40vh; /* Full viewport height */
}

/** POP UP **/
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;

  display: none; /* Cache la pop-up par défaut */

  width: 100%;
  height: 100%;

  background-color: rgba(0,0,0,0.5);
}

.popup-content {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1001;

  transform: translate(-50%, -50%);

  width: 520px;
  padding: 30px;

  background: white;
  font-size: 1.2em;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;

  cursor: pointer;
  font-size: 2em;
  color:red
}

#access-site-btn {
  padding: 10px 20px;
  margin-top: 20px;
  background-color: #4CAF50; /* Couleur de fond */
  color: white; /* Couleur du texte */
  border: none;
  cursor: pointer;
  border-radius: 5px;

  font-size: 1.5em;
  font-weight: 600;
}

#access-site-btn:hover {
  background-color: #45a049;
}



/** MEDIA QUERY **/

@media only screen and (max-width: 425px) {
  .popup-content {
    width: 90%; /* or a px value less than 425px, if preferred */
    padding: 10px;    
  }

  h1 {
    font-size: 2em;
  }

  body.container-custom {
    width: 100vw; /* Ensure full viewport width on mobile */
  }
  
  .logo-myco {
    width: 99px;
    height: 97px;
  }

  .nav-link, .nav-link.active {
    font-size: 1em !important;
  }

  a.dropdown-item {
    font-size: 1rem;
    white-space: normal;
    word-wrap: break-word;
  }

  .carousel-item img {
    object-fit: cover;
    height: 45vh; /* Full viewport height */
  }
}

@media only screen and (min-width: 426px) and (max-width: 768px) {
  body.container-custom {
    width: 80%; /* Tablet style */
  }

  h1 {
    font-size: 3em;
  }
  
  .logo-myco {
    width: 99px;
    height: 97px;
  }

}

@media only screen and (min-width: 1024px) and (max-width: 1200px) {
  body.container-custom {
    width: 90%; /* Tablet style */
  }
}