/* <style> (ligne 1619 d'origine) */

/* ---- Barre du haut : jamais de bouton coupé, jamais de débordement ---- */
.dash-topbar{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:14px 18px; border-bottom:1px solid var(--cream-line); background:var(--surface);
}
.icon-btn{ position:relative; width:40px; height:40px; border-radius:999px; display:flex; align-items:center; justify-content:center; color:var(--ink-soft); flex-shrink:0; }
.icon-btn:hover{ background:rgba(43,24,16,.05); }
.notif-dot{
  position:absolute; top:3px; right:3px; width:14px; height:14px; background:var(--terracotta); color:#fff;
  font-size:9px; font-weight:700; border-radius:999px; display:flex; align-items:center; justify-content:center;
}

/* ---- Menu latéral : grille parfaitement alignée ---- */
#dashNav .nav-item{
  display:flex; align-items:center; gap:12px; height:40px; padding:0 12px; border-radius:12px;
  font-size:13.5px; font-weight:500; color:var(--ink-soft); width:100%; text-align:left; box-sizing:border-box;
}
#dashNav .nav-item .nav-icon{ width:20px; height:20px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
#dashNav .nav-item .nav-label{ line-height:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#dashNav .nav-item.active{ background:var(--ink); color:var(--cream); }
#dashNav .nav-item:not(.active):hover{ background:rgba(43,24,16,.05); }

.hide-sm{ }

/* ---- Navigation mobile ---- */
#mobileBottomNav{
  position:fixed; left:0; right:0; bottom:0; z-index:60; background:var(--surface); border-top:1px solid var(--cream-line);
  display:none; grid-template-columns:repeat(5,1fr); padding:6px 2px calc(6px + env(safe-area-inset-bottom));
  box-shadow:0 -4px 16px rgba(43,24,16,.06);
}
#mobileBottomNav.active-grid{ display:grid; }
.mbn-item{ display:flex; flex-direction:column; align-items:center; gap:3px; padding:6px 2px; border-radius:12px; color:var(--ink-faint); font-size:10px; font-weight:600; }
.mbn-item .mbn-icon{ height:19px; display:flex; align-items:center; justify-content:center; }
.mbn-item.active{ color:var(--amber-ink); background:rgba(232,135,30,.08); }
.more-tile{ display:flex; flex-direction:column; align-items:center; gap:6px; padding:14px 6px; border-radius:16px; background:var(--cream); font-size:11px; font-weight:600; color:var(--ink-soft); text-align:center; }
.more-tile.locked{ opacity:.55; }

.mobile-add-product-card{width:100%;}
@media (max-width: 900px){
  .mobile-add-product-card{display:flex;min-height:62px;}
  #dashSidebar{ display:none !important; }
  #mobileBottomNav.active-grid{ display:grid; }
  #dashContent{ padding-bottom:96px !important; }
  #quickAddBtn, #quickAddBtn .hide-sm{ display:none !important; }
  .dash-topbar{ padding:12px 14px; }
  .mobile-tablet-only{ display:flex !important; }
}
/* Masqué par défaut (ordinateur) — jamais affiché en dehors de
   téléphone/tablette, jamais de changement visuel du desktop. Toujours
   en display:flex quand visible (avec flex-direction:column si besoin
   d'un empilement) — jamais display:block, pour que gap/align-items
   fonctionnent directement sans style supplémentaire à chaque usage. */
