*
{
    margin: 0;
    padding: 0;
}

html
{
    background-color: #161a1d;
}

#hero
{
    text-align: center;
    padding: 7%;
}
#hero img
{
    height: 100px;
}

/* ---------------------- Barre de navigation ----------------------*/
.menu
{
    width: 90%;
    margin:0 auto;
    margin-top: 1%;
    background-color: #ba181b;
    position: sticky;
    top:0px;
}

/* Masquer le menu hamburger par défaut */
#openBtn, .burger-icon, .sidenav {
    display: none;
}

/* Styles du menu principal */
.menu_deroulant
{
    font-size: 18px;
}
.menu ul
{
    list-style-type: none;
}
.menu ul li
{
    float: left;
    width:16.5%;
    text-align: center;
    position: relative;
}
.menu ul::after
{
    content: "";
    display: table;
    clear: both;
}
.menu a
{
    display: block;
    text-decoration: none;
    color: black;
    font-weight: bold;
    border-bottom: 2px solid transparent;
    padding: 10px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}
.menu a:hover
{
    color: #ddd6d5;
    border-bottom: 2px solid #cfcaca;
}

.menu .sous
{
    display:none;
    box-shadow: 0px 1px 2px #CCC;
    background-color: #ba181b;
    position: absolute;
    width: 100%;
    z-index: 1000;
}
.menu > ul li:hover .sous
{
    display: block;
}

.menu .sous li
{
    float: none;
    width: 100%;
    text-align: left;
    font-size: 18px;
}
.menu .sous a
{
    padding: 10px;
    border-bottom: none;
}
.menu .sous a:hover
{
    border-bottom: none;
    background-color: rgba(200, 200, 200, 0.1);
}
.menu .déroulant > a::after
{
    content:"▼";
    font-size: 12px;
}

/*-----------------------FOOTER-----------------------*/
footer {
    background: linear-gradient(to right, #161a1d, #ba181b);
    color: white;
    padding: 40px 20px;
    margin-top: 50px;
    clear: both;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-section {
    padding: 0 15px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2em;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    display: block;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
    display: block;
}

.footer-section ul li a {
    color: #ddd6d5;
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 16px;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: white;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    color: #ddd6d5;
    font-size: 24px;
    transition: color 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.footer-bottom p {
    color: white;
    font-size: 16px;
}

@media(400px <= width <= 1000px) {
    .menu {
        display: none;
    }

    /* Afficher le menu hamburger en format mobile */
    #openBtn {
        display: block;
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 3;
    }

    .burger-icon {
        display: block;
    }

    /* Styles du menu hamburger */
    .sidenav {
        display: block;
        height: 100%;
        width: 250px;
        position: fixed;
        z-index: 2;
        top: 0;
        left: -250px;
        background-color: #222831;
        padding-top: 60px;
        transition: left 0.5s ease;
    }

    .sidenav ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
    }

    .sidenav ul li {
        margin: 10px 0;
    }

    .sidenav ul li a {
        display: block;
        padding: 8px 8px 8px 32px;
        text-decoration: none;
        font-size: 24px;
        color: #ddd6d5;
        transition: 0.3s;
    }

    .sidenav ul li a:hover {
        color: white;
        background-color: rgba(255, 255, 255, 0.1);
    }

    .sidenav .close {
        position: absolute;
        top: 0;
        right: 25px;
        font-size: 50px;
        color: white;
        text-decoration: none;
        display: block;
    }

    .sidenav.active {
        left: 0;
    }

    .footer-section h3 {
        font-size: 1.1em;
    }

    .footer-section ul li a {
        font-size: 0.9em;
    }

    .footer-bottom p {
        font-size: 0.9em;
    }
}

@media screen and (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-section {
        text-align: center;
        padding: 0 5px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-section h3 {
        font-size: 1em;
    }
    
    .footer-section ul li a {
        font-size: 0.85em;
    }
    
    .footer-bottom p {
        font-size: 0.85em;
    }
}

/* Suppression des anciens styles du footer */
#social-media,
#social-media p,
.social-icon,
.social-media:hover {
    display: none;
}

/* Sidenav menu links */
.sidenav > a 
{
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 40px;
    color: #818181;
    display: block;
    transition: 0.3s;
}

.sidenav > a:hover {
    color: #111;
}

.sidenav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

/* Active class */
.sidenav.active {
    left: 0;
}

/* Close btn */
.sidenav .close {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 50px;
    color: white;
}

/* Icône burger */
.burger-icon span {
    display: block;
    width: 35px;
    height: 5px;
    background-color: #ba181b;
    margin: 6px;
    margin-left: 2%;
}

footer p{
    font-size: 25px;
}

.newsletter-section {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8585 100%);
    padding: 4rem 2rem;
    margin: 2rem 0;
    color: white;
    text-align: center;
}

.newsletter-container {
    max-width: 800px;
    margin: 0 auto;
}

.newsletter-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.newsletter-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-form .form-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.newsletter-form input[type="email"] {
    padding: 1rem;
    border: none;
    border-radius: 5px;
    width: 100%;
    max-width: 400px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 1rem 2rem;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #444;
}

.form-check {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.form-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

.form-check label a {
    color: white;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .newsletter-form .form-group {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-form button {
        width: 100%;
        max-width: 400px;
    }
}

/* Bouton retour en haut amélioré */
.back-to-top {
    position: fixed;
    bottom: -60px;
    right: 30px;
    background-color: #ba181b;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 9999;
}

.back-to-top.visible {
    bottom: 30px;
    opacity: 0.9;
    cursor: pointer;
}

.back-to-top:hover {
    background-color: #d00000;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Ajustement pour les écrans mobiles */
@media (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        right: 20px;
        font-size: 20px;
    }

    .back-to-top.visible {
        bottom: 20px;
    }
}

/* Ajustement pour éviter le conflit avec le chat */
@media (max-width: 600px) {
    .back-to-top.visible {
        bottom: 90px;
    }
}