/* ============================================
   GLOBAL FOOTER - sur toutes les pages
   ============================================ */
.global-footer {
    background: var(--ink, #1f1d1c);
    color: var(--cream, #fdfcf8);
    padding: 56px 40px 28px;
    margin-top: 60px;
    margin-left: 240px; /* compense la sidebar desktop */
}
@media (max-width: 900px) {
    .global-footer { margin-left: 0; padding: 40px 20px 24px; }
}

.gf-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(245, 239, 228, 0.1);
}
@media (max-width: 980px) { .gf-grid { grid-template-columns: 1fr 1fr 1fr; gap: 30px; } }
@media (max-width: 600px) { .gf-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (max-width: 380px) { .gf-grid { grid-template-columns: 1fr; gap: 20px; } }

/* Colonne marque */
.gf-brand { grid-column: span 1; }
@media (max-width: 980px) { .gf-brand { grid-column: 1 / -1; } }

.gf-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 14px;
}
.gf-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}
.gf-brand-name {
    font-family: 'Fraunces', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--cream);
    letter-spacing: -0.01em;
}
.gf-baseline {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(245, 239, 228, 0.7);
    margin: 0 0 18px 0;
    max-width: 320px;
}

.gf-social {
    display: flex;
    gap: 10px;
}
.gf-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(245, 239, 228, 0.2);
    color: rgba(245, 239, 228, 0.7);
    text-decoration: none;
    border-radius: 50%;
    transition: all .15s;
}
.gf-social a:hover {
    background: var(--amber);
    border-color: var(--amber);
    color: #fff;
    transform: translateY(-2px);
}

/* Colonnes liens */
.gf-col-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--amber-light, #f08847);
    margin: 0 0 14px 0;
    font-weight: 600;
}
.gf-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.gf-list a {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: rgba(245, 239, 228, 0.75);
    text-decoration: none;
    transition: color .15s;
}
.gf-list a:hover { color: var(--amber-light, #f08847); }

/* Footer bottom */
.gf-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: rgba(245, 239, 228, 0.5);
    line-height: 1.55;
}
.gf-legal {
    max-width: 600px;
    text-align: right;
}
@media (max-width: 700px) {
    .gf-bottom { flex-direction: column; align-items: flex-start; }
    .gf-legal { text-align: left; }
}

/* ============================================
   FAVORIS - heart button + toast
   ============================================ */
.fav-btn {
    background: #fff;
    border: 1px solid rgba(31, 29, 28, 0.12);
    color: rgba(31, 29, 28, 0.4);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
    padding: 0;
    flex-shrink: 0;
}
.fav-btn:hover {
    border-color: var(--amber, #d96b27);
    color: var(--amber, #d96b27);
    transform: scale(1.08);
}
.fav-btn.fav-active {
    background: var(--amber, #d96b27);
    border-color: var(--amber, #d96b27);
    color: #fff;
    animation: favPop .35s ease-out;
}
@keyframes favPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

/* Position absolue dans une card : top-LEFT pour ne pas overlap avec le badge savings */
.comp-card .fav-btn,
.similar-card .fav-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    width: 32px;
    height: 32px;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.comp-card { position: relative; }
/* Sur la page favoris, le coeur reste a gauche aussi */
.similar-card { position: relative; }

/* Toast notification */
.fav-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--ink, #1f1d1c);
    color: var(--cream, #fdfcf8);
    padding: 12px 22px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s;
    z-index: 10000;
    white-space: nowrap;
}
.fav-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Counter badge in sidebar */
.fav-count {
    background: var(--amber, #d96b27);
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    margin-left: 6px;
    border-radius: 8px;
    display: none;
}

/* Page /favoris empty state */
.fav-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--cream, #fdfcf8);
    border: 1px dashed rgba(31, 29, 28, 0.12);
}
.fav-empty p {
    font-family: 'Fraunces', serif;
    font-size: 17px;
    color: var(--ink);
    margin: 0 0 8px;
}
.fav-empty p:last-of-type { opacity: 0.7; font-size: 14px; }
