/* ============================================================
   L'Horloge Gourmande — Thème « Signature »
   ------------------------------------------------------------
   Couche posée PAR-DESSUS public.css, scopée sous
   html[data-theme="signature"]. Garde l'identité du classique
   (noir, or, Playfair, boutons ronds, carrousels) et refait
   l'accueil autour de ce qui convertit sur les sites de
   restaurant : la carte et la réservation dès le haut de page,
   des photos qui vivent, l'état d'ouverture en direct.

   Mouvement : lent et doux (fondus enchaînés, mots qui montent,
   photos qui se dévoilent au scroll). Tout est coupé en bas de
   fichier pour prefers-reduced-motion.
   ============================================================ */

:root[data-theme="signature"] {
    --s-ease: cubic-bezier(0.2, 0.7, 0.1, 1);
    --s-slate: #1c1e1c;
    --s-open: #5cc27a;
}

/* ── Ouverture ─────────────────────────────────────────────────── */

[data-theme="signature"] .s-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding: calc(var(--header-height) + 2rem) 0 5rem;
    isolation: isolate;
}
[data-theme="signature"] .s-hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: #0b0a07;
}
[data-theme="signature"] .s-slide {
    position: absolute;
    inset: 0;
    background-image: var(--slide-img);
    background-size: cover;
    background-position: center;
    opacity: 0;
    will-change: opacity, transform;
}
@media (max-width: 800px) {
    [data-theme="signature"] .s-slide {
        background-image: var(--slide-img-m, var(--slide-img));
    }
}

/* Une seule photo : visible tout de suite, léger recul de caméra. */
[data-theme="signature"] .s-slides-1 .s-slide {
    opacity: 1;
    animation: s-settle 14s var(--s-ease) both;
}
/* Deux ou trois photos : fondu enchaîné, chaque photo reste ~7 s.
   Le délai négatif fait démarrer la 1re photo déjà affichée (LCP). */
[data-theme="signature"] .s-slides-2 .s-slide {
    animation: s-fade-2 14s linear infinite;
    animation-delay: calc(var(--i) * 7s - 1.2s);
}
[data-theme="signature"] .s-slides-3 .s-slide {
    animation: s-fade-3 21s linear infinite;
    animation-delay: calc(var(--i) * 7s - 1.2s);
}
@keyframes s-settle {
    from { transform: scale(1.08); }
    to   { transform: scale(1); }
}
@keyframes s-fade-2 {
    0%   { opacity: 0; transform: scale(1.1); }
    9%   { opacity: 1; }
    50%  { opacity: 1; }
    59%  { opacity: 0; transform: scale(1.01); }
    100% { opacity: 0; transform: scale(1.01); }
}
@keyframes s-fade-3 {
    0%   { opacity: 0; transform: scale(1.1); }
    6%   { opacity: 1; }
    33%  { opacity: 1; }
    40%  { opacity: 0; transform: scale(1.01); }
    100% { opacity: 0; transform: scale(1.01); }
}

[data-theme="signature"] .s-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top,
        rgba(11, 10, 7, 0.94) 0%,
        rgba(11, 10, 7, 0.55) 42%,
        rgba(11, 10, 7, 0.2) 70%,
        rgba(11, 10, 7, 0.55) 100%);
}

/* État d'ouverture en direct (remplace la pastille décorative). */
[data-theme="signature"] .s-status {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    padding: 0.4rem 0.9rem 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(245, 240, 230, 0.16);
    background: rgba(11, 10, 7, 0.55);
    color: var(--text-main);
    font-size: 0.9rem;
    animation: fadeIn 0.8s ease 0.1s both;
}
[data-theme="signature"] .s-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    flex: 0 0 auto;
}
[data-theme="signature"] .is-open .s-dot { background: var(--s-open); }
[data-theme="signature"] .is-soon .s-dot { background: var(--gold); }
[data-theme="signature"] .is-open .s-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--s-open);
    animation: s-ping 2s ease-out infinite;
}
@keyframes s-ping {
    from { transform: scale(1); opacity: 0.7; }
    to   { transform: scale(3); opacity: 0; }
}

