/* =========================================================
   CHEZ AKA - STYLES GLOBAUX
   Mobile-first / lisibilite / navigation clavier
   La conformite RGPD se traite aussi dans Twig, PHP et la BDD.
   ========================================================= */

:root {
    color-scheme: dark;

    --color-bg: #120d10;
    --color-bg-soft: #1c1418;
    --color-surface: #251a1f;
    --color-primary: #8f2435;
    --color-primary-light: #b6374d;
    --color-primary-dark: #681927;
    --color-accent: #d7ad67;
    --color-text: #f7f2ed;
    --color-text-muted: #c5b9b2;
    --color-border: rgba(255, 255, 255, 0.22);
    --color-focus: #f1ca86;
    --color-error: #ffb4b4;
    --color-success: #b1e6bf;

    --container-width: 1200px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.22);
}

/* 1. Base et mise en page */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 7rem;
}

body {
    min-height: 100vh;
    margin: 0;
    background: radial-gradient(circle at top, #24141a 0, var(--color-bg) 45%);
    color: var(--color-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

img,
svg,
video {
    max-width: 100%;
}

img {
    display: block;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
input,
select,
textarea,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: var(--color-accent);
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--color-text);
}

p {
    color: var(--color-text-muted);
    margin-block: 0 1rem;
}

h1,
h2,
h3 {
    color: var(--color-text);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

h1 {
    margin-top: 0;
    font-size: clamp(2rem, 7vw, 4rem);
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.4rem);
}

:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 3px;
}

::selection {
    background: var(--color-accent);
    color: var(--color-bg);
}

.container,
main:not(.home) {
    width: min(calc(100% - 2rem), var(--container-width));
    margin-inline: auto;
}

main:not(.home) {
    padding-block: 2.5rem 4rem;
    overflow-x: auto; /* Le wrapper de tableau accessible sera ajoute en Twig. */
}

#main-content {
    min-height: 65vh;
}

/* Lien de contournement visible au clavier */

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1000;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: #111111;
    font-weight: 700;
    transform: translateY(-200%);
}

.skip-link:focus,
.skip-link:focus-visible {
    transform: translateY(0);
}

/* 2. En-tete et navigation */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--color-border);
    background: rgba(18, 13, 16, 0.97);
}

@supports (backdrop-filter: blur(12px)) {
    .site-header {
        backdrop-filter: blur(12px);
    }
}

.header-inner {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-block: 0.75rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    width: fit-content;
    color: var(--color-text);
    text-decoration: none;
}

.brand:hover {
    color: var(--color-text);
}

.brand-logo-wrapper {
    display: flex;
    flex: 0 0 54px;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
}

.brand-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-name {
    color: var(--color-accent);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1;
}

.brand-subtitle {
    margin-top: 0.35rem;
    color: var(--color-text-muted);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.3rem;
    max-width: 100%;
    overflow-x: auto;
    padding-block: 0.2rem 0.45rem;
    scrollbar-width: thin;
}

.main-nav a {
    flex: 0 0 auto;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
}

/* 3. Liens d'action et boutons */

.button,
button,
input[type="submit"],
input[type="button"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
    max-width: 100%;
    padding: 0.7rem 1.1rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: var(--color-primary);
    color: #ffffff;
    cursor: pointer;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background: var(--color-primary-light);
    color: #ffffff;
}

.button:active,
button:active,
input[type="submit"]:active,
input[type="button"]:active {
    transform: translateY(1px);
}

button:disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled,
.button[aria-disabled="true"] {
    opacity: 0.6;
    cursor: not-allowed;
}

.button-secondary {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(18, 13, 16, 0.88);
    color: var(--color-text);
}

.button-secondary:hover {
    background: var(--color-surface);
}

/* 4. Formulaires (reservation, inscription, commande, admin) */

form {
    max-width: 100%;
}

form > div,
form > p {
    margin-bottom: 1rem;
}

label,
legend {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--color-text);
    font-weight: 700;
}

