/* Reset de base */

/* structure principale */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1; /* prend tout l'espace restant entre le header et le footer */
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #f5f7fa;
  color: #1e1e2f;
  line-height: 1.6;
  font-size: 16px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
header {
  background: #0c1041;
  color: white;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(12,16,65,0.7);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  cursor: pointer; /* change ici */
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #5c6ac4; /* bleu clair complémentaire */
}

.btn-primary {
  background: #5c6ac4;
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: #434fa1;
  color: white;
}

/* Main Hero */
#hero {
  text-align: center;
  padding: 100px 20px 60px;
  background: linear-gradient(135deg, #0c1041 0%, #5c6ac4 100%);
  color: white;
  border-radius: 10px;
  margin-bottom: 60px;
  box-shadow: 0 10px 30px rgba(12,16,65,0.4);
}

#hero h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

#hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* Sections */
section h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  color: #0c1041;
  text-align: center;
}

#features ul {
  list-style: disc inside;
  max-width: 700px;
  margin: 0 auto 60px auto;
  font-size: 1.1rem;
  color: #555;
}

#features ul li {
  margin-bottom: 15px;
}

/* Pricing */
.pricing-cards {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.1);
  padding: 30px;
  max-width: 320px;
  text-align: center;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(92,106,196,0.3);
}

.card h3 {
  margin-bottom: 15px;
  color: #0c1041;
  font-size: 1.5rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e1e2f;
  margin-bottom: 20px;
}

.price span {
  font-size: 1rem;
  font-weight: 400;
  color: #777;
}

.card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 25px;
}

.card ul li {
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
  color: #555;
}

.card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #5c6ac4;
  font-weight: bold;
}

.btn-secondary {
  background: #0c1041;
  color: white;
  padding: 10px 25px;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
  display: inline-block;
}

.btn-secondary:hover {
  background: #2a2e72;
}

/* Demo Section */
#demo p {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #1e1e2f;
}

#demo a.btn-primary {
  display: block;
  width: max-content;
  margin: 0 auto 60px auto;
}

/* Contact Section */
#contact p {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 60px;
  color: #1e1e2f;
}

#contact a {
  color: #5c6ac4;
  font-weight: 600;
  text-decoration: none;
}

#contact a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background: #0c1041;
  color: #c5c7d6;
  text-align: center;
  padding: 15px 0;
  font-size: 0.9rem;
  user-select: none;
}

/* Responsive */
@media (max-width: 768px) {
  nav ul {
    gap: 15px;
  }

  #hero h2 {
    font-size: 2rem;
  }

  .pricing-cards {
    flex-direction: column;
    align-items: center;
  }
}

.hero-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 500px;
  text-align: left;
}

.hero-text h2 {
  font-size: 2.6rem;
  margin-bottom: 20px;
  color: white;
}

.hero-text h2 .highlight {
  color: #ffc107;
}

.hero-text p {
  font-size: 1.2rem;
  color: #f1f1f1;
  margin-bottom: 30px;
}

.hero-img {
  flex: 1 1 400px;
  text-align: center;
}

.hero-img img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tooltip-icon {
  display: inline-block;
  margin-left: 8px;
  background: #a7a6ad;
  color: #0c1041;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: help;
  position: relative;
  line-height: 18px;
  font-family: sans-serif;
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  width: 250px;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 10px;
  position: absolute;
  z-index: 999;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.3s ease;
  font-size: 0.85rem;
  pointer-events: none;
}

.tooltip-icon:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

footer {
  background: #0c1041;
  color: #c5c7d6;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
  padding: 0;
}

.footer-links li a {
  color: #c5c7d6;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-links li a:hover {
  color: #39379c;
  text-decoration: underline;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.profile-icon {
  font-size: 1.8rem;
  color: white;
  transition: color 0.3s ease;
}

.profile-icon:hover {
  color: #39379c;
}

.logo a {
  position: relative;
  z-index: 1100; /* au-dessus du header */
  color: inherit;
  text-decoration: none;
}

.logo-3d a {
  font-family: 'Segoe UI', sans-serif;
  font-size: 2.5em;
  font-weight: bold;
  color: white;
  text-decoration: none;
  text-shadow: 1px 1px 0 #ccc, 
               2px 2px 0 #bbb, 
               3px 3px 0 #aaa,
               4px 4px 0 #999;
  background: linear-gradient(135deg, #333, #000);
  padding: 10px 20px;
  border-radius: 10px;
  box-shadow: 3px 3px 10px rgba(0,0,0,0.4);
  display: inline-block;
  transition: transform 0.2s ease-in-out;
}

.logo-3d a:hover {
  transform: scale(1.05);
  box-shadow: 4px 4px 15px rgba(0,0,0,0.6);
}
