/* LoveIA V2.4 — Google Auth / CSP fix */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --rose: #C2185B; --rose-light: #E91E63; --rose-pale: #FCE4EC; --rose-soft: #F8BBD0;
  --bordeaux: #880E4F; --gold: #F4A435; --cream: #FFF8F5; --white: #FFFFFF;
  --gray-50: #FAFAFA; --gray-100: #F5F5F5; --gray-200: #EEEEEE;
  --gray-400: #BDBDBD; --gray-600: #757575; --gray-800: #424242; --text: #1A1A2E;
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 20px; --radius-xl: 28px;
  --shadow-soft: 0 4px 24px rgba(194,24,91,0.1); --shadow-card: 0 2px 16px rgba(0,0,0,0.06);
}

*{box-sizing:border-box;margin:0;padding:0}
body{font-family:'Inter',sans-serif;background:var(--cream);color:var(--text);min-height:100vh;overflow-x:hidden}
::-webkit-scrollbar{width:4px}::-webkit-scrollbar-thumb{background:var(--rose-soft);border-radius:2px}

/* ── ANIMATIONS ── */
@keyframes heartbeat{0%,100%{transform:scale(1)}50%{transform:scale(1.25)}}
@keyframes fadeSlide{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes tabIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes slideUp{from{transform:translateY(60px);opacity:0}to{transform:translateY(0);opacity:1}}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}

/* ── CHARGEMENT ── */
#app-loading{position:fixed;inset:0;z-index:999;background:linear-gradient(160deg,#1A1A2E 0%,#880E4F 60%,#C2185B 100%);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;transition:opacity 0.3s ease}
#app-loading .logo{font-family:'Playfair Display',serif;font-size:2.5rem;color:white}
#app-loading .sub{font-size:0.85rem;color:rgba(255,255,255,0.7)}
.loading-heart{font-size:2rem;animation:heartbeat 1.2s ease-in-out infinite}
.shimmer-container{display:none;flex-direction:column;gap:10px;width:100%}
.shimmer-line{height:16px;background:linear-gradient(90deg,var(--gray-100) 25%,var(--gray-200) 50%,var(--gray-100) 75%);background-size:200% 100%;animation:shimmer 1.4s infinite linear;border-radius:4px}
.shimmer-line.medium{width:85%}.shimmer-line.short{width:60%}

/* ── SCREENS ── */
.screen{display:none;min-height:100vh}
.screen.active{display:flex;flex-direction:column}

