:root {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-card: #252525;
    --accent-primary: #4e9af1;
    --accent-secondary: #ff6b6b;
    --text-primary: #f0f0f0;
    --text-secondary: #b0b0b0;
    --border-radius: 12px;
    --transition: all 0.3s ease;
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
  }

  .container {
    width: 90%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 15px;
  }

  /* Header & Navigation */
  header {
    background-color: rgba(30, 30, 30, 0.95);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-primary);
    z-index: 1001;
  }

  .logo i {
    color: var(--accent-secondary);
  }

  .nav-links {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    align-items: center;
    width: 100%;
    transition: var(--transition);
  }
  .nav-links-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
  .nav-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1rem;
    padding-left: 1.5rem;
    border-left: 1px solid #e0e6ed;
  }
  .btn-login {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 50px;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
  }
  .btn-logout {
    background: linear-gradient(135deg, #ff6363, #2980b9);
    color: white !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 50px;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
  }

  .btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, #2980b9, #3498db);
  }

  .nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
  }

  .nav-links a:hover {
    color: var(--accent-primary);
  }

  .nav-links a:hover::after {
    width: 100%;
  }

  .nav-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
  }

  .btn {
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
  }

  .btn-login {
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
  }

  .btn-login:hover {
    background: rgba(78, 154, 241, 0.1);
  }

  .btn-primary {
    background: var(--accent-primary);
    color: white;
    border: none;
  }

  .btn-primary:hover {
    background: #3a84d0;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(78, 154, 241, 0.3);
  }

  .lang-switcher {
    display: flex;
    gap: 8px;
    margin-left: 15px;
  }

  .lang-btn {
    background: var(--bg-card);
    border: none;
    color: var(--text-secondary);
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
  }

  .lang-btn.active {
    background: var(--accent-primary);
    color: white;
  }


  .hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: 100% 70vh;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    text-align: center;
    padding: 2rem;
    position: relative;
    background-repeat: no-repeat;
    /* Add a subtle overlay for better text readability */
    &::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.3); /* Semi-transparent overlay */
      z-index: 1;
    }

    /* Ensure content is above the overlay */
    > * {
      position: relative;
      z-index: 2;
    }
}

/* Ajout d'un léger voile sur toute l'image pour améliorer la lisibilité globale */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* On s'assure que le contenu est au-dessus du voile */
.hero .hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* NOUVEAU : Le style pour l'effet verre dépoli (glassmorphism) */
.hero-text-box {
    /* Fond semi-transparent */
   // background: rgba(20, 20, 30, 0.5); /* Un fond sombre légèrement bleuté et transparent */

    /* Le flou derrière l'élément ! C'est la magie. */
    //-webkit-backdrop-filter: blur(12px); /* Pour la compatibilité avec Safari */
    //backdrop-filter: blur(12px);

    /* Esthétique du "verre" */
    //border-radius: 16px; /* Bords arrondis */
    //border: 1px solid rgba(255, 255, 255, 0.2); /* Bordure subtile pour simuler le reflet */
    //box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37); /* Ombre pour donner de la profondeur */

    /* Espacement et taille */
    padding: 2.5rem;
    margin-bottom: 2rem; /* Espace avant les boutons */
    max-width: 800px; /* Limite la largeur sur les grands écrans */
}