.mobile-tablet-only{ display:none; }
.tr-overview-flow{display:contents;}
.tr-overview-main{display:contents;}
.tr-mobile-add,.tr-mobile-qr,.tr-mobile-direct-sections,.tr-mobile-account{display:none;}
.tr-mobile-direct-sections{box-sizing:border-box;width:100%;}
.tr-mobile-direct-sections .more-tile{background:#fff;color:#000;}
.tr-country-picker{position:relative;flex:0 0 auto;}
.tr-country-button{min-width:104px;height:42px;padding:0 10px;border:1px solid var(--cream-line);border-radius:10px;background:var(--surface);color:var(--ink);display:flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;white-space:nowrap;}
.tr-country-button:focus-visible{outline:2px solid var(--amber-deep);outline-offset:2px;}
.tr-country-menu{position:absolute;left:0;top:calc(100% + 6px);min-width:250px;max-width:min(300px,calc(100vw - 32px));padding:6px;background:var(--surface);border:1px solid var(--cream-line);border-radius:12px;box-shadow:0 18px 40px rgba(0,0,0,.18);z-index:1200;max-height:280px;overflow:auto;}
.tr-country-option{width:100%;display:flex;align-items:center;gap:8px;padding:9px 10px;border:none;border-radius:8px;background:transparent;color:var(--ink);text-align:left;cursor:pointer;font-size:12.5px;}
.tr-country-option:hover,.tr-country-option.is-active{background:rgba(232,135,30,.10);}
.tr-country-option .tr-country-name{flex:1;min-width:0;}
.tr-country-option .tr-country-code{font-variant-numeric:tabular-nums;color:var(--ink-soft);}
.tr-phone-control{display:flex;align-items:stretch;gap:8px;width:100%;}
.tr-phone-control .tr-local-phone-input{flex:1;min-width:0;}
@media (max-width:900px){
  .tr-overview-flow{display:flex;flex-direction:column;gap:0;}
  .tr-overview-main{display:block;order:3;}
  .tr-mobile-qr{display:block !important;order:1;}
  .tr-mobile-direct-sections{display:grid !important;order:2;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:18px;}
  .tr-mobile-add{display:block !important;order:4;}
  .tr-mobile-account{display:flex !important;order:5;}
  .tr-mobile-account .mobile-more-card{display:none !important;}
  .tr-country-button{min-width:96px;}
  .tr-country-menu{left:0;right:auto;min-width:240px;}
}
@media (max-width:640px){
  .tr-settings-phone-city-row{display:flex !important;flex-direction:column !important;}
  .tr-settings-phone-city-row > div:first-child{order:2;}
  .tr-settings-phone-city-row > div:nth-child(2){order:1;}
  .tr-settings-phone-city-row .tr-phone-control{width:100%;} 
  .tr-settings-phone-city-row .tr-local-phone-input{min-width:0;}
}

/* =====================================================================
   THÈME "DARK PREMIUM" — exclusif au tableau de bord restaurateur.
   Le site public, la vitrine TerangaResto et la création de compte
   gardent l'identité claire/crème existante ; seul #view-dashboard
   bascule vers ce thème sombre, via une redéfinition scopée des
   variables de couleur (héritée par tous les descendants) plus quelques
   overrides ciblés pour les rares valeurs qui n'étaient pas basées sur
   une variable.
   ===================================================================== */
#view-dashboard{
  --ink:#FFFFFF; --ink-soft:#FFFFFF; --ink-faint:#FFFFFF;
  color: var(--ink);
  color-scheme: dark;
  --amber-ink:#F5B24E;
  --cream:#0F1830; --cream-deep:#16203A; --cream-line:rgba(255,255,255,.09);
  --surface:#131C30;
  --forest:#34D399; --forest-soft:rgba(52,211,153,.16);
  --terracotta:#F0653A; --terracotta-soft:rgba(240,101,58,.18);
  background:#0B1220;
  min-height:100vh;
}
#view-dashboard .dash-topbar{ background:var(--surface); }
#view-dashboard #dashSidebar{ background:#0A1120; border-right-color:var(--cream-line); }
/* Menu restaurateur fixe uniquement sur desktop ; le breakpoint mobile existant reste inchangé. */
@media (min-width: 901px){
  #view-dashboard > div:first-child{ padding-left:250px; }
  #view-dashboard #dashSidebar{
    position:fixed;
    top:0;
    left:0;
    width:250px;
    height:100vh;
    height:100dvh;
    max-height:100vh;
    max-height:100dvh;
    overflow-y:auto;
    overflow-x:hidden;
    z-index:40;
  }
}
#view-dashboard #mobileBottomNav{ background:#0A1120; }
#view-dashboard .nav-item:not(.active):hover{ background:rgba(255,255,255,.055); }
#view-dashboard .nav-item.active{ background:var(--amber-deep); color:#fff; }
#view-dashboard .icon-btn:hover{ background:rgba(255,255,255,.07); }
/* Une fois dans l'espace privé, le header public TerangaResto (logo,
   Connexion, Créer) ne doit plus être visible : le dashboard possède
   sa propre barre de navigation. */
body.dashboard-active #platformHeader{display:none !important;}
body.dashboard-active #view-dashboard{min-height:100vh;}
#view-dashboard .mbn-item.active{ background:rgba(232,135,30,.14); }
#view-dashboard .more-tile{ background:var(--cream); }
#view-dashboard .tr-mobile-direct-sections .more-tile{ background:#fff; }
#view-dashboard .empty-state{ background:rgba(255,255,255,.02); border-color:var(--cream-line); }
#view-dashboard .toggle{ background:rgba(255,255,255,.14); }
#view-dashboard .pill-neutral{ background:rgba(255,255,255,.08); }
#view-dashboard table.data-table thead{ background:rgba(255,255,255,.04); }
#view-dashboard table.data-table tbody tr:hover{ background:rgba(255,255,255,.035); }
#view-dashboard .btn-outline{ border-color:rgba(255,255,255,.16); color:var(--ink); }
#view-dashboard .btn-outline:hover{ background:rgba(255,255,255,.06); }
#view-dashboard .btn-ghost:hover{ background:rgba(255,255,255,.06); }
#view-dashboard .field-input{ background:#0F1830; }
#view-dashboard .field-input::placeholder{ opacity:.4; }
#view-dashboard ::selection{ background:var(--amber); color:#fff; }
#view-dashboard .card,
#view-dashboard .stat-card,
#view-dashboard .lib-card,
#view-dashboard .social-card{
  box-shadow:0 1px 2px rgba(0,0,0,.25);
}

/* <style id="tg-classic-theme-css"> (ligne 1790 d'origine) */

