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

html, body {
  height: 100%;
}

/* === STYLE GLOBAL === */
body {
  font-family: 'Poppins', 'Segoe UI', Roboto, sans-serif;
  background: radial-gradient(circle at 20% 20%, #0b0c10 0%, #090a12 100%);
  background-color: #090a12;
background-image: url("https://www.transparenttextures.com/patterns/concrete-wall.png");
  color: #e8e8e8;
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

h1, h2, h3 {
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
}

p {
  margin-bottom: 20px;
  font-size: 1.05em;
  color: #ccc;
}

/* === LIENS === */
a {
  color: #00b4ff;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #69d1ff;
}

/* === NAVBAR === */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(5, 5, 10, 0.9);
  
  color: #fff;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.navbar-inner {
  max-width: 1250px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  letter-spacing: 0.4px;
}

.navbar-logo {
  height: 42px;
  margin-right: 10px;
}

.navbar-title {
  font-size: 1.25em;
  font-weight: 600;
}

/* === HAMBURGER === */
.navbar-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
}

.navbar-toggle span {
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.navbar-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.navbar-toggle.open span:nth-child(2) {
  opacity: 0;
}
.navbar-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* === MENU MOBILE === */
.navbar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  background: rgba(0,0,20,0.98);
  text-align: center;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.navbar-links.active {
  max-height: 500px;
  padding: 10px 0;
}

.navbar-links li {
  padding: 12px 0;
}

.navbar-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 500;
  transition: color 0.3s ease;
}
.navbar-links a:hover {
  color: #00b4ff;
}

/* === DESKTOP === */
@media (min-width: 900px) {
  .navbar-toggle {
    display: none;
  }
  .navbar-links {
    flex-direction: row;
    justify-content: flex-end;
    background: none;
    max-height: none;
  }
  .navbar-links li {
    margin-left: 25px;
    padding: 0;
  }
  .navbar-links a {
    position: relative;
  }
  .navbar-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #00b4ff;
    transition: width 0.3s ease;
  }
  .navbar-links a:hover::after {
    width: 100%;
  }
}

/* === FOOTER === */
.footer {

  background-color: #0b0c10;
background-image: url("https://www.transparenttextures.com/patterns/stardust.png");
  color: #ccc;
  padding: 50px 20px 30px;
  font-family: 'Poppins', sans-serif;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Grille responsive */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer-col h4 {
  font-size: 1.05em;
  color: #fff;
  margin-bottom: 14px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #bdbdbd;
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.3s, transform 0.3s;
}

.footer-col ul li a:hover {
  color: #00b4ff;
  transform: translateX(5px);
}

/* Social */
.social-list li {
  display: flex;
  align-items: center;
}

.social-list i {
  width: 22px;
  text-align: center;
  margin-right: 8px;
  color: #00b4ff;
  transition: transform 0.3s;
}

.social-list i:hover {
  transform: scale(1.2);
}

/* Langues */
/* === LANGUES === */
.lang-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 20px;
}

.dropbtn {
  background-color: #00b4ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  position: relative;
  z-index: 5;
}

.dropbtn:hover {
  background-color: #008ed0;
  transform: scale(1.05);
}

.dropdown {
  position: relative;
  display: inline-block;
}

/* Le menu se déploie vers le haut */
.dropdown-content {
  display: none;
  position: absolute;
  bottom: 110%; /* Monte au-dessus du bouton */
  left: 0;
  background-color: #111522;
  border-radius: 10px;
  overflow: hidden;
  min-width: 150px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 10;
  transform-origin: bottom;
  animation: slideUp 0.25s ease forwards;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-content a {
  color: #fff;
  padding: 10px 14px;
  text-decoration: none;
  display: block;
  transition: background 0.3s;
}

.dropdown-content a:hover {
  background-color: #00b4ff;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Bas du footer */
.footer-bottom {
  text-align: center;
  font-size: 0.9em;
  color: #999;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
}

.footer-bottom p {
  margin: 6px 0;
}

/* Bouton de retour en haut */
#backToTop {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #00b4ff;
  color: white;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.4em;
  line-height: 0;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, background 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 999;
}

#backToTop:hover {
  background-color: #008ed0;
}

#backToTop.show {
  opacity: 1;
  pointer-events: all;
}

/* Responsive */
@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .lang-switch {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-list {
    justify-content: center;
  }

  #backToTop {
    bottom: 15px;
    right: 15px;
  }
}


/* === EFFETS GÉNÉRAUX === */
.fade-in {
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* === COOKIE BANNER === */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 20, 0.95);
  color: #fff;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  align-items: center;
  gap: 10px;
  z-index: 9999;
  font-size: 0.95em;
  max-width: 90%;
}

.cookie-banner button {
  background: #00b4ff;
  border: none;
  border-radius: 5px;
  color: #fff;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cookie-banner button:hover {
  background: #008cd3;
}
