:root {
    --blue-ocean: #1D636C;
    --green-pine: #192C27;
    --sand-light: #FBFAF6;
    --sand-gold: #E6C28B;
    --energy-orange: orange;
    /*#E76F51;*/
    --gray-rock: #2E2E2E;
    --white-soft: #FFFFFF;

    --font-race: normal normal normal 80px/1.2em wfont_e83dd3_6f318e5aeb8f4f74958529a66f459bda, wf_6f318e5aeb8f4f74958529a66, orig_jost_bold;
}

@font-face {
    font-display: swap;
    font-family: wf_6f318e5aeb8f4f74958529a66;
    src: url("https://static.wixstatic.com/ufonts/e83dd3_6f318e5aeb8f4f74958529a66f459bda/woff2/file.woff2") format("woff2"), url("https://static.wixstatic.com/ufonts/e83dd3_6f318e5aeb8f4f74958529a66f459bda/woff/file.woff") format("woff"), url("https://static.wixstatic.com/ufonts/e83dd3_6f318e5aeb8f4f74958529a66f459bda/ttf/file.ttf") format("ttf");
}

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

body {
    font-family: Arial, sans-serif;
    background: var(--sand-light);
    color: var(--green-pine);
}

/* HEADER */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--blue-ocean);
    color: var(--white-soft);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 45px;
}

.logo span {
    font-weight: bold;
    font-size: 1.1rem;
}

/* FOOTER */
.footer {
    background: var(--green-pine);
    color: var(--white-soft);
    padding: 2rem 1rem;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
}

.footer-content > div {
    flex: 1;
}

.footer-menu {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
}

.footer-inner h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links a {
    color: var(--sand-light);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    margin-bottom: .5rem;
}

/* Effet underline animé */
.footer-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--energy-orange);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-copy {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 2rem;
}

.footer-logo {
    text-align: right;
}

.footer-logo img {
    width: 50%;
    margin-right: 1rem;
}

/* MENU DESKTOP */
.nav-desktop {
    display: flex;
    gap: 1.5rem;
}

.nav-desktop a {
    color: var(--white-soft);
    text-decoration: none;
    font-weight: 600;
}

/* SUBMENU DESKTOP */
.has-submenu {
    position: relative;
}

.has-submenu>a {
    cursor: pointer;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: 0.3s ease;
    z-index: 1000;
}

.submenu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--green-pine);
    text-decoration: none;
    font-weight: 600;
}

.submenu a:hover {
    background: var(--sand-gold);
}

.submenu-separator {
    height: 1px;
    background: var(--sand-gold);
    margin: 0.5rem 0;
    opacity: 0.8;
}

/* AFFICHAGE AU SURVOL PC */
.has-submenu:hover .submenu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* MENU MOBILE */
.menu-toggle {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--white-soft);
}

/* MOBILE FULLSCREEN MENU */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: var(--green-pine);
    transform: translateX(100%);
    transition: transform .4s ease;
    z-index: 9999;
    padding: 2rem;
}

.mobile-menu.active {
    transform: translateX(0);
}

.menu-close {
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--white-soft);
    float: right;
}

.mobile-menu ul {
    list-style: none;
    text-align: center;
}

.mobile-menu li {
    margin: 1.5rem 0;
}

.mobile-menu a {
    color: var(--white-soft);
    font-size: 1.8rem;
    text-decoration: none;
    font-weight: bold;
}

body.menu-open {
    overflow: hidden;
}

/* MOBILE SUBMENU */
.mobile-submenu .submenu-toggle {
    width: 100%;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
}

.submenu-mobile {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.mobile-submenu.active .submenu-mobile {
    max-height: 500px;
}

.submenu-mobile a {
    font-size: 1.4rem;
    color: var(--sand-light);
}

.submenu-separator-mobile {
    height: 1px;
    background: var(--sand-gold);
    margin: 1rem 0;
    opacity: 0.6;
}

/* CONTENT */
section {
    margin: auto;
    padding: 3rem 1rem;
    text-align: center;
}

h2 {
    color: var(--green-pine);
}

.cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 2rem 0rem;
}

.card {
    background-color: var(--white-soft);
    border-radius: 10px;
    width: 250px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-head {
    background-color: var(--blue-ocean);
    color: var(--white-soft);
    padding: 0.5rem 0rem;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding: 0.75rem 0rem;
}

.card-body {
    padding: 1rem;
}

.btn-card {
    text-align: end;
}

.btn-small {
    display: inline-block;
    margin-top: 1rem;
    background-color: var(--energy-orange);
    color: var(--white-soft);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    text-decoration: none;
}

/* ANIMATION SCROLL */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* HERO */
.hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: end;


    color: var(--white-soft);
}

/* Overlay sombre */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

/* Contenu au-dessus de l'image */
.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    max-width: 900px;
}

.hero h1 {
    font: var(--font-race);
}

.hero p {
    font-size: 1.3rem;
}

/* RESPONSIVE */
@media screen and (max-width: 465px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-content {
        padding: .5rem;
    }
}

@media(max-width:767px) {
    .nav-desktop {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .footer {
        margin-top: 1rem;
    }

    .footer-inner h3 {
        font-size: 1rem;
    }

    .footer-links {
        gap: unset !important;
    }


    .footer-links a {
        font-weight: 300;
    }

    .footer-content {
        flex-direction: column-reverse;
    }

    .footer-logo img {
        width: 100%;
        padding-bottom: 1.5rem;
    }
    
    .footer-copy {
        font-size: 0.7rem;
        margin-top: 1rem;
    }

    section {
        padding: 1rem 1rem;
    }
}

@media(min-width:768px) {
    .mobile-menu {
        display: none;
    }
}

@media (max-width: 600px) {
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}