.tg-classic {
            --primary: #E63946;
            --primary-hover: #C5221F;
            --primary-soft: rgba(230, 57, 70, 0.08);
            --secondary: #D4A373;
            --dark: #1A1A1A;
            --dark-card: #242424;
            --light-bg: #FAFAFA;
            --card-bg: #FFFFFF;
            --text-main: #2D3142;
            --text-muted: #6C757D;
            --border: #EAEAEA;
            --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
            --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
            --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.12);
            --radius-sm: 8px;
            --radius-md: 16px;
            --radius-lg: 24px;
            --radius-full: 9999px;
            --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        }.tg-classic, .tg-classic * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }.tg-classic, .tg-classic {
            overflow-x: hidden;
            width: 100%;
        }.tg-classic {
            scroll-behavior: smooth;
            font-size: 16px;
        }.tg-classic {
            font-family: 'Plus Jakarta Sans', sans-serif;
            background-color: var(--light-bg);
            color: var(--text-main);
            line-height: 1.5;
        }.tg-classic h1, .tg-classic h2, .tg-classic h3, .tg-classic h4, .tg-classic .font-heading {
            font-family: 'Playfair Display', serif;
        }.tg-classic a {
            text-decoration: none;
            color: inherit;
        }.tg-classic button {
            cursor: pointer;
            border: none;
            outline: none;
            background: none;
            font-family: inherit;
        }.tg-classic img {
            max-width: 100%;
            height: auto;
            display: block;
            object-fit: cover;
        }.tg-classic .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 1.25rem;
            width: 100%;
        }.tg-classic .section-title {
            text-align: center;
            margin-bottom: 2.5rem;
        }.tg-classic .section-title span {
            color: var(--primary);
            font-size: 0.85rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 2px;
            display: block;
            margin-bottom: 0.4rem;
            font-family: 'Plus Jakarta Sans', sans-serif;
        }.tg-classic .section-title h2 {
            font-size: 2.25rem;
            color: var(--dark);
        }.tg-classic .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 0.85rem 1.75rem;
            border-radius: var(--radius-full);
            font-weight: 600;
            font-size: 1rem;
            transition: var(--transition);
            min-height: 48px;
            touch-action: manipulation;
        }.tg-classic .btn-primary {
            background-color: var(--primary);
            color: #FFF;
        }.tg-classic .btn-primary:hover {
            background-color: var(--primary-hover);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(230, 57, 70, 0.35);
        }.tg-classic .btn-outline {
            border: 2px solid var(--primary);
            color: var(--primary);
        }.tg-classic .btn-outline:hover {
            background-color: var(--primary);
            color: #FFF;
        }.tg-classic .badge {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            border-radius: var(--radius-full);
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
        }.tg-classic .badge-pop {
            background-color: #FFF3EA;
            color: #FF6B00;
        }.tg-classic .header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
            background-color: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(10px);
            transition: var(--transition);
            border-bottom: 1px solid rgba(0,0,0,0.05);
        }.tg-classic .header.scrolled {
            box-shadow: var(--shadow-sm);
        }.tg-classic .header-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 70px;
        }.tg-classic .logo {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            font-size: 1.35rem;
            font-weight: 800;
            color: var(--dark);
        }.tg-classic .logo-icon {
            width: 38px;
            height: 38px;
            background-color: var(--primary);
            color: white;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
        }.tg-classic .nav-desktop {
            display: flex;
            align-items: center;
            gap: 2rem;
            list-style: none;
        }.tg-classic .nav-link {
            font-weight: 600;
            color: var(--text-main);
            transition: var(--transition);
            position: relative;
        }.tg-classic .nav-link:hover, .tg-classic .nav-link.active {
            color: var(--primary);
        }.tg-classic .nav-link.active::after {
            content: '';
            position: absolute;
            bottom: -6px;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: var(--primary);
            border-radius: 2px;
        }.tg-classic .header-actions {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }.tg-classic .cart-icon-btn {
            position: relative;
            width: 44px;
            height: 44px;
            background-color: var(--light-bg);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            color: var(--dark);
            transition: var(--transition);
        }.tg-classic .cart-icon-btn:hover {
            background-color: var(--primary-soft);
            color: var(--primary);
        }.tg-classic .cart-badge {
            position: absolute;
            top: -2px;
            right: -2px;
            background-color: var(--primary);
            color: white;
            font-size: 0.7rem;
            font-weight: 800;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid #FFF;
        }.tg-classic .hamburger {
            display: none;
            font-size: 1.35rem;
            color: var(--dark);
            width: 44px;
            height: 44px;
            align-items: center;
            justify-content: center;
        }.tg-classic .mobile-menu {
            position: fixed;
            top: 0;
            left: -100%;
            width: 85%;
            max-width: 320px;
            height: 100vh;
            background-color: #FFF;
            box-shadow: var(--shadow-lg);
            z-index: 1001;
            padding: 1.5rem 1.25rem;
            display: flex;
            flex-direction: column;
            gap: 2rem;
            transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        }.tg-classic .mobile-menu.open {
            transform: translateX(100%);
        }.tg-classic .mobile-menu-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid var(--border);
            padding-bottom: 1rem;
        }.tg-classic .mobile-nav-links {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
        }.tg-classic .mobile-nav-links a {
            font-size: 1.1rem;
            font-weight: 600;
            display: block;
            padding: 0.5rem 0;
        }.tg-classic .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 999;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
        }.tg-classic .overlay.active {
            opacity: 1;
            visibility: visible;
        }.tg-classic .hero {
            position: relative;
            height: 75vh;
            min-height: 480px;
            margin-top: 70px;
            overflow: hidden;
        }.tg-classic .hero-slider {
            height: 100%;
            position: relative;
        }.tg-classic .slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 0.8s ease-in-out;
            display: flex;
            align-items: center;
        }.tg-classic .slide.active {
            opacity: 1;
        }.tg-classic .slide-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
        }.tg-classic .slide-bg::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(180deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.7) 100%);
        }.tg-classic .hero-content {
            position: relative;
            z-index: 10;
            color: #FFF;
            max-width: 650px;
        }.tg-classic .hero-content h1 {
            font-size: 3.25rem;
            line-height: 1.15;
            margin-bottom: 1rem;
            font-weight: 700;
        }.tg-classic .hero-content p {
            font-size: 1.15rem;
            margin-bottom: 1.75rem;
            opacity: 0.95;
            line-height: 1.5;
        }.tg-classic .slider-controls {
            position: absolute;
            bottom: 1.5rem;
            right: 1.5rem;
            z-index: 20;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }.tg-classic .slider-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.25);
            backdrop-filter: blur(5px);
            color: #FFF;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }.tg-classic .slider-btn:hover {
            background: #FFF;
            color: var(--dark);
        }.tg-classic .slider-dots {
            position: absolute;
            bottom: 1.5rem;
            left: 50%;
            transform: translateX(-50%);
            z-index: 20;
            display: flex;
            gap: 0.5rem;
        }.tg-classic .dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.4);
            cursor: pointer;
            transition: var(--transition);
        }.tg-classic .dot.active {
            width: 26px;
            border-radius: 12px;
            background: var(--primary);
        }.tg-classic .categories-section {
            padding: 2rem 0;
            background: #FFF;
            border-bottom: 1px solid var(--border);
        }.tg-classic .categories-wrapper {
            display: flex;
            gap: 1.25rem;
            overflow-x: auto;
            padding: 0.25rem 0.25rem 1rem 0.25rem;
            scrollbar-width: none;
            -webkit-overflow-scrolling: touch;
            scroll-snap-type: x mandatory;
        }.tg-classic .categories-wrapper::-webkit-scrollbar {
            display: none;
        }.tg-classic .category-item {
            flex: 0 0 auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.6rem;
            cursor: pointer;
            transition: var(--transition);
            scroll-snap-align: start;
            width: 80px;
        }.tg-classic .category-img {
            width: 72px;
            height: 72px;
            border-radius: 50%;
            padding: 3px;
            background: #FFF;
            border: 2px solid var(--border);
            box-shadow: var(--shadow-sm);
            transition: var(--transition);
            flex-shrink: 0;
        }.tg-classic .category-img img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
        }.tg-classic .category-name {
            font-size: 0.85rem;
            font-weight: 700;
            color: var(--text-main);
            text-align: center;
            white-space: nowrap;
        }.tg-classic .category-item:hover .category-img, .tg-classic .category-item.active .category-img {
            border-color: var(--primary);
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(230, 57, 70, 0.25);
        }.tg-classic .category-item.active .category-name {
            color: var(--primary);
        }.tg-classic .menu-section {
            padding: 3.5rem 0;
        }.tg-classic .search-bar-container {
            max-width: 480px;
            margin: 0 auto 2.5rem auto;
            position: relative;
        }.tg-classic .search-input {
            width: 100%;
            padding: 0.85rem 1.25rem 0.85rem 2.8rem;
            border-radius: var(--radius-full);
            border: 1px solid var(--border);
            font-size: 0.95rem;
            box-shadow: var(--shadow-sm);
            transition: var(--transition);
            background: #FFF;
        }.tg-classic .search-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 4px var(--primary-soft);
        }.tg-classic .search-icon {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
        }.tg-classic .products-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
        }.tg-classic .product-card {
            background: var(--card-bg);
            border-radius: var(--radius-md);
            overflow: hidden;
            box-shadow: var(--shadow-sm);
            transition: var(--transition);
            border: 1px solid var(--border);
            display: flex;
            flex-direction: column;
            position: relative;
        }.tg-classic .product-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-md);
        }.tg-classic .product-img-wrapper {
            position: relative;
            height: 200px;
            cursor: pointer;
            overflow: hidden;
            background: #f0f0f0;
        }.tg-classic .product-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }.tg-classic .product-card:hover .product-img {
            transform: scale(1.05);
        }.tg-classic .product-badge {
            position: absolute;
            top: 0.75rem;
            left: 0.75rem;
            z-index: 5;
        }.tg-classic .product-content {
            padding: 1.25rem;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }.tg-classic .product-title {
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 0.4rem;
            color: var(--dark);
            cursor: pointer;
            line-height: 1.3;
        }.tg-classic .product-desc {
            font-size: 0.85rem;
            color: var(--text-muted);
            margin-bottom: 1rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            flex-grow: 1;
            line-height: 1.4;
        }.tg-classic .product-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: auto;
            padding-top: 0.75rem;
            border-top: 1px dashed var(--border);
            gap: 0.5rem;
        }.tg-classic .product-price {
            font-size: 1.1rem;
            font-weight: 800;
            color: var(--primary);
            white-space: nowrap;
        }.tg-classic .add-cart-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: var(--primary-soft);
            color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            transition: var(--transition);
            flex-shrink: 0;
            touch-action: manipulation;
        }.tg-classic .add-cart-btn:hover, .tg-classic .add-cart-btn:active {
            background-color: var(--primary);
            color: #FFF;
        }.tg-classic .no-results {
            grid-column: 1 / -1;
            text-align: center;
            padding: 3rem 1rem;
            color: var(--text-muted);
        }.tg-classic .promo-section {
            padding: 2.5rem 0;
        }.tg-classic .promo-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1.5rem;
        }.tg-classic .promo-card {
            border-radius: var(--radius-md);
            overflow: hidden;
            position: relative;
            min-height: 230px;
            display: flex;
            align-items: center;
            padding: 2rem;
            color: white;
            background-size: cover;
            background-position: center;
            box-shadow: var(--shadow-sm);
        }.tg-classic .promo-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 100%);
        }.tg-classic .promo-content {
            position: relative;
            z-index: 2;
            max-width: 80%;
        }.tg-classic .promo-content h3 {
            font-size: 1.75rem;
            margin-bottom: 0.4rem;
            line-height: 1.2;
        }.tg-classic .promo-content p {
            margin-bottom: 1rem;
            font-size: 0.95rem;
            opacity: 0.9;
        }.tg-classic .about-section {
            padding: 4rem 0;
            background: #FFF;
        }.tg-classic .about-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
            align-items: center;
        }.tg-classic .about-img {
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-md);
            overflow: hidden;
        }.tg-classic .about-img img {
            border-radius: var(--radius-lg);
            width: 100%;
        }.tg-classic .about-content h2 {
            font-size: 2.25rem;
            margin-bottom: 1.25rem;
            color: var(--dark);
        }.tg-classic .features-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.25rem;
            margin-top: 2.5rem;
        }.tg-classic .feature-item {
            text-align: center;
            padding: 1.25rem 0.75rem;
            background: var(--light-bg);
            border-radius: var(--radius-md);
            transition: var(--transition);
        }.tg-classic .feature-icon {
            font-size: 1.75rem;
            color: var(--primary);
            margin-bottom: 0.6rem;
        }.tg-classic .info-section {
            padding: 4rem 0;
        }.tg-classic .info-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2.5rem;
        }.tg-classic .hours-card, .tg-classic .location-card {
            background: #FFF;
            padding: 2rem;
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-sm);
            border: 1px solid var(--border);
        }.tg-classic .status-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.4rem 1rem;
            border-radius: var(--radius-full);
            font-weight: 700;
            font-size: 0.85rem;
            margin-bottom: 1.25rem;
        }.tg-classic .status-badge.open {
            background-color: #E6F4EA;
            color: #137333;
        }.tg-classic .status-badge.closed {
            background-color: #FCE8E6;
            color: #C5221F;
        }.tg-classic .status-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background-color: currentColor;
        }.tg-classic .hours-list {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }.tg-classic .hours-item {
            display: flex;
            justify-content: space-between;
            padding-bottom: 0.5rem;
            border-bottom: 1px dashed var(--border);
            font-size: 0.95rem;
        }.tg-classic .map-container {
            height: 200px;
            border-radius: var(--radius-sm);
            overflow: hidden;
            margin-top: 1.25rem;
            background-color: #e5e3df;
            position: relative;
        }.tg-classic .map-placeholder {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background: linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.15)), url('https://images.unsplash.com/photo-1526778548025-fa2f459cd5c1?auto=format&fit=crop&w=800&q=80');
            background-size: cover;
            color: white;
            text-shadow: 0 2px 4px rgba(0,0,0,0.6);
        }.tg-classic .footer {
            background-color: var(--dark);
            color: #A0A0A0;
            padding: 3.5rem 0 2rem 0;
            margin-top: 2rem;
        }.tg-classic .footer-grid {
            display: grid;
            grid-template-columns: 2fr 1fr 1.5fr;
            gap: 2.5rem;
            margin-bottom: 2.5rem;
        }.tg-classic .footer-brand .logo {
            color: #FFF;
            margin-bottom: 0.75rem;
        }.tg-classic .footer-title {
            color: #FFF;
            font-size: 1.05rem;
            font-weight: 700;
            margin-bottom: 1rem;
            font-family: 'Plus Jakarta Sans', sans-serif;
        }.tg-classic .footer-links {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 0.6rem;
        }.tg-classic .footer-links a:hover {
            color: var(--primary);
        }.tg-classic .social-links {
            display: flex;
            gap: 0.75rem;
            margin-top: 1.25rem;
        }.tg-classic .social-btn {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            color: #FFF;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
            font-size: 1.1rem;
        }.tg-classic .social-btn:hover {
            background: var(--primary);
            transform: translateY(-2px);
        }.tg-classic .footer-bottom {
            padding-top: 1.75rem;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            text-align: center;
            font-size: 0.85rem;
        }.tg-classic .cart-sidebar {
            position: fixed;
            top: 0;
            right: -100%;
            width: 100%;
            max-width: 420px;
            height: 100vh;
            height: -webkit-fill-available;
            background: #FFF;
            box-shadow: var(--shadow-lg);
            z-index: 1002;
            display: flex;
            flex-direction: column;
            transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        }.tg-classic .cart-sidebar.open {
            transform: translateX(-100%);
        }.tg-classic .cart-header {
            padding: 1.25rem 1.5rem;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }.tg-classic .cart-items-container {
            flex-grow: 1;
            overflow-y: auto;
            padding: 1.25rem;
            display: flex;
            flex-direction: column;
            gap: 1rem;
            -webkit-overflow-scrolling: touch;
        }.tg-classic .cart-item {
            display: flex;
            gap: 0.85rem;
            align-items: center;
            padding-bottom: 0.85rem;
            border-bottom: 1px solid var(--border);
        }.tg-classic .cart-item-img {
            width: 65px;
            height: 65px;
            border-radius: var(--radius-sm);
            object-fit: cover;
            flex-shrink: 0;
        }.tg-classic .cart-item-details {
            flex-grow: 1;
        }.tg-classic .cart-item-title {
            font-weight: 700;
            font-size: 0.95rem;
            margin-bottom: 0.2rem;
            line-height: 1.2;
        }.tg-classic .cart-item-price {
            color: var(--primary);
            font-weight: 800;
            font-size: 0.9rem;
        }.tg-classic .cart-item-qty {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-top: 0.4rem;
        }.tg-classic .qty-btn {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: var(--light-bg);
            border: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 1rem;
            touch-action: manipulation;
        }.tg-classic .cart-footer {
            padding: 1.25rem 1.5rem;
            border-top: 1px solid var(--border);
            background: var(--light-bg);
            padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
        }.tg-classic .cart-total-row {
            display: flex;
            justify-content: space-between;
            font-size: 1.2rem;
            font-weight: 800;
            margin-bottom: 1rem;
        }.tg-classic .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            z-index: 1003;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
        }.tg-classic .modal.open {
            opacity: 1;
            visibility: visible;
        }.tg-classic .modal-content {
            background: #FFF;
            width: 100%;
            max-width: 750px;
            border-radius: var(--radius-md);
            overflow: hidden;
            box-shadow: var(--shadow-lg);
            display: grid;
            grid-template-columns: 1fr 1fr;
            position: relative;
            max-height: 90vh;
        }.tg-classic .modal-close {
            position: absolute;
            top: 0.75rem;
            right: 0.75rem;
            width: 38px;
            height: 38px;
            background: #FFF;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
            box-shadow: var(--shadow-md);
            font-size: 1.1rem;
        }.tg-classic .modal-body {
            padding: 2rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
            overflow-y: auto;
        }.tg-classic .floating-cart-btn {
            position: fixed;
            bottom: 1.5rem;
            right: 1.25rem;
            background: var(--primary);
            color: white;
            padding: 0.85rem 1.25rem;
            border-radius: var(--radius-full);
            box-shadow: 0 8px 24px rgba(230, 57, 70, 0.45);
            display: flex;
            align-items: center;
            gap: 0.75rem;
            z-index: 900;
            font-weight: 800;
            transition: var(--transition);
            border: 2px solid #FFF;
            touch-action: manipulation;
        }.tg-classic .floating-cart-btn:active {
            transform: scale(0.95);
        }.tg-classic .floating-cart-badge {
            background: #FFF;
            color: var(--primary);
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            font-weight: 800;
        }.tg-classic .toast {
            position: fixed;
            bottom: 5.5rem;
            left: 50%;
            transform: translate(-50%, 100px);
            background: var(--dark);
            color: #FFF;
            padding: 0.75rem 1.25rem;
            border-radius: var(--radius-full);
            box-shadow: var(--shadow-lg);
            z-index: 2000;
            display: flex;
            align-items: center;
            gap: 0.6rem;
            opacity: 0;
            transition: var(--transition);
            white-space: nowrap;
            font-size: 0.9rem;
            width: max-content;
            max-width: 90vw;
        }.tg-classic .toast.show {
            transform: translate(-50%, 0);
            opacity: 1;
        }

        
        @media (max-width: 992px) {.tg-classic .products-grid {
                grid-template-columns: repeat(3, 1fr);
            }.tg-classic .about-grid, .tg-classic .info-grid {
                grid-template-columns: 1fr;
            }.tg-classic .promo-grid {
                grid-template-columns: 1fr;
            }.tg-classic .footer-grid {
                grid-template-columns: 1fr 1fr;
            }.tg-classic .modal-content {
                grid-template-columns: 1fr;
                max-height: 85vh;
                overflow-y: auto;
            }.tg-classic .modal-img-container {
                height: 220px;
            }
        }

        @media (max-width: 768px) {.tg-classic .nav-desktop {
                display: none;
            }.tg-classic .hamburger {
                display: flex;
            }.tg-classic .hero {
                height: 65vh;
                min-height: 420px;
            }.tg-classic .hero-content h1 {
                font-size: 2.25rem;
            }.tg-classic .hero-content p {
                font-size: 1rem;
                margin-bottom: 1.25rem;
            }.tg-classic .section-title h2 {
                font-size: 1.75rem;
            }.tg-classic .products-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 0.85rem;
            }.tg-classic .product-card {
                border-radius: 12px;
            }.tg-classic .product-img-wrapper {
                height: 135px;
            }.tg-classic .product-content {
                padding: 0.85rem;
            }.tg-classic .product-title {
                font-size: 0.95rem;
                margin-bottom: 0.25rem;
            }.tg-classic .product-desc {
                font-size: 0.78rem;
                margin-bottom: 0.6rem;
                -webkit-line-clamp: 2;
            }.tg-classic .product-price {
                font-size: 0.95rem;
            }.tg-classic .add-cart-btn {
                width: 34px;
                height: 34px;
                font-size: 0.85rem;
            }.tg-classic .product-footer {
                padding-top: 0.5rem;
            }.tg-classic .features-grid {
                grid-template-columns: 1fr;
            }.tg-classic .footer-grid {
                grid-template-columns: 1fr;
                gap: 2rem;
            }.tg-classic .cart-sidebar {
                max-width: 100%;
            }.tg-classic .modal-body {
                padding: 1.25rem;
            }
        }

        @media (max-width: 390px) {.tg-classic .products-grid {
                gap: 0.65rem;
            }.tg-classic .product-content {
                padding: 0.65rem;
            }.tg-classic .product-img-wrapper {
                height: 120px;
            }.tg-classic .product-title {
                font-size: 0.88rem;
            }.tg-classic .product-price {
                font-size: 0.88rem;
            }
        }


