/* =========================================================
   base.css
   ========================================================= */

/* --- 1. VARIABLES & GLOBALES --- */
* {
    box-sizing: border-box;
}

:root {
    --bg: #121212;
    --panel: #23282a;
    --accent: #7db8ff;
    --accent-color: #4a90e2;
    --accent-gold: #C6A66C;
    --muted: #9aa3a8;
    --gap: 16px;
    --btn-size: 48px;
    --bg-color: #1e1e1e;
    --card-bg: #1c1c1c;
    --shadow-color: rgba(0, 0, 0, 0.7);
    --text-color-white: #eee;
    --text-color-black: #111;
    --light-mode-shadow: rgba(81, 81, 81, 0.6);
    --navbar-bg: rgba(0,0,0,0.5);
    --nav-border: rgba(74,74,74,0.5);
    --instagram-color: #E1306C;
    --facebook-color: #1877F2;
    --linkedin-color: #036ddc;
    --social-hover-color: var(--accent-gold);
}

html, body {
    height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: sans-serif;
}

/* --- 2. BOUTON COMMANDER --- */

.order-btn {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
    text-shadow: 0 2px 0 var(--shadow-color);
}

.btn {
    display: inline-block;
    padding: 20px 40px;
    background-color: var(--accent-gold);
    color: white;
    text-decoration: none;
    border-radius: 18px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 7px 0 0 rgb(129, 106, 66);
}

.btn:hover {
    background-color: var(--accent-gold);
    transform: translateY(5px);
    box-shadow: 0 3px 0 0 rgb(129, 106, 66);
}

.lang-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.flag-btn {
    padding: 10px 20px !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mille-wok-title {
    width: 180px;
    display: block;
    margin-top: 5rem;
    margin-left: auto;
    margin-right: auto;
}

h1 {
    text-align: center;
    font-size: 25px;
    color: var(--accent-gold);
    margin-top: 1rem;
    margin-bottom: 3rem;
}


.subtitle {
    text-align: center;
    display: grid;
    font-size: 2rem;
    color: var(--accent-gold);
    width: 100%;
    padding: 2rem 0;
    background-color: var(--shadow-color);
}

.subtitle h2 {
    font-size: 25px;
}

.start {
    margin-top: 7rem;
}

/* --- 2. NAVBAR (Mobile First: < 431px) --- */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    background: var(--navbar-bg);
    backdrop-filter: blur(8px);
    z-index: 1000;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    margin: 16px;
    z-index: 2;
    position: relative;
}

.hamburger span {
    display: block;
    height: 4px;
    background: var(--text-color-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

#nav-toggle:checked + .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 6px);
}
#nav-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
}
#nav-toggle:checked + .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    padding: 10px 20px;
    list-style: none;
    z-index: 1000;
}

.nav-links li {
    margin: 20px 0;
    text-align: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color-white);
    font-size: 18px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

#nav-toggle:checked ~ .nav-links {
    display: block;
}

#nav-toggle, .navbar > .nav-logo, .nav-links .nav-logo, .nav-left, .nav-right {
    display: none;
}
.nav-logo2 {
    display: block;
}
.nav-logo2 img {
    width: 40px;
}


/* --- 3. FOOTER (Mobile First: < 431px) --- */

footer {
    backdrop-filter: blur(8px);
    background-color: rgba(0, 0, 0, 0.6);
    border-top: 1px solid var(--nav-border);
    margin-top: 2rem;
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
        "logo"
        "columns"
        "footer-bottom";
    gap: 1rem;
}

.footer-logo {
    justify-self: center;
}

.footer-logo img {
    max-width: 100px;
    height: auto;
}

.footer-container {
    grid-area: columns;
}

