/* Variables et style de base */

/* Section principale (plein écran) */
.hero-section {
    height: 100vh;
    width: 100%;
    background-image: url('https://images.unsplash.com/photo-1566576721346-d4a3b4eaeb55?q=80&w=1965&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}



.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-dark);
    z-index: 1;
}


/* Contenu principal */
.hero-content {
    z-index: 5;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--accent-color);
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: var(--sombre-primary-color);;
    transform: translateY(-2px);
}

/* Fenêtre Modale */
.modal {
    display: none; /* Caché par défaut */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    color: #333;
    margin: auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 450px;
    border-radius: 10px;
    position: relative;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
}

/* Formulaire dans la modale */
.modal-content h2 {
    margin-bottom: 10px;
}
.modal-content p {
    margin-bottom: 20px;
    color: #666;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}
.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.LogoEntreprise{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    object-fit: cover;
}

.menu li {
    color: white;
}

.menu li a {
    text-decoration: none;
    cursor: pointer;
}


.menu li a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.minibarre{
    background-color: white;
    height: 25px;
    width: 3px;
}


.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
}



/******************* chatbot *******************/
.chatbot_icon{
    position: absolute;
    width: 50px;
    height: 50px;
    cursor: pointer;
    bottom: 3vw;
    right: 3vw;
    z-index: 10;
    overflow: hidden;
}




/* css/style.css */

/* =================================== */
/* ==== Styles pour le Chatbot Popup (MIS À JOUR) ==== */
/* =================================== */

/* Assurez-vous que votre :root est défini au début de votre fichier CSS principal */
:root {
    --primary-color: rgb(169, 5, 5);
    --sombre-primary-color: rgb(121, 3, 3);
    --secondary-color: #000000;
    --accent-color: #ffffff;
    --background-dark: rgba(0, 0, 0, 0.5);
    --font-family: 'Poppins', sans-serif;
}

.chatbot_icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color); /* Mise à jour */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 999;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.chatbot_icon:hover {
    transform: scale(1.1);
    background-color: var(--sombre-primary-color); /* Mise à jour */
}

.chatbot_icon img {
    width: 32px;
    height: 32px;
}

.chatbot-container {
    display: none; 
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 370px;
    max-width: 90vw;
    height: 500px;
    background-color: var(--accent-color); /* Mise à jour */
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    font-family: var(--font-family); /* Mise à jour */
    transform: scale(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-in-out;
}

.chatbot-container.active {
    display: flex;
    transform: scale(1);
}

.chatbot-header {
    background-color: var(--primary-color); /* Mise à jour */
    color: var(--accent-color); /* Mise à jour */
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.close-chatbot {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.close-chatbot:hover {
    transform: scale(1.2);
}

.chatbot-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #f4f7f9; /* Gardé neutre pour la lisibilité */
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    padding: 10px 15px;
    border-radius: 20px;
    max-width: 80%;
    line-height: 1.4;
    font-size: 0.9rem;
}

.message.user {
    background-color: var(--primary-color); /* Mise à jour */
    color: var(--accent-color); /* Mise à jour */
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.message.bot {
    background-color: #e9e9eb; /* Gardé neutre pour le contraste */
    color: var(--secondary-color); /* Mise à jour */
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.chatbot-input-area {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
    background-color: var(--accent-color); /* Mise à jour */
    max-width: 100%;
    overflow: hidden;
}

#user-input {
    flex-grow: 1;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 0.9rem;
    outline: none;
    color: var(--secondary-color); /* Mise à jour */
    font-family: var(--font-family); /* Mise à jour */
    width: 70%;
}

#send-btn {
    background-color: var(--primary-color); /* Mise à jour */
    color: var(--accent-color); /* Mise à jour */
    border: none;
    padding: 0 15px;
    margin-left: 10px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-family); /* Mise à jour */
    transition: background-color 0.2s;
}

#send-btn:hover {
    background-color: var(--sombre-primary-color); /* Mise à jour */
}