fieldset {
    min-width: 0;
    margin: 0 0 1.25rem;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
select,
textarea {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0.7rem 0.85rem;
    border: 1px solid #9e8c94;
    border-radius: var(--radius-sm);
    background: var(--color-bg-soft);
    color: var(--color-text);
}

textarea {
    min-height: 110px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #c5b9b2;
    opacity: 1;
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    min-width: 18px;
    min-height: 18px;
    margin-right: 0.45rem;
    accent-color: var(--color-primary-light);
    vertical-align: middle;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"],
.is-invalid {
    border-color: var(--color-error) !important;
}

.form-error-message,
.invalid-feedback,
.form-errors,
.form-error,
[role="alert"] {
    color: var(--color-error);
}

.form-help,
.help-text,
small {
    color: var(--color-text-muted);
}

/* Messages Symfony flash. Leur contenu vient du serveur. */

.alert {
    margin-block: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-text);
}

.alert-success {
    border-color: var(--color-success);
    color: var(--color-success);
}

.alert-error,
.alert-danger {
    border-color: var(--color-error);
    color: var(--color-error);
}

/* 5. Tableaux (produits, commandes, reservations) */

main table {
    width: 100%;
    margin-block: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-soft);
    border-collapse: separate;
    border-spacing: 0;
}

th,
td {
    padding: 0.85rem;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--color-accent);
    font-weight: 800;
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

td form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

td form input[type="number"] {
    width: 5.5rem !important;
}

/* 6. Pied de page */

.site-footer {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--color-border);
    background: #0a0709;
}

.footer-inner {
    display: grid;
    gap: 2rem;
    padding-bottom: 2.5rem;
}

.footer-brand {
    margin: 0;
    color: var(--color-accent);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.footer-heading {
    margin: 0 0 0.5rem;
    color: var(--color-text);
    font-weight: 700;
}

.footer-text {
    margin: 0.25rem 0;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.footer-nav a {
    width: fit-content;
    color: var(--color-text-muted);
    text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
    color: var(--color-accent);
    text-decoration: underline;
}

.footer-bottom {
    padding-block: 1rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.85rem;
}

/* 7. Page d'accueil */

.home {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: 36rem;
    min-height: min(52rem, 88svh);
    padding: 5rem max(1rem, calc((100vw - var(--container-width)) / 2)) 3.5rem;
    background-color: var(--color-bg-soft);
    background-image:
        linear-gradient(to top, rgba(10, 6, 8, 0.97), rgba(10, 6, 8, 0.62) 55%, rgba(10, 6, 8, 0.22)),
        url('/images/chez-aka/hero-mobile.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, rgba(18, 13, 16, 0.35), transparent 40%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.hero-eyebrow,
.section-kicker {
    margin-bottom: 1rem;
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 1.5rem;
    font-size: clamp(3.25rem, 16vw, 8rem);
    line-height: 0.98;
    text-shadow: 0 4px 25px rgba(0, 0, 0, 0.65);
    text-transform: uppercase;
}

.hero-intro {
    max-width: 620px;
    margin-bottom: 2rem;
    color: #f7f2ed;
    font-size: clamp(1.1rem, 3vw, 1.45rem);
    line-height: 1.6;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.home-section {
    width: min(calc(100% - 2rem), var(--container-width));
    margin-inline: auto;
    padding-block: clamp(3.5rem, 7vw, 6rem);
}

.section-heading {
    max-width: 700px;
    margin-bottom: 3rem;
}

.section-heading h2,
.home-reservation h2 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 6vw, 4rem);
}

.home-intro {
    text-align: center;
}

.home-intro .section-heading {
    margin-inline: auto;
    margin-bottom: 0;
}

.section-intro {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Sections photo/texte de Chez Aka */

.home-showcase,
.home-click-collect {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: min(calc(100% - 2rem), var(--container-width));
    margin: 0 auto clamp(2rem, 5vw, 5rem);
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-bg-soft);
    box-shadow: var(--shadow-soft);
}

.home-showcase-image,
.home-click-collect-image {
    min-width: 0;
    overflow: hidden;
}

.home-showcase-image img,
.home-click-collect-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 250px;
    max-height: 420px;
    object-fit: cover;
    object-position: center;
}

.home-showcase-content,
.home-click-collect-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    padding: clamp(1.5rem, 4vw, 4rem);
}

.home-showcase-content h2,
.home-click-collect-content h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.home-showcase-content > p:not(.section-kicker),
.home-click-collect-content > p:not(.section-kicker) {
    line-height: 1.8;
}

.home-text-link {
    display: inline-block;
    margin-top: 0.75rem;
    color: var(--color-accent);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

.home-text-link:hover,
.home-text-link:focus-visible {
    color: var(--color-text);
}

/* Anciennes cartes d'accueil : styles conserves si reutilises */

.home-features {
    display: grid;
    gap: 1rem;
}

.feature-card {
    padding: 2rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-soft);
    box-shadow: var(--shadow-soft);
}

.feature-number {
    margin: 0 0 2rem;
    color: var(--color-accent);
    font-size: 0.8rem;
    font-weight: 800;
}

.feature-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.6rem;
}

