body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f7f9fc;
  color: #333;
}

h2 {
  color: #2a4d8f;
  font-size: 24px;
}
h3 {
  color: #052c65;
  font-size: 20px;
}
h4 {
  color: #052c65;
  font-size: 18px;
}

/* Tableaux sans bordure */
.table-clean {
  width: 100%;
  border-collapse: collapse;
  border: none;
}

.table-clean th,
.table-clean td {
  border: none;
  padding: 0.8rem;
  text-align: left;
}

/* Header */
.header {
  background: #2a4d8f;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
}

.header h1 {
  margin: 0;
  font-size: 2.5rem;
}

.subtitle {
  margin-top: 0.5rem;
  font-size: 1.2rem;
}

/* HERO */
.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
}

.logo-hero {
  max-width: 150px;
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
  display: block;
}

.hero-text {
  max-width: 800px;
  color: #333; /* couleur texte normale */
}

.cta-buttons {
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  margin: 0 0.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

.btn.primary {
  background: #2a4d8f;
  color: #fff;
}

.btn.secondary {
  background: #e0e0e0;
  color: #333;
}

/* Desktop - Hero */
@media (min-width: 768px) {
  .hero-grid {
  flex-direction: column;
  align-items: center;  /* centre horizontalement */
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
}

  .logo-hero {
    margin-bottom: 0;
    margin-right: 2rem; /* espace entre logo et texte */
    flex: 0 0 auto;
    align-self: center; /* s’assure que le logo est centré sur le texte */
  }
  .hero-text {
    flex: 1 1 0;
  }
}


/* FEATURES */
.features, .pricing, .consult {
  margin: 3rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.features-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.features-list {
  flex: 1;
  min-width: 0;
}

.features-list ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.features-img {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.features-img img,
.screenshot,
#screenshot {
  max-width: 500px; /* limite la largeur du screenshot */
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Desktop - Features */
@media (min-width: 768px) {
  .features-grid {
    flex-direction: row;
    align-items: flex-start;
  }
  .features-list { padding-right: 1rem; }
  .features-img  { padding-left: 1rem; }
}

/* TABLEAUX */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

th, td {
  border: 1px solid #ddd;
  padding: 0.8rem;
  text-align: center;
}

th {
  background: #2a4d8f;
  color: #fff;
}

td:first-child, th:first-child {
  text-align: left;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 1rem;
  background: #2a4d8f;
  color: #fff;
  margin-top: 3rem;
}

.footer a {
  color: #fff;
  text-decoration: underline;
}

.footer a:hover {
  color: #ddd;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.lightbox .close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.hero-img { cursor: zoom-in; } /* indique que l'image est cliquable */

/* Bouton "Retour en haut" */
#backToTop {
  position: fixed;
  bottom: 100px;       /* un peu plus haut que Crisp (≈ 80px) */
  right: 25px;
  z-index: 999;        /* au-dessus de tout, mais pas gênant */
  background-color: #2a4d8f;
  color: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
}

#backToTop:hover {
  background-color: #1f3970;
  transform: translateY(-3px);
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}
