
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", sans-serif;
  background: #1d1e20;
  color: #e2ded9;
  min-height: 100vh;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: url(pointer.png), auto;
}

a:link,
a:visited {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  color: #65a09e;
  outline: none;
}

/* Scrollbar stylée */
body::-webkit-scrollbar {
  width: 12px;
}
body::-webkit-scrollbar-track {
  background: #26282a;
  border-radius: 8px;
}
body::-webkit-scrollbar-thumb {
  background: #65a09e;
  border-radius: 8px;
  border: 3px solid #26282a;
}

/* Header fixe moderne */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(29, 30, 32, 0.85);
  backdrop-filter: saturate(180%) blur(15px);
  box-shadow: 0 8px 24px rgba(101, 160, 158, 0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2.5rem;
  z-index: 1000;
  transition: background 0.4s ease;
}

header:hover {
  background: rgba(29, 30, 32, 0.98);
}

button, .btn {
  background: linear-gradient(135deg, #204d4b, #326e6c);
  color: #cce7e5;
  font-weight: 700;
  border-radius: 8px;
  padding: 12px 24px;
  border: 2px solid #65a09e;
  box-shadow: 0 4px 14px rgba(101, 160, 158, 0.6);
  cursor: url(pointer2.png), auto;
  transition: background 0.3s ease, transform 0.15s ease, box-shadow 0.3s ease;
  user-select: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: "Space Grotesk", sans-serif;
}

button:hover, .btn:hover,
button:focus, .btn:focus {
  background: linear-gradient(135deg, #65a09e, #3a8585);
  border-color: #a1d9d7;
  box-shadow: 0 0 28px #65a09eff, inset 0 0 18px #3a8f8ccc;
  transform: translateY(-3px);
  outline: none;
  color: #1d1e20;
}


/* Logo + titre */
.logo-title {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  cursor: default;
}

.logo-title img {
  height: 48px;
  filter: drop-shadow(0 0 5px #65a09e);
  transition: transform 0.4s ease;
}

.logo-title img:hover {
  transform: rotate(15deg) scale(1.2);
  filter: drop-shadow(0 0 12px #65a09e);
}

.logo-title h2 {
  font-weight: 900;
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  color: #e2ded9;
  user-select: none;
  transition: color 0.3s ease;
}

.logo-title h2:hover {
  color: #65a09e;
}

/* Navigation menu */
nav ul {
  list-style: none;
  display: flex;
  gap: 3rem;
}

nav ul li {
  font-weight: 600;
  font-size: 1.15rem;
  position: relative;
  cursor: pointer;
  color: #e2ded9;
  transition: color 0.25s ease;
  user-select: none;
}

nav ul li:hover {
  color: #65a09e;
}

nav ul li::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 3px;
  background: #65a09e;
  border-radius: 4px;
  transition: width 0.3s ease;
}

nav ul li:hover::after {
  width: 100%;
}

/* Main sections - with padding for header offset */
main {
  padding-top: 80px;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Section styling */
section {
  padding: 4rem 0 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

/* Presentation section */
#pres {
  text-align: center;
  user-select: none;
}

#pres img {
  width: 120px;
  filter: drop-shadow(0 0 12px #65a09e99);
  margin-bottom: 1.8rem;
  transition: transform 0.6s ease;
}

#pres img:hover {
  transform: rotate(18deg) scale(1.15);
  filter: drop-shadow(0 0 20px #65a09ecc);
}

#pres h1 {
  font-size: 4.5rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #e2ded9;
  margin-bottom: 1rem;
  line-height: 1.1;
  text-shadow: 0 0 12px #65a09e77;
}

#pres p {
  font-size: 1.35rem;
  line-height: 1.8;
  color: #c9d4d9cc;
  max-width: 520px;
  margin: 0 auto 3rem;
}

/* Modern button */
#button-49 {
  background: linear-gradient(145deg, #283838, #1d2929);
  border: 2.5px solid #65a09e;
  color: #a9f4f0;
  letter-spacing: 3.5px;
  font-family: "Bebas Neue", cursive;
  font-size: 24px;
  font-weight: 800;
  padding: 20px 48px;
  border-radius: 16px;
  cursor: url(pointer2.png), auto;
  box-shadow: 0 0 20px #65a09ecc, inset 0 0 12px #65a09ecc;
  transition: all 0.3s ease;
  text-transform: uppercase;
  user-select: none;
  filter: drop-shadow(0 0 10px #65a09e);
}

#button-49:hover {
  background: linear-gradient(135deg, #58b8b3, #3a8585);
  box-shadow: 0 0 40px #65a09eff, inset 0 0 15px #a1d9d7ff;
  transform: scale(1.08);
  color: #1d1e20;
}

/* Team section */
#us h1 {
  font-size: 3.6rem;
  font-weight: 900;
  color: #e2ded9;
  letter-spacing: 0.1em;
  user-select: none;
  text-align: center;
  margin-bottom: 3rem;
  text-shadow: 0 0 10px #65a09e99;
}

/* Cards container */
#us .content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.8rem 3.5rem;
  width: 100%;
  max-width: 1100px;
}

/* Card style with glassmorphism */
.card {
  background: rgba(29, 30, 32, 0.65);
  border-radius: 20px;
  border: 2px solid #65a09e77;
  padding: 2rem 1.8rem 2.5rem;
  box-shadow: 0 8px 32px 0 rgba(101, 160, 158, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
  cursor: default;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.4s ease;
}

.card:hover {
  border-color: #65a09e;
  box-shadow: 0 15px 40px 0 #65a09eff;
  transform: translateY(-6px);
}

.card img:not(.mediaIcon) {
  width: 180px;
  height: 180px;
  border-radius: 20px;
  object-fit: cover;
  filter: drop-shadow(0 0 10px #65a09ecc);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.card img:not(.mediaIcon):hover {
  transform: scale(1.15);
  filter: drop-shadow(0 0 16px #65a09eff);
}

.card h2 {
  font-weight: 900;
  font-size: 1.8rem;
  color: #e2ded9;
  letter-spacing: 0.02em;
  user-select: none;
  margin-bottom: 0.6rem;
}

.card h2 .blue {
  color: #65a09e;
}

.card ul {
  list-style: inside disc;
  font-weight: 400;
  font-size: 1.15rem;
  color: #cdd4d9cc;
  max-width: 280px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Media icons container */
.medias {
  display: flex;
  gap: 1.6rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
}

.mediaIcon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  filter: brightness(0.8);
  transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
  cursor: url(pointer2.png), auto;
}

.mediaIcon:hover {
  filter: brightness(1);
  transform: translateY(-5px);
  box-shadow: 0 0 14px #65a09eff;
}

/* Discord icon bigger */
.discord {
  width: 48px;
  height: 48px;
}

/* Project section */
#project {
  max-width: 900px;
  margin: 0 auto;
  user-select: none;
  text-align: center;
  padding: 4rem 1rem 5rem;
}

#project h1 {
  font-size: 3.6rem;
  font-weight: 900;
  color: #e2ded9;
  letter-spacing: 0.1em;
  margin-bottom: 3rem;
  text-shadow: 0 0 14px #65a09eaa;
}

.custom-btn {
  display: inline-block;
  background: linear-gradient(145deg, #2c3a3a, #1f2a2a);
  color: #a9f4f0;
  font-weight: 700;
  font-size: 1.2rem;
  padding: 16px 48px;
  border-radius: 14px;
  border: 2.5px solid transparent;
  cursor: pointer;
  box-shadow: inset 1px 1px 4px #65a09e44, 5px 5px 18px #1d2c2ccc;
  transition: all 0.35s ease;
  user-select: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: "Space Grotesk", sans-serif;
}

.custom-btn:hover,
.custom-btn:focus {
  background: #65a09e;
  border-color: #58b8b3;
  color: #1d1e20;
  box-shadow: 0 0 28px #65a09eee, inset 0 0 18px #3a8f8ccc;
  transform: scale(1.1);
  outline: none;
}

/* Contact form */
#contact {
  display: flex;
  justify-content: center;
  padding: 5rem 1rem 6rem;
  user-select: none;
}

#contactform {
  background: rgba(29, 30, 32, 0.8);
  padding: 3rem 4rem;
  border-radius: 22px;
  box-shadow: 0 8px 28px #3a6f6fcc;
  max-width: 620px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

#contactform h1 {
  font-size: 2.4rem;
  font-weight: 900;
  color: #e2ded9;
  margin-bottom: 1rem;
  text-align: center;
  letter-spacing: 0.05em;
  text-shadow: 0 0 8px #65a09eaa;
}

#contactform h4 {
  font-weight: 400;
  font-size: 1.2rem;
  color: #9cb7baaa;
  margin-bottom: 2.4rem;
  text-align: center;
}

