/* =========================================================
   JI & JO — RESTAURANT & BRUNCH
   Feuille de style principale
   ========================================================= */


/* ---------------------------------------------------------
   1. VARIABLES
   --------------------------------------------------------- */

:root {
    --dark: #211c1a;
    --dark-soft: #302724;

    --cream: #f4eee7;
    --cream-light: #faf7f3;

    --copper: #a66d5b;
    --copper-dark: #865546;

    --stone-gold: #d8ab76;
    --stone-light: #efc99a;

    --text: #292321;
    --muted: #6f625b;

    --line: #e3d9d1;

    --white: #ffffff;

    --max-width: 1180px;

    --shadow: 0 12px 35px rgba(33, 28, 26, 0.10);

    --transition: 0.3s ease;
}


/* ---------------------------------------------------------
   2. RESET
   --------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background: var(--cream-light);
    color: var(--text);

    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}


/* ---------------------------------------------------------
   3. ELEMENTS GENERAUX
   --------------------------------------------------------- */

.container {
    width: min(100% - 40px, var(--max-width));
    margin-inline: auto;
}

.section {
    padding: 100px 0;
    scroll-margin-top: 82px;
}

.section-heading {
    max-width: 700px;
    margin-bottom: 50px;
}

.section-heading.centered {
    margin-inline: auto;
    text-align: center;
}

.eyebrow {
    display: inline-block;

    margin-bottom: 12px;

    color: var(--copper);

    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0 0 18px;

    color: var(--dark);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.1rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.15;
}

.section-heading p {
    margin: 0;

    color: var(--muted);
    font-size: 1.05rem;
}


/* ---------------------------------------------------------
   4. BOUTONS
   --------------------------------------------------------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;
    padding: 13px 25px;

    border: 1px solid transparent;
    border-radius: 2px;

    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;

    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--copper);
    color: var(--white);
}

.button-primary:hover {
    background: var(--copper-dark);
}

.button-secondary {
    border-color: rgba(255, 255, 255, 0.65);
    color: var(--white);
    background: transparent;
}

.button-secondary:hover {
    background: var(--white);
    color: var(--dark);
}

.button-dark {
    background: var(--dark);
    color: var(--white);
}

.button-dark:hover {
    background: var(--copper-dark);
}


/* ---------------------------------------------------------
   5. HEADER
   --------------------------------------------------------- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    width: 100%;

    background: transparent;

    transition:
        background var(--transition),
        box-shadow var(--transition);
}

.site-header.scrolled {
    background: rgba(33, 28, 26, 0.97);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 82px;
}

.header-logo img {
    width: 105px;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    position: relative;

    color: var(--white);

    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;

    transition: color var(--transition);
}

.main-nav a:not(.nav-button)::after {
    content: "";

    position: absolute;
    bottom: -7px;
    left: 0;

    width: 0;
    height: 2px;

    background: var(--stone-gold);

    box-shadow: 0 2px 8px rgba(216, 171, 118, 0.45);

    transition: width var(--transition);
}

.main-nav a:not(.nav-button):hover::after {
    width: 100%;
}

.main-nav a:not(.nav-button):hover,
.main-nav a:not(.nav-button):focus-visible {
    color: var(--stone-light);
}

.main-nav a:not(.nav-button):focus-visible {
    outline: 2px solid var(--stone-gold);
    outline-offset: 6px;
}

.nav-button {
    padding: 10px 18px;

    border: 1px solid var(--copper);

    background: var(--copper);
    color: var(--white) !important;

    transition: background var(--transition);
}

.nav-button:hover {
    background: var(--copper-dark);
}


/* ---------------------------------------------------------
   6. MENU MOBILE
   --------------------------------------------------------- */

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    padding: 0;

    border: 0;
    background: transparent;

    cursor: pointer;
}

.menu-toggle span {
    display: block;

    width: 25px;
    height: 2px;

    margin: 5px auto;

    background: var(--white);

    transition: transform var(--transition);
}


/* ---------------------------------------------------------
   7. HERO
   --------------------------------------------------------- */

.hero {
    position: relative;

    min-height: 100vh;
    min-height: 720px;

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

    background:
        url("../images/hero-ji-jo.jpg")
        center top / cover no-repeat;

    color: var(--white);
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(20, 16, 14, 0.72),
            rgba(20, 16, 14, 0.45) 45%,
            rgba(20, 16, 14, 0.78)
        );
}

