/* === Grundstil === */
* {
  margin: 0;
  padding: 0;
}
body {
    background-color: #ffc896;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1% 3%;
  background-color: #1a1a1a;
  position: relative;
}

.img_logo {
  width: 10%;
  height: auto;
  border-radius: 50%;
  filter: brightness(1.5);
}

.header-text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  flex-grow: 1;
}

/* === Texte === */
h1 {
  text-align: center;
  color: #ffc896;
}

h1 {
  font-size: 2em;
  font-weight: bold;
  word-spacing: 35%;
}

.h1-header {
  font-size: 4em;
  font-weight: bolder;
  padding-bottom: 2%;
}

/* === Navigation === */
nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3em;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: #ffc896;
  font-size: 2em;
  transition: 0.3s;
}

nav a:hover {
  color: #ffddb3;
  filter: brightness(1.4);
}

details {
  width: 30%;
  border: 1px transparent #000;
  transition: all 0.3s ease;
  position: relative;
}

details nav {
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
}

details:not([open]) {
  width: 80px;
}

summary {
  text-align: right;
  list-style: none;
  padding: 10px;
  cursor: pointer;
  color: #ffc896;
  font-size: 2.8em;
}
details[open] nav {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px;
}

/* === Responsive Design === */
@media (min-width: 1440px) {
  details nav {
    margin-left: 15%;
  }
  details[open] nav {
    width: 200px;
  }
}

@media (min-width: 1024px) {
  details nav {
    padding: 5px;
  }
  details[open] nav {
    width: 200px;
  }
}

@media (max-width: 1024px) {
  h1,
  .h1-header {
    font-size: 1.7em;
  }
  nav a {
    font-size: 1em;
  }
}

@media (max-width: 780px) {
  header {
    height: 7em;
  }
  .img_logo {
    width: 7em;
  }
  nav ul {
    display: block;
    padding: 0 10px 0 40px;
  }
  nav li {
    margin-bottom: 10px;
  }
  nav a {
    font-size: 1em;
  }
  summary {
    font-size: 1.8em;
  }
}

@media (min-width: 760px) and (max-width: 780px) {
  details nav {
    margin-left: 25%;
  }
}

@media (max-width: 480px) {
  header {
    height: 7em;
  }
  .img_logo {
    width: 5em;
  }
  .h1-header {
    font-size: 1.2em;
  }
  h1 {
    font-size: 0.9em;
  }
  nav a {
    font-size: 0.6em;
  }
  summary {
    font-size: 1em;
  }
}

@media (max-width: 375px) {
  details[open] nav {
    width: 100px;
  }
}