/* Titre : chaque mot monte de derrière un cache, l'un après l'autre. */
[data-theme="signature"] .s-title {
    font-size: clamp(2.5rem, 10vw, 4.8rem);
    line-height: 1.04;
    letter-spacing: -0.02em;
    max-width: 13ch;
    margin: 1rem 0 1.1rem;
}
[data-theme="signature"] .s-w {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-bottom: 0.1em;
    margin-bottom: -0.1em;
}
[data-theme="signature"] .s-w > span {
    display: inline-block;
    transform: translateY(110%);
    animation: s-rise 0.9s var(--s-ease) forwards;
    animation-delay: calc(0.25s + var(--i) * 0.07s);
}
[data-theme="signature"] .s-title-custom {
    display: block;
    animation: fadeUp 0.9s var(--s-ease) 0.25s both;
}
@keyframes s-rise {
    to { transform: translateY(0); }
}
[data-theme="signature"] .s-lead {
    color: #d4cfc5;
    font-size: 1.12rem;
    max-width: 36ch;
    margin: 0 0 1.75rem;
    animation: fadeUp 0.8s var(--s-ease) 0.85s both;
}
[data-theme="signature"] .s-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
[data-theme="signature"] .s-hero .s-actions {
    animation: fadeUp 0.8s var(--s-ease) 1s both;
}
@media (max-width: 500px) {
    [data-theme="signature"] .s-hero .s-actions { flex-direction: column; }
    [data-theme="signature"] .s-hero .s-actions a { min-height: 48px; }
}

/* Indication de défilement (desktop seulement). */
[data-theme="signature"] .s-scroll {
    position: absolute;
    left: 50%;
    bottom: 1.5rem;
    width: 1px;
    height: 48px;
    background: rgba(245, 240, 230, 0.2);
    overflow: hidden;
}
[data-theme="signature"] .s-scroll span {
    position: absolute;
    left: 0;
    top: -50%;
    width: 1px;
    height: 50%;
    background: var(--gold);
    animation: s-scroll 2.2s var(--s-ease) infinite;
}
@keyframes s-scroll {
    to { top: 100%; }
}

@media (max-width: 800px) {
    /* La barre Appeler/Réserver occupe le bas de l'écran. */
    [data-theme="signature"] .s-hero {
        min-height: 88vh;
        min-height: 88svh;
        padding-bottom: 2.5rem;
    }
    [data-theme="signature"] .s-scroll { display: none; }
}

/* ── Bandeau défilant ──────────────────────────────────────────── */

[data-theme="signature"] .s-marquee {
    overflow: hidden;
    border-block: 1px solid var(--border-gold);
    background: #0b0a07;
    padding: 1rem 0;
}
[data-theme="signature"] .s-marquee-track {
    display: flex;
    width: max-content;
    animation: s-marquee 45s linear infinite;
}
[data-theme="signature"] .s-marquee p {
    display: flex;
    align-items: center;
    margin: 0;
    white-space: nowrap;
}
[data-theme="signature"] .s-marquee span {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    color: var(--gold-soft);
}
[data-theme="signature"] .s-marquee i {
    font-style: normal;
    color: var(--gold);
    opacity: 0.6;
    font-size: 0.85rem;
    margin: 0 1.75rem;
}
@keyframes s-marquee {
    to { transform: translateX(-50%); }
}

/* ── Titres de section communs ─────────────────────────────────── */

[data-theme="signature"] .s-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem 1.5rem;
    margin-bottom: 1.5rem;
}
[data-theme="signature"] .s-head h2,
[data-theme="signature"] .s-house h2,
[data-theme="signature"] .s-visit h2 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 6.5vw, 2.7rem);
    line-height: 1.1;
    margin: 0;
}
[data-theme="signature"] .s-link {
    color: var(--gold-soft);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: var(--border-gold);
    text-underline-offset: 0.3em;
    transition: text-decoration-color var(--transition), color var(--transition);
}
[data-theme="signature"] .s-link:hover {
    color: var(--gold);
    text-decoration-color: var(--gold);
}

/* ── Ardoise du jour ───────────────────────────────────────────── */