/* <style> (ligne 13870 d'origine) */

/* ---------------- CORRECTIONS MOBILE / CONTRASTE / QR ---------------- */
 
.dashboard-home-return .btn{font-weight:700;}
.mobile-more-card:active{transform:translateY(1px);}
.mobile-more-card:hover{background:#fff !important;border-color:#0F1830 !important;}
@media (max-width:640px){
  .dashboard-home-return{position:sticky;top:8px;z-index:8;}
  .dashboard-home-return .btn{width:100%;background:#fff;color:#0F1830;border-color:rgba(15,24,48,.18);}
  .dashboard-home-return .btn:active{background:#0F1830;color:#fff;}
}

.ob-progress-wrap{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;padding:2px 0 6px;}
.ob-progress{min-width:520px;}
.ob-progress > div{min-width:74px;}
.ob-plan-grid{align-items:stretch;}
.ob-plan-card{min-height:250px;display:flex;flex-direction:column;justify-content:flex-start;color:var(--ink);background:var(--surface);}
.ob-plan-card:hover{border-color:var(--amber-deep) !important;box-shadow:0 8px 22px rgba(43,24,16,.08);}
.ob-plan-card:focus-visible{outline:3px solid rgba(232,135,30,.28);outline-offset:2px;}
#view-dashboard .icon-btn,#view-dashboard .btn-outline,#view-dashboard .lib-card-actions button{transition:background .15s,color .15s,border-color .15s,transform .15s;}
#view-dashboard .icon-btn{background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.10);color:#fff;}
#view-dashboard .icon-btn:hover{background:var(--amber-deep);color:#fff;border-color:var(--amber-deep);}
#view-dashboard .btn-outline{background:#fff;color:#0F1830;border-color:rgba(15,24,48,.16);}
#view-dashboard .btn-outline:hover,#view-dashboard .btn-outline:active{background:#0B1220;color:#fff;border-color:#0B1220;}
#view-dashboard .lib-card-actions button{background:#fff;color:#0F1830;border:1px solid rgba(15,24,48,.12);}
#view-dashboard .lib-card-actions button:hover,#view-dashboard .lib-card-actions button:active{background:#0B1220;color:#fff;border-color:#0B1220;}
.mobile-qr-card{background:linear-gradient(135deg,#ffffff,#f8fafc);width:100%;max-width:none;align-self:stretch;box-sizing:border-box;}
@media (max-width:900px){
  /* Les 3 blocs de l'accueil mobile doivent avoir exactement la même largeur.
     Dans un conteneur flex, le bloc QR pouvait se réduire à la largeur de son contenu. */
  .mobile-tablet-only > *{width:100% !important;max-width:none !important;box-sizing:border-box;}
}
@media (max-width:640px){
  .ob-plan-grid{grid-template-columns:1fr !important;gap:10px !important;}
  .ob-plan-card{min-height:0;padding:16px !important;}
  .ob-progress{min-width:560px;}
  .mobile-qr-card{align-items:flex-start;}
  .mobile-qr-card img{width:92px !important;height:92px !important;}
}

/* ---------------- PRICING LAYOUT FIX — requested changes only ---------------- */
#pricingCards{
  width:100% !important;
  max-width:1180px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  align-items:stretch !important;
}
#pricingCards > .pricing-plan-card{
  min-width:0 !important;
  max-width:none !important;
  box-sizing:border-box !important;
  height:100% !important;
  min-height:0 !important;
  display:flex !important;
  flex-direction:column !important;
}
#pricingCards > .pricing-plan-card > .flex-col.gap-2{
  flex:1 1 auto !important;
  min-height:0 !important;
}
#pricingCards > .pricing-plan-card .tr-domain-gift{
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  flex:0 0 auto !important;
  align-self:stretch !important;
  position:relative !important;
  z-index:1 !important;
  margin-top:16px !important;
  margin-bottom:24px !important;
}
#pricingCards > .pricing-plan-card .pricing-plan-cta{
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  flex:0 0 auto !important;
  position:relative !important;
  z-index:2 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:56px !important;
  margin-top:0 !important;
  padding-left:8px !important;
  padding-right:8px !important;
  line-height:1.2 !important;
  font-size:14px !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:clip !important;
  text-align:center !important;
}
#pricingCards > .pricing-plan-card .pricing-plan-cta + p{
  min-height:32px !important;
}
@media (min-width: 901px){
  #pricingCards > .pricing-plan-card:first-child .pricing-plan-cta{
    margin-bottom:32px !important;
  }
}
@media (max-width: 1100px){
  #pricingCards{max-width:calc(100vw - 48px) !important;}
}
@media (max-width: 900px){
  #pricingCards{
    max-width:calc(100vw - 32px) !important;
    grid-template-columns:1fr !important;
    gap:18px !important;
  }
  #pricingCards > .pricing-plan-card{
    width:100% !important;
    height:auto !important;
  }
  #pricingCards > .pricing-plan-card .pricing-plan-cta{
    font-size:15px !important;
  }
}
@media (max-width: 560px){
  #pricingCards{max-width:calc(100vw - 32px) !important;gap:16px !important;}
  #pricingCards > .pricing-plan-card{padding:24px !important;height:auto !important;}
  #pricingCards > .pricing-plan-card .pricing-plan-cta{
    font-size:13px !important;
    padding-left:8px !important;
    padding-right:8px !important;
    min-height:52px !important;
  }
  #pricingCards > .pricing-plan-card .tr-domain-gift{
    margin-top:16px !important;
    margin-bottom:24px !important;
  }
}

