/* ---------- RESET & BASE ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
  background: #f8f9fb;
  color: #1e2a3a;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 0;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---------- HEADER (clair) ---------- */
header {
  background: #ffffff;
  color: #1e2a3a;
  padding: 1rem 0;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid #e8893c;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* ---------- LOGO ---------- */
.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  height: 70px;
  width: auto;
  max-height: 90px;
  object-fit: contain;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c3e66;
  letter-spacing: 0.5px;
}

.logo .slogan {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: #4a5a6e;
  letter-spacing: 1px;
}

/* ---------- NAVIGATION ---------- */
nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  font-weight: 500;
  color: #2c3e66;
  transition: color 0.3s;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}

nav a:hover {
  color: #e8893c;
  border-bottom-color: #e8893c;
}

/* ---------- BOUTONS ---------- */
.btn-primary {
  display: inline-block;
  background: #e8893c;
  color: #ffffff;
  padding: 0.8rem 2.2rem;
  border-radius: 40px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 4px 14px rgba(232, 137, 60, 0.35);
}

.btn-primary:hover {
  background: #d1772e;
  transform: scale(1.02);
}

/* ---------- HERO (clair) ---------- */
.hero {
  background: linear-gradient(145deg, #f0f3f8 0%, #e4e9f0 100%);
  color: #1e2a3a;
  padding: 4rem 0;
  border-bottom: 4px solid #e8893c;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.hero-text {
  max-width: 600px;
}

.hero-text h2 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  color: #2c3e66;
}

.hero-text p {
  font-size: 1.2rem;
  color: #4a5a6e;
  margin-bottom: 2rem;
}

.hero-avatar {
  background: #ffffff;
  backdrop-filter: none;
  padding: 1.5rem 2rem;
  border-radius: 24px;
  text-align: center;
  border: 1px solid #e8ecf1;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  min-width: 180px;
}

.hero-logo-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 50%;
  background: #f8f9fb;
  padding: 0.5rem;
  display: block;
  margin: 0 auto 0.5rem;
  border: 2px solid #e8893c;
}

.hero-avatar span {
  display: block;
  font-weight: 600;
  font-size: 1.2rem;
  color: #2c3e66;
}

.hero-avatar small {
  font-size: 0.8rem;
  color: #4a5a6e;
}

/* ---------- SECTION TITRE ---------- */
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  color: #2c3e66;
}

.section-title::after {
  content: '';
  display: block;
  width: 70px;
  height: 4px;
  background: #e8893c;
  margin: 0.5rem auto 0;
  border-radius: 4px;
}

/* ---------- SERVICES ---------- */
.services {
  padding: 4rem 0;
  background: #ffffff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.service-card {
  background: #f8f9fb;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #e8ecf1;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
  border-color: #e8893c;
}

.service-icon {
  font-size: 2.8rem;
  color: #e8893c;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.4rem;
  color: #2c3e66;
  margin-bottom: 0.6rem;
}

.service-card p {
  color: #4a5a6e;
}

/* ---------- À PROPOS ---------- */
.about {
  padding: 4rem 0;
  background: #f8f9fb;
}

.about-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.about-text {
  flex: 2;
  min-width: 280px;
}

.about-text p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: #1e2a3a;
}

.about-signature {
  flex: 1;
  min-width: 180px;
  text-align: center;
  background: #ffffff;
  padding: 2rem 1.5rem;
  border-radius: 24px;
  border: 1px solid #e8ecf1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.about-logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 50%;
  display: block;
  margin: 0 auto 0.5rem;
  border: 2px solid #e8893c;
  padding: 0.3rem;
}

.about-signature span {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2c3e66;
  letter-spacing: 1px;
}

/* ---------- CONTACT ---------- */
.contact {
  padding: 4rem 0;
  background: #ffffff;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-infos p {
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #1e2a3a;
}

.contact-infos i {
  width: 1.8rem;
  color: #e8893c;
  font-size: 1.2rem;
}

.contact-infos a {
  color: #2c3e66;
  transition: color 0.2s;
}

.contact-infos a:hover {
  color: #e8893c;
}

.social-links {
  display: flex;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.social-links a {
  background: #2c3e66;
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.2s;
}

.social-links a:hover {
  background: #e8893c;
  transform: scale(1.05);
}

.contact-form {
  background: #f8f9fb;
  padding: 2rem;
  border-radius: 24px;
  border: 1px solid #e8ecf1;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.3rem;
  color: #2c3e66;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid #d0d7e2;
  border-radius: 40px;
  font-size: 1rem;
  background: #ffffff;
  transition: border 0.2s, box-shadow 0.2s;
  color: #1e2a3a;
}

.form-group textarea {
  border-radius: 20px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #e8893c;
  box-shadow: 0 0 0 3px rgba(232, 137, 60, 0.15);
}

.contact-form .btn-primary {
  width: 100%;
  text-align: center;
}

/* ---------- FOOTER ---------- */
footer {
  background: #2c3e66;
  color: #b8c9e0;
  padding: 2rem 0;
  text-align: center;
  border-top: 4px solid #e8893c;
}

.footer-container p {
  margin: 0.2rem 0;
}

.footer-legal {
  font-size: 0.8rem;
  opacity: 0.85;
}

.footer-legal a {
  color: #b8c9e0;
}

.footer-legal a:hover {
  color: #e8893c;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 0.8rem;
  }

  nav ul {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-text h2 {
    font-size: 2rem;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-avatar {
    width: 100%;
    max-width: 280px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .logo-img {
    height: 40px;
  }

  .hero-logo-img {
    width: 80px;
    height: 80px;
  }

  .about-logo-img {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .logo h1 {
    font-size: 1.4rem;
  }

  .btn-primary {
    padding: 0.6rem 1.6rem;
  }

  .service-card {
    padding: 1.5rem 1rem;
  }
    
/* ---------- CHAMP TÉLÉPHONE ---------- */
.form-group small {
  color: #4a5a6e;
  font-size: 0.8rem;
  margin-top: 0.3rem;
  display: block;
}

.form-group small i {
  margin-right: 0.3rem;
}

/* Groupe checkbox */
.checkbox-group {
  margin: 1.2rem 0;
}

.checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 400;
  font-size: 0.9rem;
  cursor: pointer;
  color: #1e2a3a;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: #e8893c;
  cursor: pointer;
}

.checkbox-group a {
  color: #2c3e66;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.checkbox-group a:hover {
  color: #e8893c;
}

/* Validation des champs */
.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
  border-color: #27ae60;
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .checkbox-group label {
    font-size: 0.85rem;
  }
}
    
}