/* Réinitialisation */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #f8f8f8;
    color: #333;
    transition: background 0.3s, color 0.3s;
}

/* Thème sombre */
[data-theme="dark"] {
    background: #121212;
    color: #ffffff;
}

/* Header */
.header-top {
    background: linear-gradient(135deg, #ff0000, #b71c1c);
    padding: 15px 20px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    animation: fadeIn 1s ease-in-out;
}

.header-top img {
    height: 50px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.logo h1 {
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    margin-top: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

#theme-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    margin-left: auto;
    transition: transform 0.3s ease, color 0.3s ease;
}

#theme-toggle:hover {
    transform: scale(1.2);
    color: #ffcccb;
}

/* Intro */
.intro {
    text-align: center;
    padding: 20px;
    animation: slideIn 1s ease-out;
}

/* Menu déroulant */
.collapsible-menu {
    max-width: 800px;
    margin: 20px auto;
    animation: fadeIn 1.2s ease-in-out;
}

.collapsible {
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.collapsible:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.collapsible-header {
    background: linear-gradient(135deg, #ff0000, #ff00a2);
    color: white;
    padding: 15px;
    display: block;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.collapsible-header:hover {
    background: linear-gradient(135deg, #ff00a2, #ff0000);
}

.collapsible-content {
    background: #f9f9f9;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 15px;
}

.collapsible input[type="checkbox"] {
    display: none;
}

.collapsible input[type="checkbox"]:checked ~ .collapsible-content {
    max-height: 200px;
    padding: 15px;
}

footer {
    background: linear-gradient(135deg, #ff0000, #b71c1c);
    color: #ffffff;
    padding: 3rem 1rem;
    margin-top: 4rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Ombre principale du footer */
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    text-align: left;
}

/* Logo et description */
.footer-logo {
    flex: 1 1 300px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Ombre pour la section logo */
    padding: 1rem;
    border-radius: 8px; /* Ajout d'arrondi pour plus de modernité */
}

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #ffcccb;
}

.footer-logo p {
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* Navigation rapide */
.footer-nav {
    flex: 1 1 200px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Ombre pour la section navigation */
    padding: 1rem;
    border-radius: 8px; /* Ajout d'arrondi */
}

.footer-nav h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #ffcccb;
}

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

.footer-nav ul li {
    margin-bottom: 0.5rem;
}

.footer-nav ul li a {
    text-decoration: none;
    color: #ffffff;
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
    color: #ffcccb;
}

/* Réseaux sociaux */
.footer-socials {
    flex: 1 1 200px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Ombre pour la section réseaux sociaux */
    padding: 1rem;
    border-radius: 8px; /* Ajout d'arrondi */
    text-align: left;
}

.footer-socials h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #ffcccb;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: block;
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15); /* Ombre subtile pour les icônes */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-icons a img {
    width: 20px;
    height: 20px;
}

.social-icons a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Ombre plus forte au survol */
    background: #ffcccb;
}

/* Bas de page */
.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    opacity: 0.8;
}

.footer-bottom a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #ffcccb;
}


/* Responsive Design */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        padding: 10px;
    }


    .collapsible-header {
        font-size: 1rem;
        padding: 10px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
