/* ===== RESET & BASE STYLES ===== */
/* Réinitialisation des marges/paddings par défaut pour une meilleure cohérence entre navigateurs */
body, h1, h2, p, ul, li, figure, figcaption, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}

/* Police et couleurs de base, optimisées pour la lisibilité et le contraste */
body {
  margin: 0;
  font-family: Arial, sans-serif; /* Police système pour une rapidité de chargement */
  line-height: 1.6;
  background: #f5f0e6;
  color: #333;
}

/* ===== HEADER & NAVIGATION ===== */
/* Gradient optimisé pour les performances (évite les dégradés complexes) */
header {
  background: linear-gradient(90deg, #0a2a43, #ffcc33);
  color: white;
  text-align: center;
  padding: 30px 20px;
}

/* Logo optimisé pour le SEO (attribut alt à ajouter dans le HTML) */
header .logo {
  max-width: 350px;
  display: block;
  margin: 0 auto 15px;
}

/* Navigation accessible et responsive */
nav {
  background: #0a2a43;
  padding: 10px 0;
}
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}
nav ul li {
  margin: 0 15px;
}
nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
  padding: 5px 10px; /* Meilleure zone cliquable pour l'accessibilité */
}
nav ul li a:hover,
nav ul li a:focus { /* Ajout du focus pour l'accessibilité */
  color: #ffcc33;
}

/* ===== MAIN CONTENT ===== */
main {
  padding: 20px;
  max-width: 1000px;
  margin: auto;
}

/* Titres optimisés pour le SEO (hiérarchie claire) */
h1, h2 {
  color: #0a2a43;
  margin-bottom: 15px; /* Espacement pour la lisibilité */
}

/* ===== SERVICES SECTION ===== */
/* Cartes de services optimisées pour le mobile et le SEO */
.services .service {
  display: flex;
  align-items: center;
  background: #fff;
  margin: 20px 0;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.services .service img {
  width: 40%;
  height: auto;
  border-radius: 8px;
  object-fit: cover; /* Optimisation du chargement des images */
}
.services .service p {
  width: 60%;
  padding: 0 20px;
  font-size: 1rem; /* Taille relative pour l'accessibilité */
}
.services .service.left img {
  order: 1;
}
.services .service.right img {
  order: 2;
}

/* ===== CONTACT FORM ===== */
/* Formulaire accessible et responsive */
.contact-form {
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.contact-form label {
  margin: 10px 0 5px;
  font-weight: bold;
  display: block; /* Meilleure accessibilité */
}
.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
  width: 100%; /* Responsive */
  box-sizing: border-box; /* Meilleure gestion des largeurs */
}
.contact-form button {
  margin-top: 15px;
  padding: 12px;
  background: #ffcc33;
  color: #0a2a43;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}
.contact-form button:hover,
.contact-form button:focus {
  background: #e6b800;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 20px;
  background: #0a2a43;
  color: white;
}
footer .carte {
  max-width: 300px;
  margin-top: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* ===== BUSINESS CARD ===== */
.business-card {
  max-width: 700px;
  margin: 50px auto;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  font-family: Arial, sans-serif;
  overflow: hidden;
  border: 1px solid #eee;
}
.card-body {
  display: flex;
  align-items: center;
  padding: 20px;
}
.card-body .portrait {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 20px;
  border: 3px solid #007c91;
}
.card-body .info {
  flex: 1;
  text-align: left;
}
.card-body .info h3 {
  margin: 0;
  font-size: 22px;
  color: #1a2a44;
}
.card-body .info .role {
  margin: 5px 0 15px;
  font-size: 18px;
  font-weight: bold;
  color: #d19b2a;
}
.card-body .info p {
  margin: 8px 0;
  font-size: 17px;
}
.card-body a {
  color: #007c91;
  text-decoration: none;
  font-weight: bold;
}
.card-body a:hover,
.card-body a:focus {
  text-decoration: underline;
}
.card-footer {
  height: 20px;
  background: #1a2a44;
}

/* ===== RESPONSIVE DESIGN ===== */
/* Adaptation pour mobile (SEO-friendly) */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  .services .service {
    flex-direction: column;
    text-align: center;
  }
  .services .service img,
  .services .service p {
    width: 100%;
    padding: 10px 0;
  }
  header .logo {
    max-width: 250px;
  }
  .card-body {
    flex-direction: column;
    text-align: center;
  }
  .card-body .portrait {
    margin-right: 0;
    margin-bottom: 15px;
  }
}