[data-theme="signature"] .s-slate-section { padding: 4rem 0 3.5rem; }
[data-theme="signature"] .s-slate {
    max-width: 780px;
    margin-inline: auto;
    padding: 1.75rem 1.4rem 1.9rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-gold);
    background:
        radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, 0.035), transparent 60%),
        var(--s-slate);
}
[data-theme="signature"] .s-slate-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.25rem 1rem;
    padding-bottom: 0.9rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--border-gold);
}
[data-theme="signature"] .s-slate h2 {
    font-size: clamp(1.6rem, 6vw, 2.1rem);
    margin: 0;
}
[data-theme="signature"] .s-slate-date {
    color: var(--text-muted);
    font-style: italic;
}
[data-theme="signature"] .s-slate-formula + .s-slate-formula { margin-top: 1.4rem; }
[data-theme="signature"] .s-slate-formula h3 {
    font-size: 1.2rem;
    color: var(--gold-soft);
    margin: 0 0 0.4rem;
}
[data-theme="signature"] .s-slate dl { margin: 0; }
[data-theme="signature"] .s-slate dl > div {
    display: grid;
    grid-template-columns: 5.25rem minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.35rem 0;
}
[data-theme="signature"] .s-slate dt {
    color: var(--gold);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-top: 0.3rem;
}
[data-theme="signature"] .s-slate dd {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.15rem;
    line-height: 1.35;
}
[data-theme="signature"] .s-prices {
    list-style: none;
    margin: 1.4rem 0 1.5rem;
    padding: 1rem 0 0;
    border-top: 1px dashed var(--border-gold);
}
[data-theme="signature"] .s-prices li {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.2rem 0;
}
[data-theme="signature"] .s-dots {
    flex: 1 1 auto;
    min-width: 1rem;
    border-bottom: 2px dotted rgba(203, 161, 53, 0.35);
}
[data-theme="signature"] .s-prices li > span:last-child {
    color: var(--gold-soft);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
[data-theme="signature"] .s-slate-empty {
    color: var(--text-muted);
    margin: 0 0 1.25rem;
}
@media (min-width: 700px) {
    [data-theme="signature"] .s-slate { padding: 2.25rem 2.5rem 2.4rem; }
}

/* ── Plats en photo ────────────────────────────────────────────── */

[data-theme="signature"] .s-dishes { padding: 1.5rem 0 4rem; }
[data-theme="signature"] .s-dish-rail {
    --gutter: max(1.25rem, calc((100vw - 1120px) / 2));
    list-style: none;
    margin: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 72%;
    gap: 1rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding: 0 var(--gutter) 0.5rem;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
}
[data-theme="signature"] .s-dish-rail::-webkit-scrollbar { display: none; }
@media (min-width: 700px) {
    [data-theme="signature"] .s-dish-rail { grid-auto-columns: 280px; gap: 1.25rem; }
}
[data-theme="signature"] .s-dish { scroll-snap-align: start; }
[data-theme="signature"] .s-dish-img {
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 4 / 5;
    background: var(--bg-soft);
}
[data-theme="signature"] .s-dish-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--s-ease);
}
[data-theme="signature"] .s-dish:hover .s-dish-img img { transform: scale(1.05); }
[data-theme="signature"] .s-dish h3 {
    font-size: 1.12rem;
    margin: 0.8rem 0 0.15rem;
}
[data-theme="signature"] .s-dish-price {
    margin: 0;
    color: var(--gold-soft);
    font-weight: 500;
}

/* ── La maison ─────────────────────────────────────────────────── */

[data-theme="signature"] .s-house { background: transparent; }
[data-theme="signature"] .s-house-grid {
    display: grid;
    gap: 2.25rem;
}
[data-theme="signature"] .s-house-img {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
}
[data-theme="signature"] .s-house-img img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
[data-theme="signature"] .s-house h2 { margin-bottom: 1.25rem; }
[data-theme="signature"] .s-house-text p {
    color: #d4cfc5;
    font-size: 1.08rem;
    max-width: 38em;
    margin: 0 0 1rem;
}
[data-theme="signature"] .s-points {
    list-style: none;
    margin: 1.75rem 0 0;
    padding: 0;
}
[data-theme="signature"] .s-points li {
    padding: 0.9rem 0;
    border-top: 1px solid var(--border-gold);
}
[data-theme="signature"] .s-points strong {
    display: block;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.15rem;
    color: var(--gold-soft);
    margin-bottom: 0.15rem;
}
[data-theme="signature"] .s-points span {
    color: var(--text-muted);
    font-size: 0.95rem;
}
@media (min-width: 900px) {
    [data-theme="signature"] .s-house-grid {
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
        align-items: center;
        gap: 4.5rem;
    }
    [data-theme="signature"] .s-house-img img { aspect-ratio: 4 / 5; }
}

