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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem; 
}

body p, body li, body a, body textarea, body input, body button, body label {
    font-family: "Inter", sans-serif;
}

body h1, body h2, body h3, body h4 {
    font-family: "Montserrat", sans-serif;
}

body h1 {
    font-size: 2rem;
    font-weight: 600;
}

body h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2F2D33;
}

body h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #2F2D33;
}

section p {
    font-size: 1rem;
    color: #2F2D33;
    line-height: 1.5;
    text-align: justify;
}

.cta-button1, .cta-button2, .cta-button3 {
    width: 30%;
    padding: 1rem;
    margin: 3rem auto;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 20px;
    transition: color 0.3s ease-in-out;
}

.cta-button1 {
    background-color: #01687D;
}

.cta-button2 {
    background-color: #a33838;
}

.cta-button3 {
    background-color: #f2f2f2;
}

.cta-button1:hover, .cta-button2:hover, .cta-button3:hover {
    transform: translateY(-2px);
    transition: color 0.3s ease-in-out, transform 0.3 ease-in-out;
}

.cta-button1:hover {
    background-color: #018EA0;
}

.cta-button2:hover {
    background-color: #c55a5a;
}

.cta-button3:hover {
    background-color: #f5f3ed;
}

.cta-button1 a, .cta-button2 a {
    color: white;
    text-decoration: none;
}

.cta-button3 a {
    color: #a33838;
    text-decoration: none;
}

.cta-button1 a, .cta-button2 a, .cta-button3 a {
    font-size: 1.2rem;
}

.container {
    width: 90%; 
    margin: 0 auto; 
    padding-inline:1rem;
}


/* Navbar */
#navbar {
    position: sticky;
    top: 0;
    z-index: 1000;  
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    height: 160px;
    width: 100%;
    align-items: center;
    background-color: #a33838;
    padding-inline: 3rem;
}

#navbar img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    padding: 0;
    margin: 0;
}

#navbar a, #navbar .dropbtn {
    text-decoration: none;
    color: #f2f2f2;
    font-size: 1.25rem;
    padding: 1rem 1.5rem;
    font-weight: 600;
    text-align: left;
    transition: color 0.2s ease;
}

.nav {
    display: flex;
    flex-direction: column;
    align-items: stretch; 
    justify-content: center;  
    height: 100%; 
    width: 100%;
}

.nav-up {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 2rem;
    width: 100%;
}

.nav-down {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
}

.dropdown {
    position: relative;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}

.dropdown .dropbtn {
    display: inline-block;
    padding: 2rem 1rem;
}

.dropdown:hover .dropdown-content, .dropdown:focus-visible .dropdown-content{
    border-top: #f2f2f2 2px solid;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #a33838;
    top: 100%;
    left: 0;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    z-index: 1;
    flex-direction: column;
    padding: 0.6rem 0;
}

.dropdown-content a {
    display: block;
    padding: 0.6rem 1rem;
    float: none;
    color: #f2f2f2;
    text-decoration: none;
    text-align: left;
    transition: background-color .15s ease, color .15s ease;
}

.dropdown-content a:hover, .dropdown-content a:focus-visible{
  background-color: #89AEB5; 
  color: #2F2D33;      
}

.dropdown:hover .dropdown-content, .dropdown:focus-within .dropdown-content{
  display: block;
}

.dropdown, .dropdown-content a { 
    float: none; 
}

.sidebar-lang {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar-lang button {
    background: none;
    border: none;
    font-family: "Inter", sans-serif;
    font-size: 1.25rem;
    color: #f2f2f2;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    padding: 0.6rem 1rem;
    font-weight: 600;
    height: 100%;
}

.sidebar-lang button:hover, .nav-up a:hover {
    border-bottom: 2px solid #f2f2f2;
}

/* Shrink navbar on scroll */
#navbar.shrink {
    height: 120px;
    transition: height 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#navbar.shrink img {
    width: 110px;
    height: 110px;
    transition: height 0.3s ease;
}

#navbar.shrink a, #navbar.shrink .dropbtn, #navbar.shrink .sidebar-lang button {
    font-size: 1rem;
    transition: font-size 0.3s ease;
}
/* Navbar hamburger */
.nav-toggle {
    top: 1.5rem;
    left: 1.5rem;
    position: absolute;
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: #f2f2f2;
    cursor: pointer;
}
/* Footer */
.cta-section {
    position: relative;
    background: #000 url('../photos/accueil.JPG') no-repeat center center/cover;
    width: 100%;
    min-height: 240px;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.35), rgba(0,0,0,.35));
}

