* {
  box-sizing: border-box;
}

/* Nouvelle palette de couleurs et typographie */
body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background: #f3e5f5; /* Fond violet pâle */
  color: #4a148c;      /* Violet profond */
  line-height: 1.6;
}

/* Conteneur centralisé */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Navigation principale */
nav {
  background: #7b1fa2; /* Violet moyen */
  padding: 15px 0;
}

nav .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 15px;
  font-weight: 600;
  transition: color 0.3s ease;
}

@media (any-hover: hover) {
  nav a:hover,
  nav a:focus {
    color: #ce93d8;
  }
  nav a:active {
    color: #ab47bc;
  }
}

/* Header et animations */
header h1 {
  font-size: 2.8em;
  margin-top: 30px;
  text-align: center;
  animation: slideDown 1s ease;
}

header p {
  text-align: center;
  margin-bottom: 30px;
  animation: fadeIn 1s ease;
}

/* Sections de contenu */
section {
  margin: 50px 0;
}

section h2 {
  font-size: 2em;
  margin-bottom: 15px;
  color: #7b1fa2;
  animation: slideIn 1s ease;
}

section p {
  margin-bottom: 15px;
}

/* Accordéon FAQ */
.accordion .accordion-item {
  margin-bottom: 12px;
  border: 1px solid #ce93d8;
  border-radius: 5px;
  overflow: hidden;
  background: #ffffff;
  transition: transform 0.3s ease;
}

@media (any-hover: hover) {
  .accordion .accordion-item:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  }
}

.accordion-btn {
  width: 100%;
  background: #8e24aa;
  color: #ffffff;
  border: none;
  outline: none;
  padding: 15px;
  text-align: left;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s ease;
}

@media (any-hover: hover) {
  .accordion-btn:hover,
  .accordion-btn:focus {
    background: #7b1fa2;
  }
  .accordion-btn:active {
    background: #6a1b9a;
  }
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  background: #f8bbd0;
  padding: 0 15px;
}

.accordion-content p {
  padding: 15px 0;
  margin: 0;
}

/* Formulaire de contact */
form {
  display: flex;
  flex-direction: column;
}

form label {
  margin: 10px 0 5px;
  font-weight: 600;
}

form input,
form textarea {
  padding: 10px;
  border: 1px solid #ce93d8;
  border-radius: 4px;
  font-size: 1em;
  transition: border-color 0.3s ease;
}

@media (any-hover: hover) {
  form input:focus,
  form textarea:focus {
    border-color: #8e24aa;
  }
}

form button {
  margin-top: 15px;
  padding: 12px;
  background: #4a148c;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s ease;
}

@media (any-hover: hover) {
  form button:hover {
    background: #38006b;
  }
  form button:active {
    background: #311b92;
  }
}

/* Footer */
footer {
  background: #7b1fa2;
  padding: 15px 0;
  text-align: center;
  color: #f3e5f5;
}

footer a {
  color: #f3e5f5;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s ease;
}

@media (any-hover: hover) {
  footer a:hover {
    color: #ce93d8;
  }
}

/* Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