.footer-title {
    font-size: 1.5rem;
    color: var(--text-color-white);
    margin-bottom: 0.5rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-column ul li a {
    color: var(--text-color-white);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-column ul li a:hover {
    color: var(--accent-gold);
}

footer a svg {
    width: 32px;
    height: 32px;
    transition: transform 0.2s ease, color 0.3s ease;
    fill: currentColor;
}
footer a:hover svg {
    transform: scale(1.1);
}
footer a.instagram { color: var(--instagram-color); }
footer a.facebook { color: var(--facebook-color); }
footer a.linkedin { color: var(--linkedin-color); }
footer a.instagram:hover,
footer a.facebook:hover,
footer a.linkedin:hover {
    color: var(--social-hover-color);
}

.icons-row {
    display: flex;
    gap: 10px;
}

.footer-bottom {
    grid-area: footer-bottom;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #ccc;
}

footer svg.icon-stroke {
    fill: none;
    stroke: currentColor;
}

footer .footer-column ul li a svg {
    vertical-align: middle;
    margin-right: 0.5rem;
    transform: translateY(2px);
    transition: transform 0.2s ease, stroke 0.3s ease;
}

@media (max-width: 430px) {
    .footer-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-column {
        width: 100%;
    }

    .icons-row {
        justify-content: space-evenly;
    }

    .footer-column h4 {
        margin-top: 0;
        margin-bottom: 1.5rem;
        text-align: center;
        padding: 0.5rem 0;
        background: rgba(97, 97, 97, 0.2);
        border-radius: 15px;
        width: 100%;
    }

    .footer-column ul {
        display: flex;
        flex-direction: column;
        align-items: start;
        padding-left: 20%;
        margin-bottom: 1rem;
        list-style: none;
    }
}


/* --- 4. MEDIA QUERIES GÉNÉRALES --- */

@media (min-width: 431px) {
    /* NAVBAR */
    .navbar {
        padding: 0 2rem;
    }

    /* FOOTER (> 431px) */
    footer {
        grid-template-columns: 1fr;
        grid-template-areas: "logo" "content" "bottom";
        gap: 1.5rem;
    }

    .footer-logo {
        grid-area: logo;
        justify-self: center;
    }

    .footer-container {
        grid-area: content;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        justify-items: center;
        gap: 2rem;
        max-width: 600px;
        margin: 0 auto;
    }

    .footer-column:nth-child(1) { grid-column: 1 / 2; }
    .footer-column:nth-child(2) { grid-column: 2 / 3; }

    .footer-column:nth-child(3) {
        grid-column: 1 / 3;
        text-align: center;
    }

    .footer-column {
        width: 100%;
    }

    .footer-title {
        margin-top: 0;
        margin-bottom: 1.5rem;
        text-align: center;
        padding: 0.5rem 0;
        background: rgba(97, 97, 97, 0.2);
        border-radius: 15px;
        width: 100%;
    }

    .footer-column ul {
        display: inline-block;
        text-align: left;
    }

    .icons-row {
        display: flex;
        justify-content: center;
        gap: 3rem;
        margin-bottom: 0.5rem;
    }

    .footer-bottom {
        grid-area: bottom;
        text-align: center;
        margin-top: 0;
    }
}

@media (min-width: 720px) {
    /* NAVBAR (Desktop) */
    .navbar {
        justify-content: center;
        padding: 0 4rem;
    }
    .hamburger, #nav-toggle, .nav-logo2 {
        display: none;
    }

    .nav-links {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 1200px;
        padding: 0;
        margin: 0;
        gap: 2rem;
        position: static;
        background: transparent;
        backdrop-filter: none;
    }

    .nav-links li {
        margin: 0;
        text-align: left;
    }

    .nav-left, .nav-right {
        display: flex;
        gap: 2rem;
        align-items: center;
    }

    .nav-links .nav-logo {
        display: block;
        margin: 0 1rem;
    }

    .nav-links .nav-logo img {
        display: block;
        margin: 0 -1rem;
        max-width: 50px;
        height: auto;
    }
}


/* FOOTER (> 964px) */
@media (min-width: 964px) {
    footer {
        padding: 2rem 1rem 1rem 1rem;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        align-items: start;
        justify-items: start;
        gap: 2rem;
    }

    .icons-row {
        transform: translateX(1rem);
        justify-content: start;
        gap: 2rem;
    }

    .footer-column {
        width: auto;
    }

    .footer-title {
        transform: translateX(-2rem);
        padding: 0.5rem 3rem;
    }

    .footer-container {
        display: contents;
    }

    .footer-logo {
        justify-self: start;
        grid-column: 1 / 2;
    }

    .footer-column:nth-child(1) { grid-column: 2 / 3; }
    .footer-column:nth-child(2) { grid-column: 3 / 4; }
    .footer-column:nth-child(3) { grid-column: 4 / 5; }

    .footer-column ul {
        display: block;
        text-align: left;
        padding: 0;
    }

    .footer-bottom {
        grid-column: 1 / -1;
        justify-self: center;
        text-align: center;
    }

    .footer-logo img {
        max-width: 200px;
        height: auto;
    }
}

/* --- 5. THÈME CLAIR (GLOBAL) --- */

@media (prefers-color-scheme: light) {

    .hamburger span {
        background: var(--text-color-white);
    }

    .nav-links a {
        color: var(--text-color-white);
    }

    footer {
        color: var(--text-color-white);
        background-color: rgb(0, 0, 0, 0.8);
    }
}