
/* RESET */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f7fb;
    color: #333;
    line-height: 1.7;
}


/* PREMIÈRE EN-TÊTE */

.main-header {

    background: #173b65;
    color: white;

    padding: 18px 5%;

    display: flex;
    align-items: center;
    justify-content: space-between;

}

.logo {

    display: flex;
    align-items: center;
    gap: 15px;

}

.logo-icon {

    width: 50px;
    height: 50px;

    background: #35b879;

    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 25px;
    font-weight: bold;

}

.site-title h1 {

    font-size: 25px;

}

.site-title p {

    font-size: 13px;
    color: #d5e6f7;

}


/* BURGER */

.burger {

    display: none;

    background: none;
    border: none;

    cursor: pointer;

    width: 35px;
    height: 30px;

    flex-direction: column;
    justify-content: space-between;

    z-index: 1001;

}

.burger span {

    height: 4px;
    width: 100%;

    background: #ffffff;

    border-radius: 5px;

    transition: 0.3s;

}

.burger.active span:nth-child(1) {

    transform: translateY(13px) rotate(45deg);

}

.burger.active span:nth-child(2) {

    opacity: 0;

}

.burger.active span:nth-child(3) {

    transform: translateY(-13px) rotate(-45deg);

}


/* DEUXIÈME EN-TÊTE */

.navigation {

    background: #e4f0fc;

    position: sticky;
    top: 0;

    z-index: 1000;

    box-shadow: 0 3px 10px rgba(0,0,0,0.08);

}

.nav-menu {

    display: flex;

    justify-content: center;

    list-style: none;

}

.nav-menu a {

    display: block;

    padding: 15px 25px;

    color: #173b65;

    text-decoration: none;

    font-weight: bold;

    transition: 0.3s;

}

.nav-menu a:hover {

    background: #c5e2fa;

    color: #168b62;

}


/* OVERLAY */

.overlay {

    display: none;

}


/* CONTENU */

.container {

    width: 92%;
    max-width: 1400px;

    margin: 35px auto;

    display: grid;

    grid-template-columns: 1fr 280px;

    gap: 30px;

}

.content {

    background: white;

    padding: 30px;

    border-radius: 15px;

    box-shadow: 0 5px 20px rgba(0,0,0,0.05);

}

section {

    margin-bottom: 45px;

}

h2 {

    color: #1767a5;

    font-size: 27px;

    margin-bottom: 20px;

    border-bottom: 2px solid #e2edf7;

    padding-bottom: 10px;

}

h3 {

    color: #239b70;

    margin-bottom: 10px;

}


/* CARTES */

.cards {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;

}

.card {

    background: #f0f6fc;

    padding: 22px;

    border-radius: 12px;

    transition: 0.3s;

}

.card:hover {

    transform: translateY(-5px);

    box-shadow: 0 8px 20px rgba(0,0,0,0.1);

}


/* SIDEBAR */

.sidebar {

    background: #e7f2fc;

    padding: 25px;

    border-radius: 15px;

    height: fit-content;

}

.sidebar ul {

    list-style: none;

}

.sidebar li {

    margin: 12px 0;

}

.sidebar a {

    color: #175d91;

    text-decoration: none;

}

.sidebar a:hover {

    color: #1a9a69;

}

.sidebar-box {

    background: white;

    padding: 15px;

    margin-top: 25px;

    border-radius: 10px;

}


/* GALERIE */

.gallery {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 15px;

}

.gallery img {

    width: 100%;

    height: 180px;

    object-fit: cover;

    border-radius: 12px;

    cursor: pointer;

    transition: 0.3s;

}

.gallery img:hover {

    transform: scale(1.04);

}


/* BOTTOM MENU */

.bottom-menu {

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 15px;

    padding: 20px;

    background: #dcecf9;

}

.bottom-menu a {

    text-decoration: none;

    color: #174b78;

    font-weight: bold;

    padding: 8px 18px;

    border-radius: 20px;

}

.bottom-menu a:hover {

    background: #b9d9f2;

}


/* FOOTER */

.footer {

    background: #173b65;

    color: white;

    padding: 45px 5%;

}

.footer-container {

    max-width: 1300px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 30px;

}

.footer-column h3 {

    color: #7ed6b0;

    margin-bottom: 15px;

}

.footer-column a {

    display: block;

    color: white;

    text-decoration: none;

    margin: 8px 0;

}

.footer-column a:hover {

    color: #7ed6b0;

}


/* SECOND FOOTER */

.footer-bottom {

    background: #102b49;

    color: white;

    text-align: center;

    padding: 18px;

    font-size: 14px;

}


/* BACK TO TOP */

#backToTop {

    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 45px;
    height: 45px;

    background: #27ae70;

    color: white;

    border: none;

    border-radius: 50%;

    font-size: 25px;

    cursor: pointer;

    display: none;

    z-index: 999;

}

#backToTop:hover {

    background: #168b58;

}


/* LIGHTBOX */

.lightbox {

    display: none;

    position: fixed;

    inset: 0;

    background: rgba(0,0,0,0.9);

    z-index: 2000;

    justify-content: center;

    align-items: center;

    padding: 20px;

}

.lightbox img {

    max-width: 95%;

    max-height: 85vh;

    border-radius: 10px;

}

.lightbox-close {

    position: absolute;

    top: 20px;
    right: 35px;

    color: white;

    font-size: 45px;

    cursor: pointer;

}


/* TABLETTE */

@media (max-width: 992px) {

    .container {

        grid-template-columns: 1fr;

    }

    .sidebar {

        width: 100%;

    }

    .footer-container {

        grid-template-columns: repeat(2, 1fr);

    }

}


/* MOBILE */

@media (max-width: 768px) {

    .main-header {

        padding: 15px 4%;

    }

    .site-title h1 {

        font-size: 19px;

    }

    .site-title p {

        font-size: 11px;

    }

    .burger {

        display: flex;

        margin-left: auto;

    }

    .navigation {

        position: fixed;

        top: 0;
        left: -280px;

        width: 270px;
        height: 100vh;

        background: #e7f2fc;

        transition: 0.35s;

        padding-top: 90px;

        z-index: 1002;

    }

    .navigation.open {

        left: 0;

    }

    .nav-menu {

        flex-direction: column;

    }

    .nav-menu a {

        padding: 15px 25px;

        border-bottom: 1px solid #d1e3f3;

    }

    .overlay.active {

        display: block;

        position: fixed;

        inset: 0;

        background: rgba(0,0,0,0.55);

        z-index: 1001;

    }

    .container {

        width: 94%;

        margin: 20px auto;

    }

    .content {

        padding: 20px;

    }

    .cards {

        grid-template-columns: 1fr;

    }

    .gallery {

        grid-template-columns: repeat(2, 1fr);

    }

    .gallery img {

        height: 140px;

    }

    .footer-container {

        grid-template-columns: 1fr 1fr;

    }

}


/* PETITS TÉLÉPHONES */

@media (max-width: 480px) {

    .logo-icon {

        width: 42px;
        height: 42px;

    }

    .site-title h1 {

        font-size: 17px;

    }

    h2 {

        font-size: 22px;

    }

    .gallery {

        grid-template-columns: 1fr;

    }

    .gallery img {

        height: auto;

        max-height: 250px;

    }

    .footer-container {

        grid-template-columns: 1fr;

        text-align: center;

    }

    .bottom-menu {

        gap: 5px;

    }

    .bottom-menu a {

        padding: 7px 10px;

        font-size: 13px;

    }

}
