/* ---------- RESET SIMPLE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #1c1f23;
  background-color: #f5f6f8;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Couleurs principales */
:root {
  --green-dark: #0f4438;
  --green-main: #00988f;
  --green-soft: #e5f3ed;
  --text-muted: #4a5555;
}

/* ---------- LAYOUT GÉNÉRAL ---------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- HEADER & NAV ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(16, 24, 32, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  position: relative;
}
/* Bouton burger */
.nav-toggle {
  display: none;           /* caché sur grand écran */
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.6rem;
  cursor: pointer;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
}

.logo-img {
  height: 70px;
  width: auto;
  display: block;
}

.logo-text {
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.95rem;
}

.nav a {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  color: #d6e7e2;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.nav a:hover {
  background-color: #ffffff;
  color: var(--green-dark);
  transform: translateY(-1px);
}

/* ---------- HERO ---------- */
.hero {
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(circle at top left, #00a79a33 0, transparent 50%),
    radial-gradient(circle at bottom right, #0f443814 0, #101820ff 55%);
  color: #f8fffd;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr);
  gap: 2.8rem;
  align-items: center;
}

.hero-badge {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: #bcd5cf;
}

.hero-badge span {
  color: #ffffff;
  font-weight: 600;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 4.4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  max-width: 32rem;
  margin-bottom: 0.8rem;
  color: #d0e3dd;
}

.hero-specialties {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  font-size: 0.96rem;
  color: #d0e3dd;
}

.hero-specialties li + li {
  margin-top: 0.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-tags span {
  font-size: 0.85rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(229, 243, 237, 0.4);
  background-color: rgba(229, 243, 237, 0.12);
  color: #d0e3dd;
}

.hero-card {
  background: #ffffff;
  border-radius: 1.2rem;
  padding: 1.7rem 1.6rem;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.25);
  color: #1c1f23;
}

.hero-card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.9rem;
  color: var(--green-dark);
}

.hero-card ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.hero-card li i {
  color: var(--green-main);
  margin-right: 0.4rem;
}

.hero-contact-mini {
  margin-top: 0.6rem;
  padding-top: 0.7rem;
  border-top: 1px dashed rgba(15, 68, 56, 0.2);
  font-size: 0.9rem;
}

.hero-contact-mini .mini-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--green-dark);
}

.hero-contact-mini i {
  margin-right: 0.3rem;
  color: var(--green-main);
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  padding: 3.5rem 0;
  background-color: #ffffff;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 0.7rem;
  color: var(--green-dark);
}

.section-intro {
  max-width: 40rem;
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Grids génériques */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.2rem;
  align-items: flex-start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.7rem;
}

/* Cartes génériques */
.card {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1.4rem 1.4rem 1.2rem;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(15, 68, 56, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.card h3,
.card h4 {
  color: var(--green-dark);
  margin-bottom: 0.4rem;
}

.card-icon {
  margin-right: 0.4rem;
  color: var(--green-main);
}

/* ---------- DIRECTEUR GÉNÉRAL ---------- */
.director-card {
  background: linear-gradient(135deg, #ffffff 0, #e6f6f3 100%);
}

.director-name {
  margin-top: 0.8rem;
  font-weight: 600;
  color: var(--green-dark);
  font-size: 0.95rem;
}

.director-name span {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- BOUTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.1s ease;
  gap: 0.4rem;
}

.btn-icon {
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--green-main);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #007c75;
  transform: translateY(-1px);
}

.btn-outline {
  border-color: #e2f1ec;
  color: #e2f1ec;
  background: transparent;
}

.btn-outline:hover {
  background-color: #ffffff;
  color: var(--green-dark);
}

/* ---------- À PROPOS ---------- */
.about-cards {
  display: grid;
  gap: 1.2rem;
}

/* ---------- SERVICES ---------- */
.service-card {
  text-align: left;
}

.service-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green-soft);
  color: var(--green-dark);
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

/* ---------- PRODUITS ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.product-column h3 {
  margin-bottom: 1rem;
  color: var(--green-dark);
}

.product-card {
  margin-bottom: 0.9rem;
}

/* ---------- PROCESSUS / TIMELINE ---------- */
.timeline {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.timeline-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: flex-start;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--green-main);
  color: #ffffff;
  font-weight: 600;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
  color: var(--green-dark);
}

