/* === RESET & BASE === */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    background: #181c24;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-x: hidden;
}

h1 {
    text-align: center;
    margin-top: 2.2rem;
    margin-bottom: 1.2rem;
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #4f8cff;
    text-shadow: 0 2px 12px #0004;
}

h2 {
    text-align: center;
    margin-top: 0.8rem;
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
    color: #ffec80;
    font-weight: 600;
    letter-spacing: 1px;
}

.container {
    background: #23283a;
    border-radius: 16px;
    box-shadow: 0 2px 16px #0003;
    padding: 2.2rem 2rem 2rem 2rem;
    margin: 2.5rem auto 1.5rem auto;
    max-width: 410px;
    width: 94vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}

label {
    font-weight: 500;
    color: #ffec80;
    margin-bottom: 0.3em;
    display: block;
}

input[type="text"],
input[type="password"],
input[type="email"],
select {
    width: 100%;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    background: #1c2030;
    color: #fff;
    margin-bottom: 0.7em;
    box-shadow: 0 1px 6px #0002 inset;
    transition: border 0.2s;
}

input:focus, select:focus {
    outline: none;
    border: 2px solid #4f8cff;
}

button[type="submit"], button, .btn {
    background: linear-gradient(90deg, #4f8cff 0%, #1fd1f9 100%);
    color: #181c24;
    border: none;
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, transform 0.13s;
    margin-top: 0.7em;
    box-shadow: 0 2px 12px #1fd1f933;
    letter-spacing: 1px;
}

button[type="submit"]:hover, button:hover, .btn:hover {
    background: linear-gradient(90deg, #1fd1f9 0%, #4f8cff 100%);
    color: #181c24;
    transform: translateY(-2px) scale(1.03);
}

/* === LIENS === */
a {
    color: #4f8cff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.16s;
}
a:hover, a:focus {
    color: #ffec80;
    text-decoration: underline;
    outline: none;
}

/* === PROFIL LISTES === */
ul {
    background: #23283a;
    border-radius: 10px;
    box-shadow: 0 1px 8px #0002;
    padding: 1rem 1.2rem;
    margin: 1rem 0 1.5rem 0;
    list-style: none;
    max-width: 350px;
    width: 94vw;
}

ul li {
    padding: 0.5em 0.2em;
    color: #fff;
    font-size: 1rem;
    border-bottom: 1px solid #2228;
}

ul li:last-child {
    border-bottom: none;
}

ul li a {
    color: #1fd1f9;
    font-weight: 600;
    transition: color 0.16s;
}
ul li a:hover {
    color: #ffec80;
}

/* === MESSAGES ET PARAGRAPHES === */
p {
    margin: 0.8em 0;
    font-size: 1.06rem;
    color: #b0b7c6;
}

strong {
    color: #ffec80;
    font-weight: 600;
}

/* === MENU NAVIGATION === */
.site-header {
  position: relative;
  width: 100%;
  align-self: stretch;
  padding: 1rem;
  background: #181c24;
  color: #fff;
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.burger-toggle {
  font-size: 1.8rem;
  cursor: pointer;
  user-select: none;
  padding: 0.3em 0.6em;
  border-radius: 6px;
  transition: background 0.2s;
}
.burger-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-nav {
  position: absolute;
  top: 100%;
  right: 0;
  background: #23283a;
  width: 200px;
  display: none;
  flex-direction: column;
  padding: 0.8rem 0;
  box-shadow: 0 2px 12px #0006;
  border-radius: 8px;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav li {
  text-align: left;
  padding: 0.5rem 1rem;
}

.mobile-nav li a, .mobile-nav button.logout-btn {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.mobile-nav li a:hover, .mobile-nav button.logout-btn:hover {
  color: #1fd1f9;
}


/* === RESPONSIVE === */
@media (max-width: 600px) {
    h1 {
        font-size: 1.2rem;
        margin-top: 1.2rem;
    }
    h2 {
        font-size: 1rem;
        margin-top: 0.7rem;
        margin-bottom: 0.7rem;
    }
    .container, form, ul {
        max-width: 99vw;
        padding: 1.1rem 0.6rem;
    }
    button, .btn {
        font-size: 1rem;
        padding: 0.7rem 1.1rem;
    }
}
