/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #fff;
    color: #333;
    margin: 0;
    padding-top: 90px; /* Add padding to account for floating navbar */
    line-height: 1; /* Empêcher les espaces dus à line-height */
}

/* Supprimer les espaces blancs entre les éléments inline-block */
html {
    font-size: 16px;
    line-height: 1;
}

/* VIDEO SECTION */
.video-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -90px; /* Compensate for the navbar padding */
    margin-bottom: 0; /* Éliminer l'espace avec la section suivante */
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(4px); /* Effet de flou sur la vidéo */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Overlay semi-transparent */
    z-index: 2;
}

.video-content {
    position: absolute;
    top: 120px; /* Positionne le contenu au-dessus de la vidéo */
    left: 5%; /* Marge à gauche */
    right: 5%; /* Marge à droite */
    z-index: 3;
    color: white;
    text-align: left; /* Alignement à gauche */
    padding: 20px;
    max-width: 90%; /* Utiliser presque toute la largeur disponible */
    width: 90%; /* S'assurer que la largeur est respectée */
}

.video-content h1 {
    font-size: 6rem; /* Taille doublée */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    word-wrap: break-word; /* Permettre au texte de se couper si nécessaire */
    hyphens: auto; /* Permettre les césures pour les mots longs */
}

.video-content h1:last-of-type {
    margin-bottom: 60px; /* Augmenter l'espace entre le dernier h1 et le bouton */
}

.video-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.video-content .btn {
    margin-top: 40px; /* Ajouter une marge supplémentaire au-dessus du bouton */
    display: inline-block; /* Assurer que les marges sont bien prises en compte */
}

/* Flèche de défilement */
.scroll-arrow {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    cursor: pointer;
    animation: bounce 2s infinite;
    color: white;
    background-color: rgba(0, 0, 0, 0.3);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.scroll-arrow:hover {
    background-color: rgba(255, 195, 0, 0.8);
    color: #222;
    transform: translateX(-50%) translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.scroll-arrow svg {
    width: 40px;
    height: 40px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive adjustments for video section */
@media (max-width: 768px) {
    .video-content {
        left: 5%;
        right: 5%;
        max-width: 90%;
        width: 90%;
    }
    
    .video-content h1 {
        font-size: 4.4rem; /* Taille doublée pour medium screens */
    }
    
    .video-content p {
        font-size: 1.2rem;
    }
    
    .video-section {
        height: 80vh;
    }
    
    .video-content h1:last-of-type {
        margin-bottom: 50px; /* Légèrement réduit sur tablette mais toujours spacieux */
    }
    
    .video-content .btn {
        margin-top: 30px; /* Légèrement réduit sur tablette */
    }
}

@media (max-width: 480px) {
    .video-content {
        left: 5%;
        right: 5%;
        max-width: 90%;
        width: 90%;
        top: 100px; /* Ajuster la position verticale sur petits écrans */
    }
    
    .video-content h1 {
        font-size: 3.6rem; /* Taille doublée pour small screens */
    }
    
    .video-content p {
        font-size: 1rem;
    }
    
    .video-section {
        height: 70vh;
    }
    
    .video-content h1:last-of-type {
        margin-bottom: 40px; /* Légèrement réduit sur mobile mais toujours spacieux */
    }
    
    .video-content .btn {
        margin-top: 20px; /* Légèrement réduit sur mobile */
    }
}

/* FEATURES SECTION (3 COLONNES) */
.features-section {
    background-color: #FFC300;
    padding: 120px 5% 140px; /* Augmentation significative du padding vertical */
    text-align: center;
    margin: 0; /* Éliminer les marges pour supprimer l'espace blanc */
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
}

.features-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 50px; /* Augmentation de l'espace entre les colonnes */
}

.feature-column {
    flex: 1;
    padding: 50px 30px; /* Plus de padding pour des colonnes plus hautes */
    background-color: #fff;
    border-radius: 15px;
    border: 2px solid black;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-column:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-column:hover .feature-icon, 
.feature-column:hover h3 {
    color: #333;
}

.feature-column:hover p {
    color: #666;
}

.feature-icon {
    font-size: 4.5rem; /* Icône plus grande */
    margin-bottom: 30px; /* Plus d'espace sous l'icône */
    color: #333;
}

.feature-column h3 {
    font-size: 1.8rem; /* Titre plus grand */
    margin-bottom: 25px; /* Plus d'espace sous le titre */
    color: #333;
}

.feature-column p {
    font-size: 1.1rem; /* Texte légèrement plus grand */
    color: #666;
    line-height: 1.6; /* Interligne augmenté pour plus d'espace vertical */
}

/* Responsive pour la section features */
@media (max-width: 768px) {
    .features-section {
        padding: 80px 5% 100px; /* Légèrement moins de padding sur mobile */
    }
    
    .features-container {
        flex-direction: column;
        gap: 40px; /* Légèrement moins d'espace sur mobile */
    }
    
    .feature-column {
        margin-bottom: 0; /* Supprimé car nous utilisons gap */
        padding: 40px 20px; /* Légèrement moins de padding sur mobile */
    }
    
    .feature-icon {
        font-size: 4rem; /* Légèrement plus petit sur mobile */
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .features-section {
        padding: 60px 5% 80px; /* Encore moins de padding sur très petit écran */
    }
    
    .feature-column {
        padding: 30px 15px;
    }
    
    .feature-icon {
        font-size: 3.5rem;
        margin-bottom: 20px;
    }
    
    .feature-column h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
}

/* SECTIONS */
section {
    padding: 100px 5%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Exemption pour la section des cases carrées, qui a son propre style spécifique */
.squares-section {
    padding: 80px 5%;
    background-color: #f9f9f9;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
}

/* Supprimer l'espace entre la vidéo et la section jaune */
.video-section + .features-section {
    padding-top: 100px; /* Augmentation du padding supérieur pour une meilleure transition */
}

.landing-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.landing-card {
    flex: 1;
    max-width: 600px;
    padding: 40px;
    border-radius: 15px;
    background: white;
    border: 3px solid black;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.landing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15);
}

.landing-image {
    flex: 1;
    max-width: 45%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.landing-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .landing-section {
        flex-direction: column;
        text-align: center;
    }
    .landing-card, .landing-image {
        max-width: 100%;
    }
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        text-align: center;
    }
    .landing-card {
        padding: 30px;
    }
    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .landing-card {
        padding: 20px;
    }
    .btn {
        font-size: 14px;
    }
}

/* Style spécifique pour la section CTA FINAL */
.landing-section:last-of-type {
    background-color: #FFC300;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 100px 5%;
}

/* Styles pour la carte et l'image dans la section CTA FINAL */
.landing-section:last-of-type .landing-card {
    background-color: white;
    border: 3px solid black;
    color: #333;
}

.landing-section:last-of-type .landing-image img {
    border-radius: 15px;
    border: none;
    box-shadow: none;
    max-width: 85%;
    transition: transform 0.3s ease;
}

.landing-section:last-of-type .landing-image img:hover {
    transform: scale(1.05); /* Légère augmentation au survol pour l'interaction */
}

/* SECTION CASES CARRÉES */
.section-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 50px;
    margin-top: 30px; /* Espace au-dessus des titres, sauf le premier */
    position: relative;
    display: inline-block;
    width: 100%; /* Pour centrer correctement le titre */
    text-align: center;
}

/* Ajouter plus d'espace avant le second titre */
.section-title:nth-of-type(2) {
    margin-top: 80px; /* Espace plus important avant le second titre */
}

.section-title:first-of-type {
    margin-top: 0; /* Pas de marge pour le premier titre */
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #FFC300;
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.squares-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 50px; /* Marge en bas pour séparer du titre suivant */
    width: 100%;
}

.square-box {
    position: relative;
    width: 100%;
    border: 2px solid #333;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Technique pour maintenir le ratio carré */
.square-box:before {
    content: "";
    display: block;
    padding-top: 100%; /* Ratio 1:1 pour un carré parfait */
}

.square-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    text-align: center;
}

.square-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.square-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #333;
}

.square-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.4;
}