.step-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.7fr);
  gap: 2.3rem;
  align-items: flex-start;
}

.contact-info {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  font-size: 0.95rem;
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.contact-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--green-main);
  color: #ffffff;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.contact-info a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(0, 152, 143, 0.4);
}

.contact-form {
  background-color: #f5f6f8;
  border-radius: 0.95rem;
  padding: 1.5rem;
  border: 1px solid rgba(15, 68, 56, 0.06);
}

.form-group {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0.95rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  border-radius: 0.6rem;
  border: 1px solid rgba(15, 68, 56, 0.16);
  padding: 0.55rem 0.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  background-color: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-main);
  box-shadow: 0 0 0 1px rgba(0, 152, 143, 0.25);
}

/* QR code éventuel */
.contact-qr {
  margin-top: 1rem;
  max-width: 180px;
  border-radius: 0.5rem;
}

/* Liens sociaux */
.social-links {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.social-circle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 68, 56, 0.18);
  color: var(--green-dark);
  background: #ffffff;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease,
    border-color 0.15s ease;
}

.social-circle:hover {
  background: var(--green-main);
  color: #ffffff;
  border-color: var(--green-main);
  transform: translateY(-1px);
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 1.5rem 0 1.2rem;
  background-color: #101820ff;
  color: #eaf3f0;
  margin-top: 1rem;
}

.footer-content {
  text-align: center;
  font-size: 0.9rem;
}

.footer-small {
  font-size: 0.8rem;
  margin-top: 0.3rem;
  opacity: 0.85;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-2,
  .products-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-content {
    gap: 0.7rem;
    height: auto;
    padding: 0.6rem 0;
  }
  .logo {
    margin-left: 0.75rem;  /* espace avec le bord gauche */
  }
  /* on affiche le burger */
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2.2rem;        /* icône plus grande */
    padding: 0.3rem;          /* zone cliquable plus large */
    margin-right: 0.75rem;    /* espace avec le bord droit */
    cursor: pointer;
  }
  /* menu caché par défaut sur mobile */
  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #101820ff;
    flex-direction: column;
    padding: 0.75rem 1.5rem 1rem;
    gap: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 900;
  }

  /* quand header a la classe nav-open → on affiche */
  .header.nav-open .nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}


@media (max-width: 640px) {
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .section,
  .section-alt {
    padding: 2.6rem 0;
  }

  .hero {
    padding: 3.2rem 0 2.4rem;
  }
}
.about-img-wrapper {
  text-align: center;
  margin-top: 1.5rem;
}

.about-img {
  width: 100%;
  max-width: 480px;
  border-radius: 1rem;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}
.service-card {
  text-align: center;
  padding-top: 1rem;
}

.service-img {
  width: 100%;
  max-width: 140px;
  height: auto;
  margin: 0 auto 1rem;
  border-radius: 0.8rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}
.product-img {
  width: 100%;
  max-width: 240px;
  margin: 1rem auto 0;
  border-radius: 0.7rem;
  display: block;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}



/* ---------- ANIMATIONS IMAGES ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* images qui s'animent à l'apparition */
.about-img,
.product-img {
  animation: fadeInUp 0.8s ease-out;
}
 
/* ---------- SLIDER HERO AVEC TEXTE (CORRECTION) ---------- */

.hero-images-slider {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.slide-track {
  width: 100%;
  height: 260px;
  position: relative;
  overflow: hidden;
  border-radius: 1.2rem;
}

/* Chaque slide */
.slide-item {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

/* Image */
.slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.2rem;
  opacity: 0;
  animation: fadeSlide 12s infinite;
}

/* Texte visible automatiquement */
.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0));
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 1.2rem;

  opacity: 0;
  transform: translateY(10px);
  animation: fadeSlide 12s infinite;
}

/* ----------- DÉLAIS AUTO POUR CHAQUE SLIDE ----------- */
.slide-item:nth-child(1) img,
.slide-item:nth-child(1) .slide-overlay { animation-delay: 0s; }

