:root {
    --green-primary: #1E4620;
    --yellow-accent: #F4D03F;
    --blue-accent: #2B6CB0;
    --bg-light: #F4F7F6;
    --card-bg: #FFFFFF;
    --text-main: #2D3748;
    --text-gray: #718096;
    --light-gray-bg: #EDF2F7;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
}

body { 
    background-color: var(--bg-light); 
    color: var(--text-main); 
    overscroll-behavior-y: none; 
}

#toast-container {
    position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%);
    background: rgba(50, 50, 50, 0.9); color: white; padding: 10px 20px;
    border-radius: 20px; font-size: 13px; z-index: 9999; display: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); text-align: center; max-width: 80%;
}

/* --- 🔐 ECRAN D'AUTHENTIFICATION --- */
#auth-screen { position: fixed; top: 0; bottom: 0; left: 0; right: 0; background-color: var(--yellow-accent); z-index: 5000; display: flex; flex-direction: column; justify-content: center; padding: 40px 32px; overflow-y: auto; }
.auth-logo { height: 140px; display: block; margin: 0 auto 40px auto; object-fit: contain; }
.auth-tabs { display: flex; width: 100%; margin-bottom: 32px; text-align: center; }
.auth-tab { flex: 1; font-weight: bold; font-size: 16px; color: var(--text-gray); cursor: pointer; padding-bottom: 8px; position: relative; }
.auth-tab.active { color: var(--green-primary); }
.auth-tab.active::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 40px; height: 3px; background-color: var(--green-primary); border-radius: 2px; }
.auth-input { width: 100%; padding: 16px; margin-bottom: 12px; background-color: white; border: 2px solid transparent; border-radius: 12px; font-size: 16px; outline: none; transition: border-color 0.2s; }
.auth-input:focus { border-color: var(--green-primary); }
.auth-btn { width: 100%; background: var(--green-primary); color: white; padding: 16px; border: none; border-radius: 12px; font-size: 16px; font-weight: bold; cursor: pointer; margin-top: 20px; display: flex; align-items: center; justify-content: center; min-height: 55px; }
.auth-btn:disabled { opacity: 0.7; }
.spinner { width: 24px; height: 24px; border: 3px solid rgba(255,255,255,0.3); border-radius: 50%; border-top-color: white; animation: spin 1s ease infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- 🧭 BARRE SUPÉRIEURE (TOP BAR) --- */
.top-bar { 
    position: fixed; top: 0; left: 0; right: 0; 
    background-color: var(--yellow-accent); 
    height: 60px; display: flex; align-items: center; justify-content: space-between; 
    padding: 0 16px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); z-index: 1000; 
}
.top-bar-nav { width: 36px; display: flex; align-items: center; justify-content: flex-start; }
.back-nav-icon { cursor: pointer; display: none; color: var(--green-primary); font-size: 24px; font-weight: bold; }
.top-bar-title { flex-grow: 1; display: flex; align-items: center; justify-content: flex-start; margin-left: 4px; }
.top-bar-logo { height: 35px; cursor: pointer; object-fit: contain; }
.top-bar-actions { display: flex; align-items: center; gap: 4px; }
.top-bar-btn { background: transparent; border: none; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; color: var(--green-primary); position: relative; }
.top-bar-btn .material-symbols-outlined { font-size: 24px; color: var(--green-primary); }
.top-bar-btn .badge { position: absolute; top: 1px; right: 1px; background-color: #E53E3E; color: white; font-size: 10px; font-weight: bold; min-width: 16px; height: 16px; border-radius: 50%; display: none; align-items: center; justify-content: center; padding: 0 4px; }

/* --- 🖼️ COMMONS DE SCROLL / CONTENEURS --- */
.main-content { margin-top: 60px; margin-bottom: 70px; padding: 0; height: calc(100vh - 130px); overflow-y: auto; }
.view { display: none; padding: 16px; }
.view.active { display: block; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- 🏠 ACCUEIL --- */
.home-header-banner { background: linear-gradient(to bottom, rgba(244, 208, 63, 0.4), var(--bg-light)); padding: 16px; margin: -16px -16px 12px -16px; }
.profile-row { display: flex; align-items: center; }
.home-avatar-container { position: relative; width: 54px; height: 54px; border-radius: 50%; border: 2px solid white; box-shadow: 0 4px 6px rgba(0,0,0,0.1); cursor: pointer; overflow: hidden; background: white; display: flex; align-items: center; justify-content: center; }
.home-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.avatar-loader { position: absolute; top:0; bottom:0; left:0; right:0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; }
.stats-card { background: white; border-radius: 12px; padding: 12px 0; margin-bottom: 12px; box-shadow: 0 2px 4px rgba(0,0,0,0.04); display: flex; justify-content: space-evenly; align-items: center; }
.stat-col { text-align: center; flex: 1; cursor: pointer; }
.stat-val { font-size: 16px; font-weight: bold; }
.stat-lbl { font-size: 10px; color: var(--text-gray); margin-top: 2px; }
.stat-v-divider { width: 1px; height: 24px; background-color: var(--light-gray-bg); }
.zythologue-banner { background: var(--green-primary); border-radius: 12px; padding: 12px; display: flex; align-items: center; cursor: pointer; margin-bottom: 16px; }
.feed-toggle-bar { display: flex; justify-content: space-around; width: 100%; margin-bottom: 8px; border-bottom: 1px solid var(--light-gray-bg); }
.feed-toggle-btn { background: transparent; border: none; padding: 10px 20px; font-size: 14px; font-weight: 500; color: var(--text-gray); cursor: pointer; position: relative; }
.feed-toggle-btn.active { font-weight: bold; color: var(--green-primary); }
.feed-toggle-btn.active::after { content:''; position: absolute; bottom: 0; left:20%; right:20%; height: 3px; background: var(--green-primary); border-radius: 2px; }

/* --- 🔍 FILTRES DU CATALOGUE (MATERIAL 3) --- */
.filter-surface { 
    background: white; 
    padding: 12px 0 0 0; 
    margin-bottom: 8px; 
    border-bottom: 1px solid var(--light-gray-bg); 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.sort-row { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 0 16px 16px 16px; 
    font-size: 14px; font-weight: bold; color: var(--text-main); 
}
.sort-options { display: flex; gap: 12px; font-weight: normal; }
.sort-opt { cursor: pointer; color: #A0AEC0; font-weight: 500; transition: all 0.2s; }
.sort-opt.active { 
    font-weight: bold; color: var(--green-primary); 
    border-bottom: 2px solid var(--green-primary); padding-bottom: 4px; 
}
.divider { height: 1px; background-color: var(--bg-light); margin: 4px 0 8px 0; }

.lazy-filter-row { 
    display: flex; overflow-x: auto; 
    padding: 0 16px 12px 16px; gap: 8px; 
    white-space: nowrap; align-items: center; 
    -webkit-overflow-scrolling: touch; scrollbar-width: none; 
}
.lazy-filter-row::-webkit-scrollbar { display: none; }
.filter-label { font-size: 12px; color: gray; margin-right: 4px; }

/* Forme de jeton Material 3 standard */
.m3-chip { 
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px 14px; border-radius: 8px; 
    background: white; border: 1px solid #CBD5E0; 
    font-size: 13px; font-weight: 500; color: #4A5568; 
    cursor: pointer; user-select: none; transition: all 0.2s;
}

/* Éléments intelligents actifs */
.m3-chip.active-toutes { background: #E8DEF8; border-color: transparent; color: #1D192B; font-weight: bold; }
.m3-chip.active-decaps { background: white; border-color: var(--green-primary); color: var(--green-primary); font-weight: bold; }
.m3-chip.active-nonbue { background: white; border-color: var(--blue-accent); color: var(--blue-accent); font-weight: bold; }
.m3-chip.active-wish { background: white; border-color: #E53E3E; color: #E53E3E; font-weight: bold; }

/* 💡 CORRECTION DU REASSORT : Éclairage des filtres de type & de robe sélectionnés */
.m3-chip.active { 
    background: #E8DEF8 !important; 
    border-color: transparent !important; 
    color: #1D192B !important; 
    font-weight: bold !important; 
}

/* --- 🍺 GRILLE DU CATALOGUE --- */
.beer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 8px; }
.beer-card { background: white; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,0.05); display: flex; flex-direction: column; cursor: pointer; }
.beer-img-box { height: 140px; width: 100%; position: relative; background: white; padding: 12px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--light-gray-bg); }
.beer-img { max-height: 100%; max-width: 100%; object-fit: contain; }
.beer-sticker { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,0.95); padding: 8px; border-radius: 12px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); font-size: 12px; text-align: center; }
.beer-card-content { padding: 12px; display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between; }
.beer-name { font-size: 15px; font-weight: 800; color: var(--green-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.beer-brewery { font-size: 12px; color: var(--text-gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 12px; }
.beer-meta-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.beer-type-chip { background: white; border: 1px solid #E2E8F0; padding: 4px 6px; border-radius: 6px; font-size: 10px; font-weight: 500; color: #4A5568; }
.beer-abv { font-size: 13px; font-weight: bold; color: var(--blue-accent); }
.beer-actions-row { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.btn-decaps { flex: 1; background: var(--green-primary); color: white; border: none; height: 32px; border-radius: 8px; font-size: 11px; font-weight: bold; cursor: pointer; }
.btn-reviewed { flex: 1; background: transparent; color: var(--green-primary); border: 1px solid var(--green-primary); height: 32px; border-radius: 8px; font-size: 11px; font-weight: bold; }
.btn-wish { width: 32px; height: 32px; border: 1px solid #CBD5E0; border-radius: 8px; background: transparent; display: flex; align-items: center; justify-content: center; color: var(--text-gray); cursor: pointer; }

/* --- 📄 FICHES DETAILS --- */
.detail-surface { background: white; border-radius: 0 0 24px 24px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); overflow: hidden; margin-bottom: 16px; }
.detail-img-container { height: 250px; width: 100%; background: white; position: relative; display: flex; align-items: center; justify-content: center; padding: 16px; }
.detail-img { max-height: 100%; max-width: 100%; object-fit: contain; }
.detail-wish-icon { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,0.8); border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 5px rgba(0,0,0,0.1); cursor: pointer; color: var(--text-gray); }
.detail-wish-icon.wished { color: var(--blue-accent); background: white; }
.detail-body { padding: 16px; }
.detail-title { font-size: 26px; font-weight: bold; color: var(--green-primary); line-height: 1.2; margin-bottom: 4px; }
.detail-brewery-link { color: var(--yellow-accent); font-weight: bold; text-decoration: underline; cursor: pointer; font-size: 15px; }
.detail-specs { color: var(--text-gray); font-size: 14px; margin-top: 4px; }
.detail-action-bar { display: flex; gap: 12px; margin-top: 16px; align-items: center; }
.detail-avg-badge { background: var(--yellow-accent); color: var(--text-main); font-weight: bold; padding: 12px; border-radius: 8px; font-size: 14px; white-space: nowrap; }
.btn-detail-action { flex: 1; height: 44px; font-weight: bold; font-size: 14px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.btn-detail-action.primary { background: var(--green-primary); color: white; border: none; }
.detail-section-title { font-size: 15px; font-weight: bold; margin-top: 16px; margin-bottom: 4px; }
.detail-description { font-size: 14px; color: #4A5568; text-align: justify; line-height: 1.5; }

/* --- 💬 RENDER DU FLUX REVIEWS --- */
.review-card { background: white; border-radius: 16px; padding: 16px; margin-bottom: 12px; box-shadow: 0 2px 4px rgba(0,0,0,0.04); }
.review-header { display: flex; align-items: center; width: 100%; }
.review-avatar-box { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 18px; margin-right: 12px; overflow: hidden; background: rgba(244, 208, 63, 0.4); color: var(--green-primary); }
.review-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.review-meta { flex: 1; display: flex; flex-direction: column; }
.review-user { font-weight: bold; font-size: 15px; color: var(--green-primary); cursor: pointer; }
.review-date { font-size: 11px; color: var(--text-gray); margin-top: 2px; }
.review-score { font-size: 12px; font-weight: bold; white-space: nowrap; color: var(--text-main); }
.review-attached-img { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; margin-top: 12px; }
.review-text-content { font-size: 14px; color: #2D3748; line-height: 1.4; margin-top: 12px; }

/* --- 🏆 LE PANTHÉON --- */
.pantheon-header { background: var(--green-primary); border-radius: 0 0 24px 24px; padding: 24px; text-align: center; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.tab-bar-container { background: white; width: 100%; box-shadow: 0 2px 4px rgba(0,0,0,0.02); display: flex; justify-content: space-around; align-items: center; height: 48px; }
.tab-bar-item { flex: 1; text-align: center; color: var(--text-gray); font-size: 14px; font-weight: 500; cursor: pointer; height: 100%; display: flex; align-items: center; justify-content: center; gap: 4px; position: relative; transition: color 0.2s; }
.tab-bar-item.active { color: var(--green-primary); font-weight: bold; }
.tab-bar-item.active::after { content: ''; position: absolute; bottom: 0; left: 15%; right: 15%; height: 3px; background: var(--green-primary); border-radius: 2px; }
.leaderboard-row { background: white; border-radius: 16px; padding: 12px; margin-bottom: 10px; box-shadow: 0 2px 4px rgba(0,0,0,0.04); display: flex; align-items: center; width: 100%; cursor: pointer; border: 2px solid transparent; }
.score-pill { background: var(--light-gray-bg); padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: bold; color: var(--green-primary); margin-left: auto; }
.sticky-my-rank { position: fixed; bottom: 86px; left: 16px; right: 16px; background: var(--green-primary); border-radius: 16px; padding: 12px 16px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); display: none; align-items: center; z-index: 1500; color: white; cursor: pointer; animation: slideUp 0.3s cubic-bezier(0.1, 0.8, 0.3, 1); }
@keyframes slideUp { from { transform: translateY(120%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.sticky-rank-badge { width: 32px; height: 32px; border-radius: 50%; background: var(--yellow-accent); color: var(--green-primary); font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; margin-right: 12px; }

/* --- 🪟 MODALE DE RATING ET SÉLECTION --- */
.modal-overlay { position: fixed; top: 0; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.6); z-index: 9000; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-container { background: white; width: 100%; max-width: 450px; border-radius: 16px; padding: 20px; max-height: 90vh; overflow-y: auto; box-shadow: 0 10px 25px rgba(0,0,0,0.2); animation: dialogScale 0.2s ease-out; }
@keyframes dialogScale { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.half-star-bar { display: flex; justify-content: center; gap: 4px; margin: 12px 0; }
.modal-input { width: 100%; padding: 12px; border: 1px solid #CBD5E0; border-radius: 8px; font-size: 15px; outline: none; margin-bottom: 12px; }
.modal-input:focus { border-color: var(--green-primary); }
.location-suggestions-box { background: var(--light-gray-bg); border-radius: 8px; padding: 4px; margin-top: -8px; margin-bottom: 12px; max-height: 160px; overflow-y: auto; }

/* --- 🪟 BOTTOM SHEET --- */
.bottom-sheet-overlay { position: fixed; top: 0; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.5); z-index: 8000; display: none; }
.bottom-sheet { position: fixed; bottom: 0; left: 0; right: 0; background: white; border-radius: 24px 24px 0 0; padding: 24px; z-index: 8500; transform: translateY(100%); transition: transform 0.3s ease-out; display: flex; flex-direction: column; align-items: center; box-shadow: 0 -4px 15px rgba(0,0,0,0.15); }
.bottom-sheet.open { transform: translateY(0); }
.sheet-btn-primary { width: 100%; background: var(--yellow-accent); color: var(--green-primary); font-weight: bold; height: 56px; border: none; border-radius: 12px; font-size: 16px; margin-top: 16px; cursor: pointer; }
.sheet-btn-outlined { width: 100%; background: transparent; color: var(--green-primary); border: 1px solid var(--green-primary); height: 56px; border-radius: 12px; font-size: 16px; margin-top: 16px; cursor: pointer; }

/* --- 📱 NAVIGATION BASSE (PILULE MATERIAL 3) --- */
.bottom-nav { 
    position: fixed; bottom: 0; left: 0; right: 0; 
    background-color: var(--card-bg); 
    height: 80px; 
    display: flex; justify-content: space-around; align-items: center; 
    border-top: 1px solid #E2E8F0; 
    padding-bottom: env(safe-area-inset-bottom); 
    z-index: 1000; 
}
.nav-item { 
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #4A5568; font-size: 12px; font-weight: 600; cursor: pointer; 
    flex: 1; gap: 4px;
    -webkit-tap-highlight-color: transparent;
}
.nav-icon-container {
    width: 64px; height: 32px; 
    display: flex; align-items: center; justify-content: center;
    border-radius: 16px; 
    font-size: 22px;
    transition: background-color 0.2s ease-in-out;
}
.nav-item.active .nav-icon-container { 
    background-color: #E8DEF8; 
}
.nav-item.active { color: var(--green-primary); }

.fab { position: fixed; bottom: 86px; right: 16px; background-color: var(--green-primary); color: white; padding: 0 20px; height: 50px; border-radius: 28px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: bold; box-shadow: 0 4px 10px rgba(30, 70, 32, 0.4); cursor: pointer; z-index: 2000; }
.card { background: var(--card-bg); border-radius: 16px; padding: 16px; margin-bottom: 16px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }

/* --- 📝 ENTRÉES DE FORMULAIRES --- */
.edit-label { 
    font-size: 12px; font-weight: bold; color: var(--green-primary); 
    margin-bottom: 4px; display: block; margin-left: 4px; 
}
select.modal-input {
    appearance: none; background: white url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231E4620%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E") no-repeat right 12px center;
    background-size: 12px auto;
}

/* Interrupteur à bascule (Toggle Android) */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #CBD5E0; transition: .4s; border-radius: 24px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
input:checked + .slider { background-color: var(--green-primary); }
input:checked + .slider:before { transform: translateX(20px); }

/* --- 📊 COMPOSANTS DE STATISTIQUES & BADGES --- */
.xp-progress-container {
    background: #E2E8F0; border-radius: 10px; height: 12px; width: 100%;
    margin: 12px 0; overflow: hidden; position: relative;
}
.xp-progress-bar {
    background: linear-gradient(90deg, var(--green-primary), #48BB78);
    height: 100%; width: 0%; transition: width 0.5s ease-in-out;
}
.badges-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px;
}
.badge-card {
    background: white; border-radius: 16px; padding: 12px 8px; text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
}
.badge-card.locked {
    filter: grayscale(100%); opacity: 0.5; background: #EDF2F7;
}
.badge-icon { font-size: 32px; margin-bottom: 4px; display: block; }
.badge-title { font-size: 12px; font-weight: bold; color: var(--text-main); }
.badge-desc { font-size: 9px; color: gray; margin-top: 2px; line-height: 1.1; }
/* --- BOUTONS TRINQUER / SANTÉ (FLUX D'ACTUALITÉ) --- */
.btn-cheers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: white;
    border: 1px solid #CBD5E0;
    color: #4A5568;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

/* État actif (Quand on a cliqué sur Trinquer) */
.btn-cheers.active {
    background: rgba(244, 208, 63, 0.15); /* Fond jaune très léger */
    border-color: var(--yellow-accent);
    color: var(--green-primary);
}
/* --- SYSTEME DE NOTATION (ÉTOILES PLEINES & DEMI) --- */
.star-rating-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 42px;
    cursor: pointer;
    margin: 16px 0;
    -webkit-tap-highlight-color: transparent;
}

.star-rating-container .star {
    position: relative;
    display: inline-block;
    color: #E2E8F0; /* Grise par défaut */
    transition: transform 0.1s ease;
}

/* Étoile pleine dorée */
.star-rating-container .star.full {
    color: #F4D03F;
}

/* 💡 L'ASTUCE : La demi-étoile dorée */
.star-rating-container .star.half::after {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    color: #F4D03F;
    overflow: hidden;
    width: 50%; /* On coupe l'étoile dorée exactement au milieu */
}

.star-rating-container .star:active {
    transform: scale(0.85);
}