/* ── AUTH ── */
#screen-auth{background:linear-gradient(160deg,#1A1A2E 0%,#880E4F 60%,#C2185B 100%);align-items:center;justify-content:center;padding:2rem 1rem;overflow-y:auto}
.auth-box{background:white;border-radius:var(--radius-xl);width:100%;max-width:420px;padding:2.5rem 2rem;box-shadow:0 32px 80px rgba(0,0,0,0.35)}
.auth-logo{text-align:center;margin-bottom:2rem}
.auth-logo .heart{font-size:2.5rem;display:block;margin-bottom:0.5rem}
.auth-logo h1{font-family:'Playfair Display',serif;font-size:2rem;color:var(--rose)}
.auth-logo p{font-size:0.83rem;color:var(--gray-600);margin-top:0.25rem}
.auth-tabs{display:flex;gap:4px;background:var(--gray-100);border-radius:var(--radius-md);padding:4px;margin-bottom:1.5rem}
.auth-tab{flex:1;padding:8px;text-align:center;font-size:0.88rem;font-weight:500;border-radius:var(--radius-sm);cursor:pointer;transition:all 0.2s;color:var(--gray-600);border:none;background:none;font-family:'Inter',sans-serif}
.auth-tab.active{background:white;color:var(--rose);box-shadow:0 1px 4px rgba(0,0,0,0.08)}
.auth-panel{display:none}.auth-panel.active{display:block;animation:fadeSlide 0.3s ease}
.auth-error{background:#FFEBEE;border:1px solid #FFCDD2;border-radius:var(--radius-sm);padding:0.75rem;font-size:0.82rem;color:#C62828;margin-bottom:1rem;display:none}
.auth-error.show{display:block}
.auth-divider{display:flex;align-items:center;gap:10px;margin:1rem 0}
.auth-divider::before,.auth-divider::after{content:'';flex:1;border-bottom:1px solid var(--gray-200)}
.auth-divider span{font-size:0.75rem;color:var(--gray-400);white-space:nowrap}
.btn-google{width:100%;padding:0.85rem;background:white;color:#3c4043;border:1.5px solid #dadce0;border-radius:var(--radius-md);font-family:'Inter',sans-serif;font-size:0.9rem;font-weight:500;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:10px;margin-bottom:0.75rem;box-shadow:0 1px 3px rgba(0,0,0,0.1);transition:box-shadow 0.2s}
.btn-google:hover{box-shadow:0 2px 8px rgba(0,0,0,0.15)}

/* ── INPUTS ── */
.input-group{margin-bottom:1rem}
.input-group label{display:block;font-size:0.78rem;font-weight:500;color:var(--gray-800);margin-bottom:0.4rem}
.input-group input,.input-group select,.input-group textarea{width:100%;padding:0.75rem 1rem;border:1.5px solid var(--gray-200);border-radius:var(--radius-sm);font-family:'Inter',sans-serif;font-size:0.9rem;color:var(--text);background:white;transition:border-color 0.2s;outline:none}
.input-group input:focus,.input-group select:focus,.input-group textarea:focus{border-color:var(--rose)}

/* ── BOUTONS GÉNÉRIQUES ── */
.btn-primary{width:100%;padding:0.85rem;background:linear-gradient(135deg,var(--rose-light),var(--bordeaux));color:white;border:none;border-radius:var(--radius-md);font-family:'Inter',sans-serif;font-size:0.95rem;font-weight:500;cursor:pointer;transition:opacity 0.2s;display:block}
.btn-primary:hover{opacity:0.92}.btn-primary:disabled{opacity:0.6;cursor:not-allowed}
.btn-secondary{width:100%;padding:0.75rem;background:transparent;color:var(--gray-600);border:1.5px solid var(--gray-200);border-radius:var(--radius-md);font-family:'Inter',sans-serif;font-size:0.85rem;cursor:pointer;margin-top:0.5rem;transition:all 0.2s}
.btn-secondary:hover{border-color:var(--rose);color:var(--rose)}
.btn-generate{padding:0.9rem 2rem;background:linear-gradient(135deg,var(--gold),#e67e00);color:white;border:none;border-radius:var(--radius-md);font-family:'Inter',sans-serif;font-size:0.95rem;font-weight:600;cursor:pointer;transition:all 0.2s;display:inline-flex;align-items:center;gap:8px}
.btn-generate:hover{transform:scale(1.03)}.btn-generate:disabled{opacity:0.6;cursor:not-allowed;transform:none}
.spinner{width:20px;height:20px;border:2px solid var(--rose-soft);border-top-color:var(--rose);border-radius:50%;animation:spin 0.8s linear infinite;flex-shrink:0}

/* ── ONBOARDING ── */
#screen-onboarding{background:var(--cream);padding:2rem 1rem;align-items:center;justify-content:center;overflow-y:auto}
.ob-box{background:white;border-radius:var(--radius-xl);width:100%;max-width:480px;padding:2rem;box-shadow:var(--shadow-soft)}
.ob-step{display:none}.ob-step.active{display:block;animation:fadeSlide 0.35s ease}
.ob-title{font-family:'Playfair Display',serif;font-size:1.35rem;color:var(--text);margin-bottom:0.5rem}
.ob-sub{font-size:0.83rem;color:var(--gray-600);margin-bottom:1.5rem;line-height:1.6}
.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:1.5rem}
.choice-card{border:2px solid var(--gray-200);border-radius:var(--radius-md);padding:1.25rem 0.75rem;text-align:center;cursor:pointer;transition:all 0.2s;background:white}
.choice-card:hover{border-color:var(--rose-light);background:var(--rose-pale)}
.choice-card.selected{border-color:var(--rose);background:var(--rose-pale)}
.choice-card .ce{font-size:2rem;display:block;margin-bottom:0.5rem}
.choice-card .cl{font-size:0.9rem;font-weight:500;color:var(--text)}
.choice-card .cd{font-size:0.73rem;color:var(--gray-600);margin-top:2px}
.passion-grid{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:1.5rem}
.passion-tag{padding:6px 14px;border:1.5px solid var(--gray-200);border-radius:20px;font-size:0.8rem;cursor:pointer;transition:all 0.2s;background:white;color:var(--gray-800)}
.passion-tag:hover{border-color:var(--rose-light);color:var(--rose)}
.passion-tag.selected{border-color:var(--rose);background:var(--rose-pale);color:var(--rose);font-weight:500}
.progress-dots{display:flex;gap:6px;justify-content:center;margin-top:1.5rem}
.progress-dots span{width:8px;height:8px;border-radius:50%;background:var(--gray-200);transition:all 0.3s}
.progress-dots span.active{background:var(--rose);width:24px;border-radius:4px}

/* ── APP PRINCIPALE ── */
#screen-app{background:var(--cream);padding-bottom:86px}
.app-header{background:linear-gradient(135deg,var(--bordeaux) 0%,var(--rose-light) 100%);padding:1.25rem 1.25rem 1.5rem;color:white;position:relative;overflow:hidden}
.app-header::after{content:'♥';position:absolute;right:-20px;top:-20px;font-size:120px;opacity:0.06;line-height:1;pointer-events:none}.header-row{position:relative;z-index:2}.header-avatar{position:relative;z-index:3}
.header-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}
.header-logo{font-family:'Playfair Display',serif;font-size:1.5rem;color:white}
.header-avatar{width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,0.2);border:2px solid rgba(255,255,255,0.4);display:flex;align-items:center;justify-content:center;font-weight:600;font-size:0.9rem;color:white;cursor:pointer;overflow:hidden;background-size:cover;background-position:center}
.header-greeting{font-size:0.85rem;opacity:0.9;margin-bottom:0.2rem}
.header-name{font-family:'Playfair Display',serif;font-size:1.3rem;margin-bottom:0.75rem}
.header-badges{display:flex;gap:8px;flex-wrap:wrap}
.header-badge{display:flex;align-items:center;gap:5px;background:rgba(255,255,255,0.15);border:1px solid rgba(255,255,255,0.25);border-radius:20px;padding:4px 10px;font-size:0.73rem;color:white}

/* ── TAB PANELS ── */
.tab-panel{display:none;padding:1rem}
.tab-panel.active{display:block;animation:tabIn 0.3s cubic-bezier(0.22,1,0.36,1)}
#panel-profile{padding:0}
.card{background:white;border-radius:var(--radius-lg);padding:1.25rem;box-shadow:var(--shadow-card);margin-bottom:1rem}
.card-title{font-family:'Playfair Display',serif;font-size:1.1rem;color:var(--text);margin-bottom:0.75rem}
.section-label{font-size:0.68rem;font-weight:600;text-transform:uppercase;letter-spacing:1px;color:var(--gray-600);margin-bottom:0.75rem;margin-top:1.5rem;display:block}
.section-label:first-child{margin-top:0}
.empty-state{text-align:center;padding:2.5rem 1rem;color:var(--gray-600)}
.empty-state .empty-emoji{font-size:2.5rem;margin-bottom:0.75rem}
.ai-response{background:linear-gradient(135deg,var(--rose-pale),#fff);border-radius:var(--radius-lg);padding:1.25rem;font-size:0.88rem;line-height:1.8;color:var(--text);border:1px solid var(--rose-soft);white-space:pre-wrap;display:none;margin-bottom:1rem}
.ai-response.visible{display:block;animation:fadeSlide 0.3s ease}

/* ── ACCUEIL ── */
.daily-banner{background:linear-gradient(160deg,#1a0a14 0%,#2d0f22 50%,#1a0a14 100%);border-radius:var(--radius-xl);padding:1.5rem 1.5rem 1rem;margin-bottom:8px;border:1px solid rgba(194,24,91,0.3);box-shadow:0 8px 40px rgba(194,24,91,0.2),inset 0 1px 0 rgba(255,255,255,0.05);position:relative;overflow:hidden}
.daily-banner::before{content:'❤';position:absolute;right:-15px;bottom:-20px;font-size:130px;opacity:0.03;line-height:1;pointer-events:none}
.daily-banner::after{content:'';position:absolute;top:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent,rgba(226,132,179,0.5),transparent)}
.daily-banner-header{font-size:0.65rem;text-transform:uppercase;letter-spacing:0.18em;color:#E284B3;font-weight:700;margin-bottom:1rem;text-align:center}
.daily-banner-body{font-size:1.05rem;line-height:1.8;color:#FFF0F5;font-style:italic;font-family:'Playfair Display',serif;min-height:2rem}
.daily-banner-footer{display:flex;justify-content:flex-end;margin-top:1rem;padding-top:0.75rem;border-top:1px solid rgba(194,24,91,0.2)}
.regen-btn{background:rgba(194,24,91,0.15);border:1px solid rgba(194,24,91,0.3);color:#E284B3;font-size:0.75rem;font-weight:500;cursor:pointer;display:flex;align-items:center;gap:6px;padding:5px 12px;font-family:'Inter',sans-serif;border-radius:16px;transition:all 0.2s}
.regen-btn:hover{background:rgba(194,24,91,0.25);color:#FF9DC8}
.regen-btn:disabled{opacity:0.3;cursor:not-allowed}
.regen-count-text{font-size:0.72rem;opacity:0.8}
.daily-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:1rem}
.daily-card{background:white;border-radius:var(--radius-md);padding:1rem 0.85rem;cursor:pointer;border:1.5px solid transparent;box-shadow:var(--shadow-card);transition:all 0.2s}
.daily-card:hover{border-color:var(--rose-soft);transform:translateY(-2px);box-shadow:var(--shadow-soft)}
.daily-card .dc-emoji{font-size:1.75rem;display:block;margin-bottom:0.5rem}
.daily-card .dc-title{font-size:0.85rem;font-weight:600;color:var(--text);margin-bottom:2px}
.daily-card .dc-sub{font-size:0.72rem;color:var(--gray-600);line-height:1.4}
.reminder-item{display:flex;align-items:center;gap:12px;padding:0.85rem 1rem;background:white;border-radius:var(--radius-md);box-shadow:var(--shadow-card);margin-bottom:8px;transition:all 0.2s}
.reminder-item:hover{transform:translateX(4px)}
.reminder-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}
.reminder-info{flex:1}
.reminder-name{font-size:0.88rem;font-weight:500;color:var(--text)}
.reminder-date{font-size:0.75rem;color:var(--gray-600)}
.reminder-days{font-size:0.72rem;font-weight:600;padding:3px 8px;border-radius:12px}

/* ── IDÉES ── */
.idea-tabs{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none;margin-bottom:1rem}
.idea-tabs::-webkit-scrollbar{display:none}
.idea-tab-btn{flex-shrink:0;padding:6px 14px;border-radius:20px;border:1.5px solid var(--gray-200);background:white;font-size:0.78rem;font-weight:500;color:var(--gray-600);cursor:pointer;transition:all 0.2s;white-space:nowrap;font-family:'Inter',sans-serif}
.idea-tab-btn.active{background:var(--rose-pale);border-color:var(--rose);color:var(--rose)}
.idea-panel{display:none}.idea-panel.active{display:block;animation:fadeIn 0.2s}
.idea-prompt-box{background:white;border-radius:var(--radius-lg);padding:1.25rem;box-shadow:var(--shadow-card);margin-bottom:1rem}
.idea-prompt-box textarea{width:100%;border:1.5px solid var(--gray-200);border-radius:var(--radius-sm);padding:0.75rem;font-family:'Inter',sans-serif;font-size:0.88rem;resize:none;outline:none;color:var(--text);transition:border-color 0.2s;min-height:80px}
.idea-prompt-box textarea:focus{border-color:var(--rose)}
.btn-ask{margin-top:0.75rem;width:100%;padding:0.75rem;background:linear-gradient(135deg,var(--rose-light),var(--bordeaux));color:white;border:none;border-radius:var(--radius-md);font-size:0.88rem;font-weight:500;cursor:pointer;font-family:'Inter',sans-serif}
.btn-ask:disabled{opacity:0.6;cursor:not-allowed}
.save-btn{margin-top:0.75rem;padding:6px 16px;background:white;border:1.5px solid var(--rose);color:var(--rose);border-radius:20px;font-size:0.78rem;font-weight:500;cursor:pointer;font-family:'Inter',sans-serif;transition:all 0.2s}
.save-btn:hover{background:var(--rose-pale)}
.history-item{background:white;border-radius:var(--radius-md);padding:1rem;box-shadow:var(--shadow-card);margin-bottom:8px;border-left:3px solid var(--rose);cursor:pointer;transition:all 0.2s}
.history-item:hover{transform:translateX(4px)}
.history-type{font-size:0.72rem;font-weight:600;color:var(--rose);text-transform:uppercase;letter-spacing:0.5px}
.history-preview{font-size:0.85rem;color:var(--text);margin-top:4px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.history-date{font-size:0.72rem;color:var(--gray-400);margin-top:4px}

/* ── CE SOIR ── */
.tonight-hero{background:linear-gradient(135deg,#1A1A2E,#880E4F);border-radius:var(--radius-xl);padding:2rem 1.5rem;text-align:center;color:white;margin-bottom:1.25rem;position:relative;overflow:hidden}
.tonight-hero h2{font-family:'Playfair Display',serif;font-size:1.5rem;margin-bottom:0.5rem}
.tonight-hero p{font-size:0.83rem;opacity:0.85;margin-bottom:1.5rem;line-height:1.6}
.tonight-result{display:none;background:white;border-radius:var(--radius-xl);overflow:hidden;box-shadow:var(--shadow-soft);margin-bottom:1.25rem}
.tonight-result.visible{display:block;animation:fadeSlide 0.4s ease}
.result-loading{display:flex;align-items:center;gap:10px;padding:1.5rem;color:var(--gray-600);font-size:0.88rem}
.result-section{padding:1.1rem 1.25rem;border-bottom:1px solid var(--gray-100)}
.result-section:last-child{border-bottom:none}
.result-label{display:flex;align-items:center;gap:8px;font-size:0.7rem;font-weight:600;text-transform:uppercase;letter-spacing:0.8px;color:var(--rose);margin-bottom:0.5rem}
.result-content{font-size:0.88rem;color:var(--text);line-height:1.7}
.mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.mode-card{border-radius:var(--radius-md);padding:0.85rem;text-align:center;cursor:pointer;border:1.5px solid transparent;transition:all 0.2s}
.mode-card:hover{transform:scale(1.03)}
.mode-lbl{font-size:0.75rem;font-weight:600;margin-top:4px}

/* ── RENCONTRES ── */
.meet-header{background:linear-gradient(135deg,#0D1B2A,#1B2838);border-radius:var(--radius-xl);padding:1.5rem;color:white;margin-bottom:1rem;text-align:center}
.meet-header h2{font-family:'Playfair Display',serif;font-size:1.3rem;margin-bottom:0.35rem}
.meet-header p{font-size:0.78rem;opacity:0.75}
.meet-controls{display:flex;gap:8px;margin-bottom:0.75rem;align-items:center}
.meet-search-input{flex:1;padding:8px 12px;border:1.5px solid var(--gray-200);border-radius:20px;font-size:0.82rem;outline:none;font-family:'Inter',sans-serif;background:white;color:var(--text)}
.meet-sort-select{padding:8px 10px;border:1.5px solid var(--gray-200);border-radius:20px;font-size:0.78rem;outline:none;font-family:'Inter',sans-serif;color:var(--gray-600);background:white}
.meet-stats{display:flex;gap:8px;margin-bottom:1rem}
.stat-card{flex:1;background:white;border-radius:var(--radius-md);padding:0.6rem;text-align:center;box-shadow:var(--shadow-card)}
.stat-val{font-size:1.1rem;font-weight:600;color:var(--rose)}
.stat-lbl{font-size:0.65rem;color:var(--gray-600)}
.filter-row{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none;margin-bottom:1rem}
.filter-row::-webkit-scrollbar{display:none}
.filter-chip{flex-shrink:0;padding:5px 12px;border-radius:16px;border:1.5px solid var(--gray-200);background:white;font-size:0.75rem;color:var(--gray-600);cursor:pointer;transition:all 0.2s;white-space:nowrap;font-family:'Inter',sans-serif}
.filter-chip:hover{border-color:var(--rose);color:var(--rose)}
.filter-chip.active{background:var(--rose-pale);border-color:var(--rose);color:var(--rose);font-weight:500}
.profiles-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
@media(min-width:640px){.profiles-grid{grid-template-columns:repeat(4,1fr);gap:16px}}
.profile-card{background:white;border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-card);cursor:pointer;transition:all 0.25s;border:2px solid transparent;position:relative}
.profile-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-soft);border-color:var(--rose-soft)}
.pc-img{width:100%;aspect-ratio:3/4;object-fit:cover;display:block}
.pc-placeholder{width:100%;aspect-ratio:3/4;display:flex;align-items:center;justify-content:center;font-size:3.5rem}
.pc-overlay{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,rgba(26,26,46,0.85));padding:0.75rem 0.75rem 0.5rem;color:white}
.pc-name{font-family:'Playfair Display',serif;font-size:1rem;font-weight:600}
.pc-info{font-size:0.72rem;opacity:0.85;margin-top:1px}
.pc-passions{display:flex;gap:4px;margin-top:4px;flex-wrap:wrap}
.pc-passion-tag{font-size:0.58rem;background:rgba(255,255,255,0.18);border-radius:8px;padding:2px 6px}
.flash-btn{position:absolute;top:8px;right:8px;width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,0.15);border:1.5px solid rgba(255,255,255,0.4);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;font-size:1.1rem;cursor:pointer;transition:all 0.2s;z-index:5}
.flash-btn:hover{background:rgba(244,164,53,0.4);border-color:var(--gold);transform:scale(1.12)}
.flash-btn.flashed{background:rgba(244,164,53,0.85);border-color:var(--gold)}
.online-dot{position:absolute;top:8px;left:8px;width:10px;height:10px;background:#4CAF50;border-radius:50%;border:2px solid white;z-index:5}
.mutual-badge{position:absolute;top:8px;left:8px;background:linear-gradient(135deg,var(--gold),#e67e00);color:white;font-size:0.62rem;font-weight:700;padding:3px 8px;border-radius:10px;z-index:5}
.shadow-dial-box{background:linear-gradient(135deg,#0D1B2A,#1B2838);border-radius:var(--radius-xl);padding:1.25rem;margin-bottom:1rem;color:white}
.shadow-dial-box h3{font-family:'Playfair Display',serif;font-size:1.1rem;margin-bottom:0.75rem}
.shadow-exchange{background:rgba(255,255,255,0.06);border-radius:var(--radius-md);padding:0.85rem;font-size:0.82rem;line-height:1.7;border-left:3px solid var(--gold)}
.shadow-score{display:flex;align-items:center;gap:10px;margin-top:0.75rem}
.shadow-score-bar{flex:1;height:6px;background:rgba(255,255,255,0.15);border-radius:3px;overflow:hidden}
.shadow-score-fill{height:100%;border-radius:3px;background:linear-gradient(90deg,var(--gold),#ff6b9d);transition:width 1.2s ease}

/* ── VIE À DEUX ── */
.couple-tabs{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none;margin-bottom:1rem}
.couple-tabs::-webkit-scrollbar{display:none}
.couple-tab-btn{flex-shrink:0;padding:6px 14px;border-radius:20px;border:1.5px solid var(--gray-200);background:white;font-size:0.78rem;font-weight:500;color:var(--gray-600);cursor:pointer;transition:all 0.2s;white-space:nowrap;font-family:'Inter',sans-serif}
.couple-tab-btn.active{background:var(--rose-pale);border-color:var(--rose);color:var(--rose)}
.couple-panel{display:none}.couple-panel.active{display:block;animation:fadeIn 0.2s}
.love-gauge-card{background:linear-gradient(135deg,#1A1A2E,#880E4F);border-radius:var(--radius-xl);padding:1.5rem;margin-bottom:1rem;color:white}
.love-gauge-card h3{font-family:'Playfair Display',serif;font-size:1.2rem;margin-bottom:0.25rem}
.love-gauge-bar-bg{background:rgba(255,255,255,0.15);border-radius:20px;height:14px;margin:0.75rem 0;overflow:hidden}
.love-gauge-bar-fill{height:100%;border-radius:20px;background:linear-gradient(90deg,#ff6b9d,#ffd700);transition:width 1s ease}
.streak-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:0.75rem}
.streak-badge{display:flex;align-items:center;gap:5px;background:rgba(255,255,255,0.12);border:1px solid rgba(255,255,255,0.2);border-radius:16px;padding:4px 10px;font-size:0.72rem;color:white}
.routine-alert{background:linear-gradient(135deg,#FFF3E0,#FFF8E1);border:1.5px solid #FFE0B2;border-radius:var(--radius-lg);padding:1rem 1.25rem;margin-bottom:1rem;display:flex;gap:10px;align-items:flex-start}
.routine-alert-icon{font-size:1.4rem;flex-shrink:0}
.routine-alert-title{font-weight:600;margin-bottom:2px;font-size:0.88rem;color:#E65100}
.routine-alert-text{font-size:0.83rem;color:#E65100;line-height:1.5}
.gauge-actions-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:1rem}
.gauge-action-card{background:white;border-radius:var(--radius-md);padding:1rem 0.75rem;text-align:center;cursor:pointer;box-shadow:var(--shadow-card);transition:all 0.2s}
.gauge-action-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-soft)}
.ga-emoji{font-size:1.5rem}
.ga-title{font-size:0.78rem;font-weight:600;color:var(--text);margin-top:4px}
.ga-pts{font-size:0.65rem;color:var(--rose)}
.sweet-box{background:linear-gradient(135deg,var(--rose-pale),#fff);border-radius:var(--radius-xl);padding:1.25rem;border:1.5px solid var(--rose-soft);margin-bottom:1rem}
.capsule-type-btn{border:1.5px solid var(--gray-200);background:white;border-radius:var(--radius-md);padding:0.75rem;text-align:center;cursor:pointer;transition:all 0.2s}
.capsule-type-btn.active-type{border-color:var(--rose);background:var(--rose-pale)}
.capsule-type-lbl{font-size:0.75rem;font-weight:600;color:var(--rose);margin-top:4px}
.capsule-emo-btn{border:1.5px solid var(--gray-200);border-radius:var(--radius-sm);padding:0.6rem;text-align:center;cursor:pointer;font-size:0.75rem;font-family:'Inter',sans-serif;background:white;transition:all 0.2s}
.capsule-emo-btn:hover{border-color:var(--rose)}
.capsule-item{border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-card);margin-bottom:10px}
.capsule-header{padding:0.85rem 1rem;display:flex;align-items:center;gap:10px}
.capsule-title-text{font-size:0.88rem;font-weight:600;color:white}
.capsule-when{font-size:0.72rem;opacity:0.8;color:white}
.capsule-body{background:white;padding:0.85rem 1rem;font-size:0.85rem;color:var(--text);line-height:1.6;display:none}
.capsule-body.revealed{display:block;animation:tabIn 0.4s ease}
.secret-date-card{border-radius:var(--radius-xl);overflow:hidden;margin-bottom:1rem;box-shadow:var(--shadow-soft)}
.secret-date-header{background:linear-gradient(135deg,#1A1A2E,#C2185B);padding:1.25rem;color:white}

/* ── PASSION ── */
.passion-gate-box{background:linear-gradient(160deg,#1a0a0a 0%,#3d0a1a 50%,#6b0f2a 100%);border-radius:var(--radius-xl);padding:2rem 1.5rem;text-align:center;color:white;margin-bottom:1rem}
.passion-gate-box h2{font-family:'Playfair Display',serif;font-size:1.5rem;margin-bottom:0.5rem}
.age-confirm-box{background:rgba(255,255,255,0.08);border:1px solid rgba(255,255,255,0.2);border-radius:var(--radius-md);padding:1rem;margin-bottom:1.25rem;font-size:0.82rem;color:rgba(255,255,255,0.85);line-height:1.6;text-align:left}
.age-confirm-box label{display:flex;align-items:flex-start;gap:10px;cursor:pointer}
.age-confirm-box input[type=checkbox]{flex-shrink:0;margin-top:2px;width:16px;height:16px;accent-color:#ff4d7d}
.btn-unlock{padding:0.85rem 2rem;background:linear-gradient(135deg,#ff4d7d,#c2185b);color:white;border:none;border-radius:var(--radius-md);font-family:'Inter',sans-serif;font-size:0.95rem;font-weight:600;cursor:pointer;transition:all 0.2s}
.btn-unlock:disabled{opacity:0.45;cursor:not-allowed}
.passion-header-bar{background:linear-gradient(135deg,#3d0a1a,#6b0f2a);border-radius:var(--radius-lg);padding:1rem 1.25rem;margin-bottom:1rem;display:flex;align-items:center;justify-content:space-between}
.btn-lock{background:rgba(255,255,255,0.1);border:1px solid rgba(255,255,255,0.2);color:white;padding:5px 12px;border-radius:12px;font-size:0.75rem;cursor:pointer;font-family:'Inter',sans-serif}
.intensity-bar{display:flex;background:var(--gray-100);border-radius:var(--radius-md);padding:4px;gap:4px}
.intensity-btn{flex:1;padding:7px 4px;text-align:center;font-size:0.75rem;font-weight:500;border-radius:var(--radius-sm);border:none;background:none;cursor:pointer;font-family:'Inter',sans-serif;color:var(--gray-600);transition:all 0.2s}
.intensity-btn.active{background:white;box-shadow:0 1px 4px rgba(0,0,0,0.1)}
.ambiance-bar{display:flex;gap:6px;flex-wrap:wrap}
.ambiance-btn{padding:6px 14px;border-radius:20px;border:1.5px solid var(--rose-soft);background:white;font-size:0.75rem;font-weight:500;color:var(--gray-600);cursor:pointer;transition:all 0.2s;font-family:'Inter',sans-serif}
.ambiance-btn.active{background:var(--rose-pale);border-color:var(--rose);color:var(--rose);font-weight:600}
.passion-tabs{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none;margin-bottom:1rem}
.passion-tabs::-webkit-scrollbar{display:none}
.passion-tab-btn{flex-shrink:0;padding:6px 14px;border-radius:20px;border:1.5px solid #f8bbd0;background:white;font-size:0.78rem;font-weight:500;color:#880e4f;cursor:pointer;transition:all 0.2s;white-space:nowrap;font-family:'Inter',sans-serif}
.passion-tab-btn.active{background:#fce4ec;border-color:#c2185b;color:#c2185b}
.passion-panel{display:none}.passion-panel.active{display:block;animation:fadeIn 0.2s}
.passion-prompt-box{background:white;border-radius:var(--radius-lg);padding:1.25rem;box-shadow:var(--shadow-card);margin-bottom:1rem;border-left:3px solid #c2185b}
.passion-prompt-box textarea{width:100%;border:1.5px solid #f8bbd0;border-radius:var(--radius-sm);padding:0.75rem;font-family:'Inter',sans-serif;font-size:0.88rem;resize:none;outline:none;color:var(--text);min-height:70px}
.btn-passion-ask{margin-top:0.75rem;width:100%;padding:0.75rem;background:linear-gradient(135deg,#ff4d7d,#880e4f);color:white;border:none;border-radius:var(--radius-md);font-size:0.88rem;font-weight:500;cursor:pointer;font-family:'Inter',sans-serif}
.passion-response{background:linear-gradient(135deg,#fce4ec,#fff);border-radius:var(--radius-lg);padding:1.25rem;font-size:0.88rem;line-height:1.8;color:var(--text);border:1px solid #f8bbd0;white-space:pre-wrap;display:none;margin-bottom:1rem}
.passion-response.visible{display:block;animation:fadeSlide 0.3s ease}

/* ── PROFIL ── */
.profile-hero{background:linear-gradient(135deg,var(--bordeaux),var(--rose-light));padding:2rem 1.5rem;text-align:center;color:white;margin-bottom:0}
.profile-big-avatar{width:80px;height:80px;border-radius:50%;background:rgba(255,255,255,0.2);border:3px solid rgba(255,255,255,0.5);display:flex;align-items:center;justify-content:center;font-size:2rem;font-weight:700;margin:0 auto 0.75rem;overflow:hidden;background-size:cover;background-position:center}
.profile-hero-name{font-family:'Playfair Display',serif;font-size:1.4rem;margin-bottom:0.2rem}
.profile-hero-sub{font-size:0.78rem;opacity:0.8;margin-bottom:0.75rem}
.btn-edit-hero{padding:6px 18px;background:rgba(255,255,255,0.2);color:white;border:1px solid rgba(255,255,255,0.4);border-radius:20px;font-family:'Inter',sans-serif;font-size:0.78rem;cursor:pointer;font-weight:500}
.settings-group{background:white;border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-card);margin-bottom:1rem}
.settings-item{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.25rem;border-bottom:1px solid var(--gray-100);cursor:pointer;transition:background 0.15s}
.settings-item:last-child{border-bottom:none}
.settings-item:hover{background:var(--gray-50)}
.si-left{display:flex;align-items:center;gap:12px}
.si-icon{font-size:1.2rem;width:28px;text-align:center}
.si-label{font-size:0.9rem;color:var(--text)}
.si-value{font-size:0.8rem;color:var(--gray-600)}
.edit-field{display:flex;align-items:center;padding:0.85rem 1.25rem;border-bottom:1px solid var(--gray-100);background:white}
.edit-field:last-child{border-bottom:none}
.ef-left{display:flex;align-items:center;gap:10px;flex:1;min-width:0}
.ef-icon{font-size:1.1rem;width:26px;flex-shrink:0;text-align:center}
.ef-label{font-size:0.75rem;color:var(--gray-600);display:block;margin-bottom:1px}
.ef-input{font-size:0.9rem;color:var(--text);border:1px solid var(--rose-soft);border-radius:6px;padding:3px 8px;font-family:'Inter',sans-serif;width:100%;outline:none;background:var(--rose-pale)}

/* ── PHOTOS ── */
.photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:0.75rem}
.photo-thumb{position:relative;aspect-ratio:1;border-radius:var(--radius-md);overflow:hidden;background:var(--gray-100)}
.photo-thumb img{width:100%;height:100%;object-fit:cover}
.photo-del-btn{position:absolute;top:4px;right:4px;width:22px;height:22px;border-radius:50%;background:rgba(0,0,0,0.6);color:white;border:none;font-size:0.7rem;cursor:pointer;display:flex;align-items:center;justify-content:center}
.photo-placeholder{aspect-ratio:1;border-radius:var(--radius-md);background:var(--gray-100);display:flex;align-items:center;justify-content:center;font-size:2rem;color:var(--gray-400);cursor:pointer}
.sensuel-placeholder{background:linear-gradient(135deg,#3d0a1a,#6b0f2a)}
.photo-section-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:0.75rem}
.btn-add-photo{padding:5px 12px;background:var(--rose-pale);color:var(--rose);border:1.5px solid var(--rose-soft);border-radius:16px;font-size:0.75rem;cursor:pointer;font-family:'Inter',sans-serif;font-weight:500;white-space:nowrap;flex-shrink:0}
.sensuel-btn{background:#FCE4EC;color:#880E4F;border-color:#F8BBD0}
.badge-18{font-size:0.65rem;background:linear-gradient(135deg,#6b0f2a,#C2185B);color:white;padding:2px 6px;border-radius:8px;margin-left:4px}

/* ── LIAISON PARTENAIRE ── */
.partner-link-box{border-radius:var(--radius-xl);overflow:hidden;margin-bottom:1rem;box-shadow:var(--shadow-card)}
.partner-link-header{background:linear-gradient(135deg,#880E4F,#C2185B);padding:1.25rem;color:white}
.partner-link-header h3{font-family:'Playfair Display',serif;font-size:1.1rem;margin-bottom:0.25rem}
.partner-link-header p{font-size:0.78rem;opacity:0.85;line-height:1.5}
.partner-link-body{background:white;padding:1.25rem}
.partner-connected-card{display:flex;align-items:center;gap:12px;background:linear-gradient(135deg,#E8F5E9,#fff);border-radius:var(--radius-md);padding:1rem;border:1px solid #C8E6C9;transition:all 0.2s}
.partner-connected-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-soft)}
.partner-avatar-big{width:48px;height:48px;border-radius:50%;background:linear-gradient(135deg,var(--rose-light),var(--bordeaux));display:flex;align-items:center;justify-content:center;font-size:1.3rem;font-weight:600;color:white;flex-shrink:0}
.partner-info{flex:1}
.partner-linked-name{font-size:0.95rem;font-weight:600;color:var(--text)}
.partner-linked-status{font-size:0.75rem;color:#2E7D32;margin-top:2px}
.link-code-box{background:var(--rose-pale);border:2px dashed var(--rose-soft);border-radius:var(--radius-md);padding:1.25rem;text-align:center;margin-bottom:1rem}
.link-code-label{font-size:0.68rem;font-weight:600;text-transform:uppercase;letter-spacing:1px;color:var(--rose);margin-bottom:0.5rem}
.link-code{font-size:2rem;font-weight:700;letter-spacing:8px;color:var(--rose);font-family:'Playfair Display',serif;margin-bottom:4px}
.link-code-sub{font-size:0.75rem;color:var(--gray-600)}
.link-action-btns{display:flex;gap:8px;margin-bottom:0.75rem}
.btn-copy{flex:1;padding:0.65rem;background:var(--rose-pale);color:var(--rose);border:1.5px solid var(--rose-soft);border-radius:var(--radius-sm);font-size:0.82rem;cursor:pointer;font-family:'Inter',sans-serif;font-weight:500;transition:opacity 0.2s}
.btn-refresh{flex:1;padding:0.65rem;background:var(--gray-50);color:var(--gray-600);border:1.5px solid var(--gray-200);border-radius:var(--radius-sm);font-size:0.82rem;cursor:pointer;font-family:'Inter',sans-serif;transition:opacity 0.2s}
.btn-copy:hover,.btn-refresh:hover{opacity:0.85}
.link-divider{font-size:0.78rem;color:var(--gray-600);text-align:center;margin-bottom:0.75rem}
.link-input-row{display:flex;gap:8px;margin-bottom:0.75rem}
.link-input{flex:1;padding:0.75rem;border:1.5px solid var(--gray-200);border-radius:var(--radius-sm);font-family:'Inter',sans-serif;font-size:1rem;outline:none;text-align:center;letter-spacing:6px;font-weight:700;text-transform:uppercase;color:var(--text)}
.link-input:focus{border-color:var(--rose)}
.btn-link{padding:0.75rem 1.25rem;background:linear-gradient(135deg,var(--rose-light),var(--bordeaux));color:white;border:none;border-radius:var(--radius-sm);font-family:'Inter',sans-serif;font-size:0.88rem;font-weight:600;cursor:pointer;white-space:nowrap}
.btn-unlink{padding:5px 12px;background:#FFEBEE;color:#C62828;border:1px solid #FFCDD2;border-radius:12px;font-size:0.75rem;cursor:pointer;font-family:'Inter',sans-serif;white-space:nowrap;flex-shrink:0}

/* ── RECETTES ── */
.recipe-item{background:white;border-radius:var(--radius-md);margin-bottom:8px;box-shadow:var(--shadow-card);overflow:hidden}
.recipe-item-header{display:flex;align-items:center;gap:10px;padding:0.85rem 1rem;cursor:pointer}
.recipe-item-body{display:none;padding:0.85rem 1rem;border-top:1px solid var(--gray-100);font-size:0.83rem;line-height:1.8;white-space:pre-wrap;max-height:50vh;overflow-y:auto}

/* ── NAV HAMBURGER ── */
.hb-backdrop{position:fixed;inset:0;z-index:90;background:rgba(26,26,46,0);pointer-events:none;transition:background 0.35s}
.hb-backdrop.open{background:rgba(26,26,46,0.6);pointer-events:all}
.hb-bar{position:fixed;bottom:0;left:0;right:0;height:70px;z-index:100;display:flex;align-items:center;justify-content:space-between;padding:0 0.5rem;background:rgba(255,255,255,0.92);backdrop-filter:blur(16px);border-top:1px solid var(--gray-200);box-shadow:0 -4px 24px rgba(194,24,91,0.08)}
.hb-quick-tabs{display:flex;gap:2px;flex:1}
.hb-quick-btn{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 2px;border:none;background:none;cursor:pointer;color:var(--gray-400);font-size:0.53rem;font-weight:600;text-transform:uppercase;letter-spacing:0.4px;transition:color 0.2s;font-family:'Inter',sans-serif}
.hb-quick-btn .qi{font-size:1.15rem;transition:transform 0.2s}
.hb-quick-btn.active{color:var(--rose)}.hb-quick-btn.active .qi{transform:scale(1.15)}
.hb-center-btn{width:60px;height:60px;border-radius:50%;background:linear-gradient(135deg,var(--rose-light),var(--bordeaux));border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:0 4px 20px rgba(194,24,91,0.4);transition:all 0.3s;position:relative;z-index:101}
.hb-center-btn:hover{transform:scale(1.06)}
.hb-center-btn.open{transform:rotate(45deg);background:linear-gradient(135deg,var(--bordeaux),#1A1A2E)}
.hb-center-icon{font-size:1.5rem;transition:all 0.3s;color:white;line-height:1}
.hb-drawer{position:fixed;bottom:70px;left:0;right:0;z-index:95;transform:translateY(100%);transition:transform 0.4s cubic-bezier(0.34,1.2,0.64,1);pointer-events:none}
.hb-drawer.open{transform:translateY(0);pointer-events:all}
.hb-drawer-inner{background:rgba(255,255,255,0.97);backdrop-filter:blur(20px);border-radius:24px 24px 0 0;padding:1.25rem 1rem 0.5rem;box-shadow:0 -8px 40px rgba(194,24,91,0.18);border-top:1px solid rgba(194,24,91,0.15)}
.hb-drawer-handle{width:36px;height:4px;background:var(--rose-soft);border-radius:2px;margin:0 auto 1rem}
.hb-drawer-title{text-align:center;font-size:0.7rem;font-weight:600;text-transform:uppercase;letter-spacing:1px;color:var(--gray-400);margin-bottom:1rem}
.hb-grid{display:flex;justify-content:center;gap:16px;flex-wrap:wrap;margin-bottom:0.75rem;padding:0 0.5rem}
.hb-cell{display:flex;flex-direction:column;align-items:center;gap:5px;cursor:pointer;background:none;border:none;font-family:'Inter',sans-serif;padding:0.5rem 0;border-radius:var(--radius-md);transition:background 0.15s}
.hb-cell:hover,.hb-cell.active-cell{background:var(--rose-pale)}
.hb-cell-icon{width:64px;height:64px;border-radius:18px;display:flex;align-items:center;justify-content:center;font-size:1.8rem;box-shadow:0 4px 16px rgba(0,0,0,0.15);transition:transform 0.2s}
.hb-cell:hover .hb-cell-icon,.hb-cell.active-cell .hb-cell-icon{transform:scale(1.08) translateY(-2px)}
.hb-cell-label{font-size:0.72rem;font-weight:600;color:var(--gray-600);white-space:nowrap}
.hb-cell.active-cell .hb-cell-label{color:var(--rose)}
.hb-active-label{position:fixed;bottom:76px;left:50%;transform:translateX(-50%);background:linear-gradient(135deg,var(--rose-light),var(--bordeaux));color:white;padding:5px 16px;border-radius:20px;font-size:0.75rem;font-weight:600;z-index:102;pointer-events:none;opacity:0;transition:opacity 0.25s;white-space:nowrap;box-shadow:0 2px 12px rgba(194,24,91,0.3)}
.hb-active-label.show{opacity:1}

/* ── MODAL ── */
.modal-overlay{position:fixed;inset:0;z-index:200;background:rgba(0,0,0,0.6);display:none;align-items:flex-end;justify-content:center}
.modal-overlay.open{display:flex;animation:fadeIn 0.2s}
.modal-sheet{background:white;border-radius:24px 24px 0 0;width:100%;max-width:520px;padding:1.5rem 1.5rem 2rem;max-height:85vh;overflow-y:auto;animation:slideUp 0.3s ease}
.modal-handle{width:40px;height:4px;background:var(--gray-200);border-radius:2px;margin:0 auto 1.25rem}
.modal-close{float:right;background:none;border:none;font-size:1.25rem;cursor:pointer;color:var(--gray-400)}

/* ── FLASH / TOAST ── */
.flash-notif{position:fixed;top:1rem;left:50%;transform:translateX(-50%);background:linear-gradient(135deg,var(--gold),#e67e00);color:white;padding:10px 20px;border-radius:24px;font-size:0.82rem;font-weight:600;z-index:400;opacity:0;transition:opacity 0.3s;white-space:nowrap;box-shadow:0 4px 20px rgba(244,164,53,0.4);pointer-events:none}
.flash-notif.show{opacity:1}
.toast{position:fixed;bottom:90px;left:50%;transform:translateX(-50%);background:var(--text);color:white;padding:10px 20px;border-radius:24px;font-size:0.82rem;font-weight:500;z-index:300;opacity:0;transition:opacity 0.3s;white-space:nowrap;pointer-events:none}
.toast.show{opacity:1}

/* ── CHAT ── */
.chat-overlay{position:fixed;inset:0;z-index:300;background:var(--cream);display:none;flex-direction:column}
.chat-overlay.open{display:flex;animation:fadeIn 0.2s}
.chat-header{background:linear-gradient(135deg,var(--bordeaux),var(--rose-light));padding:1rem 1.25rem;display:flex;align-items:center;gap:12px;color:white;flex-shrink:0}
.chat-back{background:none;border:none;color:white;font-size:1.3rem;cursor:pointer;padding:4px}
.chat-avatar{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.2rem;font-weight:600;border:2px solid rgba(255,255,255,0.4);overflow:hidden;flex-shrink:0;background:linear-gradient(135deg,var(--rose-light),var(--bordeaux));color:white;background-size:cover;background-position:center}
.chat-partner-name{font-family:'Playfair Display',serif;font-size:1.1rem;color:white}
.chat-partner-status{font-size:0.72rem;opacity:0.8;color:white}
.btn-chat-photos{background:rgba(255,255,255,0.15);border:1px solid rgba(255,255,255,0.3);color:white;padding:6px 12px;border-radius:12px;font-size:0.72rem;cursor:pointer;font-family:'Inter',sans-serif;font-weight:500;white-space:nowrap}
.chat-messages{flex:1;overflow-y:auto;padding:1rem;display:flex;flex-direction:column;gap:10px;background:var(--cream)}
.chat-msg{max-width:78%;padding:0.65rem 1rem;border-radius:18px;font-size:0.88rem;line-height:1.5;word-break:break-word}
.chat-msg.mine{background:linear-gradient(135deg,var(--rose-light),var(--bordeaux));color:white;align-self:flex-end;border-radius:18px 4px 18px 18px}
.chat-msg.theirs{background:white;color:var(--text);align-self:flex-start;border-radius:4px 18px 18px 18px;box-shadow:0 1px 4px rgba(0,0,0,0.08)}
.chat-msg.system{align-self:center;font-size:0.72rem;color:var(--gray-600);background:rgba(0,0,0,0.05);padding:4px 12px;border-radius:12px;font-style:italic}
.chat-msg-time{font-size:0.6rem;opacity:0.6;margin-top:3px;text-align:right}
.chat-input-bar{padding:0.75rem 1rem;background:white;border-top:1px solid var(--gray-100);display:flex;gap:8px;align-items:center;flex-shrink:0}
.chat-input{flex:1;border:1.5px solid var(--gray-200);border-radius:24px;padding:10px 16px;font-family:'Inter',sans-serif;font-size:0.88rem;outline:none;transition:border-color 0.2s}
.chat-input:focus{border-color:var(--rose)}
.chat-send-btn{width:42px;height:42px;border-radius:50%;background:linear-gradient(135deg,var(--rose-light),var(--bordeaux));border:none;color:white;font-size:1.1rem;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.chat-img-btn{width:38px;height:38px;border-radius:50%;background:var(--rose-pale);border:none;color:var(--rose);font-size:1.1rem;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0}

/* ── PROFIL PARTENAIRE ── */
.partner-profile-overlay{position:fixed;inset:0;z-index:250;background:white;display:none;flex-direction:column;overflow-y:auto}
.partner-profile-overlay.open{display:flex;animation:tabIn 0.3s ease}
.partner-profile-header{background:linear-gradient(135deg,var(--bordeaux),var(--rose-light));padding:1.25rem;display:flex;align-items:center;gap:12px;color:white;position:sticky;top:0;z-index:5}
.partner-profile-back{background:none;border:none;color:white;font-size:1.3rem;cursor:pointer;padding:4px}
.partner-profile-title{font-family:'Playfair Display',serif;font-size:1.2rem;color:white}

/* ══════════════════════════════════════════════
   THÈME NUIT — Activé automatiquement après 20h
   ══════════════════════════════════════════════ */
body.theme-night {
  --cream: #1A1020;
  --white: #1A1020;
  --gray-50: #1A1020;
  --gray-100: #251530;
  --gray-200: #352045;
  --gray-400: #9A80B0;
  --gray-600: #C8B0DC;
  --gray-800: #EDE0F8;
  --text: #F0E8F8;
  --rose-pale: #2A1A35;
  --rose-soft: #4A2A60;
  background-color: #1A1020 !important;
}

/* Fond général */
body.theme-night .tab-panel,
body.theme-night #screen-app,
body.theme-night body { background: #1A1020 !important; }

/* Cartes */
body.theme-night .card,
body.theme-night .settings-group,
body.theme-night .history-item,
body.theme-night .reminder-item,
body.theme-night .daily-card,
body.theme-night .gauge-action-card,
body.theme-night .idea-prompt-box,
body.theme-night .passion-prompt-box,
body.theme-night .sweet-box,
body.theme-night .intensity-box,
body.theme-night .partner-link-body,
body.theme-night .couple-panel,
body.theme-night .recipe-item,
body.theme-night .tonight-result,
body.theme-night #concierge-result > div,
body.theme-night .serie-ep-card,
body.theme-night .livre-hero { background: #251530 !important; }

/* Textes */
body.theme-night .card-title,
body.theme-night .si-label,
body.theme-night .reminder-name,
body.theme-night .history-preview,
body.theme-night .ga-title,
body.theme-night .dc-title,
body.theme-night .pc-name,
body.theme-night .partner-linked-name { color: #F0E8F8 !important; }

body.theme-night .si-value,
body.theme-night .reminder-date,
body.theme-night .history-date,
body.theme-night .dc-sub,
body.theme-night .ga-pts,
body.theme-night .stat-lbl { color: #D4A0BE !important; }

/* Inputs */
body.theme-night input,
body.theme-night select,
body.theme-night textarea,
body.theme-night .link-input,
body.theme-night .meet-search-input,
body.theme-night .meet-sort-select,
body.theme-night .chat-input,
body.theme-night .ef-input { 
  background: #2A1220 !important; 
  color: #FFF0F8 !important; 
  border-color: #3D1A2E !important; 
}

/* Boutons secondaires */
body.theme-night .btn-secondary,
body.theme-night .btn-refresh,
body.theme-night .filter-chip,
body.theme-night .idea-tab-btn,
body.theme-night .couple-tab-btn,
body.theme-night .passion-tab-btn,
body.theme-night .ambiance-btn,
body.theme-night .intensity-btn { 
  background: #2A1220 !important; 
  color: #D4A0BE !important; 
  border-color: #3D1A2E !important; 
}
body.theme-night .filter-chip.active,
body.theme-night .idea-tab-btn.active,
body.theme-night .couple-tab-btn.active,
body.theme-night .passion-tab-btn.active,
body.theme-night .ambiance-btn.active,
body.theme-night .intensity-btn.active {
  background: #4A1A35 !important;
  color: #FF6B9D !important;
  border-color: #FF6B9D !important;
}

/* Nav bar */
body.theme-night .hb-bar { 
  background: rgba(30,13,24,0.96) !important; 
  border-top-color: #3D1A2E !important; 
}
body.theme-night .hb-quick-btn { color: #8A5070 !important; }
body.theme-night .hb-quick-btn.active { color: #FF6B9D !important; }
body.theme-night .hb-drawer-inner { 
  background: rgba(30,13,24,0.98) !important; 
  border-top-color: #4A1A35 !important; 
}

/* Settings items */
body.theme-night .settings-item { 
  border-bottom-color: #2A1220 !important; 
}
body.theme-night .settings-item:hover { background: #2A1220 !important; }

/* Chat */
body.theme-night .chat-messages { background: #130810 !important; }
body.theme-night .chat-input-bar { background: #1E0D18 !important; border-top-color: #2A1220 !important; }
body.theme-night .chat-msg.theirs { background: #2A1220 !important; color: #FFF0F8 !important; }

/* Bannière idée du jour */
body.theme-night .daily-banner { 
  background: linear-gradient(135deg,#0D0508 0%,#1A0A14 60%,#0D0508 100%) !important;
  border-color: rgba(194,24,91,0.4) !important;
}

/* Profil hero + partner link */
body.theme-night .partner-link-box { box-shadow: 0 2px 16px rgba(0,0,0,0.4) !important; }
body.theme-night .partner-connected-card { 
  background: #1E1E30 !important; 
  border-color: #2A2A40 !important; 
}
body.theme-night .link-code-box { 
  background: #2D0F22 !important; 
  border-color: #4A1A35 !important; 
}

/* Profil panels */
body.theme-night #profile-view-mode,
body.theme-night #profile-edit-mode,
body.theme-night #panel-profile { background: #130810 !important; }

/* Stat cards rencontres */
body.theme-night .stat-card { background: #1E0D18 !important; }

/* Shadow dial */
body.theme-night .shadow-exchange { background: rgba(255,255,255,0.04) !important; }

/* Modal */
body.theme-night .modal-sheet { background: #1E0D18 !important; }
body.theme-night .modal-handle { background: #3D1A2E !important; }

/* Tonight result */
body.theme-night .tonight-result { background: #1E0D18 !important; }
body.theme-night .result-section { border-bottom-color: #2A1220 !important; }
body.theme-night .result-content { color: #FFF0F8 !important; }

/* Passion gate */
body.theme-night .passion-gate-box { background: linear-gradient(160deg,#0A0005 0%,#1A0514 50%,#2D0A1E 100%) !important; }

/* Tonight hero déjà sombre, pas besoin de changer */

/* Notification nuit */
body.theme-night .night-indicator {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg,#1A0A14,#2D0F22);
  color: #E284B3;
  font-size: 0.68rem;
  padding: 3px 14px;
  border-radius: 0 0 12px 12px;
  z-index: 50;
  letter-spacing: 0.5px;
  font-weight: 500;
  border: 1px solid #3D1A2E;
  border-top: none;
}

/* ── RENCONTRES : filtres genre & badge lié ── */
.genre-filter-row { display:flex; gap:8px; margin-bottom:0.75rem; flex-wrap:wrap; }
.genre-chip { padding:7px 16px; border-radius:20px; border:2px solid var(--gray-200); background:white; font-size:0.82rem; font-weight:500; color:var(--gray-600); cursor:pointer; transition:all 0.2s; font-family:'Inter',sans-serif; }
.genre-chip:hover { border-color:var(--rose); color:var(--rose); }
.genre-chip.active { background:linear-gradient(135deg,var(--rose-light),var(--bordeaux)); border-color:transparent; color:white; font-weight:600; box-shadow:0 2px 12px rgba(194,24,91,0.3); }

.linked-badge { position:absolute; bottom:50px; left:8px; right:8px; background:linear-gradient(135deg,rgba(63,81,181,0.9),rgba(26,35,126,0.9)); backdrop-filter:blur(4px); color:white; font-size:0.65rem; font-weight:600; padding:3px 8px; border-radius:10px; text-align:center; z-index:5; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* ── Bouton message sur carte profil ── */
.card-chat-btn {
  position: absolute;
  bottom: 54px;
  left: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg,#1565C0,#0D47A1);
  border: 2px solid rgba(255,255,255,0.35);
  color: white;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  box-shadow: 0 2px 10px rgba(21,101,192,0.5);
  transition: transform 0.15s;
}
.card-chat-btn:hover { transform: scale(1.12); }

/* ══════════════════════════════════════
   NETFLIX DE L'AMOUR — Accueil
   ══════════════════════════════════════ */

/* HERO */
.netflix-hero {
  margin: 0 0 0.5rem;
  background: linear-gradient(160deg, #1a0a14 0%, #2d0f22 50%, #1a0a14 100%);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  padding: 1.25rem 1.25rem 1.5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(194,24,91,0.25);
  box-shadow: 0 8px 32px rgba(194,24,91,0.12);
}
.netflix-hero::before {
  content: '❤'; position: absolute; right: -20px; bottom: -30px;
  font-size: 160px; opacity: 0.03; pointer-events: none; line-height: 1;
}
.netflix-hero-label {
  font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: #E284B3; font-weight: 700; margin-bottom: 0.6rem; text-align: center;
}
.netflix-hero-text {
  font-family: 'Playfair Display', serif; font-size: 1rem; line-height: 1.7;
  color: #FFF0F5; font-style: italic; text-align: center;
  min-height: 2.5rem; margin-bottom: 1rem;
  word-wrap: break-word; overflow-wrap: break-word;
  white-space: normal; max-width: 100%;
}
.netflix-hero-actions { display: flex; gap: 10px; justify-content: center; }
.netflix-play-btn {
  background: linear-gradient(135deg, var(--rose-light), var(--bordeaux));
  color: white; border: none; border-radius: 20px; padding: 8px 20px;
  font-size: 0.82rem; font-weight: 600; cursor: pointer;
  font-family: 'Inter', sans-serif; box-shadow: 0 4px 12px rgba(194,24,91,0.35);
}
.netflix-regen-btn {
  background: rgba(255,255,255,0.08); color: #E284B3;
  border: 1px solid rgba(194,24,91,0.3); border-radius: 20px;
  padding: 8px 14px; font-size: 0.78rem; cursor: pointer;
  font-family: 'Inter', sans-serif;
}

/* SECTIONS */
.netflix-section { margin-bottom: 0.25rem; padding: 0; }
.netflix-section-header {
  display: flex; align-items: center; gap: 8px;
  padding: 1rem 1rem 0.5rem;
}
.netflix-section-emoji { font-size: 1.1rem; }
.netflix-section-title {
  font-family: 'Playfair Display', serif; font-size: 1rem;
  font-weight: 700; color: var(--text); flex: 1;
}
.netflix-section-sub {
  font-size: 0.7rem; color: var(--gray-400); font-style: italic;
}

/* CAROUSEL */
.netflix-row {
  display: flex; gap: 10px; overflow-x: auto; padding: 0.25rem 1rem 0.75rem;
  scrollbar-width: none; -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
}
.netflix-row::-webkit-scrollbar { display: none; }

/* CARTES */
.netflix-card {
  flex-shrink: 0; width: 130px; border-radius: var(--radius-lg);
  padding: 1rem 0.85rem; cursor: pointer; scroll-snap-align: start;
  transition: transform 0.18s, box-shadow 0.18s;
  display: flex; flex-direction: column; gap: 5px;
  min-height: 105px; position: relative; overflow: hidden;
}
.netflix-card:active { transform: scale(0.96); }
.netflix-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,0.3));
  border-radius: var(--radius-lg);
}
.nc-icon { font-size: 1.6rem; z-index: 1; }
.nc-title {
  font-weight: 700; font-size: 0.8rem; color: white;
  z-index: 1; line-height: 1.2;
}
.nc-sub { font-size: 0.68rem; color: rgba(255,255,255,0.75); z-index: 1; }

/* COULEURS */
.nc-dark  { background: linear-gradient(135deg, #1A1A2E, #16213E); }
.nc-rose  { background: linear-gradient(135deg, #C2185B, #880E4F); }
.nc-gold  { background: linear-gradient(135deg, #E65100, #F4A435); }
.nc-blue  { background: linear-gradient(135deg, #1565C0, #0D47A1); }
.nc-green { background: linear-gradient(135deg, #2E7D32, #1B5E20); }
.nc-purple{ background: linear-gradient(135deg, #6A1B9A, #4A148C); }

/* Mode nuit */
body.theme-night .netflix-hero { background: linear-gradient(160deg, #0a0508 0%, #150818 100%) !important; }
body.theme-night .netflix-section-title { color: #FFF0F8 !important; }
body.theme-night .netflix-section-sub { color: #8A5070 !important; }

/* ══════════════════════════════════════
   SÉRIE ROMANTIQUE
   ══════════════════════════════════════ */
.serie-hero {
  background: linear-gradient(160deg,#0D0010 0%,#B71C1C 50%,#4A148C 100%);
  padding: 2rem 1.25rem 1.5rem; text-align: center; position: relative; overflow: hidden;
}
.serie-hero::before {
  content: '⭐'; position: absolute; right: -20px; bottom: -30px;
  font-size: 150px; opacity: 0.05; pointer-events: none;
}
.serie-hero-badge {
  font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: rgba(255,255,255,0.6); font-weight: 700; margin-bottom: 0.75rem;
  border: 1px solid rgba(255,255,255,0.2); display: inline-block;
  padding: 3px 12px; border-radius: 10px;
}
.serie-hero-title {
  font-family: 'Playfair Display', serif; font-size: 1.5rem;
  color: white; margin: 0 0 0.4rem; font-weight: 700;
}
.serie-hero-sub { font-size: 0.78rem; color: rgba(255,255,255,0.65); }

.serie-season-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0 0.75rem;
}
.serie-season-header span { font-family:'Playfair Display',serif; font-size:1rem; font-weight:600; color:var(--text); }
.serie-new-ep-btn {
  background: linear-gradient(135deg,#B71C1C,#4A148C); color: white;
  border: none; border-radius: 16px; padding: 6px 14px; font-size: 0.78rem;
  font-weight: 600; cursor: pointer; font-family: Inter, sans-serif;
}
.serie-new-ep-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.serie-season-tag {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: #B71C1C; font-weight: 700; margin-bottom: 0.75rem;
  padding-left: 2px;
}

.serie-ep-card {
  display: flex; align-items: center; gap: 12px;
  background: white; border-radius: var(--radius-lg); padding: 0.85rem;
  margin-bottom: 10px; cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.15s, box-shadow 0.15s;
  border: 1px solid var(--gray-100);
}
.serie-ep-card:active { transform: scale(0.98); }
.serie-ep-thumb {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  position: relative;
}
.serie-ep-watched {
  position: absolute; bottom: -4px; right: -4px; background: #2E7D32;
  color: white; width: 16px; height: 16px; border-radius: 50%;
  font-size: 0.6rem; display: flex; align-items: center; justify-content: center;
  font-weight: 700; border: 2px solid white;
}
.serie-ep-info { flex: 1; min-width: 0; }
.serie-ep-badge {
  font-size: 0.6rem; font-weight: 700; color: #B71C1C; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 2px;
}
.serie-ep-name { font-weight: 600; font-size: 0.88rem; color: var(--text); margin-bottom: 2px; overflow-wrap: break-word; }
.serie-ep-desc { font-size: 0.75rem; color: var(--gray-600); line-height: 1.4; margin-bottom: 3px; }
.serie-ep-date { font-size: 0.65rem; color: var(--gray-400); }

.serie-player-header {
  display: flex; align-items: center; gap: 12px; padding: 1rem 0 0.75rem;
  border-bottom: 1px solid var(--gray-100); margin-bottom: 1rem;
}
.serie-player-content { padding-bottom: 2rem; overflow-wrap: break-word; word-break: break-word; overflow: hidden; max-width: 100%; }
.serie-ep-number { font-size: 0.65rem; color: #B71C1C; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.serie-ep-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--text); font-weight: 600; }

/* Mode nuit */
body.theme-night .serie-ep-card { background: #1E0D18 !important; border-color: #2A1220 !important; }
body.theme-night .serie-ep-name { color: #FFF0F8 !important; }

#panel-serie { overflow: hidden; }
#panel-serie > div:not(.serie-hero) { padding: 0 1rem; }

/* ── Choix narratifs série ── */
.serie-choix-btn {
  padding: 0.75rem 0.5rem; background: white; border: 2px solid var(--rose-soft);
  border-radius: var(--radius-md); font-family: Inter, sans-serif; font-size: 0.8rem;
  color: var(--rose); font-weight: 500; cursor: pointer; text-align: center;
  transition: all 0.2s; line-height: 1.3;
}
.serie-choix-btn:hover { background: var(--rose-pale); border-color: var(--rose); transform: scale(1.02); }
body.theme-night .serie-choix-btn { background: #1E0D18; border-color: #3D1A2E; color: #E284B3; }

/* ══════════════════════════════════════
   LIVRE DU COUPLE
   ══════════════════════════════════════ */
.livre-hero {
  background: linear-gradient(160deg, #0D0A2E 0%, #1A237E 50%, #3F51B5 100%);
  padding: 2rem 1.25rem 1.75rem; text-align: center; position: relative; overflow: hidden;
}
.livre-hero::before { content: '📖'; position: absolute; right: -20px; bottom: -30px; font-size: 140px; opacity: 0.05; pointer-events: none; }
.livre-hero-badge { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.18em; color: rgba(255,255,255,0.6); font-weight: 700; margin-bottom: 0.75rem; border: 1px solid rgba(255,255,255,0.2); display: inline-block; padding: 3px 12px; border-radius: 10px; }
.livre-hero-title { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: white; margin: 0 0 0.4rem; font-weight: 700; font-style: italic; }
.livre-hero-sub { font-size: 0.78rem; color: rgba(255,255,255,0.65); margin-bottom: 1rem; }
.livre-hero-progress { background: rgba(255,255,255,0.1); border-radius: var(--radius-md); padding: 0.75rem 1rem; margin: 0 auto; max-width: 320px; }
.livre-progress-bar { height: 6px; background: rgba(255,255,255,0.2); border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.livre-progress-fill { height: 100%; background: linear-gradient(90deg, #90CAF9, white); border-radius: 3px; width: 0%; transition: width 1s ease; }
.livre-progress-label { font-size: 0.72rem; color: rgba(255,255,255,0.75); text-align: center; }
.livre-btn-add { background: linear-gradient(135deg, #1A237E, #3F51B5); color: white; border: none; border-radius: 20px; padding: 8px 18px; font-size: 0.82rem; font-weight: 600; cursor: pointer; font-family: Inter, sans-serif; display: inline-flex; align-items: center; gap: 6px; }
body.theme-night .livre-hero { background: linear-gradient(160deg, #050315 0%, #0D1445 100%) !important; }

.hb-cell-locked { opacity: 0.6; }

/* ══════════════════════════════════════
   SURPRENDS-MOI
   ══════════════════════════════════════ */
.surprise-btn-wrap {
  display: flex; justify-content: center;
  padding: 1.5rem 1rem 0.5rem;
}
.surprise-big-btn {
  width: 100%; max-width: 340px;
  background: linear-gradient(135deg, #880E4F 0%, #C2185B 50%, #E91E63 100%);
  border: none; border-radius: 24px; padding: 2rem 1.5rem;
  cursor: pointer; text-align: center;
  box-shadow: 0 8px 32px rgba(194,24,91,0.4), 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative; overflow: hidden;
}
.surprise-big-btn::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15), transparent 60%);
}
.surprise-big-btn:active { transform: scale(0.97); }
.surprise-big-btn:hover { box-shadow: 0 12px 40px rgba(194,24,91,0.5); transform: translateY(-2px); }
.surprise-big-btn:disabled { opacity: 0.85; cursor: wait; }
.surprise-heart { font-size: 3rem; margin-bottom: 0.5rem; display: block; }
.surprise-label {
  font-family: 'Playfair Display', serif; font-size: 1.5rem;
  font-weight: 700; color: white; letter-spacing: 0.05em;
  display: block; margin-bottom: 0.25rem;
}
.surprise-sub { font-size: 0.78rem; color: rgba(255,255,255,0.75); display: block; }

/* Saisons : texte toujours blanc dans le header et hero */
.app-header { color: white !important; }
.app-header .header-greeting,
.app-header .header-name,
.app-header .avatar-circle { color: white !important; }
.netflix-hero .netflix-hero-label,
.netflix-hero .netflix-hero-text,
.netflix-hero .daily-banner-body,
.netflix-hero .daily-banner-header { color: white !important; }
.netflix-hero #netflix-daily-idea { color: white !important; }

/* ── Cartes Netflix Ce soir ── */
.tonight-netflix-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; padding:0 1rem 1rem; }
.tn-card { border-radius:var(--radius-xl); padding:1.25rem 1rem; cursor:pointer; transition:transform 0.18s, box-shadow 0.18s; position:relative; overflow:hidden; }
.tn-card::before { content:''; position:absolute; inset:0; background:linear-gradient(transparent 30%,rgba(0,0,0,0.35)); }
.tn-card:active { transform:scale(0.97); }
.tn-card:hover  { transform:translateY(-3px); box-shadow:0 8px 24px rgba(0,0,0,0.2); }
.tn-emoji { font-size:2.2rem; display:block; margin-bottom:0.5rem; position:relative;z-index:1; }
.tn-title { font-family:'Playfair Display',serif; font-size:1rem; font-weight:700; color:white; margin-bottom:4px; position:relative;z-index:1; }
.tn-meta  { font-size:0.68rem; color:rgba(255,255,255,0.75); margin-bottom:6px; position:relative;z-index:1; }
.tn-sub   { font-size:0.72rem; color:rgba(255,255,255,0.85); line-height:1.4; position:relative;z-index:1; }

/* ── LoveIA TV ── */
@keyframes tvKenBurns {
  0%   { transform: scale(1.08) translateX(0px); }
  50%  { transform: scale(1.04) translateX(-8px); }
  100% { transform: scale(1.0)  translateX(0px); }
}
@keyframes tvKenBurns2 {
  0%   { transform: scale(1.06) translateX(0px) translateY(0px); }
  50%  { transform: scale(1.03) translateX(6px) translateY(-4px); }
  100% { transform: scale(1.0)  translateX(0px) translateY(0px); }
}
@keyframes tvParticle {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0.6; }
  100% { transform: translateY(-120px) translateX(20px) scale(0); opacity: 0; }
}
@keyframes tvFadeIn {
  from { opacity:0; transform:translateY(16px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes tvDotPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.4); }
}

.tv-music-btn {
  display:block; padding:10px 12px;
  background:linear-gradient(135deg,#1A1A2E,#16213E);
  color:white; border-radius:var(--radius-md);
  font-size:0.78rem; font-weight:500;
  text-decoration:none; text-align:center;
  transition:all 0.2s; font-family:Inter,sans-serif;
}
.tv-music-btn:hover { opacity:0.85; transform:translateY(-1px); }

.tv-dot {
  width:6px; height:6px; border-radius:50%;
  background:rgba(255,255,255,0.25);
  transition:all 0.3s ease; cursor:pointer;
}
.tv-dot.active {
  background:#C2185B; width:20px;
  border-radius:3px;
}
.tv-pl-btn {
  padding:5px; background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.15);
  color:white; border-radius:8px;
  font-size:0.62rem; cursor:pointer;
  font-family:Inter,sans-serif;
  transition:background 0.2s;
}
.tv-pl-btn:hover { background:rgba(255,255,255,0.15); }mation: tvDotPulse 1.5s ease-in-out infinite;
}

/* ── Aventures ── */
.aventure-dest-card { border-radius:var(--radius-xl);padding:1.5rem 1rem;text-align:center;cursor:pointer;color:white;font-family:"Playfair Display",serif;font-size:1rem;font-weight:600;transition:transform 0.15s;line-height:1.8; }
.aventure-dest-card:active { transform:scale(0.97); }
.aventure-dest-card:hover  { transform:translateY(-3px); }

/* ── Aventure boutons ── */
.aventure-choice-btn { width:100%; padding:1rem; background:white; border:2px solid var(--gray-200); border-radius:var(--radius-md); font-family:Inter,sans-serif; font-size:0.88rem; color:var(--text); cursor:pointer; text-align:left; display:flex; align-items:center; gap:10px; margin-bottom:6px; transition:all 0.2s; }
.aventure-choice-btn:hover { border-color:var(--rose); background:var(--rose-pale); }
.aventure-choice-letter { width:28px; height:28px; border-radius:50%; background:linear-gradient(135deg,var(--rose-light),var(--bordeaux)); color:white; display:flex; align-items:center; justify-content:center; font-size:0.75rem; font-weight:700; flex-shrink:0; }

/* ── Mode nuit : sections concierge et date planner ── */
body.theme-night #concierge-result div,
body.theme-night #resp-dateplan { color: var(--text) !important; }
body.theme-night #concierge-result > div > div:last-child { color: var(--text) !important; }

/* Mode nuit : fond uniforme #1A1020, texte lisible */
body.theme-night { background: #1A1020 !important; }
body.theme-night [style*="background:white"],
body.theme-night [style*="background: white"] { background: #251530 !important; }
/* Couleurs text gérées via variables CSS --text et --gray-600 */
body.theme-night .modal-sheet,
body.theme-night #modal-profile .modal-sheet { background: #251530 !important; }
body.theme-night input,
body.theme-night textarea,
body.theme-night select { background: #352045 !important; color: #F0E8F8 !important; border-color: #4A2A60 !important; }
body.theme-night .result-section,
body.theme-night .result-content { background: #251530 !important; color: #F0E8F8 !important; }
body.theme-night .hb-bar { background: rgba(26,16,32,0.97) !important; border-top-color: #352045 !important; }
body.theme-night .daily-banner { background: linear-gradient(135deg,#0D0815,#1A1020) !important; }

/* ── Mode nuit : boutons aventure ── */
body.theme-night .aventure-choice-btn {
  background: #251530 !important;
  border-color: #4A2A60 !important;
  color: #F0E8F8 !important;
}
body.theme-night .aventure-choice-btn:hover {
  background: #352045 !important;
  border-color: var(--rose) !important;
}
/* Fond scène aventure en mode nuit */
body.theme-night #aventure-scene-header {
  background: linear-gradient(135deg,#0D0815,#1A1020) !important;
}

/* ══ MODE NUIT : règles propres et ciblées ══ */

/* Fond principal uniforme */
body.theme-night,
body.theme-night #screen-app,
body.theme-night .tab-panel { background: #1A1020 !important; }

/* Texte principal : seulement sur les éléments de lecture */
body.theme-night .section-label,
body.theme-night .card-title,
body.theme-night .si-label,
body.theme-night .history-type,
body.theme-night .history-preview,
body.theme-night .serie-ep-name,
body.theme-night .livre-hero-title,
body.theme-night .netflix-section-title,
body.theme-night .tn-title,
body.theme-night #aventure-scene-text,
body.theme-night #reader-chap-titre,
body.theme-night .ga-title,
body.theme-night .dc-title,
body.theme-night .pc-name,
body.theme-night .partner-linked-name,
body.theme-night .set-value,
body.theme-night h2,
body.theme-night h3 { color: #F0E8F8 !important; }

/* Texte secondaire */
body.theme-night .history-date,
body.theme-night .serie-ep-date,
body.theme-night .serie-ep-desc,
body.theme-night .tn-meta,
body.theme-night .tn-sub,
body.theme-night .netflix-section-sub,
body.theme-night .si-value,
body.theme-night .ga-pts { color: #C8B0DC !important; }

/* Cartes : fond sombre, texte blanc */
body.theme-night .card,
body.theme-night .settings-group,
body.theme-night .history-item,
body.theme-night .serie-ep-card,
body.theme-night .aventure-choice-btn { background: #251530 !important; color: #F0E8F8 !important; border-color: #352045 !important; }

/* Inputs */
body.theme-night input,
body.theme-night textarea,
body.theme-night select { background: #352045 !important; color: #F0E8F8 !important; border-color: #4A2A60 !important; }

/* Nav */
body.theme-night .hb-bar { background: rgba(26,16,32,0.97) !important; border-top-color: #352045 !important; }
body.theme-night .hb-quick-btn { color: #9A80B0 !important; }
body.theme-night .hb-quick-btn.active { color: #FF6B9D !important; }

/* Concierge + Aventure */
body.theme-night #concierge-result > div > div:last-child,
body.theme-night #aventure-scene-header { background: #251530 !important; color: #F0E8F8 !important; }
body.theme-night #aventure-history > div { background: #251530 !important; }
body.theme-night #aventure-history .section-label { color: var(--rose) !important; }

/* ── LOADER TRANSITION PAGES ── */
@keyframes heartOpen {
  0%   { transform: scale(0) rotate(-15deg); opacity: 0; }
  40%  { transform: scale(1.15) rotate(0deg); opacity: 1; }
  70%  { transform: scale(0.95); opacity: 1; }
  100% { transform: scale(20); opacity: 0; }
}
@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.08); }
}
@keyframes heartPathDraw {
  0%   { stroke-dashoffset: 300; fill-opacity: 0; }
  50%  { stroke-dashoffset: 0;   fill-opacity: 0; }
  100% { stroke-dashoffset: 0;   fill-opacity: 1; }
}

#page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(160deg, #1A1A2E 0%, #880E4F 60%, #C2185B 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
#page-loader.active {
  opacity: 1;
  pointer-events: all;
}

.pl-heart {
  width: 90px;
  height: 90px;
}
.pl-heart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.heart-path {
  fill: #C2185B;
  stroke: #F8BBD0;
  stroke-width: 2;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  fill-opacity: 0;
  filter: drop-shadow(0 0 18px rgba(194,24,91,0.8));
}

#page-loader.active .pl-heart {
  animation: heartPulse 0.6s ease-in-out infinite;
}
#page-loader.active .heart-path {
  animation: heartPathDraw 0.55s ease forwards;
}
#page-loader.opening .pl-heart {
  animation: heartOpen 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ══ MODE NUIT : FIXES FONDS BLANCS RESTANTS ══ */

/* Auth */
body.theme-night .auth-box { background: #1E0D18 !important; border: 1px solid #3D1A2E; }
body.theme-night .auth-tabs { background: #2A1220 !important; }
body.theme-night .auth-tab { color: #D4A0BE !important; }
body.theme-night .auth-tab.active { background: #3D1A2E !important; color: #FF6B9D !important; box-shadow: none !important; }
body.theme-night .auth-logo h1 { color: #FF6B9D !important; }
body.theme-night .auth-logo p { color: #C8B0DC !important; }
body.theme-night .btn-google { background: #2A1220 !important; color: #F0E8F8 !important; border-color: #3D1A2E !important; box-shadow: none !important; }
body.theme-night .auth-divider span { color: #9A80B0 !important; }
body.theme-night .input-group label { color: #C8B0DC !important; }

/* Onboarding */
body.theme-night #screen-onboarding { background: #1A1020 !important; }
body.theme-night .ob-box { background: #1E0D18 !important; border: 1px solid #3D1A2E; }
body.theme-night .ob-title { color: #F0E8F8 !important; }
body.theme-night .ob-sub { color: #C8B0DC !important; }
body.theme-night .choice-card { background: #2A1220 !important; border-color: #3D1A2E !important; }
body.theme-night .choice-card .cl { color: #F0E8F8 !important; }
body.theme-night .choice-card .cd { color: #C8B0DC !important; }
body.theme-night .choice-card:hover { background: #3D1A2E !important; border-color: var(--rose) !important; }
body.theme-night .choice-card.selected { background: #4A1A35 !important; border-color: var(--rose) !important; }
body.theme-night .passion-tag { background: #2A1220 !important; border-color: #3D1A2E !important; color: #D4A0BE !important; }
body.theme-night .passion-tag.selected { background: #4A1A35 !important; color: #FF6B9D !important; border-color: #FF6B9D !important; }
body.theme-night .progress-dots span { background: #3D1A2E !important; }
body.theme-night .progress-dots span.active { background: var(--rose) !important; }

/* Résultat idées / ce soir / concierge (fond blanc avec dégradé) */
body.theme-night .ai-response { background: #251530 !important; border-color: #4A2A60 !important; color: #F0E8F8 !important; }
body.theme-night .tonight-result { background: #1E0D18 !important; }
body.theme-night .result-content { background: #1E0D18 !important; color: #F0E8F8 !important; }
body.theme-night .result-content * { color: #F0E8F8 !important; }
body.theme-night .result-section { border-color: #2A1220 !important; }
body.theme-night #concierge-result { background: #1E0D18 !important; color: #F0E8F8 !important; }
body.theme-night #concierge-result * { color: #F0E8F8 !important; background: transparent; }
body.theme-night #concierge-result > div { background: #251530 !important; }

/* Modals et overlays */
body.theme-night .modal-sheet { background: #1E0D18 !important; color: #F0E8F8 !important; }
body.theme-night .modal-sheet * { color: #F0E8F8 !important; }
body.theme-night #memory-modal > div { background: #1E0D18 !important; }
body.theme-night #memory-modal h3 { color: #F0E8F8 !important; }

/* Chat overlay */
body.theme-night .chat-overlay { background: #130810 !important; }
body.theme-night .chat-header { background: #1E0D18 !important; border-bottom-color: #2A1220 !important; color: #F0E8F8 !important; }
body.theme-night .chat-partner-name { color: #F0E8F8 !important; }
body.theme-night .chat-msg.mine { background: linear-gradient(135deg,#4A1A35,#2D0A1E) !important; }
body.theme-night .chat-msg.theirs { background: #2A1220 !important; color: #F0E8F8 !important; }

/* Partner profile overlay */
body.theme-night .partner-profile-overlay { background: #130810 !important; }
body.theme-night #partner-profile-content { background: #130810 !important; color: #F0E8F8 !important; }
body.theme-night #partner-profile-content * { color: #F0E8F8 !important; }

/* Profil */
body.theme-night .profile-hero { background: linear-gradient(135deg,#1A0A14,#2D0F22) !important; }
body.theme-night #profile-view-mode { background: #130810 !important; }
body.theme-night #profile-edit-mode { background: #130810 !important; }
body.theme-night .settings-item { border-bottom-color: #2A1220 !important; background: transparent !important; }
body.theme-night .settings-item:hover { background: #2A1220 !important; }
body.theme-night .si-icon { background: #2A1220 !important; }

/* Recettes sauvegardées */
body.theme-night .recipe-item { background: #251530 !important; color: #F0E8F8 !important; border-color: #352045 !important; }
body.theme-night .recipe-title { color: #F0E8F8 !important; }
body.theme-night .recipe-date { color: #C8B0DC !important; }

/* Photos */
body.theme-night .photo-placeholder { background: #2A1220 !important; border-color: #3D1A2E !important; color: #9A80B0 !important; }

/* Toast et flash notifications */
body.theme-night .toast { background: #1E0D18 !important; color: #F0E8F8 !important; border: 1px solid #3D1A2E !important; }
body.theme-night .flash-notif { background: linear-gradient(135deg,#4A1A35,#2D0A1E) !important; color: #FF6B9D !important; }

/* Toast en mode nuit */
body.theme-night .toast { 
  background: #F0E8F8 !important; 
  color: #1A1020 !important; 
}

/* ══════════════════════════════════════════════════════════
   CORRECTIFS DE LISIBILITÉ — MODE NUIT
   (éléments restés sur fond clair avec un texte clair)
   ══════════════════════════════════════════════════════════ */
body.theme-night .passion-response,
body.theme-night .ai-response,
body.theme-night .card,
body.theme-night .stat-card,
body.theme-night .profile-card,
body.theme-night .recipe-item,
body.theme-night .capsule-body,
body.theme-night .routine-alert,
body.theme-night .intensity-bar,
body.theme-night .modal-sheet,
body.theme-night .chat-messages,
body.theme-night .chat-overlay,
body.theme-night .partner-profile-overlay,
body.theme-night .photo-placeholder {
  background: #241325 !important;
  color: #F0E8F8 !important;
  border-color: #3D1A2E !important;
}
body.theme-night .passion-response *,
body.theme-night .ai-response * { color: inherit; }
body.theme-night .input-group input,
body.theme-night .input-group select,
body.theme-night .input-group textarea,
body.theme-night .edit-field {
  background: #2A1628 !important; color: #F0E8F8 !important; border-color: #4A2440 !important;
}
body.theme-night .input-group input::placeholder,
body.theme-night .input-group textarea::placeholder,
body.theme-night .edit-field::placeholder { color: #9A80B0 !important; }
body.theme-night .btn-copy,
body.theme-night .save-btn,
body.theme-night .btn-add-photo,
body.theme-night .chat-img-btn,
body.theme-night .genre-chip,
body.theme-night .capsule-type-btn,
body.theme-night .capsule-emo-btn,
body.theme-night .aventure-choice-btn,
body.theme-night .serie-choix-btn {
  background: #2A1628 !important; color: #F0E8F8 !important; border-color: #4A2440 !important;
}
body.theme-night .capsule-type-btn.active-type,
body.theme-night .save-btn:hover,
body.theme-night .serie-choix-btn:hover { background: #4A1A35 !important; color: #FF6B9D !important; }
body.theme-night .chat-msg:not(.me):not(.mine):not(.sent) { background: #33203A !important; color: #F0E8F8 !important; }

/* Menu « Plus de sections » : libellés lisibles sur fond sombre */
body.theme-night .hb-cell-label { color: #E8D8F0 !important; }
body.theme-night .hb-cell.active-cell,
body.theme-night .hb-cell:hover { background: rgba(255,107,157,.12) !important; }
body.theme-night .hb-cell.active-cell .hb-cell-label { color: #FF6B9D !important; }
body.theme-night .hb-drawer-title { color: #C9B3D0 !important; }

/* Textes de la fiche d'un profil (fenêtre) */
body.theme-night #modal-content [style*="color:var(--text)"] { color: #F0E8F8 !important; }
body.theme-night #modal-content [style*="background:linear-gradient(135deg,var(--rose-pale),#fff)"],
body.theme-night #modal-content [style*="background:var(--gray-50)"],
body.theme-night #modal-content [style*="background:var(--gray-100)"] { background: #2A1628 !important; color: #F0E8F8 !important; }

/* Soirée : cartes de recettes lisibles dans les deux thèmes */
.result-content details summary::-webkit-details-marker { color: var(--rose-light); }

/* ══════════════════════════════════════════════════════════
   VIGNETTES À TAILLE NORMALE (Rencontres et photos du profil)
   On clique sur une photo pour l'agrandir.
   ══════════════════════════════════════════════════════════ */
.profiles-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr)) !important;gap:12px !important}
@media(min-width:640px){
  .profiles-grid{grid-template-columns:repeat(auto-fill,minmax(170px,210px)) !important;gap:16px !important}
}
.profile-card .pc-img,.profile-card .pc-placeholder{max-height:280px}
.photo-grid{grid-template-columns:repeat(auto-fill,minmax(90px,130px)) !important;gap:8px !important}
.photo-thumb img{cursor:zoom-in}


/* LoveIA v2 — focus du jour, chat et accessibilité */
.today-focus{margin:0 1rem 1.1rem;padding:1rem 1.05rem;border-radius:22px;background:linear-gradient(135deg,#fff 0%,#fff5f8 100%);border:1px solid rgba(194,24,91,.12);box-shadow:0 8px 28px rgba(90,0,35,.07)}
.today-focus-kicker{font-size:.66rem;font-weight:800;letter-spacing:1px;color:var(--rose);text-transform:uppercase;margin-bottom:.35rem}
.today-focus-title{font-family:'Playfair Display',serif;font-size:1.15rem;font-weight:600;color:var(--text);margin-bottom:.25rem}
.today-focus-text{font-size:.82rem;line-height:1.5;color:var(--gray-600);max-width:48rem}
.today-focus-btn{margin-top:.75rem;border:0;border-radius:999px;padding:.58rem 1rem;background:linear-gradient(135deg,var(--rose),var(--bordeaux));color:#fff;font:600 .78rem Inter,sans-serif;cursor:pointer;box-shadow:0 6px 16px rgba(194,24,91,.2)}
.chat-quick-replies{display:flex;gap:6px;padding:7px 10px;overflow-x:auto;scrollbar-width:none;background:#fff}
.chat-quick-replies::-webkit-scrollbar{display:none}
.chat-quick-replies button{white-space:nowrap;border:1px solid var(--gray-200);background:var(--gray-50);color:var(--gray-600);border-radius:999px;padding:6px 9px;font:500 .68rem Inter,sans-serif;cursor:pointer}
.chat-quick-replies button:hover{background:var(--rose-pale);border-color:var(--rose-light);color:var(--rose)}
.chat-msg{word-break:break-word;overflow-wrap:anywhere}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
