/* Fait par Lochlann */

/* polices */
@import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&family=Madimi+One&display=swap');

/* base */
html { font-size: 16px; }

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body { font-family: 'Madimi One'; }

/* animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

body > *, header *, footer * { animation: fadeIn 0.8s ease-out both; }

header { animation-delay: 0s; }
footer { animation-delay: 0.6s; }

/* titres et effets */
.titre-site, .navigation-principale a, .bouton, .bouton-secondaire, h1, h2, h3, .titre-site-footer, .navigation-footer a {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

h1 { font-family: 'Luckiest Guy'; color: #003B93; font-size: 65px; }
h2 { font-family: 'Luckiest Guy'; color: #003B93; font-size: 40px; margin-top: 0; margin-bottom: 10px; }
h3 { font-family: 'Luckiest Guy'; color: #003B93; font-size: 1.5rem; margin-top: 25px; margin-bottom: 10px; }

/* header */
header {
    width: 100%;
    padding: 0px 20px;
    padding-top: 10px;
    margin-bottom: 30px;
    background-color: #ffffff;
    font-family: 'Luckiest Guy';
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; 
    z-index: 20; 
}

.logo-texte { display: flex; align-items: center; text-decoration: none; color: #003B93; }
.logo { height: 45px; width: auto; margin-right: 10px; }
.titre-site { font-size: 2.5rem; }

.hamburger-menu { display: none; cursor: pointer; height: 40px; width: auto; }

/* navigation */
.navigation-principale a {
    margin-left: 20px;
    text-decoration: none;
    color: #000000;
    font-size: 1.1rem;
    padding: 5px 10px;
    font-family: 'Madimi One';
    display: inline-block;
}

.theme-toggle { margin: 0 10px; vertical-align: middle; height: 30px; width: 30px; cursor: pointer; }

.navigation-principale a:hover { color: #003B93; transform: scale(1.1); }

/* boutons */
.bouton {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #003B93;
    color: white;
    border: 2px solid #003B93;
    border-radius: 10px;
    font-family: 'Madimi One';
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.bouton:hover { transform: scale(0.98); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); }

.bouton-secondaire {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: transparent;
    color: #003B93;
    border: 2px solid #003B93;
    border-radius: 10px;
    font-family: 'Madimi One';
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    margin-top: 20px;
}

.bouton-secondaire:hover {
    background-color: #003B93;
    color: white;
    transform: scale(1.05);
}

/* footer (INCHANGÉ) */
footer {
    background-color: #ffffff;
    padding: 20px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #000000;
    text-align: initial;
    border-top: 1px solid #ccc;
    margin-top: 50px;
}

.logo-texte-footer { display: flex; align-items: center; }
.logo-texte-footer > a { display: flex; align-items: center; text-decoration: none; }
.logo-footer { width: 30px; height: auto; margin-right: 10px; }
.titre-site-footer { font-size: 1.8rem; font-family: 'Luckiest Guy'; color: #003B93; }

.navigation-footer { display: flex; align-items: center; flex-grow: 1; padding-left: 30px; }
.navigation-footer a {
    color: #000000;
    text-decoration: none;
    margin: 0 15px;
    padding: 0;
    font-family: 'Madimi One';
    display: inline-block;
}

.navigation-footer a:hover { color: #003B93; transform: scale(1.05); }

.social-icons { display: flex; align-items: center; flex-shrink: 0; }
.social-icons img { height: 25px; width: auto; margin-left: 15px; }
.social-icons img:hover { transform: scale(1.2); }

.footer-adresse {
    font-style: normal;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #555;
    font-family: 'Madimi One', sans-serif;
    text-align: center;
}

/* mode sombre */
body.dark-mode { background-color: #4b4b4b; color: #FFFFFF; }
body.dark-mode header, body.dark-mode footer { background-color: #4b4b4b; border-top: 1px solid #555; }
body.dark-mode .logo-texte, body.dark-mode .titre-site, body.dark-mode .titre-site-footer { color: #fc4d4d; }
body.dark-mode .navigation-principale a, body.dark-mode .navigation-footer a { color: #FFFFFF; }
body.dark-mode .navigation-principale a:hover, body.dark-mode .navigation-footer a:hover { color: #fc4d4d; }
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3 { color: #fc4d4d; }
body.dark-mode .bouton { background-color: #fc4d4d; border-color: #fc4d4d; }
body.dark-mode .bouton-secondaire { color: #fc4d4d; border-color: #fc4d4d; }
body.dark-mode .bouton-secondaire:hover { background-color: #fc4d4d; color: #ffffff; }
body.dark-mode .footer-adresse { color: #bbb; }

/* responsive */
@media (max-width: 768px) {
    .navigation-principale { 
        display: none; 
        flex-direction: column; 
        align-items: center; 
        background-color: #f8f8f8; 
        position: absolute; 
        top: 65px; 
        left: 0; 
        width: 100%; 
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
        z-index: 15; 
        padding-bottom: 10px; 
    }

    body.dark-mode .navigation-principale { background-color: #2a2a2a; }

    .navigation-principale a { 
        margin-left: 0; 
        margin-top: 10px; 
    }

    .navigation-principale.active { display: flex; }
    .hamburger-menu { display: block; }
    
    footer { 
        flex-direction: column; 
        text-align: center; 
        padding: 40px 20px;
        gap: 30px;
    }

    .navigation-footer {
        flex-direction: column;
        padding-left: 0;
        gap: 15px;
    }

    .navigation-footer a {
        margin: 0;
    }

    .social-icons {
        justify-content: center;
    }

    .social-icons img {
        margin: 0 10px;
    }

}

.haut-page {
    position: fixed;
    bottom: 20px;
    right: 5px;
    width: 40px;
    height: 50px;
    cursor: pointer;
    border-color: #003B93;
    border-radius: 10px;
}
