/* Empêche l'auto-zoom sur iOS quand un champ reçoit le focus (seuil 16px) */
        @media (max-width: 768px) {
          input, select, textarea {
            font-size: 16px !important;
          }
        }
        /* Stabilise le rendu du texte sur iOS */
        html, body { -webkit-text-size-adjust: 100%; }

        /* Masque l’icône de dossier dans les cellules du calendrier.
           Chaque icône de dossier est rendu par un <span> ayant l’attribut aria-label="dossier".
           En cachant ces éléments, on retire la petite icône de fichier tout en conservant les fonctionnalités. */
        span[aria-label="dossier"] {
          display: none !important;
        }

              @keyframes gradientShift {
                0% { background-position: 0% 50%; }
                50% { background-position: 100% 50%; }
                100% { background-position: 0% 50%; }
              }
              
              @keyframes slideGradient {
                0% { background-position: 0% 50%; }
                100% { background-position: 200% 50%; }
              }
              
              @keyframes gradientText {
                0% { background-position: 0% 50%; }
                50% { background-position: 100% 50%; }
                100% { background-position: 0% 50%; }
              }
              
              @keyframes neonPulse {
                0%, 100% {
                  text-shadow: 
                    0 0 10px #00f2fe,
                    0 0 20px #00f2fe,
                    0 0 30px #00f2fe,
                    0 0 40px #00f2fe;
                }
                50% {
                  text-shadow: 
                    0 0 15px #00f2fe,
                    0 0 30px #00f2fe,
                    0 0 45px #00f2fe,
                    0 0 60px #00f2fe;
                }
              }
              
              @keyframes shimmer {
                0% { background-position: 0% 50%; }
                100% { background-position: 200% 50%; }
              }
              
              @keyframes badgeGlow {
                0%, 100% {
                  box-shadow: 0 0 40px rgba(118, 75, 162, 0.6);
                  transform: scale(1);
                }
                50% {
                  box-shadow: 0 0 60px rgba(118, 75, 162, 0.9);
                  transform: scale(1.05);
                }
              }
              
              @keyframes bounce {
                0%, 100% { transform: translateY(0); }
                50% { transform: translateY(-20px); }
              }
              
              @keyframes pulse {
                0%, 100% { transform: scale(1); }
                50% { transform: scale(1.05); }
              }
              
              @keyframes shake {
                0%, 100% { transform: rotate(0deg); }
                25% { transform: rotate(-2deg); }
                75% { transform: rotate(2deg); }
              }
              
              .premium-title {
                font-size: 2.5rem;
                font-weight: 900;
                background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #ffc3a0 75%, #667eea 100%);
                background-size: 400% 400%;
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
                background-clip: text;
                animation: gradientText 5s ease infinite;
                margin-bottom: 20px;
              }
              
              .price-neon {
                font-size: 3rem;
                font-weight: 900;
                color: #00f2fe;
                animation: neonPulse 2s ease-in-out infinite;
              }
              
              .shimmer-button {
                background: linear-gradient(45deg, #ffd700, #ffb700, #ffd700);
                background-size: 200% 100%;
                animation: shimmer 3s linear infinite;
              }
              
              @media (max-width: 768px) {
                .premium-title {
                  font-size: 1.8rem;
                }
                .price-neon {
                  font-size: 2.5rem;
                }
              }

/* ==========================================================
   Ma Liste Éco — interface compacte, catégories et accordéons
   ========================================================== */
*{box-sizing:border-box}
button,input,select{touch-action:manipulation}
.eco-nav-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:8px 4px;border:0;border-radius:12px;background:rgba(255,255,255,.5);color:#374151;font-weight:700;transition:transform .12s ease,box-shadow .12s ease,background .12s ease}
.eco-nav-btn span:last-child{font-size:10px;line-height:1.1}
.eco-nav-btn:active{transform:scale(.97)}
.eco-nav-btn.active-list{color:#fff;background:linear-gradient(135deg,#8b5cf6,#ec4899);box-shadow:0 4px 12px rgba(139,92,246,.25)}
.eco-nav-btn.active-pantry{color:#fff;background:linear-gradient(135deg,#10b981,#14b8a6);box-shadow:0 4px 12px rgba(16,185,129,.25)}
.eco-nav-btn.active-calendar{color:#fff;background:linear-gradient(135deg,#3b82f6,#6366f1);box-shadow:0 4px 12px rgba(59,130,246,.25)}
.eco-nav-btn.active-other{color:#fff;background:linear-gradient(135deg,#334155,#7c3aed);box-shadow:0 4px 12px rgba(51,65,85,.25)}
.eco-input{min-width:0;width:100%;padding:7px 9px;border:1px solid #ddd6fe;border-radius:9px;background:rgba(255,255,255,.95);color:#1f2937;font-size:13px;line-height:1.2;outline:none}
.eco-input:focus{border-color:#a78bfa;box-shadow:0 0 0 2px rgba(167,139,250,.2)}
.eco-square-btn{display:inline-flex;width:38px;height:36px;flex:0 0 38px;align-items:center;justify-content:center;border:0;border-radius:9px;color:#fff;font-weight:900}
.eco-add-btn{background:linear-gradient(135deg,#8b5cf6,#ec4899)}
.eco-create-pantry{display:flex;align-items:center;justify-content:center;gap:5px;padding:7px 12px;border:0;border-radius:10px;color:#fff;background:linear-gradient(135deg,#10b981,#14b8a6);font-size:12px;font-weight:900}
.eco-photo-add,.eco-clear-photos{display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border:0;border-radius:8px;font-size:11px;font-weight:800}
.eco-photo-add{color:#166534;background:#dcfce7}
.eco-clear-photos{color:#991b1b;background:#fee2e2}
.eco-delete-notice{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 5px;padding:7px 10px;border:1px solid #fecaca;border-radius:9px;color:#b91c1c;background:#fff1f2;font-size:12px;font-weight:900}
.eco-delete-notice button{border:0;border-radius:7px;padding:5px 9px;color:#fff;background:#dc2626;font-size:11px;font-weight:900}
.eco-category-divider{display:flex;align-items:center;gap:7px;margin:4px 2px 2px;min-height:17px;color:#64748b}
.eco-category-line{height:1px;flex:1;background:linear-gradient(90deg,transparent,#cbd5e1,transparent)}
.eco-category-name{max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;font-weight:900;letter-spacing:.07em;text-transform:uppercase}
.eco-list-item{padding:5px 4px;border-bottom:1px solid rgba(196,181,253,.35);content-visibility:auto;contain-intrinsic-size:58px}
.eco-list-item:last-child{border-bottom:0}
.eco-list-main{display:flex;align-items:center;gap:7px;min-width:0}
.eco-check{width:17px;height:17px;flex:0 0 17px;accent-color:#8b5cf6}
.eco-item-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#1f2937;font-size:13px;font-weight:750;line-height:1.2}
.eco-item-description{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#6b7280;font-size:10px;font-style:italic;line-height:1.15}
.eco-item-price{display:flex;flex:0 0 auto;align-items:flex-end;gap:4px;color:#6b7280;font-size:9px;white-space:nowrap}
.eco-item-price strong{color:#7c3aed;font-size:11px}
.eco-list-tools{display:flex;align-items:center;justify-content:flex-end;gap:4px;margin-top:3px;padding-left:24px}
.eco-category-select{min-width:0;max-width:130px;height:27px;flex:1;padding:2px 5px;border:1px solid #e5e7eb;border-radius:7px;background:#fff;color:#4b5563;font-size:10px}
.eco-mini-btn{position:relative;display:inline-flex;width:28px;height:27px;flex:0 0 28px;align-items:center;justify-content:center;border:1px solid #e5e7eb;border-radius:7px;color:#475569;background:#f8fafc;font-weight:900}
.eco-mini-btn:disabled{opacity:.28}
.eco-mini-btn.has-photo{color:#166534;background:#dcfce7;border-color:#bbf7d0}
.eco-mini-btn.send{color:#6d28d9;background:#f3e8ff;border-color:#e9d5ff}
.eco-delete-btn{color:#b91c1c!important;background:#fee2e2!important;border-color:#fecaca!important}
.eco-photo-count{position:absolute;right:-3px;top:-4px;min-width:13px;height:13px;padding:0 3px;border-radius:999px;color:#fff;background:#16a34a;font-size:8px;line-height:13px;text-align:center}
.eco-action-btn{display:flex;min-width:0;flex:1;align-items:center;justify-content:center;gap:4px;padding:7px 5px;border:0;border-radius:8px;color:#fff;font-size:10px;font-weight:900}
.eco-action-btn:disabled{opacity:.4}
.eco-tax-box{display:flex;align-items:center;gap:3px;padding:4px 6px;border-radius:8px;background:#f3e8ff;color:#4b5563;font-size:10px;font-weight:800}
.eco-tax-box>input:first-child{width:13px;height:13px}
.eco-tax-box>input[type=number]{width:39px;padding:2px;border:1px solid #ddd6fe;border-radius:5px;text-align:center;font-size:10px}
.eco-total{display:flex;flex-direction:column;align-items:flex-end;padding:1px 4px;white-space:nowrap}
.eco-total span{color:#6b7280;font-size:8px;text-transform:uppercase}
.eco-total strong{color:#7c3aed;font-size:15px;line-height:1.05}
.eco-category-manager{margin-bottom:8px;border:1px solid rgba(16,185,129,.18);border-radius:13px;background:rgba(255,255,255,.72);box-shadow:0 5px 15px rgba(15,23,42,.05)}
.eco-category-manager-toggle{display:flex;width:100%;align-items:center;justify-content:space-between;border:0;padding:9px 11px;border-radius:13px;color:#065f46;background:transparent;font-size:12px;font-weight:900;text-align:left}
.eco-category-manager-body{display:grid;gap:7px;padding:0 9px 9px}
.eco-category-rows{display:grid;gap:4px;max-height:190px;overflow-y:auto}
.eco-category-row{display:grid;grid-template-columns:minmax(0,1fr) 28px 28px 28px;gap:4px;align-items:center}
.eco-category-name-input{min-width:0;width:100%;padding:6px 8px;border:1px solid #d1fae5;border-radius:7px;background:#fff;color:#1f2937;font-size:12px;font-weight:750}
.eco-uncategorized-note{padding:6px 8px;border-radius:7px;color:#64748b;background:#f8fafc;font-size:9px}
.pantry-scroll-zone{-webkit-overflow-scrolling:touch;scroll-behavior:auto;overflow-anchor:none}
.eco-pantry-card{overflow:hidden;border:1px solid rgba(16,185,129,.16);border-radius:15px;background:rgba(255,255,255,.85);box-shadow:0 5px 14px rgba(15,23,42,.06);content-visibility:auto;contain:layout paint style;contain-intrinsic-size:90px}
.eco-pantry-header{display:flex;align-items:stretch;background:linear-gradient(90deg,rgba(16,185,129,.08),rgba(20,184,166,.05))}
.eco-pantry-toggle{display:flex;min-width:0;flex:1;align-items:center;gap:9px;border:0;padding:9px 10px;background:transparent;color:#1f2937}
.eco-pantry-icon{display:grid;width:32px;height:32px;flex:0 0 32px;place-items:center;border-radius:9px;color:#fff;background:linear-gradient(135deg,#10b981,#14b8a6)}
.eco-pantry-toggle h2{overflow:hidden;margin:0;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:900}
.eco-pantry-toggle span{display:block;color:#64748b;font-size:10px;font-weight:700}
.eco-accordion-arrow{flex:0 0 auto;color:#059669!important;font-size:10px!important}
.eco-pantry-delete{width:40px;border:0;border-left:1px solid rgba(16,185,129,.1);color:#b91c1c;background:rgba(254,226,226,.5)}
.eco-pantry-content{padding:7px 8px 9px;border-top:1px solid rgba(16,185,129,.1)}
.eco-pantry-add-row{display:grid;grid-template-columns:minmax(0,1fr) 52px minmax(90px,125px) 36px;gap:5px;align-items:center;margin-bottom:5px}
.eco-pantry-qty{text-align:center}
.eco-pantry-category{font-size:10px}
.eco-pantry-add-btn{width:36px;height:34px;flex-basis:36px;background:linear-gradient(135deg,#10b981,#14b8a6)}
.eco-empty-pantry{display:flex;flex-direction:column;align-items:center;gap:2px;padding:16px;color:#94a3b8;font-size:11px;font-weight:800}
.eco-empty-pantry p{margin:0}
.eco-pantry-items{display:block}
.eco-pantry-item{display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,125px) auto;gap:5px;align-items:center;padding:4px 1px;border-bottom:1px solid #ecfdf5;content-visibility:auto;contain-intrinsic-size:38px}
.eco-pantry-item:last-child{border-bottom:0}
.eco-pantry-name{min-width:0;width:100%;padding:5px 7px;border:1px solid #d1fae5;border-radius:7px;background:#fff;color:#1f2937;font-size:12px;font-weight:750}
.eco-pantry-item-category{min-width:0;width:100%;padding:5px;border:1px solid #d1fae5;border-radius:7px;background:#fff;color:#4b5563;font-size:9px}
.eco-pantry-controls{display:flex;align-items:center;gap:3px}
.eco-pantry-controls>span{min-width:21px;color:#1f2937;font-size:11px;font-weight:900;text-align:center}
.eco-qty-btn{display:grid;width:27px;height:27px;place-items:center;border:0;border-radius:7px;color:#fff;font-size:15px;font-weight:900}
.eco-qty-btn.minus{background:#fb7185}.eco-qty-btn.plus{background:#34d399}
.eco-other-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}
.eco-other-card{display:flex;min-height:145px;flex-direction:column;align-items:flex-start;justify-content:center;gap:7px;border:1px solid rgba(15,23,42,.08);border-radius:20px;padding:18px;text-align:left;box-shadow:0 10px 25px rgba(15,23,42,.08)}
.eco-other-card strong{font-size:19px}.eco-other-card span:last-child{color:#475569;font-size:12px;line-height:1.4}
.eco-other-card.recipes{color:#c2410c;background:linear-gradient(135deg,#fff7ed,#ffedd5)}
.eco-other-card.voyage{color:#1d4ed8;background:linear-gradient(135deg,#eff6ff,#e0e7ff)}
.eco-other-card.workout{color:#047857;background:linear-gradient(135deg,#ecfdf5,#d1fae5)}
.eco-other-card.objectives{color:#6d28d9;background:linear-gradient(135deg,#f5f3ff,#ede9fe)}
.eco-other-emoji{font-size:32px}
.eco-isolated-header{position:relative;z-index:100;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0;padding:10px 12px;padding-top:max(10px,env(safe-area-inset-top));background:rgba(255,255,255,.94);backdrop-filter:blur(16px);border-bottom:1px solid rgba(15,23,42,.10);box-shadow:0 8px 24px rgba(15,23,42,.10)}
.eco-isolated-title{display:flex;align-items:center;gap:10px;min-width:0;color:#c2410c}.eco-isolated-title div{min-width:0}.eco-isolated-title strong{display:block;font-size:15px;line-height:1.1;color:#0f172a}.eco-isolated-title span{display:block;margin-top:3px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:#f97316}
.eco-isolated-back{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 14px;border-radius:13px;background:linear-gradient(135deg,#8b5cf6,#ec4899);color:#fff;font-size:12px;font-weight:900;text-decoration:none;white-space:nowrap;box-shadow:0 8px 20px rgba(139,92,246,.24);transition:transform .15s ease,box-shadow .15s ease}.eco-isolated-back:active{transform:scale(.97)}
.eco-photo-modal{position:fixed;inset:0;z-index:70;display:flex;align-items:center;justify-content:center;padding:10px;background:rgba(2,6,23,.82);backdrop-filter:blur(6px)}
.eco-photo-dialog{display:flex;width:min(680px,100%);max-height:92dvh;flex-direction:column;overflow:hidden;border-radius:18px;background:#fff;box-shadow:0 25px 70px rgba(0,0,0,.4)}
.eco-photo-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-bottom:1px solid #e5e7eb}
.eco-photo-header>div{display:flex;min-width:0;flex-direction:column}.eco-photo-header strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.eco-photo-header span{color:#64748b;font-size:10px}
.eco-photo-close{display:grid;width:34px;height:34px;place-items:center;border:0;border-radius:999px;background:#f1f5f9}
.eco-photo-stage{position:relative;display:flex;min-height:45vh;flex:1;align-items:center;justify-content:center;overflow:hidden;background:#020617}
.eco-photo-stage img{display:block;max-width:100%;max-height:67dvh;object-fit:contain;cursor:zoom-in}
.eco-photo-nav{position:absolute;top:50%;z-index:2;width:42px;height:54px;transform:translateY(-50%);border:0;border-radius:12px;color:#fff;background:rgba(15,23,42,.72);font-size:34px;line-height:1}.eco-photo-nav.prev{left:8px}.eco-photo-nav.next{right:8px}
.eco-photo-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:9px;background:#fff}
.eco-photo-actions button{border:0;border-radius:9px;padding:9px 5px;color:#334155;background:#e2e8f0;font-size:10px;font-weight:900}.eco-photo-actions button.danger{color:#991b1b;background:#fee2e2}
@media (max-width:640px){
  .eco-pantry-add-row{grid-template-columns:minmax(0,1fr) 49px 36px}.eco-pantry-add-row .eco-pantry-category{grid-column:1/3;grid-row:2}
  .eco-pantry-item{grid-template-columns:minmax(0,1fr) auto}.eco-pantry-item-category{grid-column:1;grid-row:2}.eco-pantry-controls{grid-column:2;grid-row:1/3}
  .eco-photo-actions{grid-template-columns:repeat(2,1fr)}
  .eco-other-grid{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){.eco-nav-btn,*{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

@media(max-width:380px){
  .eco-isolated-title span{display:none}
  .eco-isolated-back{padding:9px 10px;font-size:11px}
}