.slide-item:nth-child(2) img,
.slide-item:nth-child(2) .slide-overlay { animation-delay: 2s; }

.slide-item:nth-child(3) img,
.slide-item:nth-child(3) .slide-overlay { animation-delay: 4s; }

.slide-item:nth-child(4) img,
.slide-item:nth-child(4) .slide-overlay { animation-delay: 6s; }

.slide-item:nth-child(5) img,
.slide-item:nth-child(5) .slide-overlay { animation-delay: 8s; }

.slide-item:nth-child(6) img,
.slide-item:nth-child(6) .slide-overlay { animation-delay: 10s; }

/* Animation */
@keyframes fadeSlide {
  0%   { opacity: 0; }
  8%   { opacity: 1; }
  25%  { opacity: 1; }
  33%  { opacity: 0; }
  100% { opacity: 0; }
}

.linkedin-icon {
  background-color: #0A66C2 !important; /* Bleu LinkedIn */
  color: #ffffff !important;
  border-color: #0A66C2 !important;
}
.linkedin-social {
  background-color: #0A66C2 !important; /* Bleu LinkedIn */
  color: #ffffff !important;
  border-color: #0A66C2 !important;
}
/* --------- CONTACT – STYLE AMÉLIORÉ --------- */

/* Fond légèrement différent pour la section contact */
#contact.section-alt {
  background: radial-gradient(circle at top left, #e5f3ed 0, #ffffff 55%, #f5f6f8 100%);
}

/* On étire les deux colonnes pour faire deux "cartes" équilibrées */
#contact .contact-grid {
  align-items: stretch;
}

/* Carte de gauche (coordonnées) */
#contact .contact-grid > div:first-child {
  background: linear-gradient(135deg, #0f4438 0, #008c83 55%, #00a79a);
  border-radius: 1.1rem;
  padding: 1.7rem 1.6rem;
  color: #ecf7f3;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

/* Titre + intro côté gauche en blanc */
#contact .section-title {
  color: #ffffff;
}

#contact .section-intro {
  color: #cfe7df;
  margin-bottom: 1.6rem;
}

/* Liste des infos de contact */
#contact .contact-info {
  margin-top: 0.4rem;
}

#contact .contact-info li {
  align-items: flex-start;
}

/* Icônes rondes côté gauche (un peu plus transparentes) */
#contact .contact-icon {
  background-color: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Liens dans la zone verte : en blanc souligné léger */
#contact .contact-info a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}

/* Liens sociaux en bas (WhatsApp / LinkedIn) adaptés au fond sombre */
#contact .social-links {
  margin-top: 1.5rem;
}

#contact .social-circle {
  background: rgba(0, 0, 0, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

#contact .social-circle:hover {
  background: #ffffff;
  color: #0f4438;
  border-color: #ffffff;
}

/* On garde ton bleu LinkedIn pour la petite icône de la liste */
#contact .linkedin-icon {
  background-color: #0A66C2 !important;
  border-color: #0A66C2 !important;
}

/* Colonne de droite : on transforme le formulaire en vraie carte bien nette */
#contact .contact-form {
  background-color: #ffffff;
  border-radius: 1.1rem;
  padding: 1.7rem 1.6rem;
  border: 1px solid rgba(15, 68, 56, 0.07);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

/* Petit détail : label un peu plus foncé */
#contact .form-group label {
  color: #304040;
}

/* Responsive : sur mobile les deux cartes l’une sous l’autre avec un peu d’espace */
@media (max-width: 900px) {
  #contact .contact-grid {
    gap: 1.6rem;
  }
}

/* --- POPUP ALERT SUCCÈS --- */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
  animation: fadeIn 0.3s ease-out;
  z-index: 9999;
}

.popup-box {
  background: #ffffff;
  padding: 1.8rem 2rem;
  width: 90%;
  max-width: 380px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0,0,0,0.15);
  animation: popIn 0.35s ease-out;
}

.popup-icon {
  font-size: 3rem;
  color: #28a745;
  margin-bottom: 0.5rem;
}

.popup-btn {
  margin-top: 1.2rem;
  background: #28a745;
  color: #fff;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.2s;
}

.popup-btn:hover {
  background: #218838;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}