#contactform input,
#contactform textarea {
  background: #1d1e20;
  border: 2.5px solid #65a09e;
  border-radius: 12px;
  color: #e2ded9;
  font-size: 1.15rem;
  font-family: "Space Grotesk", sans-serif;
  padding: 1.1rem 1.3rem;
  resize: vertical;
  box-shadow: inset 0 0 12px #2a3a3a;
  transition: all 0.3s ease;
}

#contactform input:focus,
#contactform textarea:focus {
  background: #65a09e;
  border-color: #3a7f7a;
  color: #1d1e20;
  box-shadow: 0 0 14px #65a09eff, inset 0 0 12px #3a7f7a;
  outline: none;
}

#contactform input:hover,
#contactform textarea:hover {
  cursor: url(pointer2.png), auto;
  background: #65a09e99;
  color: #1d1e20;
}

button.button-10 {
  background: hsl(178, 17%, 59%);
  border: 3px solid #65a09e;
  border-radius: 1em;
  color: #382b22;
  font-weight: 900;
  padding: 1.5em 3em;
  text-transform: uppercase;
  cursor: url(pointer2.png), auto;
  box-shadow: 0 0 14px #65a09eaa, 0 0.7em 0 0 hsl(180, 1%, 32%);
  transition: all 0.25s cubic-bezier(0, 0, 0.58, 1);
  user-select: none;
  letter-spacing: 0.12em;
}

