/* =========================
   GENERAL
   ========================= */

body {
    background: rgb(250, 248, 242);
    font-family: Arial, sans-serif;
    margin: 1;
   p, .content p, main p {
      font-size: 20px;
      line-height: 1.5;
      text-align: justify;
      hypens: auto;
      text-justify: inter-word;
      word-spacing: -0.05em;
}
   .texte-centre {
      text-align: center;
      -webkit-hypens: manual;
      hypens: manual;
}      
}

h2 {
   font-family: Charter;
   font-size: 28px;
}

html {
    scroll-behavior: smooth;
}


/* =========================
   NAVBAR - DESKTOP
   ========================= */

.navbar {
    display: flex;
    position: sticky;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;
    top: 0;
    z-index: 1000;

    background: rgb(54, 155, 151);
    width: 100%;
    margin: 0;
    padding: 5px 20px;
    box-sizing: border-box;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    width: 180px;
    height: auto;
}

.right-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.big-title {
    font-size: 75px;
    font-weight: bold; 
    color: white;
    margin: 0 0 10px 0;
    line-height: 1.1;
   font-family: Charter;
}

.sections {
    display: flex;
    gap: 40px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.sections a {
    text-decoration: none;
    color: white;
    font-size: 20px;
    font-weight: 500;
    transition: color 0.3s ease-in-out;
}

.sections a:hover {
    color: #ffd700;
}


/* Hamburger is hidden on desktop */

.menu-toggle {
    display: none;
}


/* =========================
   CONTENT
   ========================= */

section {
    scroll-margin-top: 180px;
    padding: 80px 20px;
    color: rgb(8, 8, 8);
    max-width: 800px;
    margin: 0 auto;
}


/* =========================
   FOOTER
   ========================= */

.footer {
    background: rgb(54, 155, 151);
    color: white;
    text-align: center;
    padding: 20px 15px;
    margin-top: 60px;
}

.support-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.support-logos img {
    max-height: 40px;
    width: auto;
}

.contact-icons {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    margin-top: 20px;
}

.contact-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: rgb(8, 8, 8);
    font-size: 16px;
    gap: 8px;
}

.contact-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: transform 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
}

.contact-icon img:hover {
    transform: scale(1.1);
    opacity: 0.8;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 768px) {

    /* ---------- NAVBAR ---------- */

    .navbar {
        position: sticky;
        top: 0;
        z-index: 1000;

        display: grid;
        grid-template-columns: 50px 1fr 50px;
        align-items: center;

        width: 100%;
        min-height: 58px;

        padding: 7px 12px;
        gap: 0;

        background: rgb(54, 155, 151);
        box-sizing: border-box;
    }


    /* Small logo on the LEFT */

    .logo {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 50px;
    }

    .logo img {
        width: 42px;
        height: 42px;
        object-fit: contain;
    }


    /* Plan B in the CENTER */

    .right-section {
        display: contents;
    }

    .big-title {
        grid-column: 2;

        font-size: 25px;
        line-height: 1;
        font-weight: bold;

        text-align: center;
        color: white;

        margin: 0;
    }


    /* ---------- HAMBURGER ---------- */

    .menu-toggle {
        grid-column: 3;

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

        width: 44px;
        height: 44px;

        padding: 7px;
        margin: 0;

        border: none;
        border-radius: 6px;

        background: transparent;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;

        width: 25px;
        height: 3px;

        margin: 3px 0;

        background: white;
        border-radius: 2px;

        transition:
            transform 0.25s ease,
            opacity 0.25s ease;
    }


    /* ---------- FOLDABLE MENU ---------- */

    .sections {
        grid-column: 1 / -1;

        display: none;

        width: 100%;

        flex-direction: column;
        align-items: center;

        gap: 0;

        margin: 6px 0 0 0;
        padding: 5px 0 8px 0;

        box-sizing: border-box;
    }

    .sections.open {
        display: flex;
    }

    .sections a {
        width: 100%;

        padding: 11px 10px;

        box-sizing: border-box;

        text-align: center;

        font-size: 17px;
        line-height: 1.2;

        color: white;

        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .sections a:last-child {
        border-bottom: none;
    }

    .sections a:hover {
        color: #ffd700;
    }


    /* ---------- HAMBURGER -> X WHEN OPEN ---------- */

    .menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }


    /* ---------- CONTENT ---------- */

    section {
        scroll-margin-top: 75px;
        padding: 40px 15px;
    }

    section h2 {
        font-size: 28px;
    }


    /* ---------- CONTACT ---------- */

    .contact-icons {
        gap: 20px;
        margin-top: 15px;
    }

    .contact-icon {
        font-size: 14px;
        gap: 6px;
    }

    .contact-icon img {
        width: 42px;
        height: 42px;
    }


    /* ---------- FOOTER ---------- */

    .footer {
        padding: 15px 10px;
        margin-top: 40px;
    }

    .support-logos {
        gap: 12px;
        margin-bottom: 8px;
    }

    .support-logos img {
        max-width: 80px;
        max-height: 32px;
    }

    .footer p {
        margin: 8px 0 0;
        font-size: 13px;
    }
}


/* =========================
   VERY SMALL PHONES
   ========================= */

@media (max-width: 400px) {

    .navbar {
        grid-template-columns: 44px 1fr 44px;
        padding: 6px 8px;
    }

    .logo {
        width: 44px;
    }

    .logo img {
        width: 36px;
        height: 36px;
    }

    .big-title {
        font-size: 22px;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
    }

    .menu-toggle span {
        width: 23px;
    }

    .sections a {
        font-size: 16px;
        padding: 10px;
    }
}
