html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: 'Rubik', sans-serif;
    background-color: #f4f4f9;
}

.navbar1 {
    display: flex;
    justify-content: space-between; /* Alignement des éléments aux extrémités */
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #ffffff;
    color: #2b2b2b;
    box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.logonav img {
    height: 50px;
    width: auto;
    margin-left: 5em;
}

.menu {
    flex: 1;
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.demarrerbis {
    display: none;  /* Cache ce bouton sur tous les écrans par défaut */
}

.demarrer {
    display: block;  /* Affiche ce bouton sur tous les écrans par défaut */
    margin-right: 5em;
    padding: 10px 25px;
    background: #8c52ff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(140, 82, 255, 0.2);
    transition: all 0.3s ease;
}

.demarrer:hover, .demarrer:focus {
    background: #6e40c9;
    box-shadow: 0 6px 12px rgba(140, 82, 255, 0.4);
    outline: none;
}

.menu a, .demarrer {
    text-decoration: none;
    transition: color 0.3s ease; /* Transition douce pour le changement de couleur */
}

.menu li {
    padding: 0 25px;
    position: relative;
}

.menu li:not(:last-child)::after {
    content: '|';
    color: #e2e2e2;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.menu a {
    text-decoration: none;
    color: #2b2b2b;
    font-size: 16px;
    transition: color 0.3s ease;
}

.menu a:hover, .menu a.active {
    color: #8c52ff;
}

.menu li a, .menu li button {
    text-decoration: none;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    left: 10px;
    top: 15px;
    z-index: 1050;
}

/* Section logo de gauche et formulaire de droite */
.container {
    flex: 1; /* Prend tout l'espace restant pour pousser le footer vers le bas */
    width: 100%;
    display: flex;
    justify-content: space-between; /* Répartition égale entre les sections */
    align-items: center;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Section logo */
.logo-section {
    flex: 0.65; /* Permet à la section gauche de prendre tout l'espace disponible */
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-section img {
    max-width: 100%; /* Assure que l'image du logo ne dépasse pas sa section */
    height: auto;
    width: 40em;
}

/* Section formulaire */
.form-section {
    flex: 1.35; /* Également 1 pour avoir une répartition égale des deux côtés */
    text-align: center;
}

.form-section h1 {
    text-align: left;
    padding-left: 50px;
    padding-top: 80px;
}

input[type=text], input[type=email], input[type=company], input[type=subject], textarea {
    width: 80%;
    padding: 12px;
    margin: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
}

input[type=text]:focus, input[type=email]:focus, input[type=company]:focus, input[type=subject]:focus, textarea:focus {
    border: 1px solid #8c52ff;
    outline: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.submit-btn {
    width: 84%;
    padding: 12px;
    color: white;
    border: none;
    background-color: #8c52ff;
    cursor: pointer;
    margin-top: 20px;
    border-radius: 4px;
    font-size: 14px;
}

.submit-btn:hover {
    transition: 0.3s ease-in-out;
    background: #6e40c9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background-color: #f2f2f2;
    padding: 20px 0;
    font-size: 12px;
    line-height: 1.6;
    color: #666;
    width: 100%;
    position: relative;
    bottom: 0;
}

.footer-container {
    width: 80%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-section h4 {
    margin-bottom: 10px;
}

.footer-section ul {
    list-style-type: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 5px;
}

.footer-section ul li a {
    color: #666;
    text-decoration: none;
}

.footer-section ul li a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #ddd;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-left {
    height: 50px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.terms {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 100px;
    width: fit-content;
}

.terms li a {
    text-decoration: none;
    color: #666;
}

.footer-bottom-right {
    display: flex;
    align-items: center;
}

.social-icons {
    display: flex;
}

.social-icons li {
    list-style-type: none;
    margin-right: 5px;
}

.social-icons li a {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #555;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    color: white;
    font-size: 10px;
}

/* Responsive design */
@media screen and (max-width: 960px) {
    .container {
        flex-direction: column; /* Empile les sections sur petits écrans */
        height: auto;
        align-items: center;
        width: 100%;
    }

    .logo-section {
        display: none; /* Cache la section logo sur petits écrans */
    }

    .form-section {
        width: 100%;
        padding: 0;
    }

    input[type=text], input[type=email], input[type=company], input[type=subject], textarea {
        width: 80%; /* Pleine largeur pour les champs sur petits écrans */
    }

    .submit-btn {
        width: 80%;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
    }
}
