/* Import de la police */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

/* Style global */
html, body {
    height: 100%; /* Assurer que le body prend toute la hauteur */
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
   
    display: flex;
    flex-direction: column; /* Organiser les éléments en colonne */
    font-family: 'Montserrat', sans-serif;
    color: white;
   
}
span{
    color: black; font-weight: bold;
}

/* Contenu principal */
.content {
    flex: 1; 
   color: #011326;
    background-color: rgb(241, 244, 248);
    
    
}
.background-image {
    position: relative; /* Pour positionner le texte par rapport à ce conteneur */
    background-image: url('../images/fond1.jpg'); /* Chemin vers l'image */
    background-size: cover; /* Pour couvrir toute la zone */
  
    height: 80vh; /* Hauteur de la section */
   
    display: flex;
    justify-content: center; /* Centrer horizontalement */
    align-items: center; /* Centrer verticalement */
}
.text-overlay {
    position: absolute; /* Positionner le texte par-dessus l'image */
    color: white; /* Couleur du texte */
    font-size: 32px; /* Taille de la police */
    text-align: center; /* Centrer le texte */
    padding: 20px; /* Espace autour du texte */
    background-color: rgba(17, 2, 48, 0.5); /* Fond semi-transparent pour plus de lisibilité */
    border-radius: 30px; /* Coins arrondis */
    font-weight: bold;  
}
.presentation {
   
    padding: 20px;
    
    margin: 20px 100px;
    text-align: center; /* Centre le titre */
}

.presentation h1 {
    font-weight: bold; /* Titre en gras */
    color: black; /* Couleur noire pour le titre */
    margin-bottom: 50px;
    font-size: 48px;
    font-family: 'Montserrat', sans-serif;
}

.presentation-container {
    display: flex; /* Utilise Flexbox pour la mise en page */
    align-items: center; /* Aligne verticalement */
}

.presentation-image {
    flex: 0 0 40%; /* Prend 40% de la largeur */
    margin-right: 20px; /* Espace entre l'image et le texte */
}

.presentation-image img {
    width: 80%; /* Fait en sorte que l'image prenne toute la largeur */
    border-radius: 10px; /* Arrondit légèrement les bords de l'image */
}

.presentation-text {
    flex: 1; /* Prend le reste de l'espace disponible */
    text-align: justify; /* Justifie le texte */
    color: gray; /* Couleur grise pour le texte */
    line-height: 1.6;
    font-size: 18px;
}


/* Section principale */
.professional-section {
    padding: 50px 20px;
    background-color: #f9f9f9; /* Fond clair élégant */
    text-align: center;
}

/* Titre de section */
.section-title {
    font-size: 2rem;
    color: #011326;
    margin-bottom: 20px;
}

/* Conteneur avec défilement */
.scroll-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

/* Conteneur des cartes */
.expertise-container {
    display: flex;
    gap: 20px;
    overflow-x: hidden; /* Cache la barre de défilement horizontale */
    scroll-behavior: smooth; /* Défilement fluide */
    max-width: 70%; /* Limite la largeur visible */
    padding: 10px;
    background: #fff; /* Fond blanc pour un contraste moderne */
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Style des cartes */
.expertise-card {
    flex: 0 0 auto;
    width: 400px;
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expertise-card:hover {
    transform: scale(1.05); /* Agrandissement subtil au survol */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Image de la carte */
.expertise-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Contenu de la carte */
.card-content {
    padding: 20px;
    text-align: left;
}

.card-content h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    color: #011326;
}

.card-content p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

/* Boutons de défilement */
.scroll-btn {
    background-color: #011326;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.scroll-btn:hover {
    background-color: #033d5e; /* Couleur de survol */
}

/* Responsive design */
@media (max-width: 768px) {
    .scroll-btn {
        padding: 10px;
        font-size: 16px;
    }

    .expertise-item {
        width: 200px;
    }
}







/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #f0f4ff, #d8e8ff);
    padding: 60px 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 50%;
    margin: 40px auto;
}

.newsletter-container {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-title {
    font-size: 32px;
    color: #2b2f42;
    margin-bottom: 20px;
    font-family: 'Arial', sans-serif;
}

.newsletter-text {
    font-size: 18px;
    color: #5a5d73;
    margin-bottom: 30px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.newsletter-input {
    padding: 15px;
    font-size: 16px;
    border-radius: 25px;
    border: 1px solid #ccc;
    width: 70%;
    transition: border-color 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: #4a90e2;
}

.newsletter-btn {
    padding: 15px 30px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.mot{
    background-color: yellow;
}
.newsletter-btn:hover {
    background-color: #357ab8;
}
/* Design responsive */
@media (max-width: 1200px) {
    .presentation-container {
        flex-direction: column; /* Organiser les éléments en colonne sur les écrans moyens */
        text-align: center; /* Centrer le texte sur les écrans moyens */
    }

    .presentation-image{
        display: none;
    }
    .presentation-text {
        width: 80%; /* Utiliser toute la largeur disponible */
        margin-bottom: 20px; /* Ajouter de l'espace en bas */
    }

    .presentation h1 {
        font-size: 2.5rem; /* Ajuster la taille du titre */
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .presentation-container {
        flex-direction: column; /* Organiser les éléments en colonne sur les petits écrans */
        text-align: center; /* Centrer le texte sur les petits écrans */
    }
    .presentation-text{
        width: 350px;
        
        
    }
    .presentation-image {

        margin: 0 0 10px 0; /* Ajouter de l'espace sous l'image */
        width: 500px;
    }

    .expertise-card {
        width: 100%; /* Largeur des cartes pleine sur les petits écrans */
    }

    .scroll-btn {
        padding: 10px;
        font-size: 16px; /* Réduire la taille de la police pour les boutons */
    }

    .newsletter-section {
        max-width: 90%; /* Ajuster la largeur de la section newsletter sur les petits écrans */
    }
}

@media (max-width: 480px) {
    .text-overlay {
        font-size: 1.5rem; /* Réduire la taille du texte de superposition */
        padding: 10px; /* Réduire le padding */
    }

    .section-title {
        font-size: 2rem; /* Réduire la taille du titre de section */
    }

    .card-content h3 {
        font-size: 1.2rem; /* Réduire la taille du titre des cartes */
    }

    .card-content p {
        font-size: 0.9rem; /* Réduire la taille du texte des cartes */
    }

    .newsletter-title {
        font-size: 2rem; /* Réduire la taille du titre de la newsletter */
    }

    .newsletter-text {
        font-size: 1rem; /* Réduire la taille du texte de la newsletter */
    }
}
