/* Import de la police Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: black;
    padding: 20px 10px;
    width: 100%;
    box-sizing: border-box;
    text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    top: 0;
    position: fixed;
    height: 100px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
    position: relative;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 70px;
}

.nav-left {
    flex: 1;
    justify-content: center;
}

.nav-right {
    flex: 1;
    justify-content: center;
}

/* Style actif avec un trait en dessous */
.nav-link.active {
    border-bottom: 2px solid #ff3b30; /* Couleur et taille du trait */
}

.logo {
    position: absolute; 
    left: 50%;
    transform: translateX(-50%); 
    z-index: 1;
    top: -30px;
}

.logo img {
    height: 120px; 
    max-width: 100%;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1);
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

nav a:hover {
    color: #ff3b30;
    transition: 0.2s;
}

.nav-right .contact-button {
    background-color: #ff3b30;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    border: 2px solid black;
    font-weight: 700;
    transition: background-color 0.2s, color 0.2s, transform 0.3s ease;
}

.nav-right .contact-button:hover {
    background-color: white;
    color: black;
    transition: 0.2s;
    transform: scale(1.1);
}


footer {
    background-color: black;
    color: white;
    padding: 20px;
    text-align: center;
}

.footerContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.socialIcons {
    margin-bottom: 20px;
}

.socialIcons a {
    color: white;
    font-size: 24px;
    margin: 0 10px;
    transition: color 0.2s, background-color 0.2s;
    background-color: white; /* Couleur de fond pour le cercle */
    color: black; /* Couleur de l'icône */
    padding: 10px; /* Espace autour de l'icône */
    border-radius: 50%; /* Forme ronde */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 44px; /* Largeur fixe pour un cercle parfait */
    height: 44px; /* Hauteur fixe pour un cercle parfait */
    text-decoration: none; /* Supprimer le surlignage */
}

.socialIcons a:hover {
    background-color: #ff3b30; /* Couleur de fond au survol */
    color: white; /* Couleur de l'icône au survol */
}

.footerNav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.footerNav a {
    color: white;
    text-decoration: none;
    text-transform: uppercase; /* Texte en majuscules */
    font-weight: 700;
    transition: color 0.3s;
}

.footerNav a:hover {
    color: #ff3b30;
    transition: 0.2s;
}

.footerNav .ref-button {
    background-color: #ff3b30;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    border: 2px solid black;
    font-weight: 700;
    transition: background-color 0.2s, color 0.2s, transform 0.3s ease;
}

.footerNav .ref-button:hover {
    background-color: white;
    color: black;
    transition: 0.2s;
    transform: scale(1.1);
}

.footerBottom {
    margin-top: 20px;
}

.footer-logo {
    height: 120px; 
    max-width: 100%;
    display: block;
    margin: 0 auto 20px; 
}

.footerBottom p {
    color: white;
}

.section {
    height: 100vh; /* Chaque section prend 100% de la hauteur de la page */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    position: relative;
    padding: 20px;
    border-bottom: 2px solid black; /* Ajoute une bordure en bas de chaque section */
    border-left: 10px solid black; /* Ajoute une bordure en bas de chaque section */
    border-right: 10px solid black; /* Ajoute une bordure en bas de chaque section */
}

.section .content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 90%; /* Chaque section prend 80% de la largeur de la page */
    margin: 0 auto; /* Centrer la section horizontalement */
}

.section .text {
    flex: 1;
    padding-right: 40px;
    text-align: center;
    margin-bottom: 20px;
}

.section .text2 {
    flex: 1;
    padding-left: 40px;
    text-align: center;
    margin-bottom: 20px;
}

.section .text2 h1 {
    font-size: 40px;
    color: black;
    text-align: center;
    text-transform: uppercase;
}

.section .text2 p {
    font-size: 17px;
    color: black;
    text-align: justify;
}

.section .text h1 {
    font-size: 40px;
    color: black;
    text-align: center;
    text-transform: uppercase;
}

.section .text p {
    font-size: 18px;
    color: black;
    text-align: justify;
}

.section .image {
    flex: 1;
    text-align: right;
}

.section .image img {
    max-width: 100%; 
    height: auto;
}

.image2 {
    flex: 1;
    text-align: center;
}

.image2 img {
    max-width: 100%;
    height: auto;
    border-radius: 10px; /* Bord arrondi */
    border: 2px solid black; /* Bordure de 2px avec couleur aqua */
}

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: black;
    border: 2px solid white;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 24px;
    display: none;
    z-index: 1000;
    cursor: pointer;
}