/* Responsive pour les carrés */
@media (max-width: 1024px) {
    .squares-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .squares-container {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .square-content h3 {
        font-size: 1.3rem;
    }
}

/* BANDEAU LOGOS PARTENAIRES */
.trust-banner {
    padding: 40px 0 60px; /* Ajustement du padding bas pour une meilleure transition */
    background-color: #f9f9f9;
    text-align: center;
    overflow: hidden;
    /* Suppression des bordures qui peuvent créer un effet d'ombre */
    border-top: none;
    border-bottom: none;
    box-shadow: none; /* Assure qu'aucune ombre n'est présente */
    margin: 0; /* S'assurer qu'il n'y a pas de marge */
}

.trust-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 30px;
    font-weight: 600;
    position: relative;
}

.trust-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #FFC300;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.logos-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.logos-slide {
    display: inline-block;
    animation: slide 30s linear infinite;
    padding: 10px 0;
}

.client-logo {
    height: 60px;
    margin: 0 30px;
    vertical-align: middle;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

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

/* Responsive pour le bandeau de logos */
@media (max-width: 768px) {
    .trust-banner {
        padding: 30px 0;
    }
    
    .trust-title {
        font-size: 1.5rem;
    }
    
    .client-logo {
        height: 45px;
        margin: 0 20px;
    }
}

@media (max-width: 480px) {
    .trust-banner {
        padding: 20px 0;
    }
    
    .trust-title {
        font-size: 1.3rem;
    }
    
    .client-logo {
        height: 35px;
        margin: 0 15px;
    }
}

/* Assurer une transition fluide entre les sections logos et carrés */
.trust-banner + .squares-section {
    padding-top: 20px; /* Réduire le padding supérieur de la section carrés quand elle suit la section logos */
}