.hero h1 {
    font-size: 3rem; /* On peut ajuster la taille pour un meilleur impact */
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    max-width: 650px; /* Pour que le paragraphe ne soit pas trop large */
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero .highlight {
    color: #3498db; /* Une couleur vive pour le mot "intelligent" */
}

.hero-buttons {
    display: flex;
    gap: 1rem; /* Espace entre les boutons */
    flex-wrap: wrap; /* Permet aux boutons de passer à la ligne sur mobile */
    justify-content: center;
}

/* On s'assure que les boutons sont bien visibles */
.hero-buttons .btn-primary {
    background-color: #3498db;
    border-color: #3498db;
}

.hero-buttons .btn-secondary {
    background-color: #2c2c2c;
    border: 2px solid #fff;
}
  .btn-lg {
    padding: 15px 30px;
    font-size: clamp(1rem, 2vw, 1.1rem);
    min-width: 200px;
  }

  .btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .btn-secondary:hover {
    background: #2c2c2c;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }

  /* About Us Section */
  .about {
    padding: 100px 0;
    background-color: var(--bg-secondary);
  }

  .about-container {
    display: flex;
    align-items: center;
    gap: 50px;
  }

  .about-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    min-height: 400px;
    background: url(".../../../images/this-one-is-better.png")
      center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .about-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      45deg,
      rgba(44, 62, 80, 0.7),
      rgba(78, 154, 241, 0.5)
    );
  }

  .about-image-content {
    position: relative;
    z-index: 2;
  }

  .about-content {
    flex: 1;
  }

  .section-title {
    margin-bottom: 30px;
  }

  .section-title.center {
    text-align: center;
  }

  .section-title.center h2::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .section-title.center p {
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
  }

  .section-title h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
  }

  .section-title h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 2px;
  }

  .section-title p {
    color: var(--text-secondary);
    max-width: 600px;
    margin-top: 20px;
    font-size: clamp(0.9rem, 2vw, 1rem);
  }

  .about-text {
    margin-bottom: 30px;
  }

  .about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: clamp(0.9rem, 2vw, 1rem);
  }

  /* Stats Section */
  .stats {
    padding: 80px 0;
    position: relative;
  }

  .stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
  }

  .stat-card {
    text-align: center;
    padding: 30px;
    background: rgba(37, 37, 37, 0.7);
    border-radius: var(--border-radius);
    border: 1px solid rgba(78, 154, 241, 0.2);
  }

  .stat-icon {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
  }

  .stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--accent-secondary);
    margin-bottom: 10px;
  }

  .stat-label {
    font-size: 1.2rem;
    color: var(--text-secondary);
  }

  /* Features Section */
  .features {
    padding: 100px 0;
  }

  .cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
  }

  .card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(78, 154, 241, 0.3);
  }

  .card-icon {
    width: 70px;
    height: 70px;
    background: rgba(78, 154, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 28px;
    color: var(--accent-primary);
  }

  .card h3 {
    font-size: clamp(1.3rem, 2vw, 1.5rem);
    margin-bottom: 15px;
  }

  .card p {
    color: var(--text-secondary);
    margin-bottom: auto; /* Pushes the list to the bottom */
    font-size: clamp(0.9rem, 2vw, 1rem);
  }

  .features-list {
    list-style-type: none;
    margin-top: 20px;
  }

  .features-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
  }

  .features-list li::before {
    content: "✓";
    color: var(--accent-secondary);
    margin-right: 10px;
    font-weight: bold;
  }

  .domain-button-container {
    text-align: center;
    margin-top: 20px;
  }

  /* Testimonials Section */
  .testimonials {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--bg-primary), #0a0a0a);
  }

  .testimonials-container {
    position: relative;
    max-width: 900px;
    margin: 50px auto 0;
    overflow: hidden;
  }

  .testimonials-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
  }

  .testimonial-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 40px;
    min-width: 100%;
    box-sizing: border-box;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  .testimonial-card::before {
    content: '"';
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 80px;
    color: var(--accent-secondary);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
  }

  .testimonial-content {
    margin-bottom: 25px;
    font-style: italic;
    color: var(--text-secondary);
    position: relative;
    z-index: 2;
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.8;
  }

  .testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: white;
  }

  .author-info h4 {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 5px;
  }

  .author-info p {
    color: var(--accent-secondary);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
  }

  .rating {
    display: flex;
    gap: 5px;
    margin-top: 15px;
  }

  .rating i {
    color: #ffc107;
    font-size: clamp(0.8rem, 2vw, 1rem);
  }

  .testimonial-nav {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 15px;
  }

  .nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    border: none;
    color: var(--accent-primary);
    font-size: clamp(1rem, 2vw, 1.2rem);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-btn:hover {
    background: var(--accent-primary);
    color: white;
  }

  /* Partners Section */
  .partners {
    padding: 80px 0;
    background-color: var(--bg-secondary);
    position: relative;
    overflow: hidden;
  }

  .partners-container {
    display: flex;
   /* animation: scroll 20s linear infinite;*/
    justify-content: center;
    gap: 20px;
    padding: 20px ;
  }

  .partner-logo {
    width: 300px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    /*background: var(--bg-card);*/
    border-radius: 8px;
    padding: 15px;
    transition: var(--transition);
    margin: 0 15px;
    flex-shrink: 0;
    background: var(--bg-card);
    border-radius: 8px;

    text-align: center;
  }

  .partner-logo i {
    font-size: 2.5rem;
  }

  .partner-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }

  .partner-logo i {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--accent-primary);
  }

  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }

  .partners:hover .partners-container {
    animation-play-state: paused;
  }

  @media (prefers-reduced-motion: reduce) {
    .partners-container {
      animation: none;
    }
  }

  /* CTA Section */
  .cta {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(
        135deg,
        rgba(18, 18, 18, 0.85),
        rgba(18, 18, 18, 0.85)
      ),
      url(".../../../images/bloc-du-bas.png");
    background-size: cover;
    background-position: center;
  }

  .cta-content {
    max-width: 700px;
    margin: 0 auto;
  }

  .cta h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 20px;
  }

  .cta p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
  }

  /* Footer */
  footer {
    background-color: #0a0a0a;
    padding: 60px 0 30px;
    width: 100%;
    margin: 0;
    left: 0;
    right: 0;
  }

  .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .footer-column h3 {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
  }

  .footer-column h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-primary);
  }

  .footer-links {
    list-style-type: none;
  }

  .footer-links li {
    margin-bottom: 15px;
  }

  .footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
  }

  .footer-links a:hover {
    color: var(--accent-primary);
  }

  .footer-links i {
    width: 20px;
  }

  .copyright {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
  }

  /* Responsive Design */
  @media (max-width: 1200px) {
    .nav-links-wrapper {
      gap: 1rem;
    }

    .nav-link {
      padding: 0.5rem;
    }

    .btn-login {
      padding: 0.4rem 1rem !important;
    }
  }

  @media (max-width: 992px) {
    .about-container {
      flex-direction: column;
    }

    .about-image {
      width: 100%;
      min-height: 300px;
    }

    .stat-card {
      padding: 20px;
    }

    .hamburger {
      display: block;
    }

    .nav-links {
      position: fixed;
      top: 80px;
      right: -100%;
      left: auto;
      width: 100%;
      max-width: 320px;
      height: calc(100vh - 80px);
      background: var(--bg-primary);
      flex-direction: column;
      justify-content: flex-start;
      padding: 2rem;
      transition: right 0.4s ease-in-out;
      z-index: 1000;
      box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
      right: 0;
      left: auto;
    }

    .nav-links-wrapper {
      flex-direction: column;
      width: 100%;
      gap: 1rem;
    }

    .nav-link {
      width: 100%;
      justify-content: flex-start;
      padding: 1rem;
      font-size: 1.1rem;
    }

    .nav-actions {
      flex-direction: column;
      width: 100%;
      margin: 1.5rem 0 0 0;
      padding: 1.5rem 0 0 0;
      border-left: none;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .btn-login {
      width: 100%;
      justify-content: center;
      padding: 0.75rem !important;
      margin-bottom: 1rem;
    }

    .lang-switcher {
      margin: 0 auto;
      width: 100%;
      max-width: 200px;
      justify-content: center;
    }

    .hamburger.active span:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active span:nth-child(2) {
      opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
      transform: rotate(-45deg) translate(7px, -6px);
    }
  }

  @media (max-width: 768px) {
    .hero {
      padding: 150px 0 70px;
    }

    .hero-buttons {
      flex-direction: column;
      gap: 15px;
      max-width: 300px;
      margin: 30px auto 0;
    }

    .testimonials-container {
      padding: 0 10px;
    }

    .partner-logo {
      width: 120px;
      height: 70px;
      margin: 0 10px;
    }

    .stats-container {
      grid-template-columns: 1fr;
    }

    .nav-link i {
      font-size: 1.2rem;
    }
  }

  @media (max-width: 576px) {
    .hero h1 {
      font-size: 2rem;
    }

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

    .testimonial-card {
      padding: 30px 20px;
    }

    .partner-logo {
      width: 100px;
      height: 60px;
    }

    .btn-lg {
      min-width: 100%;
    }

    .partners-container {
      animation: scroll 15s linear infinite;
    }

    .nav-links {
      padding: 1.5rem 1rem;
    }

    .nav-link {
      font-size: 1rem;
      padding: 0.8rem;
    }

    .btn-login {
      font-size: 1rem;
    }
  }

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

    .nav-links {
      width: 100%;
    }

    .nav-actions {
      padding-top: 1rem;
      margin-top: 1rem;
    }

    .lang-switcher {
      max-width: 100%;
    }
  }

  @media (max-width: 360px) {
    .nav-link {
      padding: 0.7rem 0.5rem;
    }

    .btn-login {
      padding: 0.7rem !important;
    }

    .lang-btn {
      padding: 0.3rem 0.7rem;
      font-size: 0.9rem;
    }
  }

  @media (max-width: 320px) {
    .cards-container {
      display: block;
      margin-bottom: 40px;
    }

    .card {
      margin-right: auto;
      background: var(--bg-card);
      border-radius: var(--border-radius);
      padding: 20px;
      transition: var(--transition);
      border: 1px solid rgba(255, 255, 255, 0.05);
      display: flex;
      flex-direction: column;
      height: 100%;
      margin-bottom: 20px;
    }

    .nav-links {
      padding: 1rem 0.5rem;
    }

    .nav-link {
      font-size: 0.95rem;
      padding: 0.7rem 0.5rem;
    }

    .nav-link i {
      font-size: 1rem;
    }
  }
