/* === Styles généraux et reset === */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #000;
}

/* === Header et navigation === */
header {
  background-color: #003366;
  color: white;
  padding: 15px 20px;
  text-align: center;
  margin-bottom: 30px;
}

.nav-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 0;
}

.logo {
  max-width: 200px;
  cursor: pointer;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.3);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  font-weight: bold;
  font-size: 1.3rem;
  width: 100%;
  max-width: 600px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.nav-links a:hover {
  text-decoration: underline;
  transform: scale(1.3);
}

.lang-switch {
  max-width: 150px;
  margin: 15px auto 0;
}

.lang-switch select {
  width: 100%;
  padding: 6px 10px;
  font-weight: bold;
  font-size: 1.2rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

/* === Main général === */
main {
  max-width: 960px;
  margin: 40px auto 60px auto; /* marge en bas pour footer */
  padding: 0 20px;
  text-align: center;
}

/* === Liste services (services.php) === */
main ul {
  text-align: left;
  max-width: 800px;
  margin: 40px auto;
  font-size: 1.2rem;
  line-height: 1.8;
  padding-left: 20px;
}

main ul li {
  margin-bottom: 12px;
}

/* === Formulaire Rendez-vous (rendezvous.php) === */
form#appointment-form {
  max-width: 480px;
  margin: 40px auto;
  background: #fff;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  text-align: left;
}

form#appointment-form label {
  font-weight: bold;
  display: block;
  margin-top: 20px;
}

form#appointment-form input,
form#appointment-form select,
form#appointment-form button {
  width: 100%;
  padding: 8px;
  font-size: 1rem;
  margin-top: 6px;
  border-radius: 5px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

form#appointment-form button {
  margin-top: 25px;
  background: #003366;
  color: white;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form#appointment-form button:hover {
  background: #0055a5;
}

/* Messages de succès ou erreur (rendezvous.php) */
.message-success, .message-error {
  padding: 12px;
  border-radius: 5px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
}

.message-success {
  color: #155724;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
}

.message-error {
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
}

/* === Formulaire Contact (contact.php) === */
main.contact-main {
  max-width: 600px;
  background: white;
  margin: 30px auto 60px auto;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
  text-align: left;
}

form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

form.contact-form label {
  font-weight: bold;
}

form.contact-form input, 
form.contact-form textarea {
  padding: 10px;
  font-size: 1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  width: 100%;
  box-sizing: border-box;
}

form.contact-form button {
  background: #003366;
  color: white;
  padding: 12px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

form.contact-form button:hover {
  background: #0055a5;
}

/* Messages succès/erreur contact */
.success-message, .error-message {
  padding: 15px;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
}

.success-message {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.error-message {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* === Footer === */
footer {
  text-align: center;
  padding: 15px 0;
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #fff;
  border-top: 1px solid #ccc;
  font-size: 0.9rem;
  color: #333;
}

/* === Responsive === */
@media (max-width: 600px) {
  .nav-links {
    flex-direction: column;
    gap: 12px;
    font-size: 1.1rem;
    align-items: center;
  }

  main ul {
    max-width: 100%;
    padding-left: 15px;
    font-size: 1rem;
  }

  .logo {
    max-width: 90px;
  }

  .lang-switch {
    margin-top: 15px;
  }

  form#appointment-form,
  main.contact-main {
    padding: 15px;
    max-width: 100%;
  }

  form#appointment-form label,
  form.contact-form label {
    margin-top: 10px;
  }

  form#appointment-form input,
  form#appointment-form select,
  form#appointment-form button,
  form.contact-form input,
  form.contact-form textarea,
  form.contact-form button {
    font-size: 1rem;
    padding: 8px;
  }
}
/* === Scroll indicator (taille et position) === */
.scroll-indicator {
  position: fixed;
  left: 50%;
  bottom: 24px;            /* remonte au-dessus du footer fixé */
  transform: translateX(-50%);
  z-index: 1000;
  animation: bounce 2s infinite;
  transition: opacity .3s;
}
.scroll-indicator.hidden { opacity: 0; pointer-events: none; }

.scroll-indicator .scroll-arrow {
  width: 44px;             /* bouton rond */
  height: 44px;
  background: rgba(12,77,162,.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

.scroll-indicator .scroll-arrow svg {
  width: 20px !important;  /* taille réelle de la flèche */
  height: 20px !important;
  display: block;
  flex: 0 0 auto;
}

.scroll-indicator .scroll-text {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 12px;
  color: #0C4DA2;
  font-weight: 600;
}

/* Neutralise d'éventuels styles globaux */
.scroll-indicator svg,
.scroll-indicator img { max-width: none !important; height: auto; }

/* Espace pour le footer fixé, évite le chevauchement */
body { padding-bottom: 70px; }
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #0C4DA2, #1e5bbf);
  color: #fff;
  font-weight: bold;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(12, 77, 162, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(12, 77, 162, 0.4);
}

.cta-button img {
  width: 28px;
  height: 28px;
}
/* Section réseaux */
.social-section { margin: 40px auto; text-align: center; }
.social-section h2 { font-size: 1.6rem; margin-bottom: 14px; color: #0C4DA2; }

.social-links {
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
}

.social-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 700;
  box-shadow: 0 2px 10px rgba(0,0,0,.08); transition: transform .15s, box-shadow .15s;
  color: #fff;
}
.social-btn svg { width: 20px; height: 20px; display: block; fill: currentColor; }
.social-btn span { line-height: 1; }

.social-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.12); }

.social-btn.wa { background: #25D366; }
.social-btn.fb { background: #1877F2; }
.social-btn.ig { background: linear-gradient(45deg,#f58529,#feda77,#dd2a7b,#8134af,#515bd4); }

/* Bouton WhatsApp flottant */
.wa-fab {
  position: fixed; right: 18px; bottom: 88px; z-index: 1100;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.18); transition: transform .15s, box-shadow .15s;
}
.wa-fab svg { width: 26px; height: 26px; fill: #fff; }
.wa-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(0,0,0,.22); }

/* RTL friendly */
html[dir="rtl"] .social-links { direction: rtl; }