/* Variables globales */
:root {
    --primary-color: #1a73e8;
    --secondary-color: #202124;
    --background-color: #f8f9fa;
    --text-color: #202124;
    --font-main: 'Roboto', sans-serif;
    --font-heading: 'Roboto Slab', serif;
}

/* Styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    padding-top: 80px; /* Réduisez cette valeur, par exemple de 100px à 80px */
}

/* En-tête et navigation */
header {
    background-color: var(--secondary-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    font-family: var(--font-heading);
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Contenu principal */
main {
    max-width: 1200px;
    margin: 6rem auto 2rem;
    padding: 0 2rem;
}

/* Section héro */
#hero {
    text-align: center;
    padding: 6rem 0;
    background: url('photos/hero-background.jpg') no-repeat center center/cover;
    color: #fff;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background-color: #fff;
    color: var(--primary-color);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: bold;
}

.cta-button:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Section fonctionnalités */
#features {
    padding: 4rem 0;
}

#features h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
    font-size: 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.feature-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.feature-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

.feature-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 8px 25px rgba(26, 115, 232, 0.2);
}

.feature-item:hover::after {
    opacity: 1;
}

.feature-item:hover h3 {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
}

.feature-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
    transition: all 0.4s ease;
}

.feature-item:hover img {
    transform: scale(1.04);
}

/* Section avantages */
#benefits {
    padding: 4rem 0;
    background-color: #fff;
    position: relative;
    color: var(--text-color);
    background: url('photos/benefits-background.jpg') no-repeat center center/cover;
}

#benefits-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5); /* Ajustez la valeur pour plus ou moins de transparence */
    z-index: 1;
}

#benefits-content {
    position: relative;
    z-index: 2;
}

#benefits h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
    font-size: 2rem;
}

#benefits ul {
    max-width: 600px;
    margin: 0 auto;
    list-style-type: none;
}

#benefits ul li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1.1rem;
}

#benefits ul li::before {
    content: "\2022";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.5rem;
}

/* Pied de page */
footer {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 2rem 0;
    text-align: center;
    font-size: 1rem;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
    font-size: 1.2rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Responsive design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }

    nav ul {
        margin-top: 1rem;
    }

    nav ul li {
        margin-left: 0;
        margin-right: 1rem;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    #hero p {
        font-size: 1rem;
    }
}

.logo-img {
    height: 40px; /* Ajustez la taille selon vos besoins */
    margin-right: 10px; /* Espace entre le logo et le texte */
}

.parametres-main {
    display: flex;
    margin-top: 10px; /* Réduisez cette valeur, par exemple de 20px à 10px */
}

.parametres-menu {
    width: 25%; /* Increased width from 20% to 25% */
    padding: 2rem;
    background-color: var(--background-color);
    border-right: 1px solid #ddd;
    padding-top: 10px; /* Ajoutez cette ligne pour remonter les options du menu */
}

.parametres-menu ul {
    list-style: none;
    padding: 0;
}

.parametres-menu ul li {
    margin-bottom: 1rem;
}

.parametres-menu ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    transition: color 0.3s ease;
}

.parametres-menu ul li a:hover {
    color: var(--primary-color);
}

.parametres-content {
    width: 75%; /* Adjusted width to match the increased menu width */
    padding: 2rem;
}

/* Styles pour les sections de Modèles LLM et Base de données vectorielle */
.content-section {
    margin-bottom: 2rem;
    scroll-margin-top: 60px; /* Réduisez cette valeur, par exemple de 80px à 60px */
}

.api-key-input {
    margin-bottom: 1rem;
}

.api-key-input label {
    display: block;
    margin-bottom: 0.5rem;
}

.api-key-input input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.button-container {
    margin-top: 1rem;
}

.verify-api-button {
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.verify-api-button:hover {
    background-color: var(--secondary-color);
}

.api-key-status {
    display: none;
    margin-left: 1rem;
    font-weight: bold;
}

/* Container for the table to allow horizontal scrolling */
.table-container {
    overflow-x: auto;
}

/* Styles for the LLM table */
.llm-table {
    width: 250%; /* Increased width to allow horizontal scrolling */
    border-collapse: collapse;
    margin-bottom: 1rem;
}

/* Styles for table headers and cells */
.llm-table th, .llm-table td {
    border: 1px solid #ddd;
    padding: 0.5rem;
    text-align: left;
    font-size: 0.9rem; /* Reduced font size */
    vertical-align: middle; /* Center vertically */
}

/* Background color for table headers */
.llm-table th {
    background-color: var(--primary-color);
    color: #fff;
}

/* Background color for table cells */
.llm-table td {
    background-color: #fff;
}

/* Center the toggle switch vertically */
.llm-table td .toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* Center the 'Connexion à Internet' column vertically */
.llm-table td:nth-child(10), .llm-table th:nth-child(10) {
    text-align: center;
    vertical-align: middle;
}

/* Container to center the toggle switch */
.toggle-container {
    display: flex;
    justify-content: center;
}

/* Styles for the toggle switch */
.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}

/* Hide the default checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Styles for the slider of the toggle switch */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}

/* Styles for the slider before element */
.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

/* Change background color when the toggle is checked */
input:checked + .slider {
    background-color: var(--primary-color);
}

/* Move the slider when the toggle is checked */
input:checked + .slider:before {
    transform: translateX(14px);
}

/* Margin for the LLM model selection and API keys sections */
.llm-model-selection, .api-keys-section {
    margin-bottom: 2rem;
}

/* Styles for the default LLM selection container */
.default-llm-selection {
    display: flex;
    align-items: center;
}

/* Margin for the label in the default LLM selection */
.default-llm-selection label {
    margin-right: 1rem;
    white-space: nowrap; /* Ensure label is on a single line */
}

/* Styles for the styled select dropdown */
.styled-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 1rem;
    color: var(--text-color);
}

/* Increased spacing between sections */
.spacing-large, .spacing {
    margin-bottom: 3rem; /* Uniform spacing between sections */
}
.api-key-input {
    margin-bottom: 1rem;
}

.api-key-input label {
    display: block;
    margin-bottom: 0.5rem;
}

.api-key-input input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.button-container {
    margin-top: 1rem;
}

.verify-api-button {
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.verify-api-button:hover {
    background-color: var(--secondary-color);
}

.api-key-status {
    display: none;
    margin-left: 1rem;
    font-weight: bold;
}

.spacing-large-cohere {
    margin-bottom: 4rem; /* Uniform spacing between sections */
    margin-top: 40px; /* Ajustez cette valeur selon vos besoins */
}

.features-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    color: var(--secondary-color);
    font-weight: 600;
    padding-bottom: 1rem;
}

.features-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}


/* Style pour la section "Pourquoi choisir Neo" */
.why-neo {
    padding: 4rem 0;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('photos/benefits-background.jpg') no-repeat center center/cover;
    color: #fff;
    position: relative;
}

.why-neo h2 {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 3rem;
}

.why-neo-list {
    max-width: 800px;
    margin: 0 auto;
}

.why-neo-list li {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    position: relative;
}

.why-neo-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.why-neo-tagline {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 500;
    margin-top: 3rem;
    color: var(--primary-color);
}