.scroll-to-top:hover {
    background-color: #ff3b30;
    border: none;
    transition: 0.2s;
}

.nav-center a.active {
    border-bottom: 2px solid white;
}

#home {
    background: radial-gradient(circle, rgba(240, 240, 240, 0.9) 20%, transparent 20%) 0 0 / 10px 10px, 
                radial-gradient(circle, rgba(229, 229, 229, 0.9) 20%, transparent 20%) 5px 5px / 10px 10px, 
                linear-gradient(to right, #f0f0f0, #e5e5e5);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px;
}

#about {
    background-color: #FFD9B3; /* Orange pastel très clair */
}

#partie2 {
    background-color: #FFCC99; /* Orange pêche pastel */
}

#partie3 {
    background-color: #FFB266; /* Orange pastel doux */
}

#partie4 {
    background-color: #FFA366; /* Abricot pastel */
}

#partie5 {
    background-color: #FF9966; /* Orange corail pastel */
}


.content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Text Styling */
.text {
    flex: 1;
    max-width: 600px;
    text-align: left;
}

.text h1 {
    font-size: 50px;
    color: #333;
    line-height: 1.2;
    margin-bottom: 30px;
    font-weight: 700;
    text-transform: uppercase;
}

.text h1 span {
    display: block;
    font-size: 70px; /* Larger font for emphasis */
    color: black;
    font-weight: 900;
}

.about-index {
    display: inline-block;
    background-color: #ff3b30;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition:  0.2s, color 0.2s, transform 0.3s ease
}

.about-index:hover {
    background-color: black;
    transform: scale(1.1);
}

/* Image Styling */
.image {
    flex: 1;
    text-align: center;
}

.image img {
    max-width: 100%;
    height: auto;
    transform: rotate(-15deg); /* Slight rotation for style */
    transition: transform 0.3s ease;
}

.image img:hover {
    transform: rotate(-10deg) scale(1.05); /* Add hover effect */
}

/* Style pour la section partie2 avec image à gauche et texte à droite */
.section.reverse .content {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    padding: 50px;
}

.section.reverse .content .text {
    max-width: 50%;
}

.section.reverse .content .image {
    max-width: 45%;
}

.section.reverse .content .image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.arrow {
    position: absolute; /* Positionne les flèches par rapport à chaque section */
    bottom: 10vh; /* Distance du bas de la section */
    background-color: rgba(0, 0, 0, 0.7); /* Fond semi-transparent */
    color: white; /* Couleur du texte */
    width: 50px; /* Largeur du cercle */
    height: 50px; /* Hauteur du cercle */
    border-radius: 50%; /* Forme circulaire */
    display: flex; /* Flexbox pour centrer le texte */
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement */
    text-decoration: none; /* Enlève le soulignement */
    cursor: pointer; /* Curseur en forme de main */
    font-size: 24px; /* Taille de la police */
    z-index: 999; /* Assure que les flèches sont au-dessus du contenu */
    transition:  0.2s, color 0.2s, transform 0.3s ease
}

.arrow.left {
    right: 80px; /* Position de la flèche gauche */
}

.arrow.right {
    right: 20px; /* Position de la flèche droite */
}

.arrow:hover {
    background-color: #ff3b30;
    transform: scale(1.2); /* Agrandit légèrement la flèche */
    transition:  0.2s, color 0.2s, transform 0.3s ease
}

/* Contact Section Styles */

#contact {
    background: radial-gradient(circle, rgba(240, 240, 240, 0.9) 20%, transparent 20%) 0 0 / 10px 10px, 
                radial-gradient(circle, rgba(229, 229, 229, 0.9) 20%, transparent 20%) 5px 5px / 10px 10px, 
                linear-gradient(to right, #f0f0f0, #e5e5e5);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    padding: 50px 20px;
    gap: 30px;
}

.contact-box {
    display: flex; /* Utilisation du flex pour l'alignement */
    align-items: center; /* Alignement vertical centré */
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%; /* Ajuste la largeur de la boîte */
    max-width: 600px; /* Limite la largeur pour éviter l'élargissement excessif */
    text-align: left; /* Alignement du texte à gauche */
    position: relative;
    cursor: pointer;
}