button.button-10:hover {
  background: hsl(178, 17%, 69%);
  box-shadow: 0 0 28px #65a09eff, 0 0.75em 0 0 hsl(178, 17%, 45%);
  transform: translateY(-0.18em);
}

button.button-10:active {
  background: hsl(178, 17%, 50%);
  box-shadow: none;
  transform: translateY(0);
}

/* Style bouton burger */
#burger {
  display: none; /* caché par défaut */
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  box-sizing: border-box;
  z-index: 101; /* au-dessus de la nav */
}

.burger-bar {
  width: 100%;
  height: 3px;
  background-color: #65a09e;
  border-radius: 2px;
  transition: all 0.3s linear;
  transform-origin: 1px;
}

#burger.active .burger-bar:nth-child(1) {
  transform: rotate(45deg);
}

#burger.active .burger-bar:nth-child(2) {
  opacity: 0;
}

#burger.active .burger-bar:nth-child(3) {
  transform: rotate(-45deg);
}


@media (max-width: 768px) {
  #burger {
    display: flex;
  }

  /* Cacher la navigation normale */
  #liste {
    display: none;
    position: fixed;
    top: 10vh; /* sous le header */
    right: 0;
    width: 220px;
    height: 90vh;
    background-color: #151617;
    box-shadow: -3px 0 10px rgba(0,0,0,0.8);
    padding-top: 1.5rem;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 100;
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%);
  }

  /* Afficher le menu quand actif */
  #liste.active {
    display: flex;
    transform: translateX(0);
  }

  #liste ul {
    flex-direction: column;
    gap: 1.5rem;
    margin: 0;
  }

  #liste ul li {
    font-size: 1.3rem;
  }
}

/* Thème clair modernisé et amélioré */
body.light-theme {
  background-color: #f9fbfc;      /* blanc très clair légèrement bleuté */
  color: #1f2937;                 /* gris foncé froid, plus doux que noir */
  font-family: "Inter", sans-serif;
  transition: background-color 0.4s ease, color 0.4s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header */
body.light-theme header {
  background-color: #ffffffdd;   /* blanc avec légère transparence pour effet glass */
  color: #1f2937;
  box-shadow: 0 3px 12px rgba(30, 58, 90, 0.1);
  backdrop-filter: saturate(180%) blur(12px);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

body.light-theme header:hover {
  background-color: #ffffffee;
  box-shadow: 0 5px 18px rgba(30, 58, 90, 0.15);
}

/* Liens */
body.light-theme a {
  color: #3b82f6;                /* bleu clair vif */
  font-weight: 600;
  transition: color 0.25s ease;
  text-decoration: underline 0.8px transparent;
  text-underline-offset: 4px;
}

body.light-theme a:hover,
body.light-theme a:focus {
  color: #1e40af;                /* bleu foncé */
  text-decoration-color: #3b82f6;
  outline: none;
}

/* Titres */
body.light-theme h1,
body.light-theme h2,
body.light-theme h3 {
  color: #111827;                /* gris très foncé pour titres */
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(59, 130, 246, 0.2);
  user-select: none;
}

/* Boutons */
body.light-theme button,
body.light-theme .btn {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  color: #f9fafb;
  font-weight: 700;
  border-radius: 8px;
  padding: 12px 24px;
  border: none;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.15s ease, box-shadow 0.3s ease;
  user-select: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: "Inter", sans-serif;
}

body.light-theme button:hover,
body.light-theme .btn:hover,
body.light-theme button:focus,
body.light-theme .btn:focus {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
  transform: translateY(-3px);
  outline: none;
}

/* Sections */
body.light-theme section {
  border-radius: 16px;
  padding: 32px 28px;
  margin-bottom: 28px;
}

body.light-theme #project h1 {
  color: #0f172a; 
  text-shadow: none; 
}

body.light-theme #pres p {
  color: #0f172a; 
  text-shadow: none; 
}

