/* ============================================
   Restaurant Sultana — pages intérieures
   (carte, spécialités, réserver, histoire, galerie, contact, FAQ, blog)
   Mêmes couleurs, polices et composants que l'accueil (style.css) ; ce fichier
   n'ajoute que ce qui leur est propre. Un seul élément marquant par page :
   l'ouverture, où une photo de plat se fond dans le bordeaux.
   ============================================ */

/* ===== OUVERTURE DE PAGE ===== */
.pagehead {
    position: relative;
    isolation: isolate;
    background: var(--bordeaux-night);
    color: #fff;
    padding-bottom: 8px;                 /* place pour le rebord de bol */
}
/* Bord bas : les tirets du rebord des bols peints, comme le bandeau de l'accueil */
.pagehead::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 8px;
    background: repeating-linear-gradient(90deg, var(--bordeaux-deep) 0 14px, var(--paper) 14px 22px);
}
.pagehead-media {
    position: relative;
    height: clamp(260px, 72vw, 440px);
    overflow: hidden;
}
.pagehead-media picture, .pagehead-media img { width: 100%; height: 100%; }
.pagehead-media img { object-fit: cover; object-position: 50% 45%; }
.pagehead-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(42, 7, 13, .1) 0%, rgba(42, 7, 13, 0) 30%, rgba(42, 7, 13, .72) 78%, var(--bordeaux-night) 100%);
}
.pagehead-inner { position: relative; margin-top: -84px; padding-bottom: 40px; }
.pagehead--text .pagehead-inner { margin-top: 0; padding-top: calc(var(--header-h) + env(safe-area-inset-top) + 28px); }
.pagehead-content { max-width: 40rem; text-shadow: 0 1px 18px rgba(42, 7, 13, .45); }
.pagehead-title {
    font-size: clamp(2.5rem, 11vw, 4.5rem);
    font-weight: 650;
    line-height: .98;
    letter-spacing: -.015em;
    margin: 0 0 14px;
    text-wrap: balance;
}
html[lang="ar"] .pagehead-title { line-height: 1.25; letter-spacing: 0; font-weight: 700; }
.pagehead-lede { font-size: 1.125rem; line-height: 1.55; color: rgba(255, 255, 255, .88); max-width: 34rem; margin: 0 0 22px; }
.pagehead-lede a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }
.pagehead-actions { display: grid; gap: 10px; }
.pagehead-actions .btn { text-shadow: none; }
.pagehead .status { margin: 0 0 22px; }

/* Fil d'Ariane : une vraie navigation, pas un décor */
.crumbs { margin-bottom: 14px; font-size: .9375rem; line-height: 1.4; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; }
.crumbs li { display: inline-flex; align-items: center; color: rgba(255, 255, 255, .72); }
.crumbs li + li::before { content: "›"; margin-inline: 8px; color: var(--gold); }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; color: var(--gold-soft); }
.crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: rgba(255, 255, 255, .72); }

/* ===== TEXTE COURANT ===== */
.prose { max-width: 40rem; font-size: 1.125rem; line-height: 1.7; }
.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose a { color: var(--bordeaux); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { color: var(--bordeaux-deep); }
.prose h2 { font-size: clamp(1.625rem, 5vw, 2rem); color: var(--bordeaux); margin: 1.6em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; color: var(--ink); margin: 1.4em 0 .35em; }

/* ===== SPÉCIALITÉ ===== */
.spec-layout { display: grid; gap: 40px; align-items: start; }
.spec-today {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 24px 20px 20px;
}
.spec-today h2 { font-size: 1.75rem; color: var(--bordeaux); margin-bottom: 4px; }
.spec-today-sub { font-size: .95rem; color: var(--ink-soft); margin: 0 0 4px; }
.spec-today .menu-status { margin-top: 12px; }
.menu-grid--single { grid-template-columns: 1fr !important; min-height: 0; }
.menu-grid--single .menu-item:last-child { border-bottom: 0; }
.spec-today-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 16px; }

/* Les spécialités en photos (hub, bas de la carte et des pages de spécialité) */
.spec-strip { background: var(--sand); }
.spec-hub .spec-strip { background: var(--paper); }
.spec-strip-title {
    font-size: clamp(1.875rem, 7vw, 2.75rem);
    line-height: 1.05;
    color: var(--bordeaux);
    margin-bottom: 24px;
    text-wrap: balance;
}
.spec-hub .spec-strip-title { display: none; }     /* le H1 de l'ouverture dit déjà la même chose */
.spec-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(64%, 260px);
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 8px;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
}
.spec-grid::-webkit-scrollbar { display: none; }
.spec-card { display: block; scroll-snap-align: start; min-width: 0; color: var(--ink); }
.spec-card-media {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: 18px;
    background: var(--line);
    margin-bottom: 12px;
}
.spec-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.spec-card-empty {
    display: block;
    width: 100%;
    height: 100%;
    background:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'><path d='M20 6l3.6 8.2 8.9.8-6.7 5.9 2 8.7L20 25l-7.8 4.6 2-8.7L7.5 15l8.9-.8z' fill='none' stroke='%236E1423' stroke-width='1.6' stroke-linejoin='round' opacity='.45'/></svg>") center / 34% no-repeat,
        linear-gradient(135deg, var(--gold-soft), var(--gold));
}
.spec-card-name { display: block; font-family: var(--font-display); font-size: 1.3125rem; font-weight: 600; line-height: 1.15; }
.spec-card-text { display: block; margin-top: 4px; font-size: .98rem; line-height: 1.45; color: var(--ink-soft); }
.spec-card:hover .spec-card-name { color: var(--bordeaux); }

