* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --header-height: 101px;
}

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100vh;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  background-color: #0A0A0A;
  color: #E6ECEF;
}

img {
  max-width: 100%;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

/* HEADER */

.header {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  background-color: #0A0A0A;
  border-bottom: 2px solid #CCCCCC;
}

.header-topbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 6px 20px;
  background-color: #111111;
  color: #FFFFFF;
  font-size: 12px;
  border-bottom: 2px solid #CCCCCC;
}

.topbar-right a {
  margin-left: 15px;
  color: #FFFFFF;
  text-decoration: none;
  transition: 0.3s ease;
}

.topbar-right a:hover,
.topbar-right a:focus-visible {
  padding: 2px 6px;
  background-color: #FFFFFF;
  color: #000000;
  border-radius: 4px;
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  width: 100%;
  padding: 12px 40px;
}

.logo {
  position: relative;
  z-index: 1002;
}

.logo img {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: cover;
  border: 2px solid #CCCCCC;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  display: inline-block;
  padding: 10px 12px;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-radius: 6px;
  text-transform: uppercase;
  transition: 0.3s ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  background-color: #E6ECEF;
  color: #000000;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.dropdown {
  position: relative;
  list-style: none;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 1002;
  min-width: 190px;
  padding: 8px 0;
  margin: 0;
  list-style: none;
  background-color: #0A0A0A;
  border: 2px solid #CCCCCC;
  border-radius: 8px;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-transform: uppercase;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  background-color: #E6ECEF;
  color: #000000;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 1003;
  width: 34px;
  height: 28px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  width: 100%;
  height: 3px;
  background-color: #FFFFFF;
  border-radius: 4px;
  transition: 0.3s ease;
}

/* CONTENU GLOBAL */

.container {
  width: 100%;
  max-width: 1140px;
  margin: auto;
  padding: 24px 20px 60px;
}

.page-title {
  margin: 12px auto 35px;
  color: #E6ECEF;
  text-align: center;
  font-size: clamp(38px, 8vw, 80px);
  line-height: 1.05;
  font-weight: 800;
  text-transform: uppercase;
}

.page-title::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  margin: 14px auto 0;
  background-color: #BFDFFF;
}

/* PAGE MENTIONS LÉGALES */

.legal-hero {
  max-width: 100%;
  margin: 45px auto 50px;
  padding: 28px;
  background-color: #0A0A0A;
  border: 2px solid #E6ECEF;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22), 0 0 18px rgba(255, 255, 255, 0.05);
}

.legal-hero p {
  padding: 5px;
  color: #E6ECEF;
  font-size: 19px;
  line-height: 1.8;
  text-align: center;
}

.legal-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  margin: 40px auto;
}

.legal-card,
.legal-section,
.legal-contact-box {
  background-color: #0A0A0A;
  border: 2px solid #E6ECEF;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22), 0 0 18px rgba(255, 255, 255, 0.05);
}

.legal-card {
  padding: 28px;
}

.legal-main-card {
  min-height: 100%;
}

