body {
    font-family: system-ui, sans-serif;
    margin: 40px auto;
    padding: 0 16px;
}

main {
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 12px #0001;
}

label {
    display: block;
    margin-top: 16px;
    font-weight: 600;
}

input, textarea, button {
    box-sizing: border-box;
    width: 100%;
    margin-top: 6px;
    padding: 10px;
    font: inherit;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

button {
    margin-top: 16px;
    border: 0;
    border-radius: 8px;
    color: white;
    background: #5865f2;
    cursor: pointer;
}

button:hover {
    background: #4752c4;
}

#conversation {
    margin-top: 24px;
}

.message {
    margin: 10px 0;
    padding: 12px;
    border-radius: 8px;
    background: #eef0ff;
    overflow-wrap: anywhere;
}

.message small {
    display: block;
    margin-bottom: 4px;
    color: #555;
}

#status {
    color: #555;
}
/*nouveau thème à revoir*/
: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;
}
.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%;
}
}

@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;
  }
  .row {
    grid-template-columns: 1fr;
  }
  .title{
    margin-left: 0%;
    text-align: center;
  }
  main h1,
  main p {
    margin: 0 8%;
  }
}

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;
}


.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;
}