.hero-content {
    position: relative;
    z-index: 2;

    width: min(100% - 40px, 850px);

    margin-top: 60px;

    text-align: center;
}

.hero-logo {
    width: min(260px, 65vw);

    margin: 0 auto 25px;

    filter:
        drop-shadow(0 5px 20px rgba(0, 0, 0, 0.35));
}

.hero-location {
    margin: 0 0 12px;

    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 400;
    line-height: 1;
}

.hero-intro {
    max-width: 600px;

    margin: 25px auto 35px;

    font-size: 1.05rem;
    line-height: 1.7;

    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 25px;
    left: 50%;

    transform: translateX(-50%);

    color: rgba(255, 255, 255, 0.75);

    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-indicator::after {
    content: "";

    display: block;

    width: 1px;
    height: 35px;

    margin: 8px auto 0;

    background: rgba(255, 255, 255, 0.6);
}


/* ---------------------------------------------------------
   8. PRESENTATION
   --------------------------------------------------------- */

.presentation {
    background: var(--cream-light);
}

.presentation-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 70px;

    align-items: center;
}

.presentation-text h2 {
    margin: 0 0 25px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 400;
    line-height: 1.15;
}

.large-text {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    line-height: 1.7;
}

.presentation-text p {
    color: var(--muted);
}

.presentation-image {
    position: relative;
}

.presentation-image img {
    width: 100%;
    height: 520px;

    object-fit: cover;
    object-position: center;
}

.presentation-image::after {
    content: "";

    position: absolute;
    top: 18px;
    left: 18px;
    right: -18px;
    bottom: -18px;

    border: 1px solid var(--copper);

    pointer-events: none;

    z-index: -1;
}

.text-link {
    display: inline-block;

    margin-top: 15px;

    color: var(--copper);

    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.text-link:hover {
    color: var(--copper-dark);
}


/* ---------------------------------------------------------
   9. FEATURES — VERSION MODERNE
   --------------------------------------------------------- */

.features {
    padding: 100px 0;

    background: var(--cream-light);
    color: var(--text);
}

.features-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;

    background: transparent;
}

.feature {
    position: relative;

    padding: 45px 35px;

    border: 1px solid var(--line);
    border-radius: 4px;

    background: var(--white);

    text-align: center;

    box-shadow: 0 8px 25px rgba(33, 28, 26, 0.05);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.feature::before {
    content: "";

    position: absolute;
    top: 0;
    left: 50%;

    width: 45px;
    height: 3px;

    background: var(--copper);

    transform: translateX(-50%);
}

.feature:hover {
    transform: translateY(-7px);

    border-color: rgba(166, 109, 91, 0.45);

    box-shadow: 0 18px 40px rgba(33, 28, 26, 0.10);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;

    margin: 5px auto 22px;

    border-radius: 50%;

    background: var(--cream);

    font-size: 1.8rem;
}

.feature h3 {
    margin: 0 0 12px;

    color: var(--dark);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.6rem;
    font-weight: 400;
}

.feature p {
    max-width: 280px;

    margin: 0 auto;

    color: var(--muted);

    font-size: 0.95rem;
    line-height: 1.7;
}


/* ---------------------------------------------------------
   FEATURES — MOBILE
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .features {
        padding: 70px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .feature {
        padding: 38px 25px;
    }

}

/* ---------------------------------------------------------
   10. MENU / CARTES
   --------------------------------------------------------- */

/* Liens vers les cartes PDF */

.menu-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--text);
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(33, 28, 26, 0.05);
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.menu-link:hover {
    transform: translateY(-4px);
    border-color: rgba(166, 109, 91, 0.45);
    box-shadow: 0 14px 30px rgba(33, 28, 26, 0.10);
}

.menu-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--cream);
    font-size: 1.5rem;
}

.menu-link-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.menu-link-content strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--dark);
}