.legal-alert {
  background: linear-gradient(135deg, #0A0A0A, #111111);
  border-color: #BFDFFF;
}

.legal-label {
  display: inline-block;
  margin-bottom: 30px;
  color: #FFFFFF;
  border-radius: 6px;
  font-size: 23px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.legal-card h2,
.legal-section h2,
.legal-contact-box h2 {
  margin-bottom: 18px;
  padding-left: 14px;
  color: #E6ECEF;
  border-left: 4px solid #BFDFFF;
  font-size: clamp(20px, 3vw, 30px);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.legal-card p,
.legal-section p,
.legal-contact-box p {
  margin-bottom: 14px;
  color: #E6ECEF;
  font-size: clamp(14px, 2vw, 17px);
  line-height: 1.8;
  text-align: justify;
}

.legal-card ul {
  margin: 16px 0 18px 22px;
}

.legal-card li {
  margin-bottom: 8px;
  color: #E6ECEF;
  font-size: clamp(14px, 2vw, 17px);
  line-height: 1.8;
}

.legal-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.legal-info-grid div {
  padding: 16px;
  background-color: #111111;
  border: 1px solid #CCCCCC;
  border-radius: 8px;
}

.legal-info-grid strong {
  display: block;
  margin-bottom: 8px;
  color: #BFDFFF;
  font-size: 13px;
  text-transform: uppercase;
}

.legal-info-grid p {
  margin: 0;
  text-align: left;
}

.legal-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin: 45px auto;
}

.legal-section {
  padding: 26px;
  transition: 0.3s ease;
}

.legal-section a,
.legal-card a,
.legal-contact-box a {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
}

.legal-section a:hover,
.legal-section a:focus-visible,
.legal-card a:hover,
.legal-card a:focus-visible,
.legal-contact-box a:hover,
.legal-contact-box a:focus-visible {
  text-decoration: underline;
}

.legal-contact-box {
  max-width: 100%;
  margin: 50px auto 25px;
  padding: 28px;
  text-align: left;
}

/* FOOTER */

.footer {
  padding: 40px 20px 10px;
  background-color: #0E0E0E;
  color: #E6ECEF;
  font-size: 14px;
  border-top: 2px solid #CCCCCC;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-section {
  min-width: 0;
}

.footer-section:nth-child(1) {
  justify-self: start;
  text-align: left;
}

.footer-section:nth-child(2) {
  justify-self: center;
  text-align: left;
}

.footer-section:nth-child(3) {
  justify-self: end;
  text-align: left;
}

.footer-section h4 {
  margin-bottom: 10px;
  color: #E6ECEF;
  font-size: 15px;
  text-transform: uppercase;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 6px;
}

.footer-section a {
  color: #E6ECEF;
  text-decoration: none;
  transition: 0.2s ease;
}

.footer-section a:hover,
.footer-section a:focus-visible {
  color: #CCCCCC;
}

.footer-divider {
  width: 100%;
  margin-top: 20px;
  border-top: 1px solid #CCCCCC;
}

.footer-bottom {
  margin-top: 10px;
  color: #E6ECEF;
  font-size: 15px;
  text-align: center;
}

/* BOUTON HAUT DE PAGE */

.scroll-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 999;
  padding: 8px 12px;
  background-color: #CCCCCC;
  color: #000000;
  border: none;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  transition: 0.3s ease;
}

.scroll-top.visible {
  opacity: 0.8;
  visibility: visible;
}

.scroll-top:hover,
.scroll-top:focus-visible {
  opacity: 1;
  transform: scale(1.1);
}

/* TABLETTE */

@media (max-width: 1024px) {
  .header-main {
    padding: 12px 24px;
  }

  .nav-list {
    gap: 12px;
  }

  .nav-link {
    padding: 9px 8px;
    font-size: 12px;
  }

  .legal-layout,
  .legal-content {
    grid-template-columns: 1fr;
  }
}

/* MOBILE */

@media (max-width: 768px) {
  .header-topbar {
    justify-content: center;
    text-align: center;
  }

  .topbar-right a {
    margin: 0 8px;
  }

  .header-main {
    padding: 12px 18px;
  }

  .logo img {
    width: 42px;
    height: 42px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: fixed;
    top: var(--header-height, 101px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    height: calc(100dvh - var(--header-height, 101px));
    padding: 20px;
    background-color: #0A0A0A;
    border-top: 1px solid #CCCCCC;
    overflow-y: auto;
    z-index: 1000;
  }

  .nav-list.active {
    display: flex;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 14px 12px;
    font-size: 14px;
    text-align: center;
  }

  .dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    min-width: 0;
    margin-top: 8px;
    border-width: 1px;
  }

  .dropdown:hover .dropdown-menu,
  .dropdown:focus-within .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    text-align: center;
    white-space: normal;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(12px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-12px) rotate(-45deg);
  }

  .container {
    padding: 20px 14px 40px;
  }

  .legal-hero {
    margin: 32px auto 30px;
    padding: 20px;
  }

  .legal-hero p,
  .legal-card p,
  .legal-section p,
  .legal-contact-box p {
    text-align: left;
  }

  .legal-card,
  .legal-section,
  .legal-contact-box {
    padding: 20px;
  }

  .legal-info-grid {
    grid-template-columns: 1fr;
  }

  .legal-card h2,
  .legal-section h2,
  .legal-contact-box h2 {
    padding-left: 10px;
    font-size: 20px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .footer-section:nth-child(1),
  .footer-section:nth-child(2),
  .footer-section:nth-child(3) {
    justify-self: center;
    text-align: center;
  }

  .scroll-top {
    right: 18px;
    bottom: 18px;
    font-size: 18px;
  }
}