/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #2C2C2C;
    background-color: #fff;
    overflow-y: auto; /* Permet le défilement sur le body */
    overflow-x: hidden; /* Empêche le défilement horizontal */
}

/* Appliquer la police à tout le document */
body, input, textarea, button {
    font-family: 'Open Sans', sans-serif; /* Remplacez 'Open Sans' par la police de votre H1 si différente */
}

/* Assurez-vous que votre H1 utilise la même police */
h1 {
    font-family: 'Open Sans', sans-serif; /* Même police que ci-dessus */
}

/* Layout principal */
.container {
    display: flex;
    max-width: 1100px; /* Ajustez cette valeur selon vos préférences */
    width: 100%;
    margin: 0 auto;
    min-height: 100vh; /* Assure que le conteneur prend au moins toute la hauteur de la fenêtre */
}

/* Barre latérale */
.sidebar {
    width: 200px; /* Réduisez cette valeur si nécessaire */
    background-color: #F5F5F5;
    padding: 20px;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column; /* Permet le défilement vertical si nécessaire */
    overflow-y: auto; /* Permet le défilement de la sidebar si nécessaire */
    overflow: visible; /* Permet au contenu de déborder visiblement */
}

/* Logo */
.logo {

    margin-top: 40px;
    margin-bottom: 30px;

    flex-shrink: 0; /* Empêche le logo de rétrécir */
}

.logo img {
    max-width: 110%;
    height: auto;
    display: block;
}

/* Navigation */
.sidebar nav ul {
    list-style-type: none;
    padding: 0;
}

.sidebar nav ul li {
    margin-bottom: 15px;
}

.highlight {
    
    /*background-color: #ff5f5f31; /* Couleur de surlignement (jaune doré) */
    padding: 2px 4px;
    border-radius: 3px;
}

.sidebar nav ul li a {
    display: inline-block;
    padding: 12px;
    background-color: #248556; /* Couleur verte, ajustez selon vos préférences */
    color: white;
    text-decoration: none;
    border-radius: 50%;
    font-size: 20px;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 26px;
    transition: all 0.3s ease;
}

.sidebar nav ul li a:hover {
    background-color: #0056b3; /* Couleur de survol, ajustez selon vos préférences */
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.2);
}

/* Contenu principal */
.content {
    margin-top: 6px;
    margin-left: 200px; /* Doit correspondre à la largeur de la sidebar */
    padding: 40px 60px 40px 40px; /* Augmentation du padding droit */
    flex-grow: 1;
    overflow-y: visible; /* Permet au contenu de dépasser, créant ainsi le défilement sur le body */
}

/* Section prsentation */
.presentation {
    margin-bottom: 40px; /* Espace entre la présentation et la grille */
    display: flex;
    gap: 40px;
}

.presentation-content {
    flex: 1;
}

.presentation h1 {
    line-height: 50px;
    font-size: 4em;
    text-align: left;
}

.presentation h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: left;
}

.presentation p {
    font-size: 1.1em;
    text-align: left;
}

.presentation-content p:last-child {
    margin-top: 10px;
    font-style: italic;
    color: #666;
    display: flex;
    align-items: center;
}


.presentation-image {
    flex: 0 0 300px; /* Ajustez cette valeur selon la taille souhaitée pour l'image */
}

.presentation-image img {
    width: 70%;
    height: auto;
    border-radius: 50%; /* Ceci rend l'image ronde */
    object-fit: cover; /* Assure que l'image remplit le cercle sans déformation */
    aspect-ratio: 1 / 1; /* Maintient un rapport hauteur/largeur de 1:1 */
}

/* Responsive design pour la présentation */
@media (max-width: 768px) {

    .saas {
        margin-left: -40px;
        margin-right: -40px;
        border-radius: 0;
        padding-left: 40px;
        padding-right: 40px;
    }



    .presentation {
        flex-direction: column-reverse;
    }

    .presentation-image {
        flex: 0 0 auto;
        width: 50%;
        max-width: 300px;
        margin-top: 20px;
        margin-left: auto;
    }
}

/* Section clients */
.clients {
    padding: 40px 0;
    position: relative;
}

.clients h2 {

    text-orientation: mixed;
    transform: rotate(0deg);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 2em;
    color: #dddddd;
}

.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.client-logos img {
    max-width: 120px;
    height: auto;
    margin: 20px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.4s ease;
    transform: scale(1);
    border-radius: 50%; /* Ceci rend l'image ronde */
    object-fit: cover; /* Assure que l'image remplit le cercle sans déformation */
    aspect-ratio: 1 / 1; /* Maintient un rapport hauteur/largeur de 1:1 */
}

.client-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .client-logos img {
        max-width: 100px;
        margin: 15px;
    }
}

/* Grille */
.grid-slider {
    position: relative;
    overflow: hidden;
    width: 100%;

}

.swiper-container {
    width: 100%;
    padding-top: 80px;
    padding-bottom: 50px;

}

.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 200px;
    height: 400px;
    background-color: #ffffff;
    border-radius: 20px;
    transition: all 0.3s ease;
    overflow: hidden;
   
}

.swiper-slide-active {
    transform: scale(1.1);

}

.slide-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
}

.icon {
    font-size: 48px;
    margin-bottom: 20px;
}

h3 {
    font-size: 24px;
    color: #373737;
    margin-bottom: 15px;
}

p {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: #fff;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background-color: #0056b3;
    transform: scale(1.2);
}