/* ===== CARTE ===== */
.carte { background: var(--paper); }
.carte .menu-tabs { background: var(--paper); }
.carte-nav .tab { display: inline-flex; align-items: center; }
.carte-cat { scroll-margin-top: calc(var(--header-h) + 72px); }
.carte-cat h2 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    color: var(--bordeaux);
    margin: 40px 0 4px;
}
.carte-cat .menu-grid { min-height: 0; }
.carte-note { margin: 28px 0 0; font-size: .95rem; color: var(--ink-soft); }
.carte-order {
    margin-top: 48px;
    padding: 28px 24px;
    border-radius: 20px;
    background: var(--bordeaux-deep);
    color: rgba(255, 255, 255, .86);
}
.carte-order h2 { font-size: clamp(1.625rem, 5vw, 2.125rem); color: var(--gold-soft); margin-bottom: 8px; }
.carte-order p { max-width: 34rem; margin-bottom: 20px; }
.carte-order-actions { display: grid; gap: 10px; }

/* ===== RÉSERVER ===== */
.book-layout { display: grid; gap: 40px; align-items: start; }
.book-side h2 { font-size: 1.75rem; color: var(--bordeaux); margin: 0; }
.book-side .info-list { margin-top: 12px; }
.book-side .info-value { font-weight: 600; }
.book-side .info-label { font-size: .95rem; line-height: 1.45; }
.book-note {
    margin: 0 0 32px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #FFF6DE;
    border: 1px solid var(--gold-soft);
    font-size: .98rem;
    line-height: 1.5;
}

/* ===== NOTRE HISTOIRE ===== */
.story-layout { display: grid; gap: 36px; align-items: start; }
.story-facts { margin: 0; padding: 8px 22px; border-radius: 20px; background: var(--sand); }
.story-facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.story-facts div:last-child { border-bottom: 0; }
.story-facts dt { font-size: .9rem; color: var(--ink-soft); }
.story-facts dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 1.3125rem; font-weight: 600; line-height: 1.25; color: var(--ink); }

/* ===== GALERIE ===== */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: var(--line); }
.gallery-item--wide { grid-column: span 2; }
.gallery-item--wide img { aspect-ratio: 3 / 2; }
.gallery figcaption { margin-top: 6px; font-size: .9375rem; line-height: 1.35; color: var(--ink-soft); }
.gallery-more { margin: 28px 0 0; }

/* ===== CONTACT ===== */
.contact-layout { display: grid; gap: 40px; align-items: start; }
.contact-card h2 { font-size: 1.75rem; color: var(--bordeaux); margin: 0; }
.contact-how { margin-top: 32px; }

