/* =========================================================
   SIENNA — HABILLAGE CHARTE PIERRE GOURMET (v3)
   Bouton flottant circulaire + panneau « carte de restaurant »
   Orange #ef7c22 · braise #c65d0e / #9a4708 · nuit #0f172a
   Crème #fbf7f2 · Montserrat / Playfair Display

   ⚠ Le widget impose `--asw-primary` (bleu) en style EN LIGNE
   !important sur .asw-menu : on ne s'appuie donc PAS sur cette
   variable, chaque couleur est fixée explicitement ci-dessous.
   Sélecteurs doublés (.asw-x.asw-x) pour primer sur les
   !important du widget, quel que soit l'ordre d'injection.
   Widget auto-hébergé et figé (assets/vendor/sienna, 2.2.333) :
   ces sélecteurs ne bougeront pas sans mise à jour volontaire.
   ========================================================= */

.asw-widget,
.asw-menu,
.asw-structure-modal {
    --pg-o:       #ef7c22;
    --pg-o-hi:    #f68a35;
    --pg-braise:  #c65d0e;
    --pg-braise-d:#9a4708;
    --pg-night:   #0f172a;
    --pg-night-2: #1e293b;
    --pg-slate:   #475569;
    --pg-cream:   #fbf7f2;
    --pg-cream-2: #f6eee5;
    --pg-line:    #eadfd3;
    --pg-tint:    #fdf0e4;
}

/* ───────────────────────────────────────────────────────────
   1. BOUTON FLOTTANT — disque orange, anneau, icône au trait
   ─────────────────────────────────────────────────────────── */