.menu-link-content small {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

.menu-link-arrow {
    color: var(--copper);
    font-size: 1.4rem;
    transition: transform var(--transition);
}

.menu-link:hover .menu-link-arrow {
    transform: translateX(4px);
}

/* ---------------------------------------------------------
   11. RESERVATION
   --------------------------------------------------------- */

.reservation-section {
    position: relative;

    padding: 120px 0;

    background:
        url("../images/enseigne-ji-jo.jpg")
        center center / cover no-repeat;

    color: var(--white);
}

.reservation-overlay {
    position: absolute;
    inset: 0;

    background: rgba(33, 28, 26, 0.78);
}

.reservation-content {
    position: relative;
    z-index: 2;

    max-width: 700px;

    margin: auto;

    text-align: center;
}

.reservation-content .eyebrow {
    color: #d7a28e;
}

.reservation-content h2 {
    margin: 0 0 20px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.3rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.15;
}

.reservation-content p {
    margin: 0 auto 30px;

    color: rgba(255, 255, 255, 0.82);
}

.reservation-content .button {
    margin-top: 5px;
}


/* ---------------------------------------------------------
   12. CONTACT
   --------------------------------------------------------- */

.contact-section {
    background: var(--cream-light);
}

.contact-grid {
    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    gap: 60px;

    align-items: stretch;
}

.contact-info h2,
.contact-info h3 {
    margin: 0 0 25px;

    color: var(--dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.8rem;
    font-weight: 400;
    line-height: 1.15;
}

.address {
    margin-bottom: 35px;

    color: var(--muted);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.contact-item > span {
    flex: 0 0 auto;
    font-size: 1.15rem;
    line-height: 1.4;
}

.contact-item > div {
    min-width: 0;
}

.contact-item p {
    margin: 2px 0 0;
    color: var(--muted);
}

.contact-item strong {
    display: block;

    margin-bottom: 3px;

    color: var(--dark);

    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-item a {
    color: var(--copper);
}

.contact-item a:hover {
    color: var(--copper-dark);
}

.map {
    width: 100%;
    min-height: 400px;

    overflow: hidden;

    border: 1px solid var(--line);
    border-radius: 4px;

    box-shadow: 0 10px 30px rgba(33, 28, 26, 0.08);
}

.map iframe {
    display: block;

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

    border: 0;
}


/* ---------------------------------------------------------
   13. FOOTER
   --------------------------------------------------------- */

.footer {
    padding: 60px 0 25px;
    background: var(--dark);
    color: var(--white);
}

.footer-container {
    width: min(100% - 40px, var(--max-width));
    margin-inline: auto;

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

    column-gap: 60px;
    row-gap: 35px;

    padding-bottom: 40px;

}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    width: 130px;
    margin-bottom: 15px;
}

.footer-brand p {
    margin: 0;

    color: rgba(255, 255, 255, 0.6);

    font-size: 0.9rem;
}


/* Navigation principale du footer */

.footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;

    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}


/* Liens légaux */

.footer-legal {
    grid-column: 1 / -1;

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

    gap: 28px;

    padding-top: 20px;

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

.footer-legal a {
    color: rgba(255, 255, 255, 0.50);

    font-size: 0.75rem;

    text-decoration: none;

    transition:
        color var(--transition),
        opacity var(--transition);
}

.footer-legal a:hover {
    color: var(--white);
}


/* Copyright */

.footer-bottom {
    padding-top: 25px;

    color: rgba(255, 255, 255, 0.45);

    font-size: 0.75rem;

    text-align: center;
}

/* ---------------------------------------------------------
   14. ANIMATIONS
   --------------------------------------------------------- */

.reveal {
    opacity: 0;

    transform: translateY(25px);

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

.reveal-visible {
    opacity: 1;

    transform: translateY(0);
}


/* ---------------------------------------------------------
   15. TABLETTE
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .section {
        padding: 80px 0;
    }

    .presentation-grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .presentation-image {
        max-width: 700px;
        margin: auto;
    }

    .menu-grid {
        grid-template-columns: 1fr;

        max-width: 600px;
        margin-inline: auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .map {
        min-height: 350px;
    }

    .map iframe {
        min-height: 350px;
    }
}


/* ---------------------------------------------------------
   16. MOBILE
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .container {
        width: min(100% - 30px, var(--max-width));
    }

    .section {
        padding: 70px 0;
    }


    /* Header */

    .header-container {
        min-height: 70px;
    }

    .header-logo img {
        width: 90px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 70px;
        left: 0;

        display: flex;
        flex-direction: column;
        align-items: stretch;

        width: 100%;

        padding: 15px;

        background: rgba(33, 28, 26, 0.98);

        gap: 0;

        opacity: 0;
        visibility: hidden;

        transform: translateY(-10px);

        transition:
            opacity var(--transition),
            visibility var(--transition),
            transform var(--transition);
    }

    .main-nav.is-open {
        opacity: 1;
        visibility: visible;

        transform: translateY(0);
    }

    .main-nav a {
        display: block;

        padding: 14px 10px;

        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .main-nav .nav-button {
        margin-top: 10px;

        text-align: center;

        border-bottom: 0;
    }


    /* Hero */

    .hero {
        min-height: 700px;
    }

    .hero-content {
        margin-top: 40px;
    }

    .hero-logo {
        width: min(210px, 60vw);
    }

    .hero h1 {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .hero-intro {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .button {
        width: min(280px, 100%);
    }


    /* Présentation */

    .presentation-image img {
        height: 350px;
    }

    .presentation-image::after {
        top: 10px;
        left: 10px;
        right: -10px;
        bottom: -10px;
    }


    /* Features */

    .features {
        padding: 70px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature {
        padding: 40px 25px;
    }


    /* Contact */

    .contact-info h2,
    .contact-info h3 {
        font-size: 2.3rem;
    }

    .menu-links {
        flex-direction: column;
        align-items: stretch;
    }

    .menu-links .button {
        width: 100%;
    }


/* Footer */

.footer-container {
    grid-template-columns: 1fr;

    width: min(100% - 30px, var(--max-width));

    row-gap: 30px;

    text-align: center;
}

.footer-brand {
    max-width: none;
}

.footer-brand p {
    font-size: 0.85rem;
}

.footer-links {
    justify-content: center;
    gap: 12px 22px;
}

.footer-legal {
    grid-column: 1;

    flex-direction: column;

    gap: 10px;

    padding-top: 20px;
}

@media (max-width: 900px) {
    .menu-links {
        grid-template-columns: 1fr;
    }
}


/* ---------------------------------------------------------
   17. PETITS ECRANS
   --------------------------------------------------------- */

@media (max-width: 400px) {

    .hero {
        min-height: 650px;
    }

    .hero-logo {
        width: 180px;
    }

    .hero-location {
        font-size: 0.68rem;
    }

    .section-heading h2 {
        font-size: 2rem;
    }

    .menu-card {
        padding: 30px 20px;
    }
}


/* ---------------------------------------------------------
   18. ACCESSIBILITE
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

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

/* =========================================================
   PAGE — MENTIONS LÉGALES
   ========================================================= */

.legal-page {
    padding: 150px 0 100px;
    background: var(--cream-light);
}

.legal-header {
    max-width: 800px;
    margin: 0 auto 55px;
    text-align: center;
}

.legal-header .eyebrow {
    margin-bottom: 12px;
}

.legal-header h1 {
    margin: 0 0 20px;

    color: var(--dark);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
}

.legal-header > p:last-child {
    margin: 0;

    color: var(--muted);
    font-size: 1.05rem;
}

.legal-content {
    max-width: 850px;
    margin: 0 auto;

    padding: 55px 60px;

    background: var(--white);

    border: 1px solid var(--line);
    border-top: 3px solid var(--copper);

    box-shadow: var(--shadow);
}

.legal-content section {
    margin: 0;
}

.legal-content section + section {
    margin-top: 50px;
}

.legal-content h2 {
    margin: 0 0 18px;

    color: var(--dark);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.25;
}

.legal-content p {
    margin: 0 0 16px;

    color: var(--muted);

    font-size: 0.95rem;
    line-height: 1.75;
}

.legal-content p:last-child {
    margin-bottom: 0;
}

.legal-content strong {
    color: var(--text);
}

.legal-content ul {
    margin: 0 0 18px;
    padding-left: 25px;

    color: var(--muted);
}

.legal-content li {
    margin-bottom: 8px;

    font-size: 0.95rem;
    line-height: 1.6;
}

.legal-content a {
    color: var(--copper);
    font-weight: 600;

    transition: color var(--transition);
}

.legal-content a:hover {
    color: var(--copper-dark);
}

.legal-update {
    margin-top: 30px !important;
    padding-top: 20px;

    border-top: 1px solid var(--line);

    font-size: 0.85rem !important;
}


/* ---------------------------------------------------------
   MENTIONS LÉGALES — MOBILE
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .legal-page {
        padding: 110px 0 70px;
    }

    .legal-header {
        margin-bottom: 35px;
    }

    .legal-header h1 {
        font-size: 2.6rem;
    }

    .legal-header > p:last-child {
        font-size: 0.95rem;
    }

    .legal-content {
        padding: 35px 25px;
    }

    .legal-content section + section {
        margin-top: 40px;
    }

    .legal-content h2 {
        font-size: 1.55rem;
    }

    .legal-content p,
    .legal-content li {
        font-size: 0.92rem;
    }

}