/* ===== FAQ ===== */
.faq { max-width: 48rem; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    padding: 16px 0;
    cursor: pointer;
    list-style: none;
    -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "";
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(110, 20, 35, .08) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 6v12M6 12h12' fill='none' stroke='%236E1423' stroke-width='2' stroke-linecap='round'/></svg>") center / 16px no-repeat;
    transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-q { margin: 0; font-size: 1.25rem; line-height: 1.3; color: var(--ink); }
.faq-item summary:hover .faq-q { color: var(--bordeaux); }
.faq-a { padding: 0 0 20px; max-width: 42rem; }
.faq-a p { margin: 0 0 10px; font-size: 1.0625rem; line-height: 1.65; color: var(--ink-soft); }
.faq-a a { color: var(--bordeaux); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* ===== BLOG ===== */
.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.blog-cats .tab { display: inline-flex; align-items: center; }
.post-list { display: grid; border-top: 1px solid var(--line); }
.post-card { padding: 22px 0; border-bottom: 1px solid var(--line); }
.post-card-title { font-size: clamp(1.375rem, 5vw, 1.75rem); line-height: 1.15; margin: 0 0 8px; }
.post-card-title a { color: var(--ink); }
.post-card-title a:hover { color: var(--bordeaux); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.post-card-excerpt { margin: 0 0 8px; color: var(--ink-soft); line-height: 1.55; max-width: 44rem; }
.post-meta { margin: 0; font-size: .9375rem; color: var(--ink-soft); }
.post-meta--head { margin: 0; color: rgba(255, 255, 255, .78); }
.post-meta--head a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }

/* Article */
.post-layout { display: grid; gap: 40px; align-items: start; }
.post-lead { font-size: 1.1875rem; line-height: 1.75; }
.post-figure { margin: 0 0 28px; }
.post-items { margin: 4px 0 1.2em; padding-inline-start: 1.4em; font-size: 1.125rem; line-height: 1.6; }
ul.post-items { list-style: disc; }
ol.post-items { list-style: decimal; }
.post-items li { margin: 0 0 .45em; padding-inline-start: .2em; }
.post-items li::marker { color: var(--bordeaux); font-weight: 600; }
.post-figure img { width: 100%; border-radius: 18px; }
.post-tip { margin: 24px 0; padding: 16px 18px; border-radius: 12px; background: #FFF6DE; border-inline-start: 4px solid var(--gold); }
.post-tip p { margin: 0; font-size: 1.0625rem; }
.post-faq { margin-top: 36px; }
.post-by { margin-top: 32px !important; font-size: .95rem; color: var(--ink-soft); }
.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 1rem; }
.post-share span { color: var(--ink-soft); }
.post-share a, .post-copy { display: inline-flex; align-items: center; min-height: 44px; color: var(--bordeaux); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.post-copy { font-size: 1rem; }
.post-cta { padding: 24px 22px; border-radius: 20px; background: var(--sand); }
.post-cta h2 { font-size: 1.5rem; color: var(--bordeaux); margin-bottom: 8px; }
.post-cta p { font-size: 1rem; line-height: 1.55; color: var(--ink-soft); }
.post-cta-actions { display: grid; gap: 10px; margin-top: 16px; }
.related { background: var(--sand); }
.related .post-list { border-top-color: rgba(42, 26, 18, .12); }
.related .post-card { border-bottom-color: rgba(42, 26, 18, .12); }

/* ===== MENTIONS ===== */
.legal .prose h2 { font-size: 1.375rem; }

/* ============================================
   TABLETTE
   ============================================ */
@media (min-width: 560px) {
    .pagehead-actions, .carte-order-actions { display: flex; flex-wrap: wrap; gap: 12px; }
}
@media (min-width: 760px) {
    .spec-grid {
        grid-auto-flow: row;
        grid-template-columns: repeat(3, 1fr);
        overflow: visible;
        margin-inline: 0;
        padding: 0;
        gap: 32px 24px;
    }
    .spec-card-media { aspect-ratio: 1; }
    .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .post-list { grid-template-columns: 1fr 1fr; column-gap: 48px; }
    .post-card:nth-child(2) { border-top: 0; }
    .carte-order { padding: 36px 40px; }
}

/* ============================================
   ORDINATEUR
   ============================================ */
@media (min-width: 960px) {
    /* Ouverture : texte à gauche sur le bordeaux, photo à droite qui s'y fond (comme l'accueil) */
    .pagehead { display: flex; align-items: center; min-height: 540px; }
    .pagehead-media { position: absolute; inset: 0 0 8px auto; width: 56%; height: auto; }
    html[dir="rtl"] .pagehead-media { inset: 0 auto 8px 0; }
    .pagehead-media::after {
        background:
            linear-gradient(to right, var(--bordeaux-night) 0%, rgba(42, 7, 13, .55) 22%, rgba(42, 7, 13, 0) 55%),
            linear-gradient(to top, rgba(42, 7, 13, .35), rgba(42, 7, 13, 0) 30%),
            linear-gradient(to bottom, rgba(42, 7, 13, .45), rgba(42, 7, 13, 0) 22%);
    }
    html[dir="rtl"] .pagehead-media::after {
        background:
            linear-gradient(to left, var(--bordeaux-night) 0%, rgba(42, 7, 13, .55) 22%, rgba(42, 7, 13, 0) 55%),
            linear-gradient(to top, rgba(42, 7, 13, .35), rgba(42, 7, 13, 0) 30%),
            linear-gradient(to bottom, rgba(42, 7, 13, .45), rgba(42, 7, 13, 0) 22%);
    }
    .pagehead-inner { width: 100%; margin-top: 0; padding-top: calc(var(--header-h) + 48px); padding-bottom: 72px; }
    .pagehead-content { max-width: 34rem; }
    .pagehead--text { min-height: 0; }
    .pagehead--text .pagehead-inner { padding-top: calc(var(--header-h) + 64px); padding-bottom: 64px; }
    .pagehead--text .pagehead-content { max-width: 46rem; }
    .pagehead-lede { font-size: 1.25rem; }

    .spec-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; }
    .spec-grid { grid-template-columns: repeat(5, 1fr); gap: 32px 20px; }
    .spec-grid[data-count="6"] { grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
    .spec-card:hover .spec-card-media img { transform: scale(1.04); }

    .book-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; }
    .story-layout { grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 72px; }
    .contact-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; }
    .gallery { grid-template-columns: repeat(4, 1fr); gap: 20px; }
    .post-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; }
    .post-cta { position: sticky; top: calc(var(--header-h) + 24px); }
}