.asw-menu-btn.asw-menu-btn {
    --asw-btn-size: 60px;
    left: 24px !important;
    bottom: 24px !important;
    width: 60px !important;
    height: 60px !important;
    padding: 0 !important;
    border: 0 !important;
    outline: none !important;
    border-radius: 50% !important;
    color: #fff !important;
    background:
        radial-gradient(120% 120% at 30% 15%, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 50%),
        linear-gradient(150deg, #1e293b 0%, #0f172a 70%) !important;
    box-shadow:
        0 0 0 3px #fff,
        0 0 0 5px #ef7c22,
        0 16px 34px -10px rgba(15,23,42,.6),
        0 4px 10px rgba(15,23,42,.18) !important;
    transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease, background .3s ease !important;
    -webkit-tap-highlight-color: transparent;
}
.asw-menu-btn.asw-menu-btn::after {           /* halo qui « respire » au survol */
    content: "";
    position: absolute;
    inset: -11px;
    border-radius: 50%;
    border: 1.5px solid rgba(239,124,34,.5);
    opacity: 0;
    transform: scale(.85);
    transition: opacity .3s ease, transform .4s cubic-bezier(.34,1.56,.64,1);
    pointer-events: none;
}
.asw-menu-btn.asw-menu-btn:hover {
    transform: translateY(-2px) scale(1.06) !important;
    background:
        radial-gradient(120% 120% at 30% 15%, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 50%),
        linear-gradient(145deg, #f68a35 0%, #ef7c22 45%, #c65d0e 100%) !important;
    box-shadow:
        0 0 0 3px #fff,
        0 0 0 5px #ef7c22,
        0 20px 40px -10px rgba(198,93,14,.6),
        0 6px 14px rgba(15,23,42,.2) !important;
}
.asw-menu-btn.asw-menu-btn:hover::after { opacity: 1; transform: scale(1); }
.asw-menu-btn.asw-menu-btn:active { transform: scale(.96) !important; }
.asw-menu-btn.asw-menu-btn:focus-visible {
    box-shadow:
        0 0 0 3px #fff,
        0 0 0 5px #ef7c22,
        0 0 0 8px #0f172a,
        0 16px 34px -10px rgba(15,23,42,.6) !important;
}
.asw-menu-btn.asw-menu-btn svg {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    fill: none !important;
    color: #fff !important;
    stroke: #fff !important;
    transition: transform .5s cubic-bezier(.34,1.56,.64,1);
}
.asw-menu-btn.asw-menu-btn svg [fill="currentColor"] { fill: #fff !important; }
.asw-menu-btn.asw-menu-btn:hover svg { transform: rotate(-8deg); }

@media only screen and (max-width: 768px) {
    .asw-menu-btn.asw-menu-btn {
        left: 16px !important;
        bottom: 16px !important;
        width: 52px !important;
        height: 52px !important;
    }
    .asw-menu-btn.asw-menu-btn svg {
        width: 28px !important; height: 28px !important;
        min-width: 28px !important; min-height: 28px !important;
    }
}

/* ───────────────────────────────────────────────────────────
   2. PANNEAU — feuille flottante arrondie, papier crème
   ─────────────────────────────────────────────────────────── */
.asw-menu.asw-menu {
    --asw-menu-text: #0f172a;
    top: 16px !important;
    bottom: 16px !important;
    left: 16px !important;
    right: auto !important;
    height: auto !important;
    width: min(440px, calc(100vw - 32px)) !important;
    border-radius: 28px !important;
    background: var(--pg-cream) !important;
    backdrop-filter: none !important;
    border: 1px solid rgba(15,23,42,.06) !important;
    box-shadow:
        0 40px 80px -24px rgba(15,23,42,.45),
        0 12px 28px -12px rgba(15,23,42,.25) !important;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    overflow: hidden !important;
}
@media (prefers-reduced-motion: no-preference) {
    .asw-menu.asw-menu { animation: pg-sheet-in .45s cubic-bezier(.16,1,.3,1) both; }
}
@keyframes pg-sheet-in {
    from { opacity: 0; transform: translateY(14px) scale(.985); }
    to   { opacity: 1; transform: none; }
}
@media only screen and (max-width: 560px) {
    .asw-menu.asw-menu {
        top: 8px !important; bottom: 8px !important; left: 8px !important;
        width: calc(100vw - 16px) !important;
        border-radius: 24px !important;
    }
}

/* Voile derrière le panneau */
.asw-overlay.asw-overlay {
    background: rgba(15,23,42,.38) !important;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* ── En-tête : nuit étoilée de la charte, lueur orange ── */
.asw-menu-header.asw-menu-header {
    position: relative;
    height: auto !important;
    min-height: 96px;
    padding: 22px 22px 22px 26px !important;
    background:
        radial-gradient(90% 140% at 100% 0%, rgba(239,124,34,.38) 0%, rgba(239,124,34,0) 60%),
        radial-gradient(60% 90% at 0% 100%, rgba(198,93,14,.22) 0%, rgba(198,93,14,0) 70%),
        #0f172a !important;
    box-shadow: none !important;
    overflow: hidden;
}
.asw-menu-header.asw-menu-header::after {     /* filet orange de finition */
    content: "";
    position: absolute;
    left: 26px; right: 26px; bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #ef7c22, rgba(239,124,34,0));
}
.asw-menu .asw-menu-title.asw-menu-title {
    display: flex !important;
    flex-direction: column;
    gap: 7px;
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 25px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    color: #fff !important;
    letter-spacing: -.01em !important;
}
.asw-menu .asw-menu-title.asw-menu-title::before {
    content: "\2726\00a0\00a0Pierre Gourmet";
    font-family: 'Montserrat', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .2em !important;
    text-transform: uppercase;
    color: #ffb37a;                 /* 7.8:1 sur #0f172a */
}
.asw-menu .asw-menu-reset.asw-menu-reset,
.asw-menu .asw-menu-close.asw-menu-close {
    width: 42px;
    height: 42px;
    padding: 0 !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.08) !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    transition: background .2s ease, transform .3s cubic-bezier(.34,1.56,.64,1), border-color .2s ease !important;
    opacity: 1 !important;
}
.asw-menu .asw-menu-reset.asw-menu-reset:hover,
.asw-menu .asw-menu-close.asw-menu-close:hover {
    background: #ef7c22 !important;
    border-color: #ef7c22 !important;
}
.asw-menu .asw-menu-reset.asw-menu-reset:hover { transform: rotate(-120deg); }
.asw-menu .asw-menu-close.asw-menu-close:hover { transform: rotate(90deg); }
.asw-menu-header.asw-menu-header svg {
    fill: #fff !important;
    width: 20px !important; height: 20px !important;
    min-width: 20px !important; min-height: 20px !important;
    max-width: 20px !important; max-height: 20px !important;
}
.asw-menu-header .asw-gap-15 { gap: 10px !important; }

/* ── Corps défilant ── */
.asw-menu .asw-menu-content.asw-menu-content {
    padding: 20px 0 8px !important;
    scrollbar-width: thin;
    scrollbar-color: #e3d4c4 transparent;
}
.asw-menu-content::-webkit-scrollbar { width: 8px; }
.asw-menu-content::-webkit-scrollbar-thumb { background: #e3d4c4; border-radius: 8px; }

/* Le site gère lui-même FR/EN (le widget suit la langue de la page) :
   le sélecteur des 54 langues est masqué. */
.asw-menu .asw-card:has(> #asw-language) { display: none !important; }

/* Liens « En savoir plus » vers le site de l'éditeur du widget : masqués */
.asw-menu .asw-info-icon { display: none !important; }

/* ── Cartes de section ── */
.asw-menu .asw-card.asw-card {
    margin: 0 18px 16px !important;
    padding: 18px !important;
    background: #fff !important;
    border: 1px solid var(--pg-line) !important;
    border-radius: 22px !important;
    box-shadow: 0 1px 0 rgba(15,23,42,.02), 0 10px 24px -18px rgba(154,71,8,.35) !important;
}
.asw-menu .asw-card-title.asw-card-title {
    justify-content: flex-start !important;
    gap: 10px;
    padding: 2px 2px 16px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .16em !important;
    text-transform: uppercase;
    color: #9a4708 !important;      /* 6.4:1 sur blanc */
    opacity: 1 !important;
}
.asw-menu .asw-card-title.asw-card-title span { color: #9a4708 !important; }
.asw-menu .asw-card-title.asw-card-title::before {
    content: "";
    width: 18px; height: 2px;
    border-radius: 2px;
    background: #ef7c22;
    flex: none;
}

/* ── Profils : rangée « interrupteur » ── */
.asw-menu .asw-items.profiles {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
}
.asw-menu .asw-profile-btn.asw-profile-btn {
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 12px 64px 12px 12px !important;
    background: var(--pg-cream) !important;
    border: 1px solid transparent !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    transition: background .2s ease, border-color .2s ease, transform .2s ease !important;
}
.asw-menu .asw-profile-btn.asw-profile-btn:hover {
    background: #fff !important;
    border-color: #f2c39b !important;
}
.asw-menu .asw-profile-btn.asw-profile-btn.asw-selected {
    background: #fff !important;
    border-color: #ef7c22 !important;
    box-shadow: 0 8px 22px -14px rgba(198,93,14,.6) !important;
}
.asw-menu .asw-profile-icon.asw-profile-icon {
    width: 44px !important; height: 44px !important; min-width: 44px !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: inset 0 0 0 1px var(--pg-line) !important;
}
.asw-menu .asw-profile-btn.asw-selected .asw-profile-icon {
    background: linear-gradient(145deg, #f68a35, #c65d0e) !important;
    box-shadow: none !important;
}
.asw-menu .asw-profile-icon svg {
    width: 22px !important; height: 22px !important;
    fill: #c65d0e !important; color: #c65d0e !important;
}
.asw-menu .asw-profile-icon svg * { stroke: currentColor; }
.asw-menu .asw-profile-btn.asw-selected .asw-profile-icon svg { fill: #fff !important; color: #fff !important; }
.asw-menu .asw-profile-title.asw-profile-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-bottom: 3px !important;
    padding-right: 0 !important;
    color: #0f172a !important;
}
.asw-menu .asw-profile-desc.asw-profile-desc {
    font-size: 12px !important;
    line-height: 1.45 !important;
    color: #475569 !important;      /* 7.5:1 sur crème */
}
.asw-menu .asw-profile-toggle.asw-profile-toggle {
    top: 50% !important;
    right: 14px !important;
    transform: translateY(-50%);
    width: 42px !important; height: 24px !important;
    background: #e2d6ca !important;
}
.asw-menu .asw-profile-toggle.asw-profile-toggle::after {
    width: 18px !important; height: 18px !important;
    top: 3px !important; left: 3px !important;
    box-shadow: 0 2px 5px rgba(15,23,42,.2) !important;
}
.asw-menu .asw-profile-btn.asw-selected .asw-profile-toggle { background: #ef7c22 !important; }

/* ── Taille du texte : rangée pilule ── */
.asw-menu .asw-adjust-font.asw-adjust-font {
    background: var(--pg-cream) !important;
    border-radius: 18px !important;
    padding: 14px 14px 14px 18px !important;
    margin-bottom: 12px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.asw-menu .asw-adjust-font .asw-label { align-items: center; gap: 10px; }
.asw-menu .asw-adjust-font .asw-label svg { fill: #c65d0e !important; width: 22px !important; height: 22px !important; min-width: 22px !important; min-height: 22px !important; }
.asw-menu .asw-adjust-font .asw-label div { font-size: 14px !important; font-weight: 700 !important; color: #0f172a !important; }
.asw-menu .asw-adjust-font > div:last-child {
    margin-top: 0 !important;
    gap: 6px;
    padding: 4px;
    background: #fff;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px var(--pg-line);
}
.asw-menu .asw-adjust-font div[role="button"] {
    width: 34px !important; height: 34px !important;
    background: #0f172a !important;
    border: 0 !important;
    transition: background .2s ease, transform .2s ease !important;
}
.asw-menu .asw-adjust-font div[role="button"]:hover { background: #ef7c22 !important; transform: scale(1.06); }
.asw-menu .asw-adjust-font div[role="button"] svg {
    fill: #fff !important;
    width: 18px !important; height: 18px !important;
    min-width: 18px !important; min-height: 18px !important;
}
.asw-menu .asw-amount.asw-amount {
    min-width: 54px;
    text-align: center;
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

/* ── Tuiles d'options ── */
.asw-menu .asw-items:not(.profiles) { gap: 8px !important; }
.asw-menu .asw-btn.asw-btn {
    aspect-ratio: auto !important;
    min-height: 96px;
    padding: 14px 8px 12px !important;
    gap: 10px !important;
    border-radius: 18px !important;
    background: var(--pg-cream) !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
    transition: background .2s ease, border-color .2s ease, transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease !important;
}
.asw-menu .asw-btn .asw-icon {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--pg-line);
    transition: background .2s ease;
}
.asw-menu .asw-btn.asw-btn svg {
    width: 22px !important; height: 22px !important;
    min-width: 22px !important; min-height: 22px !important;
    max-width: 22px !important; max-height: 22px !important;
    fill: #0f172a !important;
}
.asw-menu .asw-btn .asw-translate {
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: #1e293b !important;
}
.asw-menu .asw-btn.asw-btn:hover {
    background: #fff !important;
    border-color: #f2c39b !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 22px -16px rgba(198,93,14,.7) !important;
}
.asw-menu .asw-btn.asw-btn.asw-selected {
    background: #0f172a !important;
    border-color: #0f172a !important;
}
.asw-menu .asw-btn.asw-btn.asw-selected .asw-icon {
    background: linear-gradient(145deg, #f68a35, #c65d0e);
    box-shadow: none;
}
.asw-menu .asw-btn.asw-btn.asw-selected svg { fill: #fff !important; }
.asw-menu .asw-btn.asw-btn.asw-selected span,
.asw-menu .asw-btn.asw-btn.asw-selected .asw-translate { color: #fff !important; }
.asw-menu .asw-btn.asw-btn.asw-selected::after {
    top: 8px !important; right: 8px !important;
    width: 18px !important; height: 18px !important;
    font-size: 9px !important;
    color: #fff !important;
    background: #ef7c22 !important;
    border: 0 !important;
    box-shadow: 0 0 0 3px #0f172a !important;
}
@media only screen and (max-width: 420px) {
    .asw-menu .asw-btn.asw-btn { min-height: 88px; }
}

/* ── Réinitialiser ── */
.asw-menu .asw-card:has(> .asw-menu-reset-footer-btn) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 2px 0 0 !important;
}
.asw-menu .asw-menu-reset-footer-btn.asw-menu-reset-footer-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px !important;
    border-radius: 999px !important;
    border: 1.5px solid #0f172a !important;
    background: transparent !important;
    color: #0f172a !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: .02em !important;
    transition: background .2s ease, color .2s ease, border-color .2s ease !important;
    outline: none !important;
    box-shadow: none !important;
}
.asw-menu .asw-menu-reset-footer-btn.asw-menu-reset-footer-btn::before {
    content: "\21BA";
    font-size: 17px;
    line-height: 1;
}
.asw-menu .asw-menu-reset-footer-btn.asw-menu-reset-footer-btn:hover {
    background: #0f172a !important;
    color: #fff !important;
}

/* ── Pied : déclaration d'accessibilité du site ── */
.asw-menu .asw-footer.asw-footer {
    justify-content: center !important;
    padding: 14px 20px 16px !important;
    background: var(--pg-cream) !important;
    backdrop-filter: none !important;
    border-top: 1px solid var(--pg-line) !important;
    box-shadow: none !important;
}
.asw-menu #asw-statement-link.asw-footer-link {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    opacity: 1 !important;
    line-height: 1.4 !important;
    color: #9a4708 !important;
    text-decoration: underline !important;
    text-decoration-color: rgba(154,71,8,.35) !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 4px;
}
.asw-menu #asw-statement-link.asw-footer-link::after { content: "\00a0\2192"; color: #9a4708; }
.asw-menu #asw-statement-link.asw-footer-link:hover { text-decoration-color: #9a4708 !important; }

/* ───────────────────────────────────────────────────────────
   3. FOCUS VISIBLES (RGAA 10.7)
   ─────────────────────────────────────────────────────────── */
.asw-menu .asw-menu-reset:focus-visible,
.asw-menu .asw-menu-close:focus-visible {
    outline: 3px solid #ffb37a !important;
    outline-offset: 3px !important;
}
.asw-menu .asw-btn:focus-visible,
.asw-menu .asw-profile-btn:focus-visible,
.asw-menu .asw-menu-reset-footer-btn:focus-visible,
.asw-menu .asw-adjust-font div[role="button"]:focus-visible,
.asw-menu #asw-statement-link:focus-visible {
    outline: 3px solid #ef7c22 !important;
    outline-offset: 3px !important;
}

/* ───────────────────────────────────────────────────────────
   4. FENÊTRE « STRUCTURE DE LA PAGE »
   ─────────────────────────────────────────────────────────── */
.asw-structure-modal.asw-structure-modal {
    border-radius: 28px !important;
    background: #fbf7f2 !important;
    font-family: 'Montserrat', sans-serif !important;
    box-shadow: 0 40px 80px -24px rgba(15,23,42,.5) !important;
}
.asw-structure-header {
    background:
        radial-gradient(90% 160% at 100% 0%, rgba(239,124,34,.38) 0%, rgba(239,124,34,0) 60%),
        #0f172a !important;
    padding: 20px 24px !important;
}
.asw-structure-title { font-family: 'Playfair Display', Georgia, serif !important; }
.asw-tabs-nav { background: #f6eee5 !important; }
.asw-tab-btn:hover { color: #9a4708 !important; background: rgba(239,124,34,.08) !important; }
.asw-tab-btn.asw-active { color: #9a4708 !important; }
.asw-tab-btn.asw-active::after { background: #ef7c22 !important; }
.asw-structure-nested-wrapper { border-left-color: rgba(239,124,34,.25) !important; }
.asw-structure-nested-wrapper:hover { border-left-color: rgba(239,124,34,.5) !important; }
.asw-structure-item:hover,
.asw-structure-item:focus-within {
    background: #fdf3ea !important;
    border-color: rgba(239,124,34,.35) !important;
    box-shadow: 0 4px 12px rgba(239,124,34,.10) !important;
}
.asw-action-btn:hover { background: rgba(239,124,34,.12) !important; color: #9a4708 !important; }