/* Photo qui se dévoile au scroll : le cadre s'ouvre, l'image recule. */
[data-theme="signature"] .s-reveal-img.reveal {
    opacity: 1;
    transform: none;
}
[data-theme="signature"] .s-reveal-img img {
    clip-path: inset(10% 10% 10% 10%);
    transform: scale(1.15);
    transition: clip-path 1.3s var(--s-ease), transform 1.6s var(--s-ease);
}
[data-theme="signature"] .s-reveal-img.visible img {
    clip-path: inset(0 0 0 0);
    transform: scale(1);
}

/* ── Venir ─────────────────────────────────────────────────────── */

[data-theme="signature"] .s-visit {
    border-top: 1px solid var(--border-soft);
    background: transparent;
}
[data-theme="signature"] .s-visit-grid {
    display: grid;
    gap: 2.25rem;
}
[data-theme="signature"] .s-visit h2 { margin-bottom: 1rem; }
[data-theme="signature"] .s-visit .s-status { animation: none; margin-bottom: 1.25rem; }
[data-theme="signature"] .s-visit address {
    font-style: normal;
    font-size: 1.08rem;
    color: #d4cfc5;
    margin-bottom: 1.25rem;
}
[data-theme="signature"] .s-visit address a {
    color: var(--gold-soft);
    text-decoration: none;
    font-weight: 500;
}
[data-theme="signature"] .s-hours { margin: 0 0 1.75rem; }
[data-theme="signature"] .s-hours > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border-soft);
}
[data-theme="signature"] .s-hours dd {
    margin: 0;
    color: var(--text-muted);
    text-align: right;
}
[data-theme="signature"] .s-map {
    position: relative;
    min-height: 320px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-soft);
}
[data-theme="signature"] .s-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
@media (min-width: 900px) {
    [data-theme="signature"] .s-visit-grid {
        grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
        gap: 3.5rem;
        align-items: stretch;
    }
    [data-theme="signature"] .s-map { min-height: 440px; }
}

/* ── Autres pages : la carte se lit comme une carte ────────────── */

/* Points de conduite nom … prix, sans zébrage. */
[data-theme="signature"] .menu-list .menu-item:nth-child(even) { background: transparent; }
[data-theme="signature"] .menu-list .menu-item + .menu-item {
    border-top: 1px dotted rgba(245, 240, 230, 0.1);
}
[data-theme="signature"] .menu-item-row {
    grid-template-columns: minmax(0, max-content) minmax(1rem, 1fr) auto;
    align-items: end;
    gap: 0.5rem;
}
[data-theme="signature"] .menu-item.has-photo .menu-item-row {
    grid-template-columns: 56px minmax(0, max-content) minmax(1rem, 1fr) auto;
    align-items: center;
}
@media (max-width: 640px) {
    [data-theme="signature"] .menu-item.has-photo .menu-item-row {
        grid-template-columns: 48px minmax(0, max-content) minmax(0.75rem, 1fr) auto;
    }
}
[data-theme="signature"] .menu-item-dots {
    display: block;
    align-self: end;
    border-bottom: 2px dotted rgba(203, 161, 53, 0.28);
    margin-bottom: 0.4em;
}

/* Prix des formules du jour : liste nom … prix plutôt que des encadrés. */
[data-theme="signature"] .daily-formulas-grid {
    flex-direction: column;
    gap: 0;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border-gold);
}
[data-theme="signature"] .daily-formula-option {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    min-width: 0;
    padding: 0.3rem 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}
[data-theme="signature"] .daily-formula-option-name { color: var(--text-main); font-size: 0.95rem; }
[data-theme="signature"] .daily-formula-option-price {
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
}

/* ── Moins d'animations demandées : tout est posé d'emblée ─────── */

@media (prefers-reduced-motion: reduce) {
    [data-theme="signature"] .s-slide,
    [data-theme="signature"] .s-w > span,
    [data-theme="signature"] .s-title-custom,
    [data-theme="signature"] .s-lead,
    [data-theme="signature"] .s-hero .s-actions,
    [data-theme="signature"] .s-status,
    [data-theme="signature"] .s-dot::after,
    [data-theme="signature"] .s-scroll span {
        animation: none;
        transform: none;
    }
    [data-theme="signature"] .s-slide { opacity: 0; }
    [data-theme="signature"] .s-slide:first-child { opacity: 1; }
    [data-theme="signature"] .s-marquee-track { animation: none; }
    [data-theme="signature"] .s-reveal-img img {
        clip-path: none;
        transform: none;
        transition: none;
    }
}