.contact-box img {
    width: 150px; /* Largeur fixe pour les images */
    height: 150px; /* Hauteur fixe pour les images */
    object-fit: cover;
    margin-right: 20px; /* Espacement entre l'image et le texte */
}

.contact-info {
    padding: 20px;
    font-size: 16px;
    color: #333;
    transition: opacity 0.3s ease;
}

.contact-info h3 {
    font-size: 24px; /* Taille du titre */
    margin-bottom: 10px; /* Espacement sous le titre */
}

.contact-info p {
    text-align: justify;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-overlay a {
    color: white; /* Couleur du texte du lien */
    text-decoration: none; /* Supprime le soulignement */
    font-weight: bold; /* Met le texte en gras */
    padding: 10px 20px; /* Ajoute un peu d'espace autour du texte */
    border: 2px solid white; /* Bordure blanche autour du texte */
    border-radius: 5px; /* Coins arrondis pour le bouton */
    transition: background-color 0.3s ease, transform 0.3s ease; /* Transitions pour l'effet au survol */
}

.contact-overlay a:hover {
    background-color: rgba(255, 255, 255, 0.3); /* Changement de couleur de fond au survol */
    transform: scale(1.05); /* Léger agrandissement au survol */
}

.contact-box:hover .contact-info {
    opacity: 0.2;
}

.contact-box:hover .contact-overlay {
    opacity: 1;
}

.contact-box:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Dataviz Section */
.dataviz-section {
    padding: 40px;
    margin-top: 100px;
    text-align: center; /* Centre tout le contenu de la section */
    background: radial-gradient(circle, rgba(240, 240, 240, 0.9) 20%, transparent 20%) 0 0 / 10px 10px, 
                radial-gradient(circle, rgba(229, 229, 229, 0.9) 20%, transparent 20%) 5px 5px / 10px 10px, 
                linear-gradient(to right, #f0f0f0, #e5e5e5);    border-radius: 15px; /* Coins arrondis pour la section */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Ombre douce pour la section */
}

.chart-row {
    margin-bottom: 40px;
    background-color: #ffffff; /* Fond blanc pour les graphiques */
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Accentuation de l'ombre */
    position: relative;
    overflow: hidden;
    display: flex;               /* Utilise flexbox pour aligner les éléments à l'intérieur */
    flex-direction: column;      /* Dispose les enfants en colonne */
    align-items: center;         /* Centre horizontalement */
    transition: transform 0.3s;  /* Transition douce pour les effets de survol */
}

.chart-row:hover {
    transform: translateY(-5px); /* Légère élévation au survol */
}

.chart-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1); /* Légère superposition pour un effet moderne */
    pointer-events: none;
    transition: background 0.3s; /* Transition douce pour l'effet de survol */
}

.chart-row:hover::before {
    background: rgba(255, 255, 255, 0.3); /* Superposition plus forte au survol */
}

.chart-description {
    padding: 20px;
    background-color: #ffffff; /* Fond blanc pour la description */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ombre pour mettre en valeur la description */
    margin-bottom: 20px; /* Espace sous la description */
    text-align: center;   /* Centre le texte à l'intérieur de la description */
    transition: box-shadow 0.3s; /* Transition douce pour l'ombre */
}

.chart-description:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Ombre plus forte au survol */
}

.orange-button {
    background-color: #ff3b30;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 700;
    transition: background-color 0.2s, color 0.2s, transform 0.3s ease;
    text-decoration: none;
}

.orange-button:hover {
    background-color: black;
    color: white;
    transition: 0.2s;
    transform: scale(1.1);
}

.chart-container {
    display: flex;               /* Utilise flexbox pour centrer le contenu */
    justify-content: center;     /* Centre horizontalement */
    align-items: center;         /* Centre verticalement */
    flex: 1;
    max-width: 55%;
}

canvas {
    max-width: 100%;            /* S'assure que le canvas ne dépasse pas la largeur de son conteneur */
    height: 300px;              /* Fixe une hauteur pour le canvas */
    border-radius: 10px;        /* Coins arrondis pour le canvas */
    transition: transform 0.3s; /* Transition douce pour l'effet au survol */
}

canvas:hover {
    transform: scale(1.05); /* Légère augmentation de la taille au survol */
}

