/* ========================================
   BASE
======================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f8f5ef;
    color: #2b2119;
	/*font-family: Arial, Helvetica, sans-serif;*/
    font-family: Georgia, "Times New Roman", serif;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}


/* ========================================
   HEADER
======================================== */

.header {
    height: 105px;

    padding: 0 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f8f5ef;

    position: sticky;
    top: 0;

    z-index: 100;
}


/* ========================================
   LOGO PRINCIPAL
======================================== */

.logo {
    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    display: block;

    width: 145px;
    height: auto;
}


/* ========================================
   MENU BUTTON
======================================== */

.menu-button {
    position: absolute;

    right: 22px;

    width: 44px;
    height: 44px;

    border: none;
    background: transparent;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 6px;

    cursor: pointer;
}

.menu-button span {
    display: block;

    width: 21px;
    height: 2px;

    background-color: #2b2119;

    flex-shrink: 0;

    border-radius: 0;

    transition: 0.3s ease;
}


/* ========================================
   MENU OVERLAY
======================================== */

.menu-overlay {
    position: fixed;

    inset: 0;

    background: rgba(35, 25, 18, 0.35);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;

    z-index: 150;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* ========================================
   MENU LATÉRAL
======================================== */

.side-menu {
    position: fixed;

    top: 0;
    right: 0;

    width: min(380px, 88vw);
    height: 100vh;

    padding: 30px 35px;

    background: #2b2119;
    color: #f8f5ef;

    transform: translateX(100%);

    transition: transform 0.35s ease;

    z-index: 200;

    display: flex;
    flex-direction: column;

    overflow-y: auto;

    -webkit-overflow-scrolling: touch;
}

.side-menu.active {
    transform: translateX(0);
}


/* ========================================
   BOUTON FERMER
======================================== */

.close-menu {
    position: absolute;

    top: 18px;
    right: 22px;

    width: 40px;
    height: 40px;

    border: none;
    background: transparent;

    color: #f8f5ef;

    font-size: 36px;
    font-weight: 200;
    line-height: 1;

    cursor: pointer;

    transition: opacity 0.2s ease;
}

.close-menu:hover {
    opacity: 0.65;
}


/* ========================================
   LOGO DU MENU
======================================== */

.menu-logo {
    margin-top: 0;
    margin-bottom: 30px;

    display: flex;
    flex-direction: column;
}

.menu-logo span {
    margin-bottom: 4px;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 9px;

    letter-spacing: 5px;
}

.menu-logo strong {
    font-family: Georgia, "Times New Roman", serif;

    font-size: 36px;
    font-weight: 400;

    letter-spacing: 2px;
}


/* ========================================
   INFORMATIONS
======================================== */

.menu-information {
    display: flex;
    flex-direction: column;
}

.menu-information h2 {
    margin-bottom: 24px;

    color: #f8f5ef;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 15px;
    font-weight: 500;

    letter-spacing: 3px;

    text-align: left;
}


/* ========================================
   BLOCS INFORMATIONS
======================================== */

.info-block {
    padding-bottom: 16px;
    margin-bottom: 16px;

    border-bottom: 1px solid rgba(248, 245, 239, 0.15);
}

.info-label {
    display: block;

    margin-bottom: 7px;

    color: #f8f5ef;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 9px;
    font-weight: 400;

    letter-spacing: 3px;

    opacity: 0.6;
}


/* ========================================
   LIENS / TÉLÉPHONE / EMAIL
======================================== */

.info-link {
    display: inline-block;

    color: #f8f5ef;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 15px;

    transition: opacity 0.2s ease;
}

.info-link:hover {
    opacity: 0.65;
}


/* ========================================
   ADRESSE
======================================== */

.address-line {
    display: flex;

    justify-content: space-between;
    align-items: flex-end;

    gap: 15px;
}

.address-text {
    flex: 1;

    color: #f8f5ef;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 15px;

    line-height: 1.4;
}


/* ========================================
   ITINÉRAIRE
======================================== */

.route-link {
    flex-shrink: 0;

    display: inline-block;

    padding-bottom: 3px;

    border-bottom: 1px solid rgba(248, 245, 239, 0.6);

    color: #f8f5ef;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 9px;

    letter-spacing: 1.8px;

    white-space: nowrap;

    transition:
        opacity 0.2s ease,
        padding-right 0.2s ease;
}

.route-link:hover {
    padding-right: 5px;

    opacity: 0.65;
}


/* ========================================
   HORAIRES
======================================== */

.hours-list {
    display: flex;
    flex-direction: column;
}

.hours-row {
    display: flex;

    justify-content: space-between;
    align-items: center;

    padding: 4px 0;

    color: #f8f5ef;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 12px;

    letter-spacing: 0.2px;
}

.hours-row span:last-child {
    text-align: right;

    opacity: 0.85;
}

.hours-row.closed {
    opacity: 0.45;
}

.hours-row.today {
    color: #C9AE7A;
}

.hours-row.today span:first-child {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ========================================
   EMAIL
======================================== */

.email-link {
    font-size: 14px;

    word-break: break-word;
}


/* ========================================
   FOOTER DU MENU
======================================== */

.menu-footer {
    margin-top: auto;

    padding-top: 15px;

    color: #f8f5ef;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 9px;

    letter-spacing: 1.5px;

    line-height: 2;

    opacity: 0.6;
}

.menu-footer a {
    display: inline-block;

    margin-bottom: 3px;

    color: #f8f5ef;

    border-bottom: 1px solid rgba(248, 245, 239, 0.35);

    transition: opacity 0.2s ease;
}

.menu-footer a:hover {
    opacity: 0.65;
}

.menu-footer p {
    margin: 0;
}


/* ========================================
   CATÉGORIES
======================================== */

.categories {
    width: 100%;
    max-width: 900px;

    margin: auto;

    padding: 8px 18px 30px;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 8px;
}


/* ========================================
   CARTE CATÉGORIE
======================================== */

.category {
    min-height: 185px;

    padding: 16px;

    border-radius: 5px;

    position: relative;

    display: flex;
    align-items: flex-end;

    overflow: hidden;

    transition:
        transform 0.25s ease,
        filter 0.25s ease;
}

.category:hover {
    transform: scale(1.015);
}

.category:active {
    transform: scale(0.98);
}

.category-pains {
    grid-column: span 2;
	background-color: #66704d;
}


.category-salades {
    grid-row: span 2;
	background-color: #66704d;
}


/* ========================================
   TEXTE CATÉGORIE
======================================== */

.category span {
    position: relative;

    z-index: 2;

    color: white;

    font-size: 24px;

    line-height: 1.05;

    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.45);
}


/* ========================================
   COULEURS TEMPORAIRES
   À REMPLACER PAR LES PHOTOS
======================================== */

.category-pains {
    background: #80634c;
}

.category-viennoiseries {
    background: #b88954;
}

.category-patisseries {
    background: #a56d62;
}

.category-sandwichs {
    background: #66704d;
}

.category-snacking {
    background: #9a6242;
}

.category-gourmandises {
    background: #857c68;
}


/* ========================================
   PAGE CATÉGORIE
======================================== */

.category-page {
    display: none;

    max-width: 900px;

    margin: auto;

    padding: 20px 20px 60px;
}

.category-page.active {
    display: block;
}


/* ========================================
   BOUTON RETOUR
======================================== */

.back-button {
    padding: 10px 0;

    margin-bottom: 30px;

    border: none;

    background: transparent;

    color: #2b2119;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 14px;

    cursor: pointer;
}


/* ========================================
   TITRE PAGE CATÉGORIE
======================================== */

.category-page h1 {
    color: #2b2119;

    font-size: 42px;
    font-weight: 400;

    letter-spacing: 2px;
}


/* ========================================
   DESKTOP
======================================== */
@media (min-width: 900px) {

    /* CATÉGORIES */

    .categories {
        padding: 15px 30px 40px;

        grid-template-columns: repeat(4, 1fr);

        gap: 12px;
    }
}

@media (max-width: 899px) {

    /* CATÉGORIES */

    .categories {
        padding: 15px 30px 40px;

        grid-template-columns: repeat(2, 1fr);

        gap: 12px;
    }
	
	.menu-footer {margin-bottom: 50px;}
}

@media (min-width: 700px) {

    /* HEADER */

    .header {
        height: 120px;

        padding: 0 50px;
    }


    /* LOGO */

    .logo img {
        width: 165px;
    }


    /* MENU */

    .menu-button {
        right: 40px;
    }



    .category {
        min-height: 250px;
    }

    .category span {
        font-size: 27px;
    }


    /* MENU LATÉRAL */

    .side-menu {
        padding: 30px 40px;
    }

    .menu-logo {
        margin-bottom: 32px;
    }
}


/* ========================================
   PETIT MOBILE
======================================== */

@media (max-width: 380px) {

    /* HEADER */

    .header {
        height: 90px;
    }


    /* LOGO */

    .logo img {
        width: 130px;
    }


    /* MENU BUTTON */

    .menu-button {
        right: 14px;
    }


    /* CATÉGORIES */

    .categories {
        padding-left: 12px;
        padding-right: 12px;
    }

    .category {
        min-height: 150px;

        padding: 13px;

        border-radius: 11px;
    }

    .category span {
        font-size: 20px;
    }


    /* MENU */

    .side-menu {
        width: 92vw;

        padding: 25px 25px;
    }


    /* CROIX */

    .close-menu {
        top: 16px;
        right: 18px;
    }


    /* LOGO MENU */

    .menu-logo {
        margin-top: 0;
        margin-bottom: 26px;
    }

    .menu-logo span {
        font-size: 8px;

        letter-spacing: 4px;

        margin-bottom: 3px;
    }

    .menu-logo strong {
        font-size: 34px;
    }


    /* INFORMATIONS */

    .menu-information h2 {
        margin-bottom: 20px;

        font-size: 14px;

        letter-spacing: 2.8px;
    }


    /* BLOCS */

    .info-block {
        padding-bottom: 13px;

        margin-bottom: 13px;
    }

    .info-label {
        margin-bottom: 6px;

        font-size: 8px;
    }


    /* TEXTE */

    .info-link,
    .address-text {
        font-size: 14px;
    }


    /* ITINÉRAIRE */

    .route-link {
        font-size: 8px;

        letter-spacing: 1.5px;
    }


    /* HORAIRES */

    .hours-row {
        padding: 3px 0;

        font-size: 10px;
    }


    /* EMAIL */

    .email-link {
        font-size: 13px;
    }


    /* FOOTER */

    .menu-footer {
        padding-top: 10px;
    }
}

.category-pains {
    background-image:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.90) 0%,
            rgba(0, 0, 0, 0.70) 25%,
            rgba(0, 0, 0, 0.35) 60%,
            rgba(0, 0, 0, 0) 80%
        ),
        url("../images/categories/pains.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.category-sandwichs {
    background-image:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.90) 0%,
            rgba(0, 0, 0, 0.70) 25%,
            rgba(0, 0, 0, 0.35) 60%,
            rgba(0, 0, 0, 0) 80%
        ),
        url("../images/categories/sandwichs.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.category-viennoiseries {
    background-image:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.90) 0%,
            rgba(0, 0, 0, 0.70) 25%,
            rgba(0, 0, 0, 0.35) 60%,
            rgba(0, 0, 0, 0) 80%
        ),
        url("../images/categories/viennoiseries.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.category-salades {
    background-image:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.90) 0%,
            rgba(0, 0, 0, 0.70) 25%,
            rgba(0, 0, 0, 0.35) 60%,
            rgba(0, 0, 0, 0) 80%
        ),
        url("../images/categories/salades.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.category-gourmandises {
    background-image:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.90) 0%,
            rgba(0, 0, 0, 0.70) 25%,
            rgba(0, 0, 0, 0.35) 60%,
            rgba(0, 0, 0, 0) 80%
        ),
        url("../images/categories/gourmandises.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.category-patisseries {
    background-image:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.90) 0%,
            rgba(0, 0, 0, 0.70) 25%,
            rgba(0, 0, 0, 0.35) 60%,
            rgba(0, 0, 0, 0) 80%
        ),
        url("../images/categories/patisseries.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.category-sales {
    background-image:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.90) 0%,
            rgba(0, 0, 0, 0.70) 25%,
            rgba(0, 0, 0, 0.35) 60%,
            rgba(0, 0, 0, 0) 80%
        ),
        url("../images/categories/sales.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* ========================================
   MENTIONS LÉGALES - MENU LATÉRAL
======================================== */

.menu-legal[hidden],
.menu-information[hidden],
.menu-footer[hidden] {
    display: none !important;
}

.menu-legal {
    padding: 20px;
    overflow-y: auto;
}

.legal-back {
    margin-bottom: 24px;
    padding: 10px 0;
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.legal-section {
    margin-bottom: 24px;
}

.legal-section h3 {
    margin-bottom: 12px;
}

.legal-item {
    margin-bottom: 16px;
}

.legal-item p {
    line-height: 1.6;
    overflow-wrap: anywhere;
}