.feature-card a {
    display: inline-block;
    margin-top: 1rem;
    color: var(--color-accent);
    font-weight: 700;
    text-underline-offset: 0.25em;
}

.home-reservation {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    width: min(calc(100% - 2rem), var(--container-width));
    margin: 0 auto 5rem;
    padding: clamp(1.5rem, 4vw, 4rem);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-bg-soft));
}

.home-reservation p {
    max-width: 650px;
}

/* 8. Points de rupture */

@media (min-width: 850px) {
    .header-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        min-height: 82px;
        gap: 2rem;
        padding-block: 0.45rem;
    }

    .brand-logo-wrapper {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
    }

    .brand-logo {
        width: 64px;
        height: 64px;
    }

    .brand-name {
        font-size: 1.4rem;
    }

    .brand-subtitle {
        font-size: 0.7rem;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: flex-end;
        overflow-x: visible;
        padding-block: 0;
    }

    .footer-inner {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .hero {
        align-items: center;
        min-height: min(54rem, calc(100vh - 82px));
        background-image:
            linear-gradient(90deg, rgba(10, 6, 8, 0.93) 0%, rgba(10, 6, 8, 0.75) 38%, rgba(10, 6, 8, 0.27) 100%),
            url('/images/chez-aka/hero-desktop.webp');
    }

    .hero h1 {
        font-size: clamp(5rem, 10vw, 8rem);
    }

    .home-showcase,
    .home-click-collect {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .home-showcase-image img,
    .home-click-collect-image img {
        max-height: none;
        min-height: 390px;
    }

    .home-showcase-reverse .home-showcase-image {
        order: 2;
    }

    .home-showcase-reverse .home-showcase-content {
        order: 1;
    }

    .home-features {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-reservation {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .home-reservation .button {
        flex: 0 0 auto;
    }
}

@media (max-width: 399px) {
    .hero-actions .button {
        width: 100%;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 15vw, 4rem);
    }
}

/* 9. Preferences d'accessibilite */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: more) {
    :root {
        --color-border: rgba(255, 255, 255, 0.65);
        --color-text-muted: #ffffff;
    }
}


/* ========================================
   CHEZ AKA - PAGE CARTE
======================================== */

.menu-page {
    padding-block: clamp(3rem, 6vw, 6rem);
}

/* Introduction */

.menu-page-header {
    max-width: 750px;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

.menu-page-header h1 {
    margin: 0 0 1.5rem;
    color: var(--color-text);
}

.menu-page-intro {
    max-width: 600px;
    color: var(--color-text-muted);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.8;
}

/* Categories */

.menu-category {
    margin-bottom: 4rem;
}

.menu-category-title {
    margin: 0 0 2rem;
    padding-bottom: 0.9rem;

    color: var(--color-accent);

    font-size: clamp(1.7rem, 3vw, 2.3rem);

    border-bottom: 1px solid var(--color-border);
}

/* Grille des produits */

.menu-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
}

/* Carte produit */

.menu-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;

    min-width: 0;
    padding: clamp(1.25rem, 3vw, 2rem);

    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.menu-item-name {
    margin: 0 0 0.75rem;

    color: var(--color-text);
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    line-height: 1.4;
}

.menu-item-description {
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.menu-item-price {
    margin: 0;

    color: var(--color-accent);
    font-size: 1.2rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

/* Message si la carte est vide */

.menu-empty {
    padding: 2rem;
    text-align: center;
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

/* Ordinateurs */

@media (min-width: 850px) {
    .menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* Navigation mobile : afficher tous les liens */

@media (max-width: 849px) {
    .main-nav {
        flex-wrap: wrap;
        overflow-x: visible;
    }

    .main-nav a {
        flex: 1 1 auto;
        justify-content: center;
    }
}


/* =========================================================
   CHEZ AKA - FORMULAIRE DE CONNEXION
   ========================================================= */

main.auth-page {
    display: grid;
    place-items: center;
    width: 100%;
    max-width: none;
    min-height: 70vh;
    padding: clamp(2rem, 6vw, 5rem) 1rem;
    overflow: visible;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    padding: clamp(1.5rem, 5vw, 2.75rem);

    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.auth-title {
    margin: 0 0 2rem;
    color: var(--color-text);
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    text-align: center;
}

.auth-form {
    display: grid;
    gap: 1.5rem;
    width: 100%;
}

.auth-field {
    display: grid;
    gap: 0.5rem;
    margin: 0;
}

.auth-field label {
    margin: 0;
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 700;
}

.auth-field input {
    width: 100%;
    min-height: 50px;
}

.auth-field input:focus-visible {
    border-color: var(--color-accent);
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.auth-submit {
    width: 100%;
    min-height: 50px;
    margin-top: 0.5rem;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
}

.auth-submit:hover {
    background: var(--color-primary-light);
}

.auth-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 2rem;
    padding-top: 1.5rem;

    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    text-align: center;
}

.auth-footer a {
    color: var(--color-accent);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.25rem;
}

.auth-footer a:hover {
    color: var(--color-text);
}

.auth-connected {
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-connected p {
    overflow-wrap: anywhere;
}

.auth-card .alert {
    margin-bottom: 1.5rem;
}

/* Adaptation aux petits écrans */

@media (max-width: 480px) {
    main.auth-page {
        min-height: 60vh;
        padding: 2rem 1rem;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .auth-title {
        margin-bottom: 1.75rem;
    }
}

/* =========================================================
   CHEZ AKA - MENTIONS LEGALES
   ========================================================= */

main.legal-page {
    width: 100%;
    max-width: none;
    min-height: 65vh;
    padding: clamp(2.5rem, 6vw, 5rem) 0;
}


.legal-page > .container {
    width: 100%;
    max-width: 960px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 3vw, 1.5rem);
    box-sizing: border-box;
}


.legal-header {
    margin-bottom: 2.5rem;
    padding: clamp(1.5rem, 4vw, 3rem);

    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-accent);
    border-radius: var(--radius-lg);
}

.legal-header h1 {
    margin: 0 0 1rem;

    color: var(--color-accent);
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
}

.legal-header p {
    margin: 0;
    max-width: 700px;

    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.legal-page section {
    margin-bottom: 1.25rem;
    padding: clamp(1.5rem, 3vw, 2.5rem);

    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.legal-page section h2 {
    margin: 0 0 1.25rem;

    color: var(--color-accent);
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 700;
    line-height: 1.4;
}

.legal-page section p {
    margin: 0 0 1rem;

    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.legal-page section p:last-child {
    margin-bottom: 0;
}

.legal-page strong {
    color: var(--color-accent);
    font-weight: 700;
}

/* Mentions legales - adaptation mobile */

@media (max-width: 600px) {
    main.legal-page {
        padding: 2rem 0;
    }

    .legal-header {
        margin-bottom: 1.5rem;
    }

    .legal-page section {
        margin-bottom: 1rem;
    }

    .legal-page section p {
        font-size: 0.95rem;
        line-height: 1.75;
    }
}


/* =========================================================
   CHEZ AKA - RESERVATION
   ========================================================= */

main.reservation-page {
    max-width: 1080px;
    padding-block: clamp(2.5rem, 5vw, 4.5rem);
    overflow: visible;
}

/* En-tête */

.reservation-heading {
    margin-bottom: 2rem;
}

.reservation-eyebrow {
    margin-bottom: 0.65rem;
    color: var(--color-accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.reservation-heading h1 {
    margin: 0 0 0.85rem;
    font-size: clamp(2rem, 5vw, 3.2rem);
}

.reservation-heading > p:last-child {
    max-width: 640px;
    margin: 0;
    color: var(--color-text-muted);
}

/* Disposition générale */

.reservation-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.reservation-card,
.reservation-aside {
    min-width: 0;
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.reservation-card {
    padding: clamp(1.25rem, 3vw, 2.25rem);
}

/* Groupes de champs */

.reservation-page .booking-group {
    min-width: 0;
    margin: 0 0 2rem;
    padding: 0;
    border: 0;
}

.reservation-page .booking-group legend {
    margin-bottom: 1.25rem;
    padding: 0 0 0.65rem;
    width: 100%;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-accent);
    font-size: 1.2rem;
    font-weight: 800;
}

.reservation-page .booking-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
}

.reservation-page .booking-field {
    min-width: 0;
}

.reservation-page .booking-field > div {
    margin-bottom: 0;
}

.reservation-page .booking-field label {
    margin-bottom: 0.45rem;
    color: var(--color-text);
    font-size: 0.9rem;
}

.reservation-page .booking-field input,
.reservation-page .booking-field select,
.reservation-page .booking-field textarea {
    min-height: 48px;
    background: var(--color-surface);
    border-color: var(--color-border);
    border-radius: var(--radius-sm);
}

/* Heure et minutes sur une seule ligne */

.reservation-page .booking-time-widget,
.reservation-page .booking-time-widget > div {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.reservation-page .booking-time-widget select {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
}

/* Demande spéciale et bouton */

.reservation-page .booking-notes {
    margin-bottom: 1.5rem;
}

.reservation-page .booking-notes textarea {
    min-height: 100px;
}

.reservation-page .booking-submit {
    width: 100%;
    min-height: 50px;
    font-size: 1rem;
    font-weight: 800;
}

/* Carte du restaurant */

.reservation-aside img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.reservation-aside-content {
    padding: 1.5rem;
}

.reservation-aside-content h2 {
    margin: 0 0 1rem;
    font-size: 1.6rem;
}

.reservation-aside-content > p {
    line-height: 1.75;
}

.reservation-aside-note {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
}

/* Tablette et ordinateur */

@media (min-width: 700px) {
    .reservation-page .booking-grid {
        grid-template-columns: repeat(
            2,
            minmax(0, 1fr)
        );
    }
}

@media (min-width: 950px) {
    .reservation-layout {
        grid-template-columns:
            minmax(0, 1.6fr)
            minmax(0, 0.8fr);
    }

    .reservation-aside img {
        height: 300px;
    }
}


/* =========================================================
   CHEZ AKA - VALIDATION CLICK & COLLECT
   ========================================================= */

main.checkout-page {
    max-width: 1080px;
    padding-block: clamp(2.5rem, 5vw, 4.5rem);
    overflow: visible;
}

.checkout-heading {
    margin-bottom: 2rem;
}

.checkout-eyebrow {
    margin-bottom: 0.65rem;
    color: var(--color-accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.checkout-heading h1 {
    margin: 0 0 0.85rem;
    font-size: clamp(2rem, 5vw, 3.2rem);
}

.checkout-heading > p:last-child {
    max-width: 650px;
    margin: 0;
    color: var(--color-text-muted);
}

/* Cartes et disposition */

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.checkout-card {
    min-width: 0;
    padding: clamp(1.25rem, 3vw, 2.25rem);
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.checkout-card h2 {
    margin: 0 0 1.5rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-accent);
    font-size: clamp(1.3rem, 3vw, 1.6rem);
}

/* Formulaire */

.checkout-form {
    display: grid;
    gap: 1.5rem;
}

.checkout-field {
    min-width: 0;
}

.checkout-field > div {
    margin-bottom: 0;
}

.checkout-field label {
    margin-bottom: 0.45rem;
    font-size: 0.9rem;
}

.checkout-field input,
.checkout-field select,
.checkout-field textarea {
    min-height: 48px;
    background: var(--color-surface);
    border-color: var(--color-border);
}

.checkout-field textarea {
    min-height: 110px;
}

/* Heure et minutes */

.checkout-time-widget,
.checkout-time-widget > div {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.checkout-time-widget select {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    max-width: 140px;
}

/* Bouton et information */

.checkout-submit {
    width: 100%;
    min-height: 50px;
    font-size: 1rem;
    font-weight: 800;
}

.checkout-payment-note {
    margin: 1.5rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Récapitulatif */

.checkout-summary-list {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.checkout-summary-list li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.checkout-summary-list li > div {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.checkout-summary-list strong {
    color: var(--color-text);
    overflow-wrap: anywhere;
}

.checkout-item-quantity {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.checkout-line-total {
    flex-shrink: 0;
    color: var(--color-text);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    font-size: 1.2rem;
}

.checkout-total strong:last-child {
    color: var(--color-accent);
    font-variant-numeric: tabular-nums;
}

/* Ordinateur */

@media (min-width: 850px) {
    .checkout-layout {
        grid-template-columns:
            minmax(0, 1.5fr)
            minmax(0, 1fr);
    }
}



/* =========================================================
   CHEZ AKA - PAGE PANIER
   ========================================================= */

main.cart-page {
    max-width: 1150px;
    padding-block: clamp(2.5rem, 5vw, 4.5rem);
    overflow: visible;
}

.cart-heading {
    margin-bottom: 2rem;
}

.cart-eyebrow {
    margin-bottom: 0.65rem;
    color: var(--color-accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.cart-heading h1 {
    margin: 0 0 0.85rem;
    font-size: clamp(2rem, 5vw, 3.2rem);
}

.cart-heading > p:last-child {
    color: var(--color-text-muted);
}

/* Disposition générale */

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.cart-card {
    min-width: 0;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-bg-soft);
}

.cart-card h2 {
    margin: 0 0 1.5rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-accent);
    font-size: 1.4rem;
}

/* Articles */

.cart-product-list {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cart-product {
    min-width: 0;
    padding: 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.cart-product-info h3 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
}

.cart-product-info p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.cart-product-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 1.25rem;
}

.cart-quantity-form {
    flex: 1 1 180px;
    min-width: 0;
}

.cart-quantity-form label {
    font-size: 0.85rem;
}

.cart-quantity-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-quantity-actions input {
    width: 75px !important;
    min-width: 65px;
    min-height: 46px;
    background: var(--color-bg-soft);
}

.cart-quantity-actions button {
    min-height: 46px;
}

.cart-product-total {
    display: grid;
    gap: 0.3rem;
}

.cart-product-total span {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.cart-product-total strong {
    color: var(--color-accent);
    font-size: 1.1rem;
    white-space: nowrap;
}

.cart-remove-form {
    margin: 0;
}

.cart-remove-button,
.cart-clear-button {
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-text-muted);
}

.cart-remove-button:hover,
.cart-clear-button:hover {
    background: var(--color-surface);
    color: var(--color-text);
}

.cart-continue {
    display: inline-block;
    margin-top: 1.5rem;
    font-weight: 700;
}

/* Récapitulatif */

.cart-summary-line,
.cart-summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cart-summary-line {
    color: var(--color-text-muted);
}

.cart-summary-total {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
    font-size: 1.2rem;
}

.cart-summary-total strong:last-child {
    color: var(--color-accent);
}

.cart-checkout-button {
    display: flex;
    width: 100%;
    margin-top: 1.75rem;
}

.cart-clear-form {
    margin: 1rem 0 0;
}

.cart-clear-button {
    width: 100%;
}

/* Panier vide */

.cart-empty {
    max-width: 650px;
}

.cart-empty p {
    margin-bottom: 1.5rem;
}

/* Ordinateur */

@media (min-width: 850px) {
    .cart-layout {
        grid-template-columns:
            minmax(0, 1.7fr)
            minmax(280px, 0.8fr);
    }
}



/* =========================================================
   CHEZ AKA - CATALOGUE CLICK & COLLECT
   ========================================================= */

main.click-collect-page {
    max-width: 1150px;
    padding-block: clamp(2.5rem, 5vw, 4.5rem);
    overflow: visible;
}

/* En-tête */

.cc-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cc-eyebrow {
    margin: 0 0 0.65rem;
    color: var(--color-accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cc-heading h1 {
    margin: 0 0 0.85rem;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
}

.cc-description {
    max-width: 680px;
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.75;
}

.cc-cart-link {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Présentation du service */

.cc-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: clamp(2.5rem, 5vw, 4rem);

    overflow: hidden;
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.cc-intro-image {
    min-width: 0;
    overflow: hidden;
}

.cc-intro-image img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    object-position: center;
}

.cc-intro-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.cc-intro-content h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.4rem, 3vw, 2rem);
}

.cc-intro-content > p:not(.cc-eyebrow) {
    line-height: 1.75;
}

.cc-intro-highlight {
    margin-top: 0.5rem;
    color: var(--color-text) !important;
    font-weight: 700;
}

.cc-intro-note {
    margin-bottom: 0;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Catégories */

.cc-category {
    margin-bottom: 3rem;
}

.cc-category-heading {
    margin-bottom: 1.5rem;
}

.cc-category-heading h2 {
    margin: 0;
    padding-bottom: 0.85rem;

    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: clamp(1.5rem, 3vw, 2rem);
}

/* Grille des produits */

.cc-product-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
}

/* Cartes des produits */

.cc-product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.75rem;

    min-width: 0;
    padding: clamp(1.25rem, 3vw, 2rem);

    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.cc-product-card:hover {
    background: var(--color-surface);
    border-color: rgba(215, 173, 103, 0.55);
}

.cc-product-content h3 {
    margin: 0 0 0.75rem;
    color: var(--color-text);
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    line-height: 1.35;
}

.cc-product-description {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Prix et bouton */

.cc-product-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.cc-product-price {
    margin: 0;
    color: var(--color-accent);
    font-size: 1.25rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.cc-add-form {
    margin: 0;
}

.cc-add-button {
    min-height: 46px;
    padding: 0.7rem 1.15rem;
    font-size: 0.9rem;
    font-weight: 800;
}

/* Catalogue vide */

.cc-empty {
    max-width: 700px;
    padding: clamp(1.5rem, 4vw, 3rem);

    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.cc-empty h2 {
    margin-top: 0;
}

.cc-empty p {
    margin-bottom: 1.5rem;
}

/* Tablette et ordinateur */

@media (min-width: 700px) {
    .cc-product-grid {
        grid-template-columns: repeat(
            2,
            minmax(0, 1fr)
        );
    }
}

@media (min-width: 850px) {
    .cc-heading {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .cc-intro {
        grid-template-columns:
            minmax(0, 0.9fr)
            minmax(0, 1.1fr);
    }

    .cc-intro-image img {
        height: 100%;
        min-height: 250px;
    }
}

/* Petits écrans */

@media (max-width: 480px) {
    .cc-cart-link {
        width: 100%;
    }

    .cc-product-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .cc-add-form,
    .cc-add-button {
        width: 100%;
    }
}
