.hero {
    margin: 8.3rem auto 0 auto; /* Centers container horizontally */
    max-width: 102.8rem;
    max-height: 45rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: visible;
}

/* Responsive styles */
@media (max-width: 60rem) {
    .hero {
        margin-top : 3rem;
    }
}




.hero-background {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 17%;
    overflow-x: visible;
    overflow-y: hidden;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20rem;
}
.hero-container {
    margin: 8.8rem auto 0 auto; /* Centers container horizontally */
    max-width: 95%;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 6.8rem;
}

.headline {
    margin-bottom: 2rem;
    color: #222222;
}

.headline-row {
    display: block;
    margin-bottom: 0.1em;
}

@media (max-width: 50rem) {
    .headline-row {
        display: inline;
        margin-bottom: 0;
    }
}

.dynamic-text {
    color: #3b4ef8;
    position: relative;
    display: inline-block;
    transition: opacity 0.5s ease, transform 0.5s ease;
    min-width: 150px;
}



.dynamic-text::after {
    content: "";
    position: absolute;
    left: -5%;
    bottom: -5px;
    width: 110%;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0,5 C20,2 40,8 60,5 C80,2 100,8 100,5' stroke='%23e5ebff' stroke-width='8' fill='none' stroke-linecap='round' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: -1;
    opacity: 0.9;
}


.hero-subtitle {
    max-height: auto;
    max-width: 70rem;
}

.hero-button-container {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8rem;
    gap: 2.5rem;
}

@media (max-width: 40rem) {
    .hero-button-container {
        flex-direction: column;
        margin-top: 1rem;
        margin-bottom: 2rem;        
    };
    
}

.hero-button {
    background-color: var(--color-primary);
    padding: 1.5rem 2.0rem;
    font-weight: var(--font-weight-semibold);
    border-radius: 1.2rem;
    font-size: var(--font-size-button);

    /* Ajouts pour alignement texte + icône */
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    transition: background-color 0.3s;
}

.hero-button:hover {
    background-color: var(--color-primary-hoover);
}

.hero-button .icon {
    width: 1.4em;
    height: 1.4em;
    stroke: white; /* au cas où la couleur du stroke ne suit pas */
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}


.hero-button-secondary {
    display: inline-flex;
    gap: 0.8rem;
    padding: 1.5rem 2.0rem;
    font-weight: var(--font-weight-semibold);
    border-radius: 1.2rem;
    font-size: var(--font-size-button);
    background-color: transparent;
    color: #222;
    border: none; /* Supprimez la bordure */
    outline: 1px solid rgba(0, 0, 0, 0.3); /* Utilisez outline à la place */
    outline-offset: -1px; /* Valeur négative pour dessiner vers l'intérieur */
    text-shadow:none;
    transition: background-color 0.3s;
}

.hero-button-secondary:hover {
    color: #222;
    background-color: #f0f4ff;
    /* box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); */
}

/* Section avec gradient qui s'étend sur toute la largeur */
.gradient-section {
    position: relative;
    padding-bottom:  6.3rem;
    isolation: isolate; /* Crée un nouveau contexte d'empilement */
    margin-bottom: 9rem;
  }
  
  /* Pseudo-élément pour le fond qui déborde */
.gradient-section::before {
    content: "";
    position: absolute;
    inset: 0; /* Équivalent à top: 0; right: 0; bottom: 0; left: 0; */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: linear-gradient(
        to bottom, 
        #ffffff 0%, 
        #f7f9ff 41%,
        
        #e5ebff 100%);
    z-index: -1; /* Place le fond derrière le contenu */
}
  
  /* Conteneur de la vidéo avec son propre fond */
.video-wrapper {
    margin: 0 auto;
    max-width: 102.4rem;
    height: auto; /* 80% de la hauteur de la fenêtre */
    max-height: 56.2rem; /* Hauteur maximale optionnelle */
    min-height: 30rem; /* Hauteur minimale pour éviter qu'elle devienne trop petite */
    background-color: white;
    border-radius: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
  
  /* Vidéo elle-même */
.demo-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}




.grid-container {
    margin-top: 7.6rem;
    display: grid;
    grid-auto-columns: 1fr;
    /* grid-auto-rows: 31rem; */
    gap: 1.9rem;
    grid-template-areas: 
        "box-1 box-2 box-3"
        "box-4 box-4 box-3";
    margin-bottom: 15rem;
}



/* Responsive styles */
@media (max-width: 60rem) {
    .grid-container {
        grid-template-areas: 
            "box-1"
            "box-2"
            "box-3"
            "box-4";
        grid-auto-columns: clamp(20rem, 80vw, 39rem);
        /* grid-auto-rows: 31rem; */
        justify-content: center;   
    }
    
}

.logos-track {
    display: flex;
    gap: 2rem;
    margin-top: 4rem;
}
  
.logos-container {
    display: flex;
    gap: 2rem;
    min-width: 100%;
    flex-shrink: 0;
    list-style: none;
    animation: scroll 20s linear infinite;
}
  
.logo {
    height: 100px;
    width: auto;
    object-fit: contain;
}
  

@keyframes scroll {
    to {
      transform: translateX(calc(-100% - 2rem));
    }
}

/* Pause au survol */
.logos-track:hover .logos-container {
    animation-play-state: paused;
}


/* Style pour les cartes empilées - version simplifiée */
.stacked-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Espace entre les cartes */}

.mini-card {
    background-color: white;
    border-radius: 1rem;
    padding: 0.8rem 1rem; /* Padding réduit */
    width: 90%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.075);
    font-size: var(--font-size-card-text);
    display: flex;
    align-items: center;
    border: none;
}

/* .mini-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
    transition: transform 0.3s ease-in-out;
} */


.mini-card:nth-child(1) {
    border-left: 1px solid #6366f1; /* Bordure bleue */
}

.mini-card:nth-child(2) {
    border-left: 1px solid #f59e0b; /* Bordure orange */
}

.mini-card:nth-child(3) {
    border-left: 1px solid #10b981; /* Bordure verte */
}

.emoji {
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #f5f5f5;
    border-radius: 50%;
}



.screenshot-container {
    border-radius: 1.2rem;
    overflow: hidden;
    height: 17rem;
    width: auto;
    aspect-ratio: 16/9; /* Maintient un ratio d'aspect cohérent */
}

.screenshot-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; /* Change de 'cover' à 'contain' */
    object-position: top right; /* Aligne l'image en haut */
}

/* Structure de base */
.method-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.method-card {
    display: flex;
    align-items: center;
    width: 100%;
    height: 7.8rem;
    gap: 1rem;
    background-color: white;
    border-radius: 1rem;
    padding: 1rem 1.2rem;
    box-shadow: 3px 3px 4px 0 rgba(0, 0, 0, 0.1);
    border: 0.2px solid rgba(226, 232, 240, 0.9);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* .method-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
} */

/* .method-icon {
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
} */

.method-text .text-methods-cards {
    margin-top: 0.21rem;
}