/* Texte en arrière-plan */


.content::after {
    /* content: 'ABOUT';
    position: absolute;
    bottom: -390px; /* Ajustez cette valeur pour positionner verticalement */
    right: 120px; /* Ajustez cette valeur pour positionner horizontalement */
    font-size: 21vw; /* Taille relative à la largeur de la fenêtre */
    font-weight: 700;
    color: rgba(240, 240, 240, 0.5); /* Couleur très claire et semi-transparente */
    z-index: -1; /* Place le texte derrière le contenu */
   /* transform: rotate(-10deg); /* Rotation légère pour un effet dynamique */
    font-family: 'Open Sans', Arial, sans-serif; /* Utilise la police Open Sans si disponible */
    letter-spacing: -0.09em; /* Espacement négatif entre les lettres pour un look plus compact */
    line-height: 0.8; /* Ligne resserrée */
}


/* Responsive */
@media (max-width: 1200px) {
    .container {
        width: 100%;
    }
    
    .sidebar {
        width: 180px; /* Réduire légèrement la largeur */
    }
    
    .content {
        
        margin-left: 280px;
        max-width: calc(100% - 180px);
    }
}

@media (max-width: 992px) {
    .sidebar {
        width: 160px;
        padding: 15px;
    }
    
    .content {
        margin-left: 160px;
        max-width: calc(100% - 160px);
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        position: static;
        height: 100px;
        padding: 0px;
        flex-direction: row;
        align-items: center;
        overflow-y: visible;
    }
    .logo {
        margin-bottom: 0;
        margin-right: 40px;
    }
    .logo img {
        max-width: 150px;
    }
    .sidebar nav {
        flex-grow: 1;
    }
    .content {
        margin-left: 0;
        max-width: 100%;
    }
}


.footer {
    text-align: center;
    margin-top: 50px;
    padding: 30px 0;
}

.email-link {
    color: #0056b3;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.footer-text {
    font-size: 1.2em;
    font-weight: 600;
}

.footer-nav {
    display: flex;
    gap: 20px;
}

.footer-link {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #34586e;
}

.emoji {
    font-size: 1.2em;
    margin-left: 5px;
}

/* Nouvelle classe pour les SAAS */
.saas {
    background-color: #0b152d08;
    border-radius: 10px;
    padding: 20px;
    margin: 80px 0;
    text-align: center;
    position: relative;
}

.saas p {
    margin: 0;
    font-size: 1.1em;
    color: #2C2C2C;
}

.heart {
    position: absolute;
    left: 10px;
    top: 1%;
    transform: translateY(-50%);
    color: #2E2E2E;
    transition: color 0.3s ease;
}

.saas-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
    margin-right: 5px;
}

.saas-link:hover {
    color: #FF4B1F;
}

.saas:hover .heart {
    color: #FF4B1F;
}

.location-icon {
    color: #020602;
    margin-right: 5px;
}

.contact-form {
    max-width: 600px;
    margin: 6rem auto;
    padding: 3rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-title {
    font-size: 4.5rem;
    font-weight: 700;
    color: #0056b3;
    text-align: left;
    margin-bottom: 3rem;
    line-height: 1;
    position: relative;
}

.contact-title span {
    display: block;
    color: #0f1e2d;
}


/* Improved form group styling */
.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    padding: 15px;
    font-size: 1rem;
    color: #0f1e2d;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 2px #0f1e2d;
    outline: none;
}

.form-group label {
    position: absolute;
    left: 15px;
    top: 15px;
    font-size: 1rem;
    color: #bbb;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -25px;
    left: 0;
    font-size: 0.8rem;
    color: #bbb;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form button {
    width: 100%;
    background-color: #0f1e2d;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.contact-form button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.curtain-effect {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 123, 255, 0.3);
    z-index: 9999;
    pointer-events: none;
    transition: top 0.5s ease-in-out;
}

:root {
    --primary-color: #0F1F2E;
    --secondary-color: #1FDDFF;
    --background-color: #F3F3F3;
    --text-color: #333333;
    --error-color: #FF3B30;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
}

.modal-content {
    background-color: var(--background-color);
    margin: 15% auto;
    padding: 40px;
    border-radius: 20px;
    width: 300px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    position: relative;
    transition: all 0.3s ease;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.close-button svg {
    width: 24px;
    height: 24px;
    fill: var(--text-color);
    transition: fill 0.3s ease;
}

.close-button:hover svg {
    fill: var(--primary-color);
}

.modal-content h2 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 700;
}

.modal-content p {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 16px;
}

.input-container {
    position: relative;
    margin-bottom: 30px;
}

#passwordInput {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--text-color);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: transparent;
    color: var(--text-color);
}

#passwordInput:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 221, 255, 0.2);
}

.input-container label {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: var(--text-color);
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

#passwordInput:focus + label,
#passwordInput:not(:placeholder-shown) + label {
    top: 0;
    font-size: 12px;
    color: var(--secondary-color);
    background-color: var(--background-color);
    padding: 0 5px;
}

#submitPassword {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

#submitPassword:hover {
    background-color: #FF6B3F;
}

#submitPassword:active {
    transform: scale(0.98);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.modal-content.error {
    animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
}

.error-message {
    color: var(--error-color);
    margin-top: 10px;
    font-size: 14px;
    height: 20px;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.error-message.show {
    opacity: 1;
}

#passwordInput.error {
    border-color: var(--error-color);
}