/* Styles globaux Xonaera */
/* =========================================================
   XONAERA — Base CSS
   Mise en forme simple et lisible
   ========================================================= */

/* ---------- Base ---------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #222;
  background: #fff;
}

/* ---------- Contenu principal ---------- */

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

section {
  margin-bottom: 50px;
}

h1,
h2,
h3 {
  line-height: 1.25;
}

h1 {
  margin-top: 0;
  margin-bottom: 20px;
}

h2 {
  margin-bottom: 15px;
}

h3 {
  margin-bottom: 10px;
}

p {
  margin-top: 0;
  margin-bottom: 16px;
}

/* ---------- Liens ---------- */

a {
  color: #174a7e;
}

a:hover {
  text-decoration: none;
}

/* ---------- Navigation ---------- */

header {
  border-bottom: 1px solid #ddd;
  background: #fff;
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

nav > a {
  font-weight: bold;
  font-size: 1.2rem;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav li {
  margin: 0;
}

nav ul a {
  text-decoration: none;
}

nav ul a:hover {
  text-decoration: underline;
}

/* ---------- Articles / services ---------- */

article {
  margin-bottom: 35px;
}

article + article {
  border-top: 1px solid #ddd;
  padding-top: 30px;
}

/* ---------- Formulaires ---------- */

form {
  max-width: 700px;
}

label {
  display: block;
  margin-bottom: 15px;
  font-weight: 600;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 5px;
  padding: 10px;
  border: 1px solid #bbb;
  border-radius: 4px;
}

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

button {
  padding: 10px 18px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

/* ---------- Footer ---------- */

footer {
  margin-top: 50px;
  padding: 30px 20px;
  border-top: 1px solid #ddd;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

footer p {
  margin-bottom: 10px;
}

/* ---------- Éléments masqués ---------- */

.hidden {
  display: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 700px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    flex-direction: column;
    gap: 8px;
  }

  main {
    padding: 30px 15px;
  }
}
