* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #000;
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}


/* Header & Navigation */
/* VERROUILLAGE ABSOLU */
.hamburger-menu {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    background: #fff !important;
    border: 1px solid #000 !important;
    width: 380px !important;
    z-index: 9999 !important;
}

/* affichage UNIQUEMENT après clic */
.hamburger-menu.open {
    display: block !important;
}

/* neutralise les styles globaux */
.hamburger-menu a {
    display: block !important;
    float: none !important;
    position: static !important;
}
.nav {
    position: relative;
}

/* Hamburger */
.hamburger-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

/* Menu caché au départ */
.hamburger-menu {
    position: absolute;
    top: 35px;
    right: 0;
    width: 220px;
    background: #fff;
    border: 1px solid #000;
    display: none; /* CRITIQUE */
    z-index: 1000;
}

/* Menu visible après clic */
.hamburger-menu.open {
    display: block;
}


/* Liens */
.hamburger-menu a {
    display: block;
    padding: 10px;
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid #ccc;
}

/* SURVOL → NOIR */
.hamburger-menu:hover .menu-title,
.hamburger-menu a:hover {
    background: #000000;
    color: #fff;
}

.header {
  padding: 18px 0;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  text-decoration: none;
  color: #000;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.2s ease;
  position: relative;
  padding: 8px 18px;
}

.nav a.active {
  background: #000;
  color: #fff;
}

.nav a:not(.active):hover {
  opacity: 0.6;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: #000;
  transition: all 0.3s ease;
}
/* Auth Section */
.auth-section {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 80px 0;
  background: #fafafa;
}

.auth-container {
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 0;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
}

.tab-btn {
  flex: 1;
  padding: 20px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #666;
  position: relative;
}

.tab-btn:hover {
  background: #fafafa;
}

.tab-btn.active {
  color: #000;
  font-weight: 600;
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #000;
}

.auth-form-wrapper {
  display: none;
  padding: 50px 40px;
}

.auth-form-wrapper.active {
  display: block;
}

.form-title {
  font-size: 32px;
  font-weight: 300;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.form-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 40px;
  line-height: 1.6;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-row .form-group {
  flex: 1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  letter-spacing: 0.3px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s ease;
  background: #fff;
}

.form-group input:focus {
  outline: none;
  border-color: #000;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: -5px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
}

.checkbox-label.full-width {
  width: 100%;
  align-items: flex-start;
  line-height: 1.6;
}

.checkbox-label input[type="checkbox"] {
  cursor: pointer;
  margin-top: 2px;
}

.checkbox-label span {
  user-select: none;
}

.link-text {
  font-size: 13px;
  color: #000;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.link-text:hover {
  opacity: 0.6;
}

.btn-submit {
  padding: 15px;
  background: #000;
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.btn-submit:hover {
  background: #333;
}

.btn-submit:active {
  transform: translateY(1px);
}

/* Footer */
.footer {
  background: #000;
  color: #fff;
  padding: 60px 0 40px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  margin-bottom: 40px;
}

.footer-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.8;
  color: #999;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  color: #999;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .nav {
    gap: 20px;
  }

  .nav a {
    font-size: 12px;
  }

  .auth-section {
    padding: 40px 0;
  }

  .auth-container {
    border: none;
  }

  .auth-form-wrapper {
    padding: 40px 20px;
  }

  .form-row {
    flex-direction: column;
    gap: 25px;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
.message-box .alert {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeIn .4s ease;
}

.alert-success {
    background: #e8fff1;
    color: #0f5132;
    border: 1px solid #b7f2cf;
}

.alert-error {
    background: #ffe8e8;
    color: #842029;
    border: 1px solid #f5b5b5;
}

@keyframes fadeIn {
    from {opacity:0; transform: translateY(6px);}
    to {opacity:1; transform: translateY(0);}
}


#toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.t-success, .t-error {
    padding: 12px 18px;
    border-radius: 10px;
    color: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,.1);
    animation: fadeIn .3s ease;
}

.t-success { background: linear-gradient(135deg,#4caf50,#2e7d32); }
.t-error { background: linear-gradient(135deg,#f44336,#b71c1c); }
