header {
    position: relative;
}

.compte-coin {
    position: absolute;
    top: 12px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    max-width: 60%;
    padding: 4px 16px 4px 4px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 15px;
    font-weight: bold;
    line-height: 1;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.compte-coin:hover {
    background: rgba(0, 0, 0, 0.6);
    color: #FECB00;
}

.compte-avatar {
    flex: none;
    display: block;
    width: 38px;
    height: 38px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #c9d3e6;
    overflow: hidden;
}

.compte-avatar svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: #fff;
}

.compte-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compte-nom {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

@media (min-width: 901px) {
    header h1 {
        padding: 0 190px;
    }
}

@media (max-width: 900px) {
    header {
        padding-top: 64px !important;
    }

    .compte-coin {
        top: 10px;
        right: 10px;
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    header {
        padding: 54px 14px 14px !important;
    }

    header h1 {
        font-size: 24px !important;
        line-height: 1.2;
    }

    header p {
        margin: 6px 0 0 !important;
        font-size: 13px;
        line-height: 1.4;
    }

    header p:empty {
        display: none;
    }

    .compte-coin {
        top: 8px;
        right: 8px;
        gap: 7px;
        padding: 3px 12px 3px 3px;
        font-size: 13px;
    }

    .compte-avatar {
        width: 32px;
        height: 32px;
    }
}

.coin-droit {
    position: absolute;
    top: 12px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 75%;
}

.coin-droit .compte-coin {
    position: static;
    max-width: none;
    min-width: 0;
}

.notif-cloche {
    position: relative;
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    color: #fff;
    transition: background 0.3s, color 0.3s;
}

.notif-cloche:hover {
    background: rgba(0, 0, 0, 0.6);
    color: #FECB00;
}

.notif-cloche svg {
    width: 22px;
    height: 22px;
}

.notif-nombre {
    position: absolute;
    top: -4px;
    right: -4px;
    box-sizing: border-box;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #C8102E;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 11px;
    font-weight: bold;
    line-height: 16px;
    text-align: center;
}

@media (min-width: 901px) {
    header h1 {
        padding: 0 250px;
    }
}

@media (max-width: 900px) {
    .coin-droit {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 600px) {
    .coin-droit {
        top: 8px;
        right: 8px;
        gap: 8px;
    }

    .notif-cloche {
        width: 38px;
        height: 38px;
    }

    .notif-cloche svg {
        width: 20px;
        height: 20px;
    }
}
