/* En-tête */
/* ✅ Style de base (PC) */
header {
    background-color: #0044cc;
    color: white;
    padding: 10px 0;
    position: relative;
    width: 100%;
    z-index: 1000;
}

.menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.menu-items {
    display: flex;
}

.menu a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.menu a:hover {
    background-color: white;
    color: #0044cc;
    border-radius: 5px;
}

/* ✅ Logo */
.logo {
    width: 100px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.logoDiv {
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.logoDiv:hover {
    background-color: white;
}

.logoDiv:hover .logo {
    content: url("../images/logo-auto-ecole-premium-is-transparent-tAyDMnG.webp");
    opacity: 0.8;
    transform: scale(1.1);
}

/* ✅ Menu Burger caché par défaut */
.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
    color: white;
}

/* ✅ 📲 RESPONSIVE : TABLETTES (≤1024px) */
@media screen and (max-width: 1024px) {
    .menu {
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 15px;
    }

    .menu-items {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        background: #0044cc;
        position: absolute;
        top: 60px;
        left: 0;
        z-index: 999;
    }

    .menu-items a {
        padding: 15px;
        display: block;
        width: 100%;
        border-bottom: 1px solid white;
    }

    .menu-items.active {
        display: flex;
    }
}

/* ✅ 📱 RESPONSIVE : SMARTPHONES (≤768px) */
@media screen and (max-width: 768px) {
    .menu-toggle {
        font-size: 30px;
    }

    .menu-items a {
        font-size: 18px;
        padding: 12px;
    }

    .logo {
        width: 80px;
    }
}

/* Bandeau cookies */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 90%;
    background: #0044cc;
    color: #fff;
    padding: 16px 24px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    animation: slideUp 0.5s ease-in-out;
}

.cookie-banner p {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
}

.cookie-banner a {
    color: #fff;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.cookie-banner button {
    padding: 6px 14px;
    font-size: 0.9rem;
    background: #fff;
    color: #0044cc;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cookie-banner button:hover {
    background: #e6e6e6;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@media (max-width: 500px) {
    .cookie-banner {
        padding: 12px 16px;
        font-size: 0.85rem;
    }

    .cookie-banner button {
        font-size: 0.85rem;
        padding: 5px 10px;
    }
}

/* Pied de page */
/* ✅ Style de base (PC) */
footer {
    background-color: #f8f8f8;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    border-top: 1px solid #ddd;
    flex-wrap: wrap;
    text-align: center;
}

footer section {
    margin: 10px 30px;
    text-align: center;
    max-width: 400px;
}

footer p, footer h4, footer em {
    margin: 5px 0;
    font-size: 0.9em;
    color: #666;
}

footer a {
    color: #0044cc;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}

/* ✅ 📲 RESPONSIVE : TABLETTES (≤1024px) */
@media screen and (max-width: 1024px) {
    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px;
    }

    footer section {
        max-width: 500px;
        margin-bottom: 20px;
    }
}

/* ✅ 📱 RESPONSIVE : SMARTPHONES (≤768px) */
@media screen and (max-width: 768px) {
    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px;
    }

    footer section {
        width: 90%;
        max-width: 350px;
    }

    footer p {
        font-size: 0.85em;
    }
}