/* ---------------- RESPONSIVE ---------------- */
@keyframes icSpin{ from{transform:rotate(0deg);} to{transform:rotate(360deg);} }
.spin{ animation:icSpin 1s linear infinite; }

@media (max-width: 900px){
  #view-landing > .wrap:first-child{ grid-template-columns:1fr !important; padding-top:36px; padding-bottom:48px; }
  #featuresGrid{ grid-template-columns:1fr 1fr !important; }
  #stepsGrid{ grid-template-columns:1fr 1fr !important; }
  #pricingCards{ grid-template-columns:1fr !important; }
  footer .wrap{ grid-template-columns:1fr !important; }
  #sfProductSections .grid, section#view-storefront .grid{ grid-template-columns:repeat(2,1fr) !important; }
  #dashContent .grid[style*="repeat(4"]{ grid-template-columns:1fr 1fr !important; }
  #dashContent .grid[style*="repeat(2"]{ grid-template-columns:1fr !important; }
  #dashContent .grid[style*="repeat(3"]{ grid-template-columns:1fr 1fr !important; }
}
@media (max-width: 560px){
  .gnav-inner{ padding:12px 16px; gap:8px; }
  section#view-storefront .grid{ grid-template-columns:repeat(2,1fr) !important; gap:10px !important; }
  h1.font-display{ font-size:20px !important; }
  #productsList .grid{ grid-template-columns:1fr 1fr !important; }
  #trackOrderBody .order-action-tabs,
  #reviewOrdersBody .order-action-tabs,
  #confirmationBody .order-action-tabs{
    grid-template-columns:1fr !important;
    min-width:0 !important;
  }
  #trackOrderBody .order-action-tabs > .btn,
  #reviewOrdersBody .order-action-tabs > .btn,
  #confirmationBody .order-action-tabs > .btn{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    box-sizing:border-box !important;
    white-space:normal !important;
    overflow-wrap:anywhere;
    padding-left:12px !important;
    padding-right:12px !important;
  }
}
@media (max-width: 480px){
  #view-landing h1{ font-size:30px !important; }
}