.references-section {
    min-height: calc(100vh - 100px); /* Hauteur de la section ajustée */
    padding-top: 80px; /* Pour éviter que le titre ne soit caché */
    padding-bottom: 50px; /* Pour garantir que le contenu ne touche pas le bas */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, rgba(240, 240, 240, 0.9) 20%, transparent 20%) 0 0 / 10px 10px, 
                radial-gradient(circle, rgba(229, 229, 229, 0.9) 20%, transparent 20%) 5px 5px / 10px 10px, 
                linear-gradient(to right, #f0f0f0, #e5e5e5);
    text-align: center;
    color: #333; /* Texte sombre pour le contraste */
    position: relative;
    overflow: hidden;
}

.references-section h2 {
    font-size: 3.5em; /* Taille légèrement réduite pour mieux s'adapter */
    margin-bottom: 40px;
    color: #222;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInDown 1s ease-in-out;
    background: linear-gradient(90deg, #ff3b30, #ff6b6b); /* Dégradé rouge pour le titre */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.references-section ul {
    list-style: none;
    padding: 0;
    max-width: 900px;
    width: 100%;
}

.references-section li {
    margin-bottom: 30px; /* Espacement entre les éléments */
    font-size: 1.5em;
    background-color: rgba(255, 255, 255, 0.9); /* Fond blanc légèrement transparent */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1); /* Légère ombre pour l'élément */
    transition: transform 0.5s, box-shadow 0.5s;
    position: relative;
    overflow: hidden;
}

.references-section li:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.references-section li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.2), rgba(255, 107, 107, 0.2)); /* Dégradé rouge léger */
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s;
}

.references-section li:hover::before {
    opacity: 1;
}

.references-section a {
    color: #ff3b30; /* Lien rouge pour s'accorder avec le style */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
    position: relative;
    z-index: 1;
}

.references-section a:hover {
    color: #ff6b6b; /* Variation plus claire au survol */
    text-decoration: underline;
}

.references-section p {
    margin-top: 10px;
    font-size: 1em;
    color: #666; /* Texte secondaire plus neutre */
    transition: color 0.3s ease-in-out;
}

.references-section li:hover p {
    color: #333; /* Texte plus sombre au hover */
}

path {
    fill: black;
    transition: fill 0.3s;
}
path:hover {
    fill: #ff3b30; /* Change to orange on hover */
    cursor: pointer;
}

/* Animation fade-in pour le texte */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Responsive CSS pour les écrans de moins de 700px */
@media (max-width: 700px) {
    .menu-toggle {
        display: block; /* Affiche le menu burger sur les petits écrans */
        position: absolute;
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        cursor: pointer;
        z-index: 1001; /* Assure que le menu burger est au-dessus du contenu */
    }

    .menu-toggle .bar {
        display: block;
        width: 100%;
        height: 3px;
        background-color: white;
        margin-bottom: 5px;
        transition: transform 0.3s, opacity 0.3s;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    header {
        flex-direction: column;
        padding: 10px;
    }

    nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 10px; /* Ajoutez un espace entre le logo et les liens */
    }

    nav a {
        margin: 5px 0; /* Ajoutez un espacement entre les liens */
    }

    /* Masquer le lien vers la page de contact */
    nav a.contact-button {
        display: none;
    }

    nav.active {
        display: block; /* Affiche la navigation principale lorsqu'elle est active */
    }

    nav ul {
        flex-direction: column;
        padding: 20px;
    }

    nav ul li {
        margin-left: 0;
        margin-bottom: 10px;
    }

    .logo img {
        height: 40px;
    }

    .section .content {
        flex-direction: column;
    }

    .section .text {
        padding: 0;
        text-align: center;
    }

    .section .text2 {
        padding: 0;
        text-align: center;
    }

    .section .text2 h1 {
        font-size: 28px;
    }

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

    .section .text h1 {
        font-size: 28px;
    }

    .section .text p {
        font-size: 16px;
    }

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


    footer {
        padding: 10px;
    }

    .footerNav ul {
        flex-direction: column;
        align-items: center;
    }

    .footerNav .contact-button {
        display: none;
    }

    .about-section .text h1 {
        font-size: 24px;
    }

    .about-section .scroll-down {
        display: none;
    }

    .contact-section .form-row {
        flex-direction: column;
    }

    .contact-section .form-row .form-group {
        width: 100%;
        margin-left: 0;
    }
    .footerNav .contact-button {
        display: block;
    }
    
    .text h1 span {
        display: block;
        font-size: 50px;
        color: black;
        font-weight: 900;
    }

    .section .text2 h1 {
        font-size: 28px;
    }

    .arrow {
        display: none;
    }

}



