:root{
  --radius:16px;
  --radius-sm:10px;
  --radius-lg:24px;
  --shadow-1: 0 10px 30px rgba(0, 0, 0, 0);
  --shadow-2: 0 16px 50px rgba(0, 0, 0, 0);

  /* Light theme */
  --bg: #0b0f1a;
  --surface: #0f1524;
  --text: #e9edf7;
  --muted: #a7b1c8;
  --line: #252d3b;

  --primary: #7c5cff;   /* indigo */
  --accent:  #2de2e6;   /* turquoise */
  --warm:    #ff7a59;   /* corail */
  --grad-1: linear-gradient(135deg, var(--primary), var(--accent) 60%, var(--warm) 110%);
  --chip-bg: #eef0ff;

  --glass: rgba(255,255,255,0.65);
  --backdrop: blur(12px);

  --header-h: 64px;
  --container-w: 1100px;
  --gutter: 4vw;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  background: #222;
  padding: 14px;
  margin: 0px;
}

nav a {
  margin-left: 30px;
  text-decoration: none;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
}
.buttons-nav {
  margin-left: 20%;
  display: flex;
  align-items: center;
}

nav a:hover {
  background: #555;
}

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

footer {
  background-color: #222;
  color: #ddd;
  text-align: center;
  padding: 15px;
  font-size: 14px;
}

footer a {
  color: #4e4caf;
  text-decoration: none;
  font-weight: bold;
}

footer a:hover {
  color: #8188c7;
  text-decoration: underline;
}

h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 40px;
  font-weight: 700;
}

.discord-icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 5px;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
}

main h1,
main p {
  margin: 0 20%;
}
@media (min-width: 769px) {
  .title {
  font-family: 'Poppins', sans-serif;
  font-size: 40px;
  font-weight: 700;
  margin-top: 30px;
  margin-left: 44%;
}
/* each child takes roughly half the available space */
.code-block,
.video-div {
  width: 48%; /* leave a small gap between them */
  box-sizing: border-box;
}
.video {
  width: 100%;
  max-width: 480px;
}
}


@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    background: #333;
    width: 100%;
    padding: 0;
    gap: 0;
    align-items: stretch;
  }

  nav ul.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
    padding: 10px;
    background: #333;
  }

  .buttons-nav {
    margin-left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  nav ul.show .buttons-nav {
    padding: 8px 0;
  }

  nav ul.show a {
    margin-left: 0;
    padding: 14px 16px;
    width: 100%;
    display: block;
  }

  nav ul.show li {
    width: 100%;
  }

  nav ul.show button#toggle-theme {
    margin: 8px 16px 16px;
    align-self: flex-start;
    width: auto;
  }

  .mid-page {
    flex-direction: column;
  }
  .code-block,
  .video-div {
    width: 100%;
    margin-bottom: 20px;
  }
  .row {
    grid-template-columns: 1fr;
  }
  .title{
    margin-left: 0%;
    text-align: center;
  }
  main h1,
  main p {
    margin: 0 8%;
  }
  .video {
    width: 100%;
    max-width: 100%;
  }
}

#projets-actuels {
  margin-left: 20%;
  margin-top: 50px;
}

#projets-actuels h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 20px;
}

.projet-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background-color: #1a1c22;
  padding: 15px;
  border-radius: 10px;
  max-width: 250px;
  margin-bottom: 20px;
}

.projet-image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

.projet-card h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: white;
  margin: 0 0 10px 0;
}

.voir-plus {
  background-color: #6a5cff;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
}

.voir-plus:hover {
  background-color: #4e4caf;
}

body {
  background-color: #0f1115;
  font-family: 'Roboto', sans-serif;
}

h1 .accentuated {
  background: linear-gradient(90deg, #6a5cff, #4ecdc4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
p .accentuated {
  background: linear-gradient(90deg, #6a5cff, #4ecdc4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.robot_n1 {
  max-width: 100%;
  width: 400px;
  height: auto;
  border-radius: 10px;
  display: block;
}

.slider-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 20px auto;
}

.slider-wrapper {
  position: relative;
  max-width: 400px;
  overflow: hidden;
}

.video-wrapper {
  width: 100%;
  max-width: 100%;
}

.video {
  width: 100%;
  max-width: 100%;
  height: auto;
}

.slider-image {
  display: none;
}

.slider-image.active {
  display: block;
}

.slider-btn {
  background-color: #6a5cff;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
}

.slider-btn:hover {
  background-color: #4e4caf;
}

.section-desc {
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  color: #bbb;
  margin-left: 1%;
}
.section-title-brand {
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin-left: 1%;
}

/* layout for mid page section: two halves side-by-side */
.mid-page {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap; /* allow wrapping on very small screens */
  margin: 0 auto;
  max-width: 90%;
}

/* Thème clair/sombre */
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: Arial, sans-serif;
  transition: background-color 0.3s, color 0.3s;
}
/* Contact */
form {
  display: grid;
  gap: 12px;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
input,
textarea {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
textarea {
  min-height: 140px;
  resize: vertical;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-2);
}
.btn--grad{ 
  background: var(--grad-1) ;
  color: #000000; border:0;
  text-decoration: none;
  }
.btn{
  appearance:none; border:0; cursor:pointer; font-weight:700;
  padding:10px 14px; border-radius:12px;
  box-shadow: var(--shadow-1);
  text-decoration: none;}
*{box-sizing:border-box}

.logo-lycée  {
  width: 120px;
  height: 40px;
}