/* RÉINITIALISATION */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* FONTS */
@font-face {
    font-family: 'GillSans';
    src: url('../fonts/GillSans/GillSans-UltraBold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'GillSans';
    src: url('../fonts/GillSans/GillSans-UltraBold-Italic.otf') format('opentype');
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'Blisstwin';
    src: url('../fonts/Blisstwin/Blisstwin.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Americane';
    src: url('../fonts/Americane/Americane-Black.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Americane';
    src: url('../fonts/Americane/Americane-BlackItalic.otf') format('opentype');
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'Americane';
    src: url('../fonts/Americane/Americane-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* GLOBAL */
body {
    display: block;
    background-color: #FFEFE6;
}

/* HEADER */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #FFEFE6;
    will-change: transform;
    transform: translateZ(0);
    transition: box-shadow 0.3s ease;
}

.header-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px 0;
}

.header-logo {
    width: 100%;
    display: flex;
    justify-content: center;
}

.header-logo img {
    height: 160px;
    margin-top: 20px;
    object-fit: contain;
    transform-origin: left center;
    transition: transform 0.3s ease;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-top: 1rem;
    transition: margin 0.3s ease, gap 0.3s ease;
}

.header-nav a {
    font-family: 'GillSans-UltraBold', sans-serif;
    font-size: 1.2rem;
    display: inline-block;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    color: #FFA3C8;
    transition: color 0.3s, transform 0.3s ease;
    cursor: pointer;
}

.header-nav a:hover {
    color: #FF1D0F;
}

a.btn-contact {
    font-family: 'GillSans-UltraBold', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    background-color: #FFA3C8;
    color: #FF1D0F;
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s, transform 0.15s, color 0.2s;
    cursor: pointer;
}

a.btn-contact:hover {
    background-color: #FF1D0F;
    color: #FFA3C8;
    transform: scale(1.04);
}

/* Menu Burger */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.burger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: #FFD3EA;
    border-radius: 999px;
    transition: transform 0.3s, opacity 0.3s;
}

/* Croix quand menu ouvert */
.burger.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
    opacity: 0;
}

.burger.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* État Sticky pour animation */
.header--sticky {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.header--sticky .header-content {
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    flex-wrap: nowrap;
}

.header--sticky .header-logo {
    width: auto; 
}

.header--sticky .header-logo img {
    margin-top: 0;
    margin-left: 50px;
    transform: scale(0.6);
}

.header--sticky .header-nav {
    margin-top: 0;
    gap: 3rem;
    margin-right: 50px;
}

.header--sticky .header-nav a {
    transform: scale(1.15);
}



/* FOOTER */
.footer {
    background-color: #FF1D0F;
    color: #FFEFE6;
    padding: 3rem 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo img {
    height: 180px;
    width: auto;
    object-fit: contain;
    box-shadow:  0 6px 16px rgba(0, 0, 0, 0.07);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-nav a {
    font-family: 'Americane-Black', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    color: #FFEFE6;
    cursor: pointer;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #FFA3C8;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.5rem;
}

.footer-lk img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    transition: transform 0.3s;
}

.footer-lk:hover img {
    transform: scale(1.08);
}

.footer-legal {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
}

.footer-legal a {
    font-family: 'Americane-Regular', sans-serif;
    font-size: 1rem;
    font-style: normal;
    font-weight: 100;
    color: #FFEFE6;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: #FFA3C8;
}

.footer-legal span {
    font-family: 'Americane-Regular', sans-serif;
    font-size: 1rem;
    font-style: italic;
    font-weight: 100;
    color: #FFEFE6;
    transition: opacity 0.3s;
    margin-top: 1px;
}

/* ── LOCALE SWITCHER ── */
.locale-switcher {
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.locale-switcher:hover {
    transform: scale(1.1);
}

.locale-flag {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 50%;
}

/* Dans le footer, le drapeau s'adapte à la couleur de fond */
.footer-nav .locale-switcher .locale-flag {
    width: 24px;
    height: 24px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Sur mobile quand le menu est ouvert */
@media (max-width: 1023px) {
    .header-nav.is-open .locale-switcher {
        justify-content: flex-start;
    }
}

/* MEDIA QUERY */
/* =============================
   TABLETTE 768px – 1023px
   ============================= */
@media (max-width: 1023px) {

    /* HEADER */
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 12px 24px;
        flex-wrap: nowrap;
    }

    .header-logo {
        width: auto;
        justify-content: flex-start;
    }

    .header-logo img {
        height: 80px;
        margin-top: 0;
    }

    .header-nav {
        display: none; /* remplacé par le burger */
        margin-top: 0;
    }

    .burger {
        display: flex;
    }

    /* Menu ouvert en tablette */
    .header-nav.is-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #FFEFE6;
        padding: 1.5rem 2rem;
        gap: 1.2rem;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        z-index: 999;
    }

    /* FOOTER */
    .footer-content {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 2rem;
    }

    .footer-logo {
        grid-column: 1;
        grid-row: 1;
    }

    .footer-nav {
        grid-column: 2;
        grid-row: 1;
    }

    .footer-right {
        grid-column: 1 / -1;
        grid-row: 2;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .footer-legal {
        align-items: flex-start;
    }
}

/* =============================
   MOBILE ≤767px
   ============================= */
@media (max-width: 767px) {

    /* HEADER */
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 16px;
        flex-wrap: nowrap;
    }

    .header-logo {
        width: auto;
        justify-content: flex-start;
    }

    .header-logo img {
        height: 60px;
        margin-top: 0;
    }

    .header-nav {
        display: none;
        margin-top: 0;
    }

    .burger {
        display: flex;
    }

    /* Menu ouvert en mobile */
    .header-nav.is-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #FFEFE6;
        padding: 1.5rem 1.5rem;
        gap: 1.2rem;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .header-nav a {
        font-size: 1.1rem;
    }

    /* FOOTER */
    .footer {
        padding: 2rem 1.5rem;
    }

    .footer-content {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 1.5rem;
        align-items: start;
    }

    .footer-logo {
        grid-column: 1;
        grid-row: 1;
    }

    .footer-logo img {
        height: 120px;
    }

    .footer-nav {
        grid-column: 2;
        grid-row: 1;
        gap: 0.5rem;
    }

    .footer-nav a {
        font-size: 0.95rem;
    }

    .footer-right {
        grid-column: 1 / -1;
        grid-row: 2;
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }

    .footer-legal {
        align-items: flex-start;
    }

    .footer-legal a,
    .footer-legal span {
        font-size: 0.85rem;
    }

    .footer-lk img {
        width: 46px;
        height: 46px;
    }
}