.cta-section-content {
    position: relative;
    z-index: 1;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
}

.cta-section-content h2 {
    color: #fdf9f0;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section-content .cta-button2 {
    display: inline-block;
    background-color: #a33838;
    color: #fff;
    text-decoration: none;
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    font-weight: 600;
}

.cta-section-content .cta-button2:hover {
    background:#8f2f2f;
    transition: background-color 0.3s ease-in-out;
}

footer {
    background-color: #01687D;
    color: #f2f2f2;
    font-size: 1rem;
}

footer a {
    text-decoration: none;
    color: #f2f2f2;
    font-size: 1rem;
}

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

footer img {
    width: 120px;
    height: auto;
}

footer .icon  {
    font-size: 1.25rem;
    padding: 0.25rem;
    color: #f2f2f2;
}

.icon-media  {
    font-size: 1.4rem;
    color: #f2f2f2;
}

.footer-up {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem 0;
}

.footer-left {
    display: flex;
    justify-content: space-around; 
    flex: 1 1 300px;
    gap: 1.25rem;
}

.footer-info p {
    margin: 0.25rem 0;
}

.footer-info a {
    text-decoration: none;
}

.footer-right {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    flex: 2 1 500px;
    justify-content: space-between;
}

.footer-right ul {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: left;
    gap: 0.6rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-media {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-top: 1rem;
    gap: 0.6rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(242,242,242,.4);
}

.footer-down {
    text-align: center;
    padding: 1rem 0;
    border-top:1px solid rgba(242,242,242,.4);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: 1000ms;
}

.reveal.show {
    opacity: 1;
    transform: none;
}

/* Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 2rem;
    }

    h4 {
        font-size: 1.5rem;
    }

    body p, body li, body a, body textarea, body input, body button, body label, body blockquote {
        font-size: 1.1rem;
    }

    .cta-button1, .cta-button2, .cta-button3 {
        width: 50%;
    }

    section {
        width: 90%;
        padding: 1rem;
    }
}

@media (max-width: 1200px) {
    .nav-logo {
        z-index: 1001;
        display: block;
        align-self: center;
    }

    #navbar {
        height: 150px;
        padding: auto;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .nav-toggle {
        display: block;
        z-index: 1001;
        background: none;
        border: 0;
        font-size: 2rem;
        color: #f2f2f2;
    }

    body.nav-open .nav-toggle {
        position: fixed;
        top: 12px;
        right: 12px;
    }

    #primary-nav {
        position: fixed;
        inset: 0;
        left: -100%;
        background: linear-gradient(180deg, rgba(163,56,56,.98), rgba(163,56,56,.96));
        transition: left 0.3s ease;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 24px;
    }

    #primary-nav.is-open {
        left: 0;
    }

    #primary-nav .nav-up {
        position: absolute;
        bottom: 20px; left: 0; right: 0;
        display: flex;
        justify-content: center;
        gap: 1.25rem;
        opacity: .9;
    }

    .nav-down{
        display: flex;
        flex-direction: column;
        gap: .75rem;
        align-items: stretch;       
        width: 100%;
        text-align: center;
    }

    .dropdown {
        position: relative;
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;

    }

    .dropbtn {
        text-align: center;
        padding: 1rem 2rem;
        display: block;
        justify-content: center;
        color: #f2f2f2;
        background:rgba(0,0,0,.12); 
        border-radius:12px;
    }

    .dropbtn:hover, .dropbtn:focus-visible{ 
        background:rgba(0,0,0,.18); 
        text-decoration:none; 
    }

    .dropdown-content {
        display: none !important;
    }
}

@media (max-width: 768px) {

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    body p, body li, body a, body textarea, body input, body button, body label, body blockquote {
        font-size: 1rem;
    }

    #navbar {
        flex-direction: column;
    }

    .dropdown-content {
        position: static;
    }

    .cta-section {
        min-height: 180px;
    }

    .footer-up {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-right {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: nowrap;
        text-align: center;
        box-sizing: border-box;
        width: 100%;
    }

    .footer-right-col {
        width: 100% !important;
    }
}