/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base */
html, body {
  height: 100%;
  background: #fff;
  font-family: sans-serif;
  overflow-x: hidden;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Hamburger button */
.hamburger-container {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1001;
}
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}
.hamburger span {
  display: block;
  height: 4px;
  background: #000;
  border-radius: 2px;
  transition: 0.4s ease;
}

/* Sidebar animation */
.side-menu {
  position: fixed;
  top: 0;
  left: -280px;
  width: 260px;
  height: 100vh;
  transition: transform 0.6s cubic-bezier(0.77, 0.2, 0.05, 1.0);
  padding-top: 80px;
  z-index: 1000;
}
.side-menu ul {
  list-style: none;
  padding: 0 20px;
}
.side-menu li {
  margin: 20px 0;
}
.side-menu a {
  font-size: 1.2rem;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
}
.side-menu a:hover {
  color: #007bff;
  transform: translateX(5px);
}

/* Active state */
.side-menu.active {
  transform: translateX(280px);
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.page-content {
  flex: 1;
  padding-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo principal animé */
.logo-container img {
  width: 180px;
  max-width: 50vw;
  margin-bottom: 30px;
}

/* Grid des logos secondaires */
.image-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.logo-thumb {
  width: 220px;
  height: 220px;
  object-fit: contain;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: transparent;
}

.logo-thumb:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.2));
}

/* Lang flags */
.language-switcher {
  position: fixed;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 10px;
  z-index: 999;
}

.lang-flag {
  width: 30px;
  height: 20px;
  margin-left: 10px;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.lang-flag:hover {
  transform: scale(1.1) translateY(-3px);
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.2));
}

/* Footer */
.footer-custom {
  width: 100%;
  position: relative;
  background: transparent;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.footer-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
}

.footer-icon:hover {
  transform: scale(1.2);
}

.footer-icons .icon-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 8px;
}

.footer-icons img {
  width: 30px;
  height: auto;
  cursor: pointer;
  transition: transform 0.2s ease;
  border-radius: 0;
}

.footer-icons img:hover {
  transform: scale(1.2);
}

footer .copyright {
  font-size: 0.85rem;
  color: #888;
  margin-top: 5px;
}

body.blurred .page-wrapper,
body.blurred .bottom-nav,
body.blurred .hamburger-container,
body.blurred .side-menu {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
}

#verif-box.centered {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  z-index: 2000;
}


/* === BOTTOM NAV MOBILE === */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid #ccc;
  display: none;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  z-index: 999;
}

.bottom-nav a {
  text-align: center;
  flex: 1;
  color: #555;
  font-size: 35px;
  text-decoration: none;
}




/* Animation au survol */
.bottom-nav a:hover div {
  transform: scale(1.2);
}


/* === BOUTON CENTRAL + ZONE DE VERIF === */
.bottom-nav .center-button {
  all: unset;
  position: relative;
  top: -16px;
  width: 100px !important;
  height: 100px !important;
  background: linear-gradient(135deg, #4dafff, #8cd3ff);
  border-radius: 50% !important;
  display: flex !important;
  justify-content: center;
  align-items: center;
  font-size: 50px !important;
  color: white !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  padding: 0 !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bottom-nav img {
  width: 32px !important;
  height: 32px !important;
}
.center-button:hover {
  transform: scale(1.12);
  box-shadow: 0 0 10px rgba(77, 175, 255, 0.45);
}

.center-button:active {
  transform: scale(0.92);
  box-shadow: 0 0 6px rgba(77, 175, 255, 0.25);
}

/* Theme toggle button */
#theme-toggle-box {
  position: fixed;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1002;
}

#theme-toggle-btn,
#theme-footer-btn {
  background: #000;
  color: #fff;
  transition: background 0.3s ease, color 0.3s ease;
}

body.dark-mode #theme-toggle-btn,
body.dark-mode #theme-footer-btn {
  background: #fff;
  color: #000;
}
#theme-toggle-btn:hover {
  background: #333;
  transform: scale(1.05);
}

/* DARK MODE */

body.dark-mode {
  background: #000000 !important;
  color: white;
}

body.dark-mode .verif-box,
body.dark-mode .verif-content {
  background: #222;
  color: white;
  border-color: #555;
}
body.dark-mode .verif-box input,
body.dark-mode .verif-content input {
  background: #333;
  color: white;
  border: 1px solid #666;
}
body.dark-mode .verif-submit {
  background: #555;
}
.theme-toggle-footer {
  background: #000; /* par défaut = thème clair */
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.footer-copy {
  color: #888;
}

/* DARK MODE OVERRIDES */
body.dark-mode .footer-copy {
  color: #ccc;
}

body.dark-mode .theme-toggle-footer {
  background: #fff;
  color: #000;
}
.verif-box {
  position: fixed;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  transition: transform 0.3s ease, opacity 0.3s ease;
  background: white;
  border-radius: 12px;
  border: 1px solid #4dafff;
  padding: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  opacity: 0;
}

.verif-submit {
  background: #4dafff;
  border: none;
  color: white;
  font-size: 16px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.verif-submit:hover {
  background: #339dff;
}


.verif-box.active {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

.verif-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.verif-box input {
  border: none;
  outline: none;
  font-size: 15px;
  padding: 10px;
  width: 220px;
  border-radius: 6px;
  background: #f3f3f3;
}

/* === OVERLAY VERIF (DESKTOP) === */
.verif-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.verif-overlay.active {
  display: flex;
}

.verif-content {
  background: #fff;
  border: 2px solid #4dafff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 10px;
}

.verif-content input {
  padding: 10px;
  font-size: 16px;
  width: 260px;
  border-radius: 6px;
  border: 1px solid #ccc;
  outline: none;
}

.verif-submit {
  background: #4dafff;
  border: none;
  color: white;
  padding: 10px 14px;
  font-size: 18px;
  border-radius: 6px;
  cursor: pointer;
}

/* === DARK MODE - Hamburger === */
body.dark-mode .hamburger span {
  background: white;
}

body.dark-mode .side-menu a {
  color: white;
}

body.dark-mode .side-menu a:hover {
  color: #8cd3ff;
}

/* === DARK MODE - Bottom Nav === */
body.dark-mode .bottom-nav {
  background: #111; /* fond plus foncé */
  border-top: 1px solid #333;
}

body.dark-mode .bottom-nav a {
  color: white;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 991px) {
  footer {
    padding-bottom: 80px; /* espace réservé au menu mobile */
  }
}

/* Responsive */
@media screen and (max-width: 576px) {
  .logo-thumb {
    width: 120px;
    height: 120px;
  }

  .logo-container img {
    width: 160px;
  }

@media (max-width: 991px) {
  .bottom-nav { display: flex; }
}

}



