/* ---------------------- MENU ------------------------------ */
/* Source originale : codingnepalweb.com — adaptée Material 3 Expressive */

@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap');

* {
  margin: 0;
  padding: 0;
  user-select: none;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
}

/* Material 3 palette */
:root {
  --md-sys-color-primary: #6750A4;
  --md-sys-color-on-surface: #1C1B1F;
  --md-sys-color-surface: #FEF7FF;
  --md-sys-color-outline: #79747E;
  --md-sys-color-primary-container: #EADDFF;
}

/* Mode sombre */
@media (prefers-color-scheme: dark) {
  :root {
    --md-sys-color-primary: #D0BCFF;
    --md-sys-color-on-surface: #E6E1E5;
    --md-sys-color-surface: #1C1B1F;
    --md-sys-color-outline: #938F99;
    --md-sys-color-primary-container: #4A4458;
  }
}

nav {
  background: var(--md-sys-color-surface);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: background 0.3s ease;
}

nav:after {
  content: '';
  clear: both;
  display: table;
}

nav .logo {
  float: left;
  color: var(--md-sys-color-primary);
  font-size: 24px;
  font-weight: 600;
  line-height: 70px;
  padding-left: 60px;
}

nav ul {
  float: right;
  margin-right: 40px;
  list-style: none;
  position: relative;
}

nav ul li {
  float: left;
  display: inline-block;
  background: var(--md-sys-color-surface);
  margin: 0 5px;
}

nav ul li a {
  color: var(--md-sys-color-on-surface);
  line-height: 70px;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 15px;
  font-weight: 500;
  transition: color 0.3s ease, box-shadow 0.3s ease;
}

nav ul li a:hover {
  color: var(--md-sys-color-primary);
  box-shadow: inset 0 -2px 0 var(--md-sys-color-primary);
  border-radius: 3px;
}

nav ul ul {
  position: absolute;
  top: 90px;
  border-top: 2px solid var(--md-sys-color-primary);
  opacity: 0;
  visibility: hidden;
  transition: top .3s;
}

nav ul ul ul {
  border-top: none;
}

nav ul li:hover > ul {
  top: 70px;
  opacity: 1;
  visibility: visible;
}

nav ul ul li {
  position: relative;
  margin: 0px;
  width: 150px;
  float: none;
  display: list-item;
  border-bottom: 1px solid var(--md-sys-color-outline);
}

nav ul ul li a {
  line-height: 50px;
}

/* Responsive mobile --------------------------------------------------------*/
.show, .icon, .input_menu {
  display: none;
}

.fa-plus {
  font-size: 16px;
  margin-left: 40px;
}

@media all and (max-width: 968px) {
  nav ul {
    margin-right: 0px;
    float: left;
  }

  nav .logo {
    padding-left: 30px;
    width: 100%;
  }

  .show + a, ul {
    display: none;
  }

  nav ul li, nav ul ul li {
    display: block;
    width: 100%;
  }

  nav ul li a:hover {
    box-shadow: none;
  }

  .show {
    display: block;
    color: var(--md-sys-color-on-surface);
    font-size: 16px;
    padding: 0 20px;
    line-height: 70px;
    cursor: pointer;
  }

  .show:hover {
    color: var(--md-sys-color-primary);
  }

  .icon {
    display: block;
    color: var(--md-sys-color-on-surface);
    position: absolute;
    top: 0;
    right: 40px;
    line-height: 70px;
    cursor: pointer;
    font-size: 16px;
  }

  nav ul ul {
    top: 70px;
    border-top: 0px;
    float: none;
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
  }

  nav ul ul a {
    padding-left: 40px;
  }

  nav ul ul ul a {
    padding-left: 80px;
  }

  nav ul ul ul li {
    position: static;
  }

  [id^=btn]:checked + ul {
    display: block;
  }

  nav ul ul li {
    border-bottom: 0px;
  }

  span.cancel:before {
    content: '\f00d';
  }
}

/* Centrage du contenu */
.content {
  z-index: -1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

header {
  font-size: 16px;
  font-weight: 600;
  padding: 10px 0;
}

p {
  font-size: 16px;
  font-weight: 500;
}