body.light-theme #contactform h1 {
  color: #0f172a; 
  text-shadow: none; 
}

body.light-theme #us h1 {
  color: #0f172a; 
  text-shadow: none; 
}

body.light-theme #pres h1 {
  color: #0f172a; 
  text-shadow: none; 
}


/* Scrollbar stylée */
body.light-theme::-webkit-scrollbar {
  width: 12px;
}

body.light-theme::-webkit-scrollbar-track {
  background: #e2e8f0;  /* gris très clair */
  border-radius: 10px;
}

body.light-theme::-webkit-scrollbar-thumb {
  background: #3b82f6;  /* bleu clair */
  border-radius: 10px;
  border: 3px solid #e2e8f0;
  transition: background-color 0.3s ease;
}

body.light-theme::-webkit-scrollbar-thumb:hover {
  background: #2563eb;  /* bleu plus foncé au hover */
}

/* Inputs & Textarea dans formulaire */

body.light-theme #contactform {
  background: #f0f9ff;  /* bleu plus foncé au hover */
}


body.light-theme #contactform input,
body.light-theme #contactform textarea {
  background: #f0f9ff;              /* bleu très clair */
  border: 2.5px solid #3b82f6;
  border-radius: 14px;
  color: #1f2937;
  font-size: 1.1rem;
  padding: 1rem 1.2rem;
  box-shadow: inset 0 0 10px #dbeafe;
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
}

body.light-theme #contactform input:focus,
body.light-theme #contactform textarea:focus {
  background: #2563eb;
  border-color: #1e40af;
  color: #f9fafb;
  box-shadow: 0 0 14px #2563ebcc, inset 0 0 10px #1e40afcc;
  outline: none;
}

body.light-theme #contactform input:hover,
body.light-theme #contactform textarea:hover {
  cursor: pointer;
  background: #93c5fd99;
  color: #1e293b;
}

/* Logo title */
body.light-theme .logo-title h2 {
  color: #1e40af;
  letter-spacing: 0.12em;
  transition: color 0.3s ease;
}

body.light-theme .logo-title h2:hover {
  color: #3b82f6;
}

/* Navigation */
body.light-theme nav ul li {
  color: #1f2937;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s ease;
}

body.light-theme nav ul li:hover {
  color: #3b82f6;
}

body.light-theme nav ul li::after {
  background: #3b82f6;
}

/* Card */
body.light-theme .card {
  background: #f0f9ff;
  border: 2px solid #93c5fdaa;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
  backdrop-filter: none;
  color: #1f2937;
}

body.light-theme .card:hover {
  border-color: #2563eb;
  box-shadow: 0 15px 48px rgba(37, 99, 235, 0.25);
  transform: translateY(-6px);
}

body.light-theme .card h2 {
  color: #2563eb;
}

body.light-theme .card ul {
  color: #475569;
}

/* Media icons */
body.light-theme .mediaIcon {
  filter: brightness(1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.light-theme .mediaIcon:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 14px #3b82f6dd;
}





/* Responsive */
@media (max-width: 900px) {
  header {
    padding: 0 1.2rem;
  }

  nav ul {
    gap: 2rem;
  }

  #pres h1 {
    font-size: 3rem;
  }

  #us .content {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  #project h1 {
    font-size: 2.8rem;
  }

  .custom-btn {
    padding: 14px 36px;
    font-size: 1rem;
  }

  #contactform {
    padding: 2rem 2.5rem;
  }
}

@media (max-width: 480px) {
  nav ul {
    gap: 1.2rem;
  }

  #pres h1 {
    font-size: 2.4rem;
  }

  #pres p {
    font-size: 1.1rem;
  }

  #button-49 {
    font-size: 18px;
    padding: 14px 36px;
  }

  #us .content {
    grid-template-columns: 1fr;
  }

  #contactform {
    padding: 1.6rem 1.8rem;
  }

  #contactform input,
  #contactform textarea {
    font-size: 1rem;
  }
}
