﻿@import url('https://fonts.googleapis.com/css2?family=Titillium+Web&display=swap');



div.header {
  display: flex;
  justify-content: center;
}

div.header img {
  top: 50%;
  left: 50%;
  width: 500px;
  max-width: 90%;
  margin-top: 150px;
}

.nav-logo {
  display: flex;
  align-items: center;
  color: #62757c;
  font-size: 17px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 10px;
  background-color: white;
  position: relative;
  top: 0;
  left: 0;
  position: fixed;
  right: 0;
  z-index: 30;
}


/* Spécifique public — logo mobile arrondi */
.menuburger .nav-logo img {
  border-radius: 10px;
}

/* Dropdown "Ressources" */
.nav-dropdown {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.nav-dropdown > p {
  color: black;
  font-size: 17px;
  margin: 0 10px 0 0;
  cursor: pointer;
  user-select: none;
}

.nav-dropdown > p:hover {
  text-decoration: underline;
  color: #b34b32;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 150px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  z-index: 50;
  padding: 4px 0;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: #62757c;
  font-size: 0.95em;
  text-decoration: none;
}

.nav-dropdown-menu a:hover {
  background: #f5f5f5;
  color: #b34b32;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

/* Label de groupe dans le sidenav mobile */
.sidenav-group-label {
  color: #999;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 20px 0 0;
  text-align: center;
}

.sidenav a:hover {
  color: #111;
}

.sidenav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}



/* Active class */
.sidenav.active {
  right: 0;
}


/* Close btn */
.sidenav .close {
  /* position: absolute; */
  top: 0;
  right: 25px;
  font-size: 36px;
}


/* CTA urgence dans la nav desktop */
.nav-cta {
    background-color: #b34b32;
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.25s;
    margin: auto 6px auto 10px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    line-height: 1;
}

.nav-cta:hover {
    background-color: #8f3a25;
    text-decoration: none;
    color: #fff !important;
}

.nav-cta i {
    font-size: 0.9em;
}

/* Switcher FR / EN — desktop */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #555;
    border-radius: 3px;
    padding: 5px 9px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
    color: #333;
    margin: auto 4px auto 6px;
    transition: border-color 0.2s, color 0.2s;
}

.lang-switcher:hover {
    border-color: #b34b32;
    color: #b34b32;
    text-decoration: none;
}

/* Switcher FR / EN — mobile (sidenav) */
.lang-switcher-mobile {
    display: inline-block;
    border: 1.5px solid #555;
    border-radius: 3px;
    padding: 3px 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
    color: #333;
    margin-left: 4px;
}

.btn-navbar {
  background-color: #b34b32;
  color: #fff;

  border-radius: 5px;
  border: none;

  font-size: x-small;
  width: 370px;

  padding: 0px;
  z-index: 31;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  animation: pulse-alert 2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .btn-navbar {
    animation: none;
  }
}

.btn-navbar a {
  text-decoration: none;
  color: #fff;
}




.btn-navbar i {
  font-size: small;
  padding: 8px;
}

.btn-navbar p {
  text-align: center;
  text-decoration: none;
}

.btn-navbar:hover {
  background-color: #682717;
  text-decoration: none;
}


@media screen and (max-width: 1280px) {
  .btn-navbar {
    font-size: smaller;
    width: 350px;
    height: auto;
  }
}

@media screen and (max-width: 576px) {
  nav {
    display: none;
    position: fixed;
  }

  .menuburger {
    display: contents;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;

    position: sticky;
    top: 0px;
    z-index: 100;
    /* Assurez-vous que le z-index est élevé pour que le menu reste au-dessus du reste du contenu */
    background-color: #fff;
    width: 100%;
  }

  .burger-icon {
    padding-right: 21px;
  }

  .btn-navbar {
    top: 89px;
  }

  .btn-navbar {
    width: 80%;
  }

  .btn-navbar i {
    font-size: 12px;
  }

}

@media screen and (max-width: 480px) {
  header {
    width: 100vw;
    background-color: white;
  }

  div.header img {
    max-width: 75%;
  }
}



@media screen and (min-width: 650px) and (max-width: 1450px) {

  .btn-navbar {
    top: 115px;
  }
}

@media screen and (min-width: 532px) and (max-width: 650px) {

  .btn-navbar {
    top: 190px;
  }
}

@media screen and (min-width: 524px) and (max-width: 532px) {

  .btn-navbar {
    top: 290px;
  }
}