/* ---- Réseaux sociaux : structure identique Logo → Nom → État → Infos → Action ---- */
.social-card{ padding:14px 16px; }
.social-card-top{ display:flex; align-items:center; gap:12px; }
.social-card-info{ flex:1; min-width:0; }
.social-card-name{ font-size:13.5px; font-weight:600; line-height:1.3; }
.social-card-status{ font-size:11.5px; color:var(--ink-faint); margin-top:1px; }
.social-card-status.is-on{ color:var(--forest); }
.social-card-value{ margin-top:12px; padding-top:12px; border-top:1px solid var(--cream-line); display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.social-card-value-label{ font-size:11px; color:var(--ink-faint); flex-shrink:0; }
.social-card-value-text{ font-size:13px; font-weight:500; font-family:var(--font-mono),monospace; overflow-wrap:anywhere; text-align:right; }
.social-card-actions{ display:flex; gap:8px; margin-top:12px; }
.social-card-actions .btn{ flex:1; }
.social-card-form{ margin-top:12px; padding-top:12px; border-top:1px solid var(--cream-line); }

/* ---- Bibliothèque : en-tête et cartes compactes ---- */
.lib-header{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.lib-add-btn{ flex-shrink:0; white-space:nowrap; }
.lib-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:12px; align-items:stretch; }
.lib-card{ background:var(--surface); border:1px solid var(--cream-line); border-radius:16px; overflow:hidden; display:flex; flex-direction:column; height:100%; }
.lib-thumb{ aspect-ratio:1.4; background:linear-gradient(135deg,var(--cream-deep),var(--cream)); display:flex; align-items:center; justify-content:center; overflow:hidden; }
.lib-empty{ display:flex; opacity:.55; }
.lib-card-body{ display:flex; flex-direction:column; flex:1; padding:9px 10px 10px; }
.lib-card-name{ font-size:12.5px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lib-card-meta{ font-size:10.5px; color:var(--ink-faint); margin:2px 0 8px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lib-card-actions{ display:flex; gap:6px; margin-top:auto; }
.lib-card-actions button{ width:26px; height:26px; border-radius:8px; background:var(--cream); display:flex; align-items:center; justify-content:center; color:var(--ink-soft); flex-shrink:0; }

@media (max-width: 900px){
  .lib-grid{ grid-template-columns:repeat(3,1fr); }
}
@media (max-width: 640px){
  .lib-grid{ grid-template-columns:repeat(2,1fr); gap:10px; }
  .lib-add-btn span{ display:none; }
  .lib-add-btn::after{ content:'Ajouter'; }
  .lib-add-btn{ padding:0 14px; }
}

/* <style id="teranga-login-tabs-fit-fix"> (ligne 14194 d'origine) */

/* FIX FINAL — uniquement l’affichage des onglets Connexion / Créer un compte / Invitation. */
#loginOverlay > .card > .flex.gap-1{
  width:100%;
  min-width:0;
  box-sizing:border-box;
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:3px !important;
  align-items:stretch;
}
#loginOverlay > .card > .flex.gap-1 > button{
  min-width:0 !important;
  width:100% !important;
  max-width:100%;
  box-sizing:border-box;
  padding:8px 2px !important;
  margin:0 !important;
  white-space:nowrap !important;
  overflow:hidden;
  text-overflow:clip;
  line-height:1.15;
  text-align:center;
  display:flex;
  align-items:center;
  justify-content:center;
}
@media(max-width:480px){
  #loginOverlay{padding:12px !important;}
  #loginOverlay > .card{
    max-width:calc(100vw - 24px) !important;
    padding:20px !important;
  }
  #loginOverlay > .card > .flex.gap-1{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:2px !important;
    padding:3px !important;
  }
  #loginOverlay > .card > .flex.gap-1 > button{
    font-size:11.5px !important;
    padding:8px 1px !important;
    min-height:42px;
  }
}
@media(max-width:360px){
  #loginOverlay > .card{
    padding:16px !important;
  }
  #loginOverlay > .card > .flex.gap-1 > button{
    font-size:10.8px !important;
    padding:7px 1px !important;
    min-height:40